From c123f11a154f2b7635376d305d0593b508a59485 Mon Sep 17 00:00:00 2001 From: mailslurp-sdk-bot Date: Thu, 9 May 2024 05:58:16 +0000 Subject: [PATCH] 15.19.14 - version --- .gitignore | 362 + .openapi-generator-ignore | 23 + .openapi-generator/FILES | 1003 ++ .openapi-generator/VERSION | 1 + LICENSE | 7 + README.md | 38 + SECURITY.md | 4 + SUPPORT.md | 4 + appveyor.yml | 9 + docs/AbstractWebhookPayload.md | 14 + docs/AccountBounceBlockDto.md | 14 + docs/AliasControllerApi.md | 1112 ++ docs/AliasDto.md | 21 + docs/AliasProjection.md | 18 + docs/AttachmentControllerApi.md | 980 ++ docs/AttachmentEntity.md | 20 + docs/AttachmentMetaData.md | 15 + docs/AttachmentProjection.md | 18 + docs/BasicAuthOptions.md | 12 + docs/BounceControllerApi.md | 905 ++ docs/BounceProjection.md | 16 + docs/BounceRecipientProjection.md | 17 + docs/BouncedEmailDto.md | 22 + docs/BouncedRecipientDto.md | 19 + docs/BulkActionsControllerApi.md | 284 + docs/BulkSendEmailOptions.md | 12 + docs/CanSendEmailResults.md | 11 + docs/CheckEmailBodyFeatureSupportResults.md | 10 + docs/CheckEmailBodyResults.md | 13 + docs/CheckEmailClientSupportOptions.md | 11 + docs/CheckEmailClientSupportResults.md | 10 + .../CheckEmailFeaturesClientSupportOptions.md | 10 + .../CheckEmailFeaturesClientSupportResults.md | 10 + docs/CommonActionsControllerApi.md | 635 + docs/Complaint.md | 17 + docs/ConditionOption.md | 12 + docs/ConnectorControllerApi.md | 1360 ++ docs/ConnectorDto.md | 20 + docs/ConnectorImapConnectionDto.md | 20 + docs/ConnectorProjection.md | 20 + docs/ConnectorSmtpConnectionDto.md | 18 + docs/ConnectorSyncEventDto.md | 15 + docs/ConnectorSyncEventProjection.md | 16 + docs/ConnectorSyncRequestResult.md | 12 + docs/ConnectorSyncRequestResultException.md | 14 + ...onnectorSyncRequestResultExceptionCause.md | 12 + ...uestResultExceptionCauseStackTraceInner.md | 17 + docs/ConnectorSyncResult.md | 11 + docs/ContactControllerApi.md | 574 + docs/ContactDto.md | 21 + docs/ContactProjection.md | 19 + docs/ContentMatchOptions.md | 11 + docs/CountDto.md | 11 + docs/CreateAliasOptions.md | 16 + docs/CreateConnectorImapConnectionOptions.md | 18 + docs/CreateConnectorOptions.md | 16 + docs/CreateConnectorSmtpConnectionOptions.md | 15 + docs/CreateContactOptions.md | 19 + docs/CreateDomainOptions.md | 14 + docs/CreateEmergencyAddressOptions.md | 16 + docs/CreateGroupOptions.md | 12 + docs/CreateInboxDto.md | 25 + docs/CreateInboxForwarderOptions.md | 13 + docs/CreateInboxReplierOptions.md | 23 + docs/CreateInboxRulesetOptions.md | 13 + docs/CreateTemplateOptions.md | 12 + docs/CreateTrackingPixelOptions.md | 12 + docs/CreateWebhookOptions.md | 18 + docs/DNSLookupOptions.md | 13 + docs/DNSLookupResult.md | 14 + docs/DNSLookupResults.md | 11 + docs/DNSLookupsOptions.md | 11 + docs/DeliveryStatusDto.md | 23 + docs/DescribeDomainOptions.md | 11 + docs/DescribeMailServerDomainResult.md | 13 + docs/DomainControllerApi.md | 971 ++ docs/DomainDto.md | 23 + docs/DomainGroup.md | 11 + docs/DomainGroupsDto.md | 10 + docs/DomainInformation.md | 12 + docs/DomainIssuesDto.md | 10 + docs/DomainNameRecord.md | 16 + docs/DomainPreview.md | 17 + docs/DownloadAttachmentDto.md | 13 + docs/Email.md | 40 + docs/EmailAnalysis.md | 15 + docs/EmailContentMatchResult.md | 12 + docs/EmailContentPartResult.md | 10 + docs/EmailControllerApi.md | 4045 ++++++ docs/EmailFeatureCategoryName.md | 11 + docs/EmailFeatureFamilyName.md | 11 + docs/EmailFeatureFamilyStatistics.md | 12 + docs/EmailFeatureNames.md | 12 + docs/EmailFeatureOverview.md | 17 + docs/EmailFeaturePlatformName.md | 11 + docs/EmailFeaturePlatformStatistics.md | 11 + docs/EmailFeatureSupportFlags.md | 11 + docs/EmailFeatureSupportResult.md | 13 + docs/EmailFeatureSupportStatusPercentage.md | 11 + docs/EmailFeatureVersionStatistics.md | 11 + docs/EmailHtmlDto.md | 11 + docs/EmailLinksResult.md | 12 + docs/EmailPreview.md | 20 + docs/EmailPreviewUrls.md | 13 + docs/EmailProjection.md | 25 + docs/EmailRecipients.md | 13 + docs/EmailScreenshotResult.md | 10 + docs/EmailTextLinesResult.md | 12 + docs/EmailValidationRequestDto.md | 16 + docs/EmailVerificationControllerApi.md | 386 + docs/EmailVerificationResult.md | 15 + docs/EmergencyAddress.md | 22 + docs/EmergencyAddressDto.md | 12 + docs/EmptyResponseDto.md | 10 + docs/ExpirationDefaults.md | 15 + docs/ExpiredControllerApi.md | 398 + docs/ExpiredInboxDto.md | 13 + docs/ExpiredInboxRecordProjection.md | 14 + docs/ExportControllerApi.md | 215 + docs/ExportLink.md | 11 + docs/ExportOptions.md | 16 + docs/FakeEmailDto.md | 18 + docs/FakeEmailPreview.md | 17 + docs/FakeEmailResult.md | 10 + docs/FilterBouncedRecipientsOptions.md | 11 + docs/FilterBouncedRecipientsResult.md | 11 + docs/FlushExpiredInboxesResult.md | 12 + docs/FormControllerApi.md | 116 + docs/ForwardEmailOptions.md | 17 + docs/GenerateBimiRecordOptions.md | 13 + docs/GenerateBimiRecordResults.md | 13 + docs/GenerateDmarcRecordOptions.md | 21 + docs/GenerateDmarcRecordResults.md | 13 + docs/GenerateMtaStsRecordOptions.md | 15 + docs/GenerateMtaStsRecordResults.md | 15 + docs/GenerateTlsReportingRecordOptions.md | 14 + docs/GenerateTlsReportingRecordResults.md | 13 + docs/GetEmailScreenshotOptions.md | 12 + docs/GravatarUrl.md | 12 + docs/GroupContactsDto.md | 12 + docs/GroupControllerApi.md | 875 ++ docs/GroupDto.md | 14 + docs/GroupProjection.md | 14 + docs/HTMLValidationResult.md | 14 + docs/IPAddressResult.md | 12 + docs/ImageIssue.md | 13 + docs/ImapAccessDetails.md | 19 + docs/ImapControllerApi.md | 585 + docs/ImapEmailProjection.md | 14 + docs/ImapFlagOperationOptions.md | 12 + docs/ImapMailboxStatus.md | 21 + docs/ImapServerFetchItem.md | 15 + docs/ImapServerFetchResult.md | 11 + docs/ImapServerGetResult.md | 10 + docs/ImapServerListOptions.md | 11 + docs/ImapServerListResult.md | 10 + docs/ImapServerSearchOptions.md | 21 + docs/ImapServerSearchResult.md | 10 + docs/ImapServerStatusOptions.md | 11 + docs/ImapServerStatusResult.md | 10 + docs/ImapSmtpAccessDetails.md | 28 + docs/ImapSmtpAccessServers.md | 14 + docs/ImapUpdateFlagsOptions.md | 13 + docs/InboxByEmailAddressResult.md | 12 + docs/InboxByNameResult.md | 12 + docs/InboxControllerApi.md | 4975 +++++++ docs/InboxDto.md | 24 + docs/InboxExistsDto.md | 11 + docs/InboxForwarderControllerApi.md | 1294 ++ docs/InboxForwarderDto.md | 17 + docs/InboxForwarderEventDto.md | 18 + docs/InboxForwarderEventProjection.md | 18 + docs/InboxForwarderTestOptions.md | 11 + docs/InboxForwarderTestResult.md | 12 + docs/InboxIdItem.md | 12 + docs/InboxIdsResult.md | 11 + docs/InboxPreview.md | 22 + docs/InboxReplierControllerApi.md | 696 + docs/InboxReplierDto.md | 24 + docs/InboxReplierEventProjection.md | 20 + docs/InboxRulesetControllerApi.md | 987 ++ docs/InboxRulesetDto.md | 17 + docs/InboxRulesetTestOptions.md | 11 + docs/InboxRulesetTestResult.md | 12 + docs/JSONSchemaDto.md | 11 + docs/LinkIssue.md | 13 + docs/ListUnsubscribeRecipientProjection.md | 14 + docs/LookupBimiDomainOptions.md | 10 + docs/LookupBimiDomainResults.md | 14 + docs/LookupDmarcDomainOptions.md | 10 + docs/LookupDmarcDomainResults.md | 14 + docs/LookupMtaStsDomainOptions.md | 10 + docs/LookupMtaStsDomainResults.md | 17 + docs/LookupTlsReportingDomainOptions.md | 10 + docs/LookupTlsReportingDomainResults.md | 14 + docs/MailServerControllerApi.md | 482 + docs/MatchOption.md | 13 + docs/MatchOptions.md | 12 + docs/MissedEmailControllerApi.md | 513 + docs/MissedEmailDto.md | 26 + docs/MissedEmailProjection.md | 15 + docs/NameServerRecord.md | 14 + docs/NewFakeEmailAddressResult.md | 10 + docs/OrganizationInboxProjection.md | 22 + docs/PageAlias.md | 21 + docs/PageAttachmentEntity.md | 21 + docs/PageBouncedEmail.md | 21 + docs/PageBouncedRecipients.md | 21 + docs/PageComplaint.md | 21 + docs/PageConnector.md | 21 + docs/PageConnectorSyncEvents.md | 21 + docs/PageContactProjection.md | 21 + docs/PageDeliveryStatus.md | 21 + docs/PageEmailPreview.md | 21 + docs/PageEmailProjection.md | 21 + docs/PageEmailValidationRequest.md | 21 + docs/PageExpiredInboxRecordProjection.md | 21 + docs/PageGroupProjection.md | 21 + docs/PageInboxForwarderDto.md | 21 + docs/PageInboxForwarderEvents.md | 21 + docs/PageInboxProjection.md | 21 + docs/PageInboxReplierDto.md | 21 + docs/PageInboxReplierEvents.md | 21 + docs/PageInboxRulesetDto.md | 21 + docs/PageListUnsubscribeRecipients.md | 21 + docs/PageMissedEmailProjection.md | 21 + docs/PageOrganizationInboxProjection.md | 21 + docs/PagePhoneNumberProjection.md | 21 + docs/PageScheduledJobs.md | 21 + docs/PageSentEmailProjection.md | 21 + docs/PageSentEmailWithQueueProjection.md | 21 + docs/PageSmsProjection.md | 21 + docs/PageTemplateProjection.md | 21 + docs/PageThreadProjection.md | 21 + docs/PageTrackingPixelProjection.md | 21 + docs/PageUnknownMissedEmailProjection.md | 21 + docs/PageWebhookProjection.md | 21 + docs/PageWebhookResult.md | 21 + docs/PageableObject.md | 15 + docs/PhoneControllerApi.md | 840 ++ docs/PhoneNumberDto.md | 18 + docs/PhoneNumberProjection.md | 15 + docs/PhonePlanDto.md | 13 + docs/RawEmailJson.md | 11 + docs/Recipient.md | 13 + docs/ReplyForSms.md | 10 + docs/ReplyToAliasEmailOptions.md | 20 + docs/ReplyToEmailOptions.md | 22 + docs/ScheduledJob.md | 19 + docs/ScheduledJobDto.md | 19 + docs/SearchEmailsOptions.md | 17 + docs/SearchInboxesOptions.md | 20 + docs/SendEmailBodyPart.md | 12 + docs/SendEmailOptions.md | 34 + docs/SendSMTPEnvelopeOptions.md | 13 + docs/SendWithQueueResult.md | 19 + docs/Sender.md | 13 + docs/SentEmailDto.md | 36 + docs/SentEmailProjection.md | 21 + docs/SentEmailsControllerApi.md | 1598 +++ docs/SentSmsDto.md | 20 + docs/ServerEndpoints.md | 13 + docs/SetInboxFavouritedOptions.md | 11 + docs/SimpleSendEmailOptions.md | 14 + docs/SmsControllerApi.md | 779 ++ docs/SmsDto.md | 17 + docs/SmsMatchOption.md | 13 + docs/SmsPreview.md | 15 + docs/SmsProjection.md | 17 + docs/SmsReplyOptions.md | 10 + docs/SmtpAccessDetails.md | 19 + docs/SortObject.md | 12 + docs/SpellingIssue.md | 13 + docs/TemplateControllerApi.md | 784 ++ docs/TemplateDto.md | 15 + docs/TemplatePreview.md | 10 + docs/TemplateProjection.md | 15 + docs/TemplateVariable.md | 12 + docs/TestInboxRulesetReceivingOptions.md | 12 + docs/TestInboxRulesetReceivingResult.md | 10 + docs/TestInboxRulesetSendingOptions.md | 12 + docs/TestInboxRulesetSendingResult.md | 10 + docs/TestNewInboxForwarderOptions.md | 12 + docs/TestNewInboxRulesetOptions.md | 12 + docs/TestPhoneNumberOptions.md | 10 + docs/ThreadProjection.md | 21 + docs/ToolsControllerApi.md | 1140 ++ docs/TrackingControllerApi.md | 306 + docs/TrackingPixelDto.md | 19 + docs/TrackingPixelProjection.md | 19 + docs/UnknownMissedEmailProjection.md | 15 + docs/UnreadCount.md | 11 + docs/UnseenErrorCountDto.md | 11 + docs/UpdateAliasOptions.md | 11 + docs/UpdateDomainOptions.md | 11 + docs/UpdateGroupContacts.md | 11 + docs/UpdateImapAccessOptions.md | 12 + docs/UpdateInboxOptions.md | 15 + docs/UpdateInboxReplierOptions.md | 23 + docs/UpdateSmtpAccessOptions.md | 12 + docs/UploadAttachmentOptions.md | 14 + docs/UploadMultipartFormRequest.md | 11 + docs/UserControllerApi.md | 194 + docs/UserInfoDto.md | 15 + docs/ValidateEmailAddressListOptions.md | 12 + docs/ValidateEmailAddressListResult.md | 13 + docs/ValidationDto.md | 12 + docs/ValidationMessage.md | 12 + docs/VerifyEmailAddressOptions.md | 14 + docs/VerifyWebhookSignatureOptions.md | 11 + docs/VerifyWebhookSignatureResults.md | 10 + docs/WaitForConditions.md | 20 + docs/WaitForControllerApi.md | 853 ++ docs/WaitForSingleSmsOptions.md | 16 + docs/WaitForSmsConditions.md | 21 + docs/WebhookBouncePayload.md | 18 + docs/WebhookBounceRecipientPayload.md | 15 + docs/WebhookControllerApi.md | 3496 +++++ docs/WebhookDeliveryStatusPayload.md | 26 + docs/WebhookDto.md | 26 + docs/WebhookEmailOpenedPayload.md | 19 + docs/WebhookEmailReadPayload.md | 18 + docs/WebhookHeaderNameValue.md | 12 + docs/WebhookHeaders.md | 11 + docs/WebhookNewAttachmentPayload.md | 18 + docs/WebhookNewContactPayload.md | 25 + docs/WebhookNewEmailPayload.md | 24 + docs/WebhookNewSmsPayload.md | 21 + docs/WebhookProjection.md | 18 + docs/WebhookRedriveAllResult.md | 12 + docs/WebhookRedriveResult.md | 13 + docs/WebhookResultDto.md | 30 + docs/WebhookTestRequest.md | 14 + docs/WebhookTestResponse.md | 12 + docs/WebhookTestResult.md | 13 + git_push.sh | 57 + mailslurp_netstandard_2x.sln | 27 + .../Api/AliasControllerApiTests.cs | 212 + .../Api/AttachmentControllerApiTests.cs | 189 + .../Api/BounceControllerApiTests.cs | 180 + .../Api/BulkActionsControllerApiTests.cs | 92 + .../Api/CommonActionsControllerApiTests.cs | 157 + .../Api/ConnectorControllerApiTests.cs | 237 + .../Api/ContactControllerApiTests.cs | 132 + .../Api/DomainControllerApiTests.cs | 178 + .../Api/EmailControllerApiTests.cs | 590 + .../EmailVerificationControllerApiTests.cs | 109 + .../Api/ExpiredControllerApiTests.cs | 109 + .../Api/ExportControllerApiTests.cs | 91 + .../Api/FormControllerApiTests.cs | 74 + .../Api/GroupControllerApiTests.cs | 175 + .../Api/ImapControllerApiTests.cs | 135 + .../Api/InboxControllerApiTests.cs | 748 + .../Api/InboxForwarderControllerApiTests.cs | 229 + .../Api/InboxReplierControllerApiTests.cs | 149 + .../Api/InboxRulesetControllerApiTests.cs | 185 + .../Api/MailServerControllerApiTests.cs | 118 + .../Api/MissedEmailControllerApiTests.cs | 132 + .../Api/PhoneControllerApiTests.cs | 169 + .../Api/SentEmailsControllerApiTests.cs | 287 + .../Api/SmsControllerApiTests.cs | 157 + .../Api/TemplateControllerApiTests.cs | 157 + .../Api/ToolsControllerApiTests.cs | 202 + .../Api/TrackingControllerApiTests.cs | 99 + .../Api/UserControllerApiTests.cs | 82 + .../Api/WaitForControllerApiTests.cs | 189 + .../Api/WebhookControllerApiTests.cs | 536 + .../Model/AbstractWebhookPayloadTests.cs | 95 + .../Model/AccountBounceBlockDtoTests.cs | 103 + .../Model/AliasDtoTests.cs | 151 + .../Model/AliasProjectionTests.cs | 127 + .../Model/AttachmentEntityTests.cs | 151 + .../Model/AttachmentMetaDataTests.cs | 103 + .../Model/AttachmentProjectionTests.cs | 127 + .../Model/BasicAuthOptionsTests.cs | 79 + .../Model/BounceProjectionTests.cs | 111 + .../Model/BounceRecipientProjectionTests.cs | 119 + .../Model/BouncedEmailDtoTests.cs | 159 + .../Model/BouncedRecipientDtoTests.cs | 135 + .../Model/BulkSendEmailOptionsTests.cs | 79 + .../Model/CanSendEmailResultsTests.cs | 79 + ...heckEmailBodyFeatureSupportResultsTests.cs | 71 + .../Model/CheckEmailBodyResultsTests.cs | 95 + .../CheckEmailClientSupportOptionsTests.cs | 71 + .../CheckEmailClientSupportResultsTests.cs | 71 + ...kEmailFeaturesClientSupportOptionsTests.cs | 71 + ...kEmailFeaturesClientSupportResultsTests.cs | 71 + .../Model/ComplaintTests.cs | 127 + .../Model/ConditionOptionTests.cs | 79 + .../Model/ConnectorDtoTests.cs | 151 + .../Model/ConnectorImapConnectionDtoTests.cs | 151 + .../Model/ConnectorProjectionTests.cs | 143 + .../Model/ConnectorSmtpConnectionDtoTests.cs | 135 + .../Model/ConnectorSyncEventDtoTests.cs | 111 + .../ConnectorSyncEventProjectionTests.cs | 111 + ...esultExceptionCauseStackTraceInnerTests.cs | 127 + ...torSyncRequestResultExceptionCauseTests.cs | 87 + ...onnectorSyncRequestResultExceptionTests.cs | 103 + .../Model/ConnectorSyncRequestResultTests.cs | 87 + .../Model/ConnectorSyncResultTests.cs | 79 + .../Model/ContactDtoTests.cs | 151 + .../Model/ContactProjectionTests.cs | 135 + .../Model/ContentMatchOptionsTests.cs | 71 + .../Model/CountDtoTests.cs | 71 + .../Model/CreateAliasOptionsTests.cs | 111 + ...eateConnectorImapConnectionOptionsTests.cs | 127 + .../Model/CreateConnectorOptionsTests.cs | 111 + ...eateConnectorSmtpConnectionOptionsTests.cs | 111 + .../Model/CreateContactOptionsTests.cs | 135 + .../Model/CreateDomainOptionsTests.cs | 95 + .../CreateEmergencyAddressOptionsTests.cs | 119 + .../Model/CreateGroupOptionsTests.cs | 79 + .../Model/CreateInboxDtoTests.cs | 183 + .../Model/CreateInboxForwarderOptionsTests.cs | 87 + .../Model/CreateInboxReplierOptionsTests.cs | 167 + .../Model/CreateInboxRulesetOptionsTests.cs | 87 + .../Model/CreateTemplateOptionsTests.cs | 79 + .../Model/CreateTrackingPixelOptionsTests.cs | 79 + .../Model/CreateWebhookOptionsTests.cs | 127 + .../Model/DNSLookupOptionsTests.cs | 87 + .../Model/DNSLookupResultTests.cs | 95 + .../Model/DNSLookupResultsTests.cs | 71 + .../Model/DNSLookupsOptionsTests.cs | 71 + .../Model/DeliveryStatusDtoTests.cs | 175 + .../Model/DescribeDomainOptionsTests.cs | 71 + .../DescribeMailServerDomainResultTests.cs | 87 + .../Model/DomainDtoTests.cs | 167 + .../Model/DomainGroupTests.cs | 79 + .../Model/DomainGroupsDtoTests.cs | 71 + .../Model/DomainInformationTests.cs | 87 + .../Model/DomainIssuesDtoTests.cs | 71 + .../Model/DomainNameRecordTests.cs | 111 + .../Model/DomainPreviewTests.cs | 119 + .../Model/DownloadAttachmentDtoTests.cs | 87 + .../Model/EmailAnalysisTests.cs | 103 + .../Model/EmailContentMatchResultTests.cs | 79 + .../Model/EmailContentPartResultTests.cs | 71 + .../Model/EmailFeatureCategoryNameTests.cs | 79 + .../Model/EmailFeatureFamilyNameTests.cs | 79 + .../EmailFeatureFamilyStatisticsTests.cs | 87 + .../Model/EmailFeatureNamesTests.cs | 87 + .../Model/EmailFeatureOverviewTests.cs | 127 + .../Model/EmailFeaturePlatformNameTests.cs | 79 + .../EmailFeaturePlatformStatisticsTests.cs | 79 + .../Model/EmailFeatureSupportFlagsTests.cs | 79 + .../Model/EmailFeatureSupportResultTests.cs | 95 + ...mailFeatureSupportStatusPercentageTests.cs | 79 + .../EmailFeatureVersionStatisticsTests.cs | 79 + .../Model/EmailHtmlDtoTests.cs | 79 + .../Model/EmailLinksResultTests.cs | 79 + .../Model/EmailPreviewTests.cs | 143 + .../Model/EmailPreviewUrlsTests.cs | 87 + .../Model/EmailProjectionTests.cs | 183 + .../Model/EmailRecipientsTests.cs | 87 + .../Model/EmailScreenshotResultTests.cs | 71 + .../Model/EmailTests.cs | 303 + .../Model/EmailTextLinesResultTests.cs | 79 + .../Model/EmailValidationRequestDtoTests.cs | 111 + .../Model/EmailVerificationResultTests.cs | 103 + .../Model/EmergencyAddressDtoTests.cs | 87 + .../Model/EmergencyAddressTests.cs | 167 + .../Model/EmptyResponseDtoTests.cs | 71 + .../Model/ExpirationDefaultsTests.cs | 103 + .../Model/ExpiredInboxDtoTests.cs | 87 + .../ExpiredInboxRecordProjectionTests.cs | 95 + .../Model/ExportLinkTests.cs | 71 + .../Model/ExportOptionsTests.cs | 111 + .../Model/FakeEmailDtoTests.cs | 135 + .../Model/FakeEmailPreviewTests.cs | 127 + .../Model/FakeEmailResultTests.cs | 71 + .../FilterBouncedRecipientsOptionsTests.cs | 71 + .../FilterBouncedRecipientsResultTests.cs | 71 + .../Model/FlushExpiredInboxesResultTests.cs | 79 + .../Model/ForwardEmailOptionsTests.cs | 119 + .../Model/GenerateBimiRecordOptionsTests.cs | 95 + .../Model/GenerateBimiRecordResultsTests.cs | 95 + .../Model/GenerateDmarcRecordOptionsTests.cs | 159 + .../Model/GenerateDmarcRecordResultsTests.cs | 95 + .../Model/GenerateMtaStsRecordOptionsTests.cs | 111 + .../Model/GenerateMtaStsRecordResultsTests.cs | 111 + .../GenerateTlsReportingRecordOptionsTests.cs | 103 + .../GenerateTlsReportingRecordResultsTests.cs | 95 + .../Model/GetEmailScreenshotOptionsTests.cs | 79 + .../Model/GravatarUrlTests.cs | 79 + .../Model/GroupContactsDtoTests.cs | 79 + .../Model/GroupDtoTests.cs | 95 + .../Model/GroupProjectionTests.cs | 95 + .../Model/HTMLValidationResultTests.cs | 95 + .../Model/IPAddressResultTests.cs | 79 + .../Model/ImageIssueTests.cs | 95 + .../Model/ImapAccessDetailsTests.cs | 135 + .../Model/ImapEmailProjectionTests.cs | 103 + .../Model/ImapFlagOperationOptionsTests.cs | 79 + .../Model/ImapMailboxStatusTests.cs | 159 + .../Model/ImapServerFetchItemTests.cs | 103 + .../Model/ImapServerFetchResultTests.cs | 71 + .../Model/ImapServerGetResultTests.cs | 71 + .../Model/ImapServerListOptionsTests.cs | 79 + .../Model/ImapServerListResultTests.cs | 71 + .../Model/ImapServerSearchOptionsTests.cs | 151 + .../Model/ImapServerSearchResultTests.cs | 71 + .../Model/ImapServerStatusOptionsTests.cs | 79 + .../Model/ImapServerStatusResultTests.cs | 71 + .../Model/ImapSmtpAccessDetailsTests.cs | 207 + .../Model/ImapSmtpAccessServersTests.cs | 95 + .../Model/ImapUpdateFlagsOptionsTests.cs | 95 + .../Model/InboxByEmailAddressResultTests.cs | 79 + .../Model/InboxByNameResultTests.cs | 79 + .../Model/InboxDtoTests.cs | 175 + .../Model/InboxExistsDtoTests.cs | 71 + .../Model/InboxForwarderDtoTests.cs | 119 + .../Model/InboxForwarderEventDtoTests.cs | 127 + .../InboxForwarderEventProjectionTests.cs | 127 + .../Model/InboxForwarderTestOptionsTests.cs | 71 + .../Model/InboxForwarderTestResultTests.cs | 79 + .../Model/InboxIdItemTests.cs | 79 + .../Model/InboxIdsResultTests.cs | 71 + .../Model/InboxPreviewTests.cs | 159 + .../Model/InboxReplierDtoTests.cs | 175 + .../Model/InboxReplierEventProjectionTests.cs | 143 + .../Model/InboxRulesetDtoTests.cs | 119 + .../Model/InboxRulesetTestOptionsTests.cs | 71 + .../Model/InboxRulesetTestResultTests.cs | 79 + .../Model/JSONSchemaDtoTests.cs | 71 + .../Model/LinkIssueTests.cs | 95 + ...ListUnsubscribeRecipientProjectionTests.cs | 95 + .../Model/LookupBimiDomainOptionsTests.cs | 71 + .../Model/LookupBimiDomainResultsTests.cs | 103 + .../Model/LookupDmarcDomainOptionsTests.cs | 71 + .../Model/LookupDmarcDomainResultsTests.cs | 103 + .../Model/LookupMtaStsDomainOptionsTests.cs | 71 + .../Model/LookupMtaStsDomainResultsTests.cs | 127 + .../LookupTlsReportingDomainOptionsTests.cs | 71 + .../LookupTlsReportingDomainResultsTests.cs | 103 + .../Model/MatchOptionTests.cs | 87 + .../Model/MatchOptionsTests.cs | 79 + .../Model/MissedEmailDtoTests.cs | 191 + .../Model/MissedEmailProjectionTests.cs | 103 + .../Model/NameServerRecordTests.cs | 95 + .../Model/NewFakeEmailAddressResultTests.cs | 71 + .../Model/OrganizationInboxProjectionTests.cs | 159 + .../Model/PageAliasTests.cs | 151 + .../Model/PageAttachmentEntityTests.cs | 151 + .../Model/PageBouncedEmailTests.cs | 151 + .../Model/PageBouncedRecipientsTests.cs | 151 + .../Model/PageComplaintTests.cs | 151 + .../Model/PageConnectorSyncEventsTests.cs | 151 + .../Model/PageConnectorTests.cs | 151 + .../Model/PageContactProjectionTests.cs | 151 + .../Model/PageDeliveryStatusTests.cs | 151 + .../Model/PageEmailPreviewTests.cs | 151 + .../Model/PageEmailProjectionTests.cs | 151 + .../Model/PageEmailValidationRequestTests.cs | 151 + .../PageExpiredInboxRecordProjectionTests.cs | 151 + .../Model/PageGroupProjectionTests.cs | 151 + .../Model/PageInboxForwarderDtoTests.cs | 151 + .../Model/PageInboxForwarderEventsTests.cs | 151 + .../Model/PageInboxProjectionTests.cs | 151 + .../Model/PageInboxReplierDtoTests.cs | 151 + .../Model/PageInboxReplierEventsTests.cs | 151 + .../Model/PageInboxRulesetDtoTests.cs | 151 + .../PageListUnsubscribeRecipientsTests.cs | 151 + .../Model/PageMissedEmailProjectionTests.cs | 151 + .../PageOrganizationInboxProjectionTests.cs | 151 + .../Model/PagePhoneNumberProjectionTests.cs | 151 + .../Model/PageScheduledJobsTests.cs | 151 + .../Model/PageSentEmailProjectionTests.cs | 151 + .../PageSentEmailWithQueueProjectionTests.cs | 151 + .../Model/PageSmsProjectionTests.cs | 151 + .../Model/PageTemplateProjectionTests.cs | 151 + .../Model/PageThreadProjectionTests.cs | 151 + .../Model/PageTrackingPixelProjectionTests.cs | 151 + .../PageUnknownMissedEmailProjectionTests.cs | 151 + .../Model/PageWebhookProjectionTests.cs | 151 + .../Model/PageWebhookResultTests.cs | 151 + .../Model/PageableObjectTests.cs | 111 + .../Model/PhoneNumberDtoTests.cs | 135 + .../Model/PhoneNumberProjectionTests.cs | 103 + .../Model/PhonePlanDtoTests.cs | 95 + .../Model/RawEmailJsonTests.cs | 71 + .../Model/RecipientTests.cs | 87 + .../Model/ReplyForSmsTests.cs | 71 + .../Model/ReplyToAliasEmailOptionsTests.cs | 143 + .../Model/ReplyToEmailOptionsTests.cs | 159 + .../Model/ScheduledJobDtoTests.cs | 143 + .../Model/ScheduledJobTests.cs | 143 + .../Model/SearchEmailsOptionsTests.cs | 127 + .../Model/SearchInboxesOptionsTests.cs | 151 + .../Model/SendEmailBodyPartTests.cs | 79 + .../Model/SendEmailOptionsTests.cs | 255 + .../Model/SendSMTPEnvelopeOptionsTests.cs | 87 + .../Model/SendWithQueueResultTests.cs | 143 + .../Model/SenderTests.cs | 87 + .../Model/SentEmailDtoTests.cs | 271 + .../Model/SentEmailProjectionTests.cs | 159 + .../Model/SentSmsDtoTests.cs | 151 + .../Model/ServerEndpointsTests.cs | 95 + .../Model/SetInboxFavouritedOptionsTests.cs | 71 + .../Model/SimpleSendEmailOptionsTests.cs | 95 + .../Model/SmsDtoTests.cs | 127 + .../Model/SmsMatchOptionTests.cs | 87 + .../Model/SmsPreviewTests.cs | 111 + .../Model/SmsProjectionTests.cs | 119 + .../Model/SmsReplyOptionsTests.cs | 71 + .../Model/SmtpAccessDetailsTests.cs | 135 + .../Model/SortObjectTests.cs | 87 + .../Model/SpellingIssueTests.cs | 95 + .../Model/TemplateDtoTests.cs | 103 + .../Model/TemplatePreviewTests.cs | 71 + .../Model/TemplateProjectionTests.cs | 103 + .../Model/TemplateVariableTests.cs | 79 + .../TestInboxRulesetReceivingOptionsTests.cs | 79 + .../TestInboxRulesetReceivingResultTests.cs | 71 + .../TestInboxRulesetSendingOptionsTests.cs | 79 + .../TestInboxRulesetSendingResultTests.cs | 71 + .../TestNewInboxForwarderOptionsTests.cs | 79 + .../Model/TestNewInboxRulesetOptionsTests.cs | 79 + .../Model/TestPhoneNumberOptionsTests.cs | 71 + .../Model/ThreadProjectionTests.cs | 151 + .../Model/TrackingPixelDtoTests.cs | 135 + .../Model/TrackingPixelProjectionTests.cs | 135 + .../UnknownMissedEmailProjectionTests.cs | 103 + .../Model/UnreadCountTests.cs | 71 + .../Model/UnseenErrorCountDtoTests.cs | 71 + .../Model/UpdateAliasOptionsTests.cs | 71 + .../Model/UpdateDomainOptionsTests.cs | 71 + .../Model/UpdateGroupContactsTests.cs | 71 + .../Model/UpdateImapAccessOptionsTests.cs | 79 + .../Model/UpdateInboxOptionsTests.cs | 103 + .../Model/UpdateInboxReplierOptionsTests.cs | 167 + .../Model/UpdateSmtpAccessOptionsTests.cs | 79 + .../Model/UploadAttachmentOptionsTests.cs | 95 + .../Model/UploadMultipartFormRequestTests.cs | 79 + .../Model/UserInfoDtoTests.cs | 111 + .../ValidateEmailAddressListOptionsTests.cs | 79 + .../ValidateEmailAddressListResultTests.cs | 87 + .../Model/ValidationDtoTests.cs | 79 + .../Model/ValidationMessageTests.cs | 79 + .../Model/VerifyEmailAddressOptionsTests.cs | 95 + .../VerifyWebhookSignatureOptionsTests.cs | 79 + .../VerifyWebhookSignatureResultsTests.cs | 71 + .../Model/WaitForConditionsTests.cs | 143 + .../Model/WaitForSingleSmsOptionsTests.cs | 119 + .../Model/WaitForSmsConditionsTests.cs | 151 + .../Model/WebhookBouncePayloadTests.cs | 127 + .../WebhookBounceRecipientPayloadTests.cs | 103 + .../WebhookDeliveryStatusPayloadTests.cs | 191 + .../Model/WebhookDtoTests.cs | 191 + .../Model/WebhookEmailOpenedPayloadTests.cs | 135 + .../Model/WebhookEmailReadPayloadTests.cs | 127 + .../Model/WebhookHeaderNameValueTests.cs | 79 + .../Model/WebhookHeadersTests.cs | 71 + .../Model/WebhookNewAttachmentPayloadTests.cs | 127 + .../Model/WebhookNewContactPayloadTests.cs | 183 + .../Model/WebhookNewEmailPayloadTests.cs | 175 + .../Model/WebhookNewSmsPayloadTests.cs | 151 + .../Model/WebhookProjectionTests.cs | 127 + .../Model/WebhookRedriveAllResultTests.cs | 79 + .../Model/WebhookRedriveResultTests.cs | 87 + .../Model/WebhookResultDtoTests.cs | 223 + .../Model/WebhookTestRequestTests.cs | 95 + .../Model/WebhookTestResponseTests.cs | 79 + .../Model/WebhookTestResultTests.cs | 87 + .../mailslurp_netstandard_2x.Test.csproj | 20 + .../Api/AliasControllerApi.cs | 2652 ++++ .../Api/AttachmentControllerApi.cs | 2336 ++++ .../Api/BounceControllerApi.cs | 2138 +++ .../Api/BulkActionsControllerApi.cs | 741 + .../Api/CommonActionsControllerApi.cs | 1818 +++ .../Api/ConnectorControllerApi.cs | 3076 ++++ .../Api/ContactControllerApi.cs | 1372 ++ .../Api/DomainControllerApi.cs | 2106 +++ .../Api/EmailControllerApi.cs | 8851 ++++++++++++ .../Api/EmailVerificationControllerApi.cs | 1006 ++ .../Api/ExpiredControllerApi.cs | 980 ++ .../Api/ExportControllerApi.cs | 722 + .../Api/FormControllerApi.cs | 451 + .../Api/GroupControllerApi.cs | 2044 +++ .../Api/ImapControllerApi.cs | 1433 ++ .../Api/InboxControllerApi.cs | 11553 ++++++++++++++++ .../Api/InboxForwarderControllerApi.cs | 2952 ++++ .../Api/InboxReplierControllerApi.cs | 1660 +++ .../Api/InboxRulesetControllerApi.cs | 2280 +++ .../Api/MailServerControllerApi.cs | 1171 ++ .../Api/MissedEmailControllerApi.cs | 1361 ++ .../Api/PhoneControllerApi.cs | 1955 +++ .../Api/SentEmailsControllerApi.cs | 3852 ++++++ .../Api/SmsControllerApi.cs | 1784 +++ .../Api/TemplateControllerApi.cs | 1776 +++ .../Api/ToolsControllerApi.cs | 2548 ++++ .../Api/TrackingControllerApi.cs | 827 ++ .../Api/UserControllerApi.cs | 566 + .../Api/WaitForControllerApi.cs | 2298 +++ .../Api/WebhookControllerApi.cs | 7862 +++++++++++ .../Client/ApiClient.cs | 834 ++ .../Client/ApiException.cs | 69 + .../Client/ApiResponse.cs | 167 + .../Client/ClientUtils.cs | 243 + .../Client/Configuration.cs | 588 + .../Client/ExceptionFactory.cs | 23 + .../Client/GlobalConfiguration.cs | 68 + .../Client/HttpMethod.cs | 34 + .../Client/IApiAccessor.cs | 38 + .../Client/IAsynchronousClient.cs | 101 + .../Client/IReadableConfiguration.cs | 130 + .../Client/ISynchronousClient.cs | 94 + .../Client/Multimap.cs | 296 + .../Client/OpenAPIDateConverter.cs | 30 + .../Client/RequestOptions.cs | 85 + .../Client/RetryConfiguration.cs | 32 + .../Model/AbstractOpenAPISchema.cs | 77 + .../Model/AbstractWebhookPayload.cs | 257 + .../Model/AccountBounceBlockDto.cs | 186 + .../Model/AliasDto.cs | 321 + .../Model/AliasProjection.cs | 261 + .../Model/AttachmentEntity.cs | 315 + .../Model/AttachmentMetaData.cs | 222 + .../Model/AttachmentProjection.cs | 269 + .../Model/BasicAuthOptions.cs | 162 + .../Model/BounceProjection.cs | 229 + .../Model/BounceRecipientProjection.cs | 247 + .../Model/BouncedEmailDto.cs | 344 + .../Model/BouncedRecipientDto.cs | 283 + .../Model/BulkSendEmailOptions.cs | 164 + .../Model/CanSendEmailResults.cs | 148 + .../CheckEmailBodyFeatureSupportResults.cs | 139 + .../Model/CheckEmailBodyResults.cs | 202 + .../Model/CheckEmailClientSupportOptions.cs | 139 + .../Model/CheckEmailClientSupportResults.cs | 139 + .../CheckEmailFeaturesClientSupportOptions.cs | 139 + .../CheckEmailFeaturesClientSupportResults.cs | 139 + .../Model/Complaint.cs | 265 + .../Model/ConditionOption.cs | 182 + .../Model/ConnectorDto.cs | 308 + .../Model/ConnectorImapConnectionDto.cs | 302 + .../Model/ConnectorProjection.cs | 294 + .../Model/ConnectorSmtpConnectionDto.cs | 266 + .../Model/ConnectorSyncEventDto.cs | 254 + .../Model/ConnectorSyncEventProjection.cs | 254 + .../Model/ConnectorSyncRequestResult.cs | 165 + .../ConnectorSyncRequestResultException.cs | 203 + ...onnectorSyncRequestResultExceptionCause.cs | 166 + ...uestResultExceptionCauseStackTraceInner.cs | 247 + .../Model/ConnectorSyncResult.cs | 149 + .../Model/ContactDto.cs | 326 + .../Model/ContactProjection.cs | 279 + .../Model/ContentMatchOptions.cs | 140 + .../Model/CountDto.cs | 130 + .../Model/CreateAliasOptions.cs | 231 + .../CreateConnectorImapConnectionOptions.cs | 269 + .../Model/CreateConnectorOptions.cs | 236 + .../CreateConnectorSmtpConnectionOptions.cs | 217 + .../Model/CreateContactOptions.cs | 280 + .../Model/CreateDomainOptions.cs | 214 + .../Model/CreateEmergencyAddressOptions.cs | 289 + .../Model/CreateGroupOptions.cs | 157 + .../Model/CreateInboxDto.cs | 414 + .../Model/CreateInboxForwarderOptions.cs | 213 + .../Model/CreateInboxReplierOptions.cs | 398 + .../Model/CreateInboxRulesetOptions.cs | 218 + .../Model/CreateTemplateOptions.cs | 164 + .../Model/CreateTrackingPixelOptions.cs | 147 + .../Model/CreateWebhookOptions.cs | 337 + .../Model/DNSLookupOptions.cs | 723 + .../Model/DNSLookupResult.cs | 735 + .../Model/DNSLookupResults.cs | 140 + .../Model/DNSLookupsOptions.cs | 140 + .../Model/DeliveryStatusDto.cs | 361 + .../Model/DescribeDomainOptions.cs | 139 + .../Model/DescribeMailServerDomainResult.cs | 181 + .../Model/DomainDto.cs | 390 + .../Model/DomainGroup.cs | 180 + .../Model/DomainGroupsDto.cs | 140 + .../Model/DomainInformation.cs | 189 + .../Model/DomainIssuesDto.cs | 130 + .../Model/DomainNameRecord.cs | 803 ++ .../Model/DomainPreview.cs | 257 + .../Model/DownloadAttachmentDto.cs | 179 + src/mailslurp_netstandard_2x/Model/Email.cs | 678 + .../Model/EmailAnalysis.cs | 206 + .../Model/EmailContentMatchResult.cs | 163 + .../Model/EmailContentPartResult.cs | 129 + .../Model/EmailFeatureCategoryName.cs | 185 + .../Model/EmailFeatureFamilyName.cs | 287 + .../Model/EmailFeatureFamilyStatistics.cs | 1390 ++ .../Model/EmailFeatureNames.cs | 188 + .../Model/EmailFeatureOverview.cs | 1412 ++ .../Model/EmailFeaturePlatformName.cs | 221 + .../Model/EmailFeaturePlatformStatistics.cs | 222 + .../Model/EmailFeatureSupportFlags.cs | 181 + .../Model/EmailFeatureSupportResult.cs | 1299 ++ .../EmailFeatureSupportStatusPercentage.cs | 176 + .../Model/EmailFeatureVersionStatistics.cs | 162 + .../Model/EmailHtmlDto.cs | 147 + .../Model/EmailLinksResult.cs | 163 + .../Model/EmailPreview.cs | 311 + .../Model/EmailPreviewUrls.cs | 185 + .../Model/EmailProjection.cs | 387 + .../Model/EmailRecipients.cs | 168 + .../Model/EmailScreenshotResult.cs | 139 + .../Model/EmailTextLinesResult.cs | 163 + .../Model/EmailValidationRequestDto.cs | 225 + .../Model/EmailVerificationResult.cs | 208 + .../Model/EmergencyAddress.cs | 412 + .../Model/EmergencyAddressDto.cs | 197 + .../Model/EmptyResponseDto.cs | 129 + .../Model/ExpirationDefaults.cs | 198 + .../Model/ExpiredInboxDto.cs | 175 + .../Model/ExpiredInboxRecordProjection.cs | 193 + .../Model/ExportLink.cs | 139 + .../Model/ExportOptions.cs | 240 + .../Model/FakeEmailDto.cs | 284 + .../Model/FakeEmailPreview.cs | 261 + .../Model/FakeEmailResult.cs | 129 + .../Model/FilterBouncedRecipientsOptions.cs | 140 + .../Model/FilterBouncedRecipientsResult.cs | 140 + .../Model/FlushExpiredInboxesResult.cs | 160 + .../Model/ForwardEmailOptions.cs | 257 + .../Model/GenerateBimiRecordOptions.cs | 208 + .../Model/GenerateBimiRecordResults.cs | 734 + .../Model/GenerateDmarcRecordOptions.cs | 467 + .../Model/GenerateDmarcRecordResults.cs | 734 + .../Model/GenerateMtaStsRecordOptions.cs | 259 + .../Model/GenerateMtaStsRecordResults.cs | 780 ++ .../GenerateTlsReportingRecordOptions.cs | 223 + .../GenerateTlsReportingRecordResults.cs | 734 + .../Model/GetEmailScreenshotOptions.cs | 149 + .../Model/GravatarUrl.cs | 162 + .../Model/GroupContactsDto.cs | 163 + .../Model/GroupDto.cs | 193 + .../Model/GroupProjection.cs | 193 + .../Model/HTMLValidationResult.cs | 206 + .../Model/IPAddressResult.cs | 162 + .../Model/ImageIssue.cs | 210 + .../Model/ImapAccessDetails.cs | 314 + .../Model/ImapEmailProjection.cs | 198 + .../Model/ImapFlagOperationOptions.cs | 180 + .../Model/ImapMailboxStatus.cs | 338 + .../Model/ImapServerFetchItem.cs | 204 + .../Model/ImapServerFetchResult.cs | 129 + .../Model/ImapServerGetResult.cs | 129 + .../Model/ImapServerListOptions.cs | 147 + .../Model/ImapServerListResult.cs | 140 + .../Model/ImapServerSearchOptions.cs | 314 + .../Model/ImapServerSearchResult.cs | 140 + .../Model/ImapServerStatusOptions.cs | 192 + .../Model/ImapServerStatusResult.cs | 129 + .../Model/ImapSmtpAccessDetails.cs | 507 + .../Model/ImapSmtpAccessServers.cs | 208 + .../Model/ImapUpdateFlagsOptions.cs | 194 + .../Model/InboxByEmailAddressResult.cs | 148 + .../Model/InboxByNameResult.cs | 148 + .../Model/InboxDto.cs | 422 + .../Model/InboxExistsDto.cs | 130 + .../Model/InboxForwarderDto.cs | 286 + .../Model/InboxForwarderEventDto.cs | 276 + .../Model/InboxForwarderEventProjection.cs | 276 + .../Model/InboxForwarderTestOptions.cs | 139 + .../Model/InboxForwarderTestResult.cs | 154 + .../Model/InboxIdItem.cs | 157 + .../Model/InboxIdsResult.cs | 140 + .../Model/InboxPreview.cs | 379 + .../Model/InboxReplierDto.cs | 394 + .../Model/InboxReplierEventProjection.cs | 313 + .../Model/InboxRulesetDto.cs | 295 + .../Model/InboxRulesetTestOptions.cs | 139 + .../Model/InboxRulesetTestResult.cs | 155 + .../Model/JSONSchemaDto.cs | 139 + .../Model/LinkIssue.cs | 210 + .../ListUnsubscribeRecipientProjection.cs | 193 + .../Model/LookupBimiDomainOptions.cs | 139 + .../Model/LookupBimiDomainResults.cs | 225 + .../Model/LookupDmarcDomainOptions.cs | 139 + .../Model/LookupDmarcDomainResults.cs | 225 + .../Model/LookupMtaStsDomainOptions.cs | 139 + .../Model/LookupMtaStsDomainResults.cs | 285 + .../Model/LookupTlsReportingDomainOptions.cs | 139 + .../Model/LookupTlsReportingDomainResults.cs | 225 + .../Model/MatchOption.cs | 242 + .../Model/MatchOptions.cs | 151 + .../Model/MissedEmailDto.cs | 424 + .../Model/MissedEmailProjection.cs | 206 + .../Model/NameServerRecord.cs | 208 + .../Model/NewFakeEmailAddressResult.cs | 139 + .../Model/OrganizationInboxProjection.cs | 375 + .../Model/PageAlias.cs | 283 + .../Model/PageAttachmentEntity.cs | 283 + .../Model/PageBouncedEmail.cs | 283 + .../Model/PageBouncedRecipients.cs | 283 + .../Model/PageComplaint.cs | 283 + .../Model/PageConnector.cs | 283 + .../Model/PageConnectorSyncEvents.cs | 283 + .../Model/PageContactProjection.cs | 283 + .../Model/PageDeliveryStatus.cs | 283 + .../Model/PageEmailPreview.cs | 283 + .../Model/PageEmailProjection.cs | 283 + .../Model/PageEmailValidationRequest.cs | 283 + .../Model/PageExpiredInboxRecordProjection.cs | 283 + .../Model/PageGroupProjection.cs | 283 + .../Model/PageInboxForwarderDto.cs | 283 + .../Model/PageInboxForwarderEvents.cs | 283 + .../Model/PageInboxProjection.cs | 283 + .../Model/PageInboxReplierDto.cs | 283 + .../Model/PageInboxReplierEvents.cs | 283 + .../Model/PageInboxRulesetDto.cs | 283 + .../Model/PageListUnsubscribeRecipients.cs | 283 + .../Model/PageMissedEmailProjection.cs | 283 + .../Model/PageOrganizationInboxProjection.cs | 283 + .../Model/PagePhoneNumberProjection.cs | 283 + .../Model/PageScheduledJobs.cs | 283 + .../Model/PageSentEmailProjection.cs | 283 + .../Model/PageSentEmailWithQueueProjection.cs | 283 + .../Model/PageSmsProjection.cs | 283 + .../Model/PageTemplateProjection.cs | 283 + .../Model/PageThreadProjection.cs | 283 + .../Model/PageTrackingPixelProjection.cs | 283 + .../Model/PageUnknownMissedEmailProjection.cs | 283 + .../Model/PageWebhookProjection.cs | 283 + .../Model/PageWebhookResult.cs | 283 + .../Model/PageableObject.cs | 199 + .../Model/PhoneNumberDto.cs | 305 + .../Model/PhoneNumberProjection.cs | 233 + .../Model/PhonePlanDto.cs | 210 + .../Model/RawEmailJson.cs | 139 + .../Model/Recipient.cs | 180 + .../Model/ReplyForSms.cs | 129 + .../Model/ReplyToAliasEmailOptions.cs | 316 + .../Model/ReplyToEmailOptions.cs | 354 + .../Model/ScheduledJob.cs | 345 + .../Model/ScheduledJobDto.cs | 345 + .../Model/SearchEmailsOptions.cs | 275 + .../Model/SearchInboxesOptions.cs | 383 + .../Model/SendEmailBodyPart.cs | 162 + .../Model/SendEmailOptions.cs | 609 + .../Model/SendSMTPEnvelopeOptions.cs | 186 + .../Model/SendWithQueueResult.cs | 297 + src/mailslurp_netstandard_2x/Model/Sender.cs | 180 + .../Model/SentEmailDto.cs | 598 + .../Model/SentEmailProjection.cs | 352 + .../Model/SentSmsDto.cs | 339 + .../Model/ServerEndpoints.cs | 191 + .../Model/SetInboxFavouritedOptions.cs | 131 + .../Model/SimpleSendEmailOptions.cs | 197 + src/mailslurp_netstandard_2x/Model/SmsDto.cs | 266 + .../Model/SmsMatchOption.cs | 218 + .../Model/SmsPreview.cs | 234 + .../Model/SmsProjection.cs | 248 + .../Model/SmsReplyOptions.cs | 139 + .../Model/SmtpAccessDetails.cs | 309 + .../Model/SortObject.cs | 153 + .../Model/SpellingIssue.cs | 219 + .../Model/TemplateDto.cs | 227 + .../Model/TemplatePreview.cs | 139 + .../Model/TemplateProjection.cs | 217 + .../Model/TemplateVariable.cs | 170 + .../Model/TestInboxRulesetReceivingOptions.cs | 157 + .../Model/TestInboxRulesetReceivingResult.cs | 130 + .../Model/TestInboxRulesetSendingOptions.cs | 157 + .../Model/TestInboxRulesetSendingResult.cs | 130 + .../Model/TestNewInboxForwarderOptions.cs | 162 + .../Model/TestNewInboxRulesetOptions.cs | 162 + .../Model/TestPhoneNumberOptions.cs | 139 + .../Model/ThreadProjection.cs | 333 + .../Model/TrackingPixelDto.cs | 284 + .../Model/TrackingPixelProjection.cs | 274 + .../Model/UnknownMissedEmailProjection.cs | 207 + .../Model/UnreadCount.cs | 130 + .../Model/UnseenErrorCountDto.cs | 130 + .../Model/UpdateAliasOptions.cs | 130 + .../Model/UpdateDomainOptions.cs | 129 + .../Model/UpdateGroupContacts.cs | 140 + .../Model/UpdateImapAccessOptions.cs | 149 + .../Model/UpdateInboxOptions.cs | 207 + .../Model/UpdateInboxReplierOptions.cs | 398 + .../Model/UpdateSmtpAccessOptions.cs | 149 + .../Model/UploadAttachmentOptions.cs | 197 + .../Model/UploadMultipartFormRequest.cs | 158 + .../Model/UserInfoDto.cs | 307 + .../Model/ValidateEmailAddressListOptions.cs | 158 + .../Model/ValidateEmailAddressListResult.cs | 188 + .../Model/ValidationDto.cs | 158 + .../Model/ValidationMessage.cs | 148 + .../Model/VerifyEmailAddressOptions.cs | 193 + .../Model/VerifyWebhookSignatureOptions.cs | 162 + .../Model/VerifyWebhookSignatureResults.cs | 130 + .../Model/WaitForConditions.cs | 337 + .../Model/WaitForSingleSmsOptions.cs | 246 + .../Model/WaitForSmsConditions.cs | 352 + .../Model/WebhookBouncePayload.cs | 345 + .../Model/WebhookBounceRecipientPayload.cs | 286 + .../Model/WebhookDeliveryStatusPayload.cs | 491 + .../Model/WebhookDto.cs | 547 + .../Model/WebhookEmailOpenedPayload.cs | 362 + .../Model/WebhookEmailReadPayload.cs | 334 + .../Model/WebhookHeaderNameValue.cs | 164 + .../Model/WebhookHeaders.cs | 141 + .../Model/WebhookNewAttachmentPayload.cs | 349 + .../Model/WebhookNewContactPayload.cs | 478 + .../Model/WebhookNewEmailPayload.cs | 481 + .../Model/WebhookNewSmsPayload.cs | 406 + .../Model/WebhookProjection.cs | 329 + .../Model/WebhookRedriveAllResult.cs | 148 + .../Model/WebhookRedriveResult.cs | 166 + .../Model/WebhookResultDto.cs | 622 + .../Model/WebhookTestRequest.cs | 251 + .../Model/WebhookTestResponse.cs | 147 + .../Model/WebhookTestResult.cs | 180 + src/mailslurp_netstandard_2x/README.md | 38 + .../mailslurp_netstandard_2x.csproj | 39 + 1009 files changed, 233651 insertions(+) create mode 100644 .gitignore create mode 100644 .openapi-generator-ignore create mode 100644 .openapi-generator/FILES create mode 100644 .openapi-generator/VERSION create mode 100644 LICENSE create mode 100644 README.md create mode 100644 SECURITY.md create mode 100644 SUPPORT.md create mode 100644 appveyor.yml create mode 100644 docs/AbstractWebhookPayload.md create mode 100644 docs/AccountBounceBlockDto.md create mode 100644 docs/AliasControllerApi.md create mode 100644 docs/AliasDto.md create mode 100644 docs/AliasProjection.md create mode 100644 docs/AttachmentControllerApi.md create mode 100644 docs/AttachmentEntity.md create mode 100644 docs/AttachmentMetaData.md create mode 100644 docs/AttachmentProjection.md create mode 100644 docs/BasicAuthOptions.md create mode 100644 docs/BounceControllerApi.md create mode 100644 docs/BounceProjection.md create mode 100644 docs/BounceRecipientProjection.md create mode 100644 docs/BouncedEmailDto.md create mode 100644 docs/BouncedRecipientDto.md create mode 100644 docs/BulkActionsControllerApi.md create mode 100644 docs/BulkSendEmailOptions.md create mode 100644 docs/CanSendEmailResults.md create mode 100644 docs/CheckEmailBodyFeatureSupportResults.md create mode 100644 docs/CheckEmailBodyResults.md create mode 100644 docs/CheckEmailClientSupportOptions.md create mode 100644 docs/CheckEmailClientSupportResults.md create mode 100644 docs/CheckEmailFeaturesClientSupportOptions.md create mode 100644 docs/CheckEmailFeaturesClientSupportResults.md create mode 100644 docs/CommonActionsControllerApi.md create mode 100644 docs/Complaint.md create mode 100644 docs/ConditionOption.md create mode 100644 docs/ConnectorControllerApi.md create mode 100644 docs/ConnectorDto.md create mode 100644 docs/ConnectorImapConnectionDto.md create mode 100644 docs/ConnectorProjection.md create mode 100644 docs/ConnectorSmtpConnectionDto.md create mode 100644 docs/ConnectorSyncEventDto.md create mode 100644 docs/ConnectorSyncEventProjection.md create mode 100644 docs/ConnectorSyncRequestResult.md create mode 100644 docs/ConnectorSyncRequestResultException.md create mode 100644 docs/ConnectorSyncRequestResultExceptionCause.md create mode 100644 docs/ConnectorSyncRequestResultExceptionCauseStackTraceInner.md create mode 100644 docs/ConnectorSyncResult.md create mode 100644 docs/ContactControllerApi.md create mode 100644 docs/ContactDto.md create mode 100644 docs/ContactProjection.md create mode 100644 docs/ContentMatchOptions.md create mode 100644 docs/CountDto.md create mode 100644 docs/CreateAliasOptions.md create mode 100644 docs/CreateConnectorImapConnectionOptions.md create mode 100644 docs/CreateConnectorOptions.md create mode 100644 docs/CreateConnectorSmtpConnectionOptions.md create mode 100644 docs/CreateContactOptions.md create mode 100644 docs/CreateDomainOptions.md create mode 100644 docs/CreateEmergencyAddressOptions.md create mode 100644 docs/CreateGroupOptions.md create mode 100644 docs/CreateInboxDto.md create mode 100644 docs/CreateInboxForwarderOptions.md create mode 100644 docs/CreateInboxReplierOptions.md create mode 100644 docs/CreateInboxRulesetOptions.md create mode 100644 docs/CreateTemplateOptions.md create mode 100644 docs/CreateTrackingPixelOptions.md create mode 100644 docs/CreateWebhookOptions.md create mode 100644 docs/DNSLookupOptions.md create mode 100644 docs/DNSLookupResult.md create mode 100644 docs/DNSLookupResults.md create mode 100644 docs/DNSLookupsOptions.md create mode 100644 docs/DeliveryStatusDto.md create mode 100644 docs/DescribeDomainOptions.md create mode 100644 docs/DescribeMailServerDomainResult.md create mode 100644 docs/DomainControllerApi.md create mode 100644 docs/DomainDto.md create mode 100644 docs/DomainGroup.md create mode 100644 docs/DomainGroupsDto.md create mode 100644 docs/DomainInformation.md create mode 100644 docs/DomainIssuesDto.md create mode 100644 docs/DomainNameRecord.md create mode 100644 docs/DomainPreview.md create mode 100644 docs/DownloadAttachmentDto.md create mode 100644 docs/Email.md create mode 100644 docs/EmailAnalysis.md create mode 100644 docs/EmailContentMatchResult.md create mode 100644 docs/EmailContentPartResult.md create mode 100644 docs/EmailControllerApi.md create mode 100644 docs/EmailFeatureCategoryName.md create mode 100644 docs/EmailFeatureFamilyName.md create mode 100644 docs/EmailFeatureFamilyStatistics.md create mode 100644 docs/EmailFeatureNames.md create mode 100644 docs/EmailFeatureOverview.md create mode 100644 docs/EmailFeaturePlatformName.md create mode 100644 docs/EmailFeaturePlatformStatistics.md create mode 100644 docs/EmailFeatureSupportFlags.md create mode 100644 docs/EmailFeatureSupportResult.md create mode 100644 docs/EmailFeatureSupportStatusPercentage.md create mode 100644 docs/EmailFeatureVersionStatistics.md create mode 100644 docs/EmailHtmlDto.md create mode 100644 docs/EmailLinksResult.md create mode 100644 docs/EmailPreview.md create mode 100644 docs/EmailPreviewUrls.md create mode 100644 docs/EmailProjection.md create mode 100644 docs/EmailRecipients.md create mode 100644 docs/EmailScreenshotResult.md create mode 100644 docs/EmailTextLinesResult.md create mode 100644 docs/EmailValidationRequestDto.md create mode 100644 docs/EmailVerificationControllerApi.md create mode 100644 docs/EmailVerificationResult.md create mode 100644 docs/EmergencyAddress.md create mode 100644 docs/EmergencyAddressDto.md create mode 100644 docs/EmptyResponseDto.md create mode 100644 docs/ExpirationDefaults.md create mode 100644 docs/ExpiredControllerApi.md create mode 100644 docs/ExpiredInboxDto.md create mode 100644 docs/ExpiredInboxRecordProjection.md create mode 100644 docs/ExportControllerApi.md create mode 100644 docs/ExportLink.md create mode 100644 docs/ExportOptions.md create mode 100644 docs/FakeEmailDto.md create mode 100644 docs/FakeEmailPreview.md create mode 100644 docs/FakeEmailResult.md create mode 100644 docs/FilterBouncedRecipientsOptions.md create mode 100644 docs/FilterBouncedRecipientsResult.md create mode 100644 docs/FlushExpiredInboxesResult.md create mode 100644 docs/FormControllerApi.md create mode 100644 docs/ForwardEmailOptions.md create mode 100644 docs/GenerateBimiRecordOptions.md create mode 100644 docs/GenerateBimiRecordResults.md create mode 100644 docs/GenerateDmarcRecordOptions.md create mode 100644 docs/GenerateDmarcRecordResults.md create mode 100644 docs/GenerateMtaStsRecordOptions.md create mode 100644 docs/GenerateMtaStsRecordResults.md create mode 100644 docs/GenerateTlsReportingRecordOptions.md create mode 100644 docs/GenerateTlsReportingRecordResults.md create mode 100644 docs/GetEmailScreenshotOptions.md create mode 100644 docs/GravatarUrl.md create mode 100644 docs/GroupContactsDto.md create mode 100644 docs/GroupControllerApi.md create mode 100644 docs/GroupDto.md create mode 100644 docs/GroupProjection.md create mode 100644 docs/HTMLValidationResult.md create mode 100644 docs/IPAddressResult.md create mode 100644 docs/ImageIssue.md create mode 100644 docs/ImapAccessDetails.md create mode 100644 docs/ImapControllerApi.md create mode 100644 docs/ImapEmailProjection.md create mode 100644 docs/ImapFlagOperationOptions.md create mode 100644 docs/ImapMailboxStatus.md create mode 100644 docs/ImapServerFetchItem.md create mode 100644 docs/ImapServerFetchResult.md create mode 100644 docs/ImapServerGetResult.md create mode 100644 docs/ImapServerListOptions.md create mode 100644 docs/ImapServerListResult.md create mode 100644 docs/ImapServerSearchOptions.md create mode 100644 docs/ImapServerSearchResult.md create mode 100644 docs/ImapServerStatusOptions.md create mode 100644 docs/ImapServerStatusResult.md create mode 100644 docs/ImapSmtpAccessDetails.md create mode 100644 docs/ImapSmtpAccessServers.md create mode 100644 docs/ImapUpdateFlagsOptions.md create mode 100644 docs/InboxByEmailAddressResult.md create mode 100644 docs/InboxByNameResult.md create mode 100644 docs/InboxControllerApi.md create mode 100644 docs/InboxDto.md create mode 100644 docs/InboxExistsDto.md create mode 100644 docs/InboxForwarderControllerApi.md create mode 100644 docs/InboxForwarderDto.md create mode 100644 docs/InboxForwarderEventDto.md create mode 100644 docs/InboxForwarderEventProjection.md create mode 100644 docs/InboxForwarderTestOptions.md create mode 100644 docs/InboxForwarderTestResult.md create mode 100644 docs/InboxIdItem.md create mode 100644 docs/InboxIdsResult.md create mode 100644 docs/InboxPreview.md create mode 100644 docs/InboxReplierControllerApi.md create mode 100644 docs/InboxReplierDto.md create mode 100644 docs/InboxReplierEventProjection.md create mode 100644 docs/InboxRulesetControllerApi.md create mode 100644 docs/InboxRulesetDto.md create mode 100644 docs/InboxRulesetTestOptions.md create mode 100644 docs/InboxRulesetTestResult.md create mode 100644 docs/JSONSchemaDto.md create mode 100644 docs/LinkIssue.md create mode 100644 docs/ListUnsubscribeRecipientProjection.md create mode 100644 docs/LookupBimiDomainOptions.md create mode 100644 docs/LookupBimiDomainResults.md create mode 100644 docs/LookupDmarcDomainOptions.md create mode 100644 docs/LookupDmarcDomainResults.md create mode 100644 docs/LookupMtaStsDomainOptions.md create mode 100644 docs/LookupMtaStsDomainResults.md create mode 100644 docs/LookupTlsReportingDomainOptions.md create mode 100644 docs/LookupTlsReportingDomainResults.md create mode 100644 docs/MailServerControllerApi.md create mode 100644 docs/MatchOption.md create mode 100644 docs/MatchOptions.md create mode 100644 docs/MissedEmailControllerApi.md create mode 100644 docs/MissedEmailDto.md create mode 100644 docs/MissedEmailProjection.md create mode 100644 docs/NameServerRecord.md create mode 100644 docs/NewFakeEmailAddressResult.md create mode 100644 docs/OrganizationInboxProjection.md create mode 100644 docs/PageAlias.md create mode 100644 docs/PageAttachmentEntity.md create mode 100644 docs/PageBouncedEmail.md create mode 100644 docs/PageBouncedRecipients.md create mode 100644 docs/PageComplaint.md create mode 100644 docs/PageConnector.md create mode 100644 docs/PageConnectorSyncEvents.md create mode 100644 docs/PageContactProjection.md create mode 100644 docs/PageDeliveryStatus.md create mode 100644 docs/PageEmailPreview.md create mode 100644 docs/PageEmailProjection.md create mode 100644 docs/PageEmailValidationRequest.md create mode 100644 docs/PageExpiredInboxRecordProjection.md create mode 100644 docs/PageGroupProjection.md create mode 100644 docs/PageInboxForwarderDto.md create mode 100644 docs/PageInboxForwarderEvents.md create mode 100644 docs/PageInboxProjection.md create mode 100644 docs/PageInboxReplierDto.md create mode 100644 docs/PageInboxReplierEvents.md create mode 100644 docs/PageInboxRulesetDto.md create mode 100644 docs/PageListUnsubscribeRecipients.md create mode 100644 docs/PageMissedEmailProjection.md create mode 100644 docs/PageOrganizationInboxProjection.md create mode 100644 docs/PagePhoneNumberProjection.md create mode 100644 docs/PageScheduledJobs.md create mode 100644 docs/PageSentEmailProjection.md create mode 100644 docs/PageSentEmailWithQueueProjection.md create mode 100644 docs/PageSmsProjection.md create mode 100644 docs/PageTemplateProjection.md create mode 100644 docs/PageThreadProjection.md create mode 100644 docs/PageTrackingPixelProjection.md create mode 100644 docs/PageUnknownMissedEmailProjection.md create mode 100644 docs/PageWebhookProjection.md create mode 100644 docs/PageWebhookResult.md create mode 100644 docs/PageableObject.md create mode 100644 docs/PhoneControllerApi.md create mode 100644 docs/PhoneNumberDto.md create mode 100644 docs/PhoneNumberProjection.md create mode 100644 docs/PhonePlanDto.md create mode 100644 docs/RawEmailJson.md create mode 100644 docs/Recipient.md create mode 100644 docs/ReplyForSms.md create mode 100644 docs/ReplyToAliasEmailOptions.md create mode 100644 docs/ReplyToEmailOptions.md create mode 100644 docs/ScheduledJob.md create mode 100644 docs/ScheduledJobDto.md create mode 100644 docs/SearchEmailsOptions.md create mode 100644 docs/SearchInboxesOptions.md create mode 100644 docs/SendEmailBodyPart.md create mode 100644 docs/SendEmailOptions.md create mode 100644 docs/SendSMTPEnvelopeOptions.md create mode 100644 docs/SendWithQueueResult.md create mode 100644 docs/Sender.md create mode 100644 docs/SentEmailDto.md create mode 100644 docs/SentEmailProjection.md create mode 100644 docs/SentEmailsControllerApi.md create mode 100644 docs/SentSmsDto.md create mode 100644 docs/ServerEndpoints.md create mode 100644 docs/SetInboxFavouritedOptions.md create mode 100644 docs/SimpleSendEmailOptions.md create mode 100644 docs/SmsControllerApi.md create mode 100644 docs/SmsDto.md create mode 100644 docs/SmsMatchOption.md create mode 100644 docs/SmsPreview.md create mode 100644 docs/SmsProjection.md create mode 100644 docs/SmsReplyOptions.md create mode 100644 docs/SmtpAccessDetails.md create mode 100644 docs/SortObject.md create mode 100644 docs/SpellingIssue.md create mode 100644 docs/TemplateControllerApi.md create mode 100644 docs/TemplateDto.md create mode 100644 docs/TemplatePreview.md create mode 100644 docs/TemplateProjection.md create mode 100644 docs/TemplateVariable.md create mode 100644 docs/TestInboxRulesetReceivingOptions.md create mode 100644 docs/TestInboxRulesetReceivingResult.md create mode 100644 docs/TestInboxRulesetSendingOptions.md create mode 100644 docs/TestInboxRulesetSendingResult.md create mode 100644 docs/TestNewInboxForwarderOptions.md create mode 100644 docs/TestNewInboxRulesetOptions.md create mode 100644 docs/TestPhoneNumberOptions.md create mode 100644 docs/ThreadProjection.md create mode 100644 docs/ToolsControllerApi.md create mode 100644 docs/TrackingControllerApi.md create mode 100644 docs/TrackingPixelDto.md create mode 100644 docs/TrackingPixelProjection.md create mode 100644 docs/UnknownMissedEmailProjection.md create mode 100644 docs/UnreadCount.md create mode 100644 docs/UnseenErrorCountDto.md create mode 100644 docs/UpdateAliasOptions.md create mode 100644 docs/UpdateDomainOptions.md create mode 100644 docs/UpdateGroupContacts.md create mode 100644 docs/UpdateImapAccessOptions.md create mode 100644 docs/UpdateInboxOptions.md create mode 100644 docs/UpdateInboxReplierOptions.md create mode 100644 docs/UpdateSmtpAccessOptions.md create mode 100644 docs/UploadAttachmentOptions.md create mode 100644 docs/UploadMultipartFormRequest.md create mode 100644 docs/UserControllerApi.md create mode 100644 docs/UserInfoDto.md create mode 100644 docs/ValidateEmailAddressListOptions.md create mode 100644 docs/ValidateEmailAddressListResult.md create mode 100644 docs/ValidationDto.md create mode 100644 docs/ValidationMessage.md create mode 100644 docs/VerifyEmailAddressOptions.md create mode 100644 docs/VerifyWebhookSignatureOptions.md create mode 100644 docs/VerifyWebhookSignatureResults.md create mode 100644 docs/WaitForConditions.md create mode 100644 docs/WaitForControllerApi.md create mode 100644 docs/WaitForSingleSmsOptions.md create mode 100644 docs/WaitForSmsConditions.md create mode 100644 docs/WebhookBouncePayload.md create mode 100644 docs/WebhookBounceRecipientPayload.md create mode 100644 docs/WebhookControllerApi.md create mode 100644 docs/WebhookDeliveryStatusPayload.md create mode 100644 docs/WebhookDto.md create mode 100644 docs/WebhookEmailOpenedPayload.md create mode 100644 docs/WebhookEmailReadPayload.md create mode 100644 docs/WebhookHeaderNameValue.md create mode 100644 docs/WebhookHeaders.md create mode 100644 docs/WebhookNewAttachmentPayload.md create mode 100644 docs/WebhookNewContactPayload.md create mode 100644 docs/WebhookNewEmailPayload.md create mode 100644 docs/WebhookNewSmsPayload.md create mode 100644 docs/WebhookProjection.md create mode 100644 docs/WebhookRedriveAllResult.md create mode 100644 docs/WebhookRedriveResult.md create mode 100644 docs/WebhookResultDto.md create mode 100644 docs/WebhookTestRequest.md create mode 100644 docs/WebhookTestResponse.md create mode 100644 docs/WebhookTestResult.md create mode 100644 git_push.sh create mode 100644 mailslurp_netstandard_2x.sln create mode 100644 src/mailslurp_netstandard_2x.Test/Api/AliasControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/AttachmentControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/BounceControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/BulkActionsControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/CommonActionsControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/ConnectorControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/ContactControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/DomainControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/EmailControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/EmailVerificationControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/ExpiredControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/ExportControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/FormControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/GroupControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/ImapControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/InboxControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/InboxForwarderControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/InboxReplierControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/InboxRulesetControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/MailServerControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/MissedEmailControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/PhoneControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/SentEmailsControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/SmsControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/TemplateControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/ToolsControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/TrackingControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/UserControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/WaitForControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Api/WebhookControllerApiTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/AbstractWebhookPayloadTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/AccountBounceBlockDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/AliasDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/AliasProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/AttachmentEntityTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/AttachmentMetaDataTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/AttachmentProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/BasicAuthOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/BounceProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/BounceRecipientProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/BouncedEmailDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/BouncedRecipientDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/BulkSendEmailOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CanSendEmailResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CheckEmailBodyFeatureSupportResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CheckEmailBodyResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CheckEmailClientSupportOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CheckEmailClientSupportResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CheckEmailFeaturesClientSupportOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CheckEmailFeaturesClientSupportResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ComplaintTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConditionOptionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConnectorDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConnectorImapConnectionDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConnectorProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConnectorSmtpConnectionDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncEventDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncEventProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionCauseStackTraceInnerTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionCauseTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ContactDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ContactProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ContentMatchOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CountDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateAliasOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateConnectorImapConnectionOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateConnectorOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateConnectorSmtpConnectionOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateContactOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateDomainOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateEmergencyAddressOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateGroupOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateInboxDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateInboxForwarderOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateInboxReplierOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateInboxRulesetOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateTemplateOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateTrackingPixelOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/CreateWebhookOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DNSLookupOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DNSLookupResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DNSLookupResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DNSLookupsOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DeliveryStatusDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DescribeDomainOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DescribeMailServerDomainResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DomainDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DomainGroupTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DomainGroupsDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DomainInformationTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DomainIssuesDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DomainNameRecordTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DomainPreviewTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/DownloadAttachmentDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailAnalysisTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailContentMatchResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailContentPartResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailFeatureCategoryNameTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailFeatureFamilyNameTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailFeatureFamilyStatisticsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailFeatureNamesTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailFeatureOverviewTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailFeaturePlatformNameTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailFeaturePlatformStatisticsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportFlagsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportStatusPercentageTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailFeatureVersionStatisticsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailHtmlDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailLinksResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailPreviewTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailPreviewUrlsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailRecipientsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailScreenshotResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailTextLinesResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailValidationRequestDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmailVerificationResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmergencyAddressDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmergencyAddressTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/EmptyResponseDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ExpirationDefaultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ExpiredInboxDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ExpiredInboxRecordProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ExportLinkTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ExportOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/FakeEmailDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/FakeEmailPreviewTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/FakeEmailResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/FilterBouncedRecipientsOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/FilterBouncedRecipientsResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/FlushExpiredInboxesResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ForwardEmailOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GenerateBimiRecordOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GenerateBimiRecordResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GenerateDmarcRecordOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GenerateDmarcRecordResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GenerateMtaStsRecordOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GenerateMtaStsRecordResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GenerateTlsReportingRecordOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GenerateTlsReportingRecordResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GetEmailScreenshotOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GravatarUrlTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GroupContactsDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GroupDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/GroupProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/HTMLValidationResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/IPAddressResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImageIssueTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapAccessDetailsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapEmailProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapFlagOperationOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapMailboxStatusTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapServerFetchItemTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapServerFetchResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapServerGetResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapServerListOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapServerListResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapServerSearchOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapServerSearchResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapServerStatusOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapServerStatusResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapSmtpAccessDetailsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapSmtpAccessServersTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ImapUpdateFlagsOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxByEmailAddressResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxByNameResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxExistsDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxForwarderDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxForwarderEventDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxForwarderEventProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxForwarderTestOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxForwarderTestResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxIdItemTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxIdsResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxPreviewTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxReplierDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxReplierEventProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxRulesetDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxRulesetTestOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/InboxRulesetTestResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/JSONSchemaDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/LinkIssueTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ListUnsubscribeRecipientProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/LookupBimiDomainOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/LookupBimiDomainResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/LookupDmarcDomainOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/LookupDmarcDomainResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/LookupMtaStsDomainOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/LookupMtaStsDomainResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/LookupTlsReportingDomainOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/LookupTlsReportingDomainResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/MatchOptionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/MatchOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/MissedEmailDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/MissedEmailProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/NameServerRecordTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/NewFakeEmailAddressResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/OrganizationInboxProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageAliasTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageAttachmentEntityTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageBouncedEmailTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageBouncedRecipientsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageComplaintTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageConnectorSyncEventsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageConnectorTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageContactProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageDeliveryStatusTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageEmailPreviewTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageEmailProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageEmailValidationRequestTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageExpiredInboxRecordProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageGroupProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageInboxForwarderDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageInboxForwarderEventsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageInboxProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageInboxReplierDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageInboxReplierEventsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageInboxRulesetDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageListUnsubscribeRecipientsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageMissedEmailProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageOrganizationInboxProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PagePhoneNumberProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageScheduledJobsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageSentEmailProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageSentEmailWithQueueProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageSmsProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageTemplateProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageThreadProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageTrackingPixelProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageUnknownMissedEmailProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageWebhookProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageWebhookResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PageableObjectTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PhoneNumberDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PhoneNumberProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/PhonePlanDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/RawEmailJsonTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/RecipientTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ReplyForSmsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ReplyToAliasEmailOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ReplyToEmailOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ScheduledJobDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ScheduledJobTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SearchEmailsOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SearchInboxesOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SendEmailBodyPartTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SendEmailOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SendSMTPEnvelopeOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SendWithQueueResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SenderTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SentEmailDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SentEmailProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SentSmsDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ServerEndpointsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SetInboxFavouritedOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SimpleSendEmailOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SmsDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SmsMatchOptionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SmsPreviewTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SmsProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SmsReplyOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SmtpAccessDetailsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SortObjectTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/SpellingIssueTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TemplateDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TemplatePreviewTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TemplateProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TemplateVariableTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetReceivingOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetReceivingResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetSendingOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetSendingResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TestNewInboxForwarderOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TestNewInboxRulesetOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TestPhoneNumberOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ThreadProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TrackingPixelDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/TrackingPixelProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UnknownMissedEmailProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UnreadCountTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UnseenErrorCountDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UpdateAliasOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UpdateDomainOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UpdateGroupContactsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UpdateImapAccessOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UpdateInboxOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UpdateInboxReplierOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UpdateSmtpAccessOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UploadAttachmentOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UploadMultipartFormRequestTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/UserInfoDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ValidateEmailAddressListOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ValidateEmailAddressListResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ValidationDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/ValidationMessageTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/VerifyEmailAddressOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/VerifyWebhookSignatureOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/VerifyWebhookSignatureResultsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WaitForConditionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WaitForSingleSmsOptionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WaitForSmsConditionsTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookBouncePayloadTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookBounceRecipientPayloadTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookDeliveryStatusPayloadTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookEmailOpenedPayloadTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookEmailReadPayloadTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookHeaderNameValueTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookHeadersTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookNewAttachmentPayloadTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookNewContactPayloadTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookNewEmailPayloadTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookNewSmsPayloadTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookProjectionTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookRedriveAllResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookRedriveResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookResultDtoTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookTestRequestTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookTestResponseTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/Model/WebhookTestResultTests.cs create mode 100644 src/mailslurp_netstandard_2x.Test/mailslurp_netstandard_2x.Test.csproj create mode 100644 src/mailslurp_netstandard_2x/Api/AliasControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/AttachmentControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/BounceControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/BulkActionsControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/CommonActionsControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/ConnectorControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/ContactControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/DomainControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/EmailControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/EmailVerificationControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/ExpiredControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/ExportControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/FormControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/GroupControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/ImapControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/InboxControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/InboxForwarderControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/InboxReplierControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/InboxRulesetControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/MailServerControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/MissedEmailControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/PhoneControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/SentEmailsControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/SmsControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/TemplateControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/ToolsControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/TrackingControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/UserControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/WaitForControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Api/WebhookControllerApi.cs create mode 100644 src/mailslurp_netstandard_2x/Client/ApiClient.cs create mode 100644 src/mailslurp_netstandard_2x/Client/ApiException.cs create mode 100644 src/mailslurp_netstandard_2x/Client/ApiResponse.cs create mode 100644 src/mailslurp_netstandard_2x/Client/ClientUtils.cs create mode 100644 src/mailslurp_netstandard_2x/Client/Configuration.cs create mode 100644 src/mailslurp_netstandard_2x/Client/ExceptionFactory.cs create mode 100644 src/mailslurp_netstandard_2x/Client/GlobalConfiguration.cs create mode 100644 src/mailslurp_netstandard_2x/Client/HttpMethod.cs create mode 100644 src/mailslurp_netstandard_2x/Client/IApiAccessor.cs create mode 100644 src/mailslurp_netstandard_2x/Client/IAsynchronousClient.cs create mode 100644 src/mailslurp_netstandard_2x/Client/IReadableConfiguration.cs create mode 100644 src/mailslurp_netstandard_2x/Client/ISynchronousClient.cs create mode 100644 src/mailslurp_netstandard_2x/Client/Multimap.cs create mode 100644 src/mailslurp_netstandard_2x/Client/OpenAPIDateConverter.cs create mode 100644 src/mailslurp_netstandard_2x/Client/RequestOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Client/RetryConfiguration.cs create mode 100644 src/mailslurp_netstandard_2x/Model/AbstractOpenAPISchema.cs create mode 100644 src/mailslurp_netstandard_2x/Model/AbstractWebhookPayload.cs create mode 100644 src/mailslurp_netstandard_2x/Model/AccountBounceBlockDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/AliasDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/AliasProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/AttachmentEntity.cs create mode 100644 src/mailslurp_netstandard_2x/Model/AttachmentMetaData.cs create mode 100644 src/mailslurp_netstandard_2x/Model/AttachmentProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/BasicAuthOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/BounceProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/BounceRecipientProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/BouncedEmailDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/BouncedRecipientDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/BulkSendEmailOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CanSendEmailResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CheckEmailBodyFeatureSupportResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CheckEmailBodyResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CheckEmailClientSupportOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CheckEmailClientSupportResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CheckEmailFeaturesClientSupportOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CheckEmailFeaturesClientSupportResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/Complaint.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConditionOption.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConnectorDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConnectorImapConnectionDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConnectorProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConnectorSmtpConnectionDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConnectorSyncEventDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConnectorSyncEventProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultException.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultExceptionCause.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultExceptionCauseStackTraceInner.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ConnectorSyncResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ContactDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ContactProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ContentMatchOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CountDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateAliasOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateConnectorImapConnectionOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateConnectorOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateConnectorSmtpConnectionOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateContactOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateDomainOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateEmergencyAddressOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateGroupOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateInboxDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateInboxForwarderOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateInboxReplierOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateInboxRulesetOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateTemplateOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateTrackingPixelOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/CreateWebhookOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DNSLookupOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DNSLookupResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DNSLookupResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DNSLookupsOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DeliveryStatusDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DescribeDomainOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DescribeMailServerDomainResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DomainDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DomainGroup.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DomainGroupsDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DomainInformation.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DomainIssuesDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DomainNameRecord.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DomainPreview.cs create mode 100644 src/mailslurp_netstandard_2x/Model/DownloadAttachmentDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/Email.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailAnalysis.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailContentMatchResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailContentPartResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailFeatureCategoryName.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailFeatureFamilyName.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailFeatureFamilyStatistics.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailFeatureNames.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailFeatureOverview.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailFeaturePlatformName.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailFeaturePlatformStatistics.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailFeatureSupportFlags.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailFeatureSupportResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailFeatureSupportStatusPercentage.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailFeatureVersionStatistics.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailHtmlDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailLinksResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailPreview.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailPreviewUrls.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailRecipients.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailScreenshotResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailTextLinesResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailValidationRequestDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmailVerificationResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmergencyAddress.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmergencyAddressDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/EmptyResponseDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ExpirationDefaults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ExpiredInboxDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ExpiredInboxRecordProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ExportLink.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ExportOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/FakeEmailDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/FakeEmailPreview.cs create mode 100644 src/mailslurp_netstandard_2x/Model/FakeEmailResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/FilterBouncedRecipientsOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/FilterBouncedRecipientsResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/FlushExpiredInboxesResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ForwardEmailOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GenerateBimiRecordOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GenerateBimiRecordResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GenerateDmarcRecordOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GenerateDmarcRecordResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GenerateMtaStsRecordOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GenerateMtaStsRecordResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GenerateTlsReportingRecordOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GenerateTlsReportingRecordResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GetEmailScreenshotOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GravatarUrl.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GroupContactsDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GroupDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/GroupProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/HTMLValidationResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/IPAddressResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImageIssue.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapAccessDetails.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapEmailProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapFlagOperationOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapMailboxStatus.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapServerFetchItem.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapServerFetchResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapServerGetResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapServerListOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapServerListResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapServerSearchOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapServerSearchResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapServerStatusOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapServerStatusResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapSmtpAccessDetails.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapSmtpAccessServers.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ImapUpdateFlagsOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxByEmailAddressResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxByNameResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxExistsDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxForwarderDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxForwarderEventDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxForwarderEventProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxForwarderTestOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxForwarderTestResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxIdItem.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxIdsResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxPreview.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxReplierDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxReplierEventProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxRulesetDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxRulesetTestOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/InboxRulesetTestResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/JSONSchemaDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/LinkIssue.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ListUnsubscribeRecipientProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/LookupBimiDomainOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/LookupBimiDomainResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/LookupDmarcDomainOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/LookupDmarcDomainResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/LookupMtaStsDomainOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/LookupMtaStsDomainResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/LookupTlsReportingDomainOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/LookupTlsReportingDomainResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/MatchOption.cs create mode 100644 src/mailslurp_netstandard_2x/Model/MatchOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/MissedEmailDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/MissedEmailProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/NameServerRecord.cs create mode 100644 src/mailslurp_netstandard_2x/Model/NewFakeEmailAddressResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/OrganizationInboxProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageAlias.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageAttachmentEntity.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageBouncedEmail.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageBouncedRecipients.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageComplaint.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageConnector.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageConnectorSyncEvents.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageContactProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageDeliveryStatus.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageEmailPreview.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageEmailProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageEmailValidationRequest.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageExpiredInboxRecordProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageGroupProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageInboxForwarderDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageInboxForwarderEvents.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageInboxProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageInboxReplierDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageInboxReplierEvents.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageInboxRulesetDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageListUnsubscribeRecipients.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageMissedEmailProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageOrganizationInboxProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PagePhoneNumberProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageScheduledJobs.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageSentEmailProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageSentEmailWithQueueProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageSmsProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageTemplateProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageThreadProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageTrackingPixelProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageUnknownMissedEmailProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageWebhookProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageWebhookResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PageableObject.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PhoneNumberDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PhoneNumberProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/PhonePlanDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/RawEmailJson.cs create mode 100644 src/mailslurp_netstandard_2x/Model/Recipient.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ReplyForSms.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ReplyToAliasEmailOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ReplyToEmailOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ScheduledJob.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ScheduledJobDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SearchEmailsOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SearchInboxesOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SendEmailBodyPart.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SendEmailOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SendSMTPEnvelopeOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SendWithQueueResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/Sender.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SentEmailDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SentEmailProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SentSmsDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ServerEndpoints.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SetInboxFavouritedOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SimpleSendEmailOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SmsDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SmsMatchOption.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SmsPreview.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SmsProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SmsReplyOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SmtpAccessDetails.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SortObject.cs create mode 100644 src/mailslurp_netstandard_2x/Model/SpellingIssue.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TemplateDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TemplatePreview.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TemplateProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TemplateVariable.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TestInboxRulesetReceivingOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TestInboxRulesetReceivingResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TestInboxRulesetSendingOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TestInboxRulesetSendingResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TestNewInboxForwarderOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TestNewInboxRulesetOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TestPhoneNumberOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ThreadProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TrackingPixelDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/TrackingPixelProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UnknownMissedEmailProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UnreadCount.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UnseenErrorCountDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UpdateAliasOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UpdateDomainOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UpdateGroupContacts.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UpdateImapAccessOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UpdateInboxOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UpdateInboxReplierOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UpdateSmtpAccessOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UploadAttachmentOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UploadMultipartFormRequest.cs create mode 100644 src/mailslurp_netstandard_2x/Model/UserInfoDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ValidateEmailAddressListOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ValidateEmailAddressListResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ValidationDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/ValidationMessage.cs create mode 100644 src/mailslurp_netstandard_2x/Model/VerifyEmailAddressOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/VerifyWebhookSignatureOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/VerifyWebhookSignatureResults.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WaitForConditions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WaitForSingleSmsOptions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WaitForSmsConditions.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookBouncePayload.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookBounceRecipientPayload.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookDeliveryStatusPayload.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookEmailOpenedPayload.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookEmailReadPayload.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookHeaderNameValue.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookHeaders.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookNewAttachmentPayload.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookNewContactPayload.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookNewEmailPayload.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookNewSmsPayload.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookProjection.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookRedriveAllResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookRedriveResult.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookResultDto.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookTestRequest.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookTestResponse.cs create mode 100644 src/mailslurp_netstandard_2x/Model/WebhookTestResult.cs create mode 100644 src/mailslurp_netstandard_2x/README.md create mode 100644 src/mailslurp_netstandard_2x/mailslurp_netstandard_2x.csproj diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..1ee53850 --- /dev/null +++ b/.gitignore @@ -0,0 +1,362 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES new file mode 100644 index 00000000..f8cccd77 --- /dev/null +++ b/.openapi-generator/FILES @@ -0,0 +1,1003 @@ +.gitignore +.openapi-generator-ignore +README.md +appveyor.yml +docs/AbstractWebhookPayload.md +docs/AccountBounceBlockDto.md +docs/AliasControllerApi.md +docs/AliasDto.md +docs/AliasProjection.md +docs/AttachmentControllerApi.md +docs/AttachmentEntity.md +docs/AttachmentMetaData.md +docs/AttachmentProjection.md +docs/BasicAuthOptions.md +docs/BounceControllerApi.md +docs/BounceProjection.md +docs/BounceRecipientProjection.md +docs/BouncedEmailDto.md +docs/BouncedRecipientDto.md +docs/BulkActionsControllerApi.md +docs/BulkSendEmailOptions.md +docs/CanSendEmailResults.md +docs/CheckEmailBodyFeatureSupportResults.md +docs/CheckEmailBodyResults.md +docs/CheckEmailClientSupportOptions.md +docs/CheckEmailClientSupportResults.md +docs/CheckEmailFeaturesClientSupportOptions.md +docs/CheckEmailFeaturesClientSupportResults.md +docs/CommonActionsControllerApi.md +docs/Complaint.md +docs/ConditionOption.md +docs/ConnectorControllerApi.md +docs/ConnectorDto.md +docs/ConnectorImapConnectionDto.md +docs/ConnectorProjection.md +docs/ConnectorSmtpConnectionDto.md +docs/ConnectorSyncEventDto.md +docs/ConnectorSyncEventProjection.md +docs/ConnectorSyncRequestResult.md +docs/ConnectorSyncRequestResultException.md +docs/ConnectorSyncRequestResultExceptionCause.md +docs/ConnectorSyncRequestResultExceptionCauseStackTraceInner.md +docs/ConnectorSyncResult.md +docs/ContactControllerApi.md +docs/ContactDto.md +docs/ContactProjection.md +docs/ContentMatchOptions.md +docs/CountDto.md +docs/CreateAliasOptions.md +docs/CreateConnectorImapConnectionOptions.md +docs/CreateConnectorOptions.md +docs/CreateConnectorSmtpConnectionOptions.md +docs/CreateContactOptions.md +docs/CreateDomainOptions.md +docs/CreateEmergencyAddressOptions.md +docs/CreateGroupOptions.md +docs/CreateInboxDto.md +docs/CreateInboxForwarderOptions.md +docs/CreateInboxReplierOptions.md +docs/CreateInboxRulesetOptions.md +docs/CreateTemplateOptions.md +docs/CreateTrackingPixelOptions.md +docs/CreateWebhookOptions.md +docs/DNSLookupOptions.md +docs/DNSLookupResult.md +docs/DNSLookupResults.md +docs/DNSLookupsOptions.md +docs/DeliveryStatusDto.md +docs/DescribeDomainOptions.md +docs/DescribeMailServerDomainResult.md +docs/DomainControllerApi.md +docs/DomainDto.md +docs/DomainGroup.md +docs/DomainGroupsDto.md +docs/DomainInformation.md +docs/DomainIssuesDto.md +docs/DomainNameRecord.md +docs/DomainPreview.md +docs/DownloadAttachmentDto.md +docs/Email.md +docs/EmailAnalysis.md +docs/EmailContentMatchResult.md +docs/EmailContentPartResult.md +docs/EmailControllerApi.md +docs/EmailFeatureCategoryName.md +docs/EmailFeatureFamilyName.md +docs/EmailFeatureFamilyStatistics.md +docs/EmailFeatureNames.md +docs/EmailFeatureOverview.md +docs/EmailFeaturePlatformName.md +docs/EmailFeaturePlatformStatistics.md +docs/EmailFeatureSupportFlags.md +docs/EmailFeatureSupportResult.md +docs/EmailFeatureSupportStatusPercentage.md +docs/EmailFeatureVersionStatistics.md +docs/EmailHtmlDto.md +docs/EmailLinksResult.md +docs/EmailPreview.md +docs/EmailPreviewUrls.md +docs/EmailProjection.md +docs/EmailRecipients.md +docs/EmailScreenshotResult.md +docs/EmailTextLinesResult.md +docs/EmailValidationRequestDto.md +docs/EmailVerificationControllerApi.md +docs/EmailVerificationResult.md +docs/EmergencyAddress.md +docs/EmergencyAddressDto.md +docs/EmptyResponseDto.md +docs/ExpirationDefaults.md +docs/ExpiredControllerApi.md +docs/ExpiredInboxDto.md +docs/ExpiredInboxRecordProjection.md +docs/ExportControllerApi.md +docs/ExportLink.md +docs/ExportOptions.md +docs/FakeEmailDto.md +docs/FakeEmailPreview.md +docs/FakeEmailResult.md +docs/FilterBouncedRecipientsOptions.md +docs/FilterBouncedRecipientsResult.md +docs/FlushExpiredInboxesResult.md +docs/FormControllerApi.md +docs/ForwardEmailOptions.md +docs/GenerateBimiRecordOptions.md +docs/GenerateBimiRecordResults.md +docs/GenerateDmarcRecordOptions.md +docs/GenerateDmarcRecordResults.md +docs/GenerateMtaStsRecordOptions.md +docs/GenerateMtaStsRecordResults.md +docs/GenerateTlsReportingRecordOptions.md +docs/GenerateTlsReportingRecordResults.md +docs/GetEmailScreenshotOptions.md +docs/GravatarUrl.md +docs/GroupContactsDto.md +docs/GroupControllerApi.md +docs/GroupDto.md +docs/GroupProjection.md +docs/HTMLValidationResult.md +docs/IPAddressResult.md +docs/ImageIssue.md +docs/ImapAccessDetails.md +docs/ImapControllerApi.md +docs/ImapEmailProjection.md +docs/ImapFlagOperationOptions.md +docs/ImapMailboxStatus.md +docs/ImapServerFetchItem.md +docs/ImapServerFetchResult.md +docs/ImapServerGetResult.md +docs/ImapServerListOptions.md +docs/ImapServerListResult.md +docs/ImapServerSearchOptions.md +docs/ImapServerSearchResult.md +docs/ImapServerStatusOptions.md +docs/ImapServerStatusResult.md +docs/ImapSmtpAccessDetails.md +docs/ImapSmtpAccessServers.md +docs/ImapUpdateFlagsOptions.md +docs/InboxByEmailAddressResult.md +docs/InboxByNameResult.md +docs/InboxControllerApi.md +docs/InboxDto.md +docs/InboxExistsDto.md +docs/InboxForwarderControllerApi.md +docs/InboxForwarderDto.md +docs/InboxForwarderEventDto.md +docs/InboxForwarderEventProjection.md +docs/InboxForwarderTestOptions.md +docs/InboxForwarderTestResult.md +docs/InboxIdItem.md +docs/InboxIdsResult.md +docs/InboxPreview.md +docs/InboxReplierControllerApi.md +docs/InboxReplierDto.md +docs/InboxReplierEventProjection.md +docs/InboxRulesetControllerApi.md +docs/InboxRulesetDto.md +docs/InboxRulesetTestOptions.md +docs/InboxRulesetTestResult.md +docs/JSONSchemaDto.md +docs/LinkIssue.md +docs/ListUnsubscribeRecipientProjection.md +docs/LookupBimiDomainOptions.md +docs/LookupBimiDomainResults.md +docs/LookupDmarcDomainOptions.md +docs/LookupDmarcDomainResults.md +docs/LookupMtaStsDomainOptions.md +docs/LookupMtaStsDomainResults.md +docs/LookupTlsReportingDomainOptions.md +docs/LookupTlsReportingDomainResults.md +docs/MailServerControllerApi.md +docs/MatchOption.md +docs/MatchOptions.md +docs/MissedEmailControllerApi.md +docs/MissedEmailDto.md +docs/MissedEmailProjection.md +docs/NameServerRecord.md +docs/NewFakeEmailAddressResult.md +docs/OrganizationInboxProjection.md +docs/PageAlias.md +docs/PageAttachmentEntity.md +docs/PageBouncedEmail.md +docs/PageBouncedRecipients.md +docs/PageComplaint.md +docs/PageConnector.md +docs/PageConnectorSyncEvents.md +docs/PageContactProjection.md +docs/PageDeliveryStatus.md +docs/PageEmailPreview.md +docs/PageEmailProjection.md +docs/PageEmailValidationRequest.md +docs/PageExpiredInboxRecordProjection.md +docs/PageGroupProjection.md +docs/PageInboxForwarderDto.md +docs/PageInboxForwarderEvents.md +docs/PageInboxProjection.md +docs/PageInboxReplierDto.md +docs/PageInboxReplierEvents.md +docs/PageInboxRulesetDto.md +docs/PageListUnsubscribeRecipients.md +docs/PageMissedEmailProjection.md +docs/PageOrganizationInboxProjection.md +docs/PagePhoneNumberProjection.md +docs/PageScheduledJobs.md +docs/PageSentEmailProjection.md +docs/PageSentEmailWithQueueProjection.md +docs/PageSmsProjection.md +docs/PageTemplateProjection.md +docs/PageThreadProjection.md +docs/PageTrackingPixelProjection.md +docs/PageUnknownMissedEmailProjection.md +docs/PageWebhookProjection.md +docs/PageWebhookResult.md +docs/PageableObject.md +docs/PhoneControllerApi.md +docs/PhoneNumberDto.md +docs/PhoneNumberProjection.md +docs/PhonePlanDto.md +docs/RawEmailJson.md +docs/Recipient.md +docs/ReplyForSms.md +docs/ReplyToAliasEmailOptions.md +docs/ReplyToEmailOptions.md +docs/ScheduledJob.md +docs/ScheduledJobDto.md +docs/SearchEmailsOptions.md +docs/SearchInboxesOptions.md +docs/SendEmailBodyPart.md +docs/SendEmailOptions.md +docs/SendSMTPEnvelopeOptions.md +docs/SendWithQueueResult.md +docs/Sender.md +docs/SentEmailDto.md +docs/SentEmailProjection.md +docs/SentEmailsControllerApi.md +docs/SentSmsDto.md +docs/ServerEndpoints.md +docs/SetInboxFavouritedOptions.md +docs/SimpleSendEmailOptions.md +docs/SmsControllerApi.md +docs/SmsDto.md +docs/SmsMatchOption.md +docs/SmsPreview.md +docs/SmsProjection.md +docs/SmsReplyOptions.md +docs/SmtpAccessDetails.md +docs/SortObject.md +docs/SpellingIssue.md +docs/TemplateControllerApi.md +docs/TemplateDto.md +docs/TemplatePreview.md +docs/TemplateProjection.md +docs/TemplateVariable.md +docs/TestInboxRulesetReceivingOptions.md +docs/TestInboxRulesetReceivingResult.md +docs/TestInboxRulesetSendingOptions.md +docs/TestInboxRulesetSendingResult.md +docs/TestNewInboxForwarderOptions.md +docs/TestNewInboxRulesetOptions.md +docs/TestPhoneNumberOptions.md +docs/ThreadProjection.md +docs/ToolsControllerApi.md +docs/TrackingControllerApi.md +docs/TrackingPixelDto.md +docs/TrackingPixelProjection.md +docs/UnknownMissedEmailProjection.md +docs/UnreadCount.md +docs/UnseenErrorCountDto.md +docs/UpdateAliasOptions.md +docs/UpdateDomainOptions.md +docs/UpdateGroupContacts.md +docs/UpdateImapAccessOptions.md +docs/UpdateInboxOptions.md +docs/UpdateInboxReplierOptions.md +docs/UpdateSmtpAccessOptions.md +docs/UploadAttachmentOptions.md +docs/UploadMultipartFormRequest.md +docs/UserControllerApi.md +docs/UserInfoDto.md +docs/ValidateEmailAddressListOptions.md +docs/ValidateEmailAddressListResult.md +docs/ValidationDto.md +docs/ValidationMessage.md +docs/VerifyEmailAddressOptions.md +docs/VerifyWebhookSignatureOptions.md +docs/VerifyWebhookSignatureResults.md +docs/WaitForConditions.md +docs/WaitForControllerApi.md +docs/WaitForSingleSmsOptions.md +docs/WaitForSmsConditions.md +docs/WebhookBouncePayload.md +docs/WebhookBounceRecipientPayload.md +docs/WebhookControllerApi.md +docs/WebhookDeliveryStatusPayload.md +docs/WebhookDto.md +docs/WebhookEmailOpenedPayload.md +docs/WebhookEmailReadPayload.md +docs/WebhookHeaderNameValue.md +docs/WebhookHeaders.md +docs/WebhookNewAttachmentPayload.md +docs/WebhookNewContactPayload.md +docs/WebhookNewEmailPayload.md +docs/WebhookNewSmsPayload.md +docs/WebhookProjection.md +docs/WebhookRedriveAllResult.md +docs/WebhookRedriveResult.md +docs/WebhookResultDto.md +docs/WebhookTestRequest.md +docs/WebhookTestResponse.md +docs/WebhookTestResult.md +git_push.sh +mailslurp_netstandard_2x.sln +src/mailslurp_netstandard_2x.Test/Api/AliasControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/AttachmentControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/BounceControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/BulkActionsControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/CommonActionsControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/ConnectorControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/ContactControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/DomainControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/EmailControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/EmailVerificationControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/ExpiredControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/ExportControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/FormControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/GroupControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/ImapControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/InboxControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/InboxForwarderControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/InboxReplierControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/InboxRulesetControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/MailServerControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/MissedEmailControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/PhoneControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/SentEmailsControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/SmsControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/TemplateControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/ToolsControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/TrackingControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/UserControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/WaitForControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Api/WebhookControllerApiTests.cs +src/mailslurp_netstandard_2x.Test/Model/AbstractWebhookPayloadTests.cs +src/mailslurp_netstandard_2x.Test/Model/AccountBounceBlockDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/AliasDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/AliasProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/AttachmentEntityTests.cs +src/mailslurp_netstandard_2x.Test/Model/AttachmentMetaDataTests.cs +src/mailslurp_netstandard_2x.Test/Model/AttachmentProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/BasicAuthOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/BounceProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/BounceRecipientProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/BouncedEmailDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/BouncedRecipientDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/BulkSendEmailOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CanSendEmailResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CheckEmailBodyFeatureSupportResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CheckEmailBodyResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CheckEmailClientSupportOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CheckEmailClientSupportResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CheckEmailFeaturesClientSupportOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CheckEmailFeaturesClientSupportResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ComplaintTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConditionOptionTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConnectorDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConnectorImapConnectionDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConnectorProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConnectorSmtpConnectionDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncEventDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncEventProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionCauseStackTraceInnerTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionCauseTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/ContactDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/ContactProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/ContentMatchOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CountDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateAliasOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateConnectorImapConnectionOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateConnectorOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateConnectorSmtpConnectionOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateContactOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateDomainOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateEmergencyAddressOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateGroupOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateInboxDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateInboxForwarderOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateInboxReplierOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateInboxRulesetOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateTemplateOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateTrackingPixelOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/CreateWebhookOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/DNSLookupOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/DNSLookupResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/DNSLookupResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/DNSLookupsOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/DeliveryStatusDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/DescribeDomainOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/DescribeMailServerDomainResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/DomainDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/DomainGroupTests.cs +src/mailslurp_netstandard_2x.Test/Model/DomainGroupsDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/DomainInformationTests.cs +src/mailslurp_netstandard_2x.Test/Model/DomainIssuesDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/DomainNameRecordTests.cs +src/mailslurp_netstandard_2x.Test/Model/DomainPreviewTests.cs +src/mailslurp_netstandard_2x.Test/Model/DownloadAttachmentDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailAnalysisTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailContentMatchResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailContentPartResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailFeatureCategoryNameTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailFeatureFamilyNameTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailFeatureFamilyStatisticsTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailFeatureNamesTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailFeatureOverviewTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailFeaturePlatformNameTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailFeaturePlatformStatisticsTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportFlagsTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportStatusPercentageTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailFeatureVersionStatisticsTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailHtmlDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailLinksResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailPreviewTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailPreviewUrlsTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailRecipientsTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailScreenshotResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailTextLinesResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailValidationRequestDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmailVerificationResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmergencyAddressDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmergencyAddressTests.cs +src/mailslurp_netstandard_2x.Test/Model/EmptyResponseDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/ExpirationDefaultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ExpiredInboxDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/ExpiredInboxRecordProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/ExportLinkTests.cs +src/mailslurp_netstandard_2x.Test/Model/ExportOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/FakeEmailDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/FakeEmailPreviewTests.cs +src/mailslurp_netstandard_2x.Test/Model/FakeEmailResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/FilterBouncedRecipientsOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/FilterBouncedRecipientsResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/FlushExpiredInboxesResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/ForwardEmailOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/GenerateBimiRecordOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/GenerateBimiRecordResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/GenerateDmarcRecordOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/GenerateDmarcRecordResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/GenerateMtaStsRecordOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/GenerateMtaStsRecordResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/GenerateTlsReportingRecordOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/GenerateTlsReportingRecordResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/GetEmailScreenshotOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/GravatarUrlTests.cs +src/mailslurp_netstandard_2x.Test/Model/GroupContactsDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/GroupDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/GroupProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/HTMLValidationResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/IPAddressResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImageIssueTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapAccessDetailsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapEmailProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapFlagOperationOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapMailboxStatusTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapServerFetchItemTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapServerFetchResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapServerGetResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapServerListOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapServerListResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapServerSearchOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapServerSearchResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapServerStatusOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapServerStatusResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapSmtpAccessDetailsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapSmtpAccessServersTests.cs +src/mailslurp_netstandard_2x.Test/Model/ImapUpdateFlagsOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxByEmailAddressResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxByNameResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxExistsDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxForwarderDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxForwarderEventDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxForwarderEventProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxForwarderTestOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxForwarderTestResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxIdItemTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxIdsResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxPreviewTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxReplierDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxReplierEventProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxRulesetDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxRulesetTestOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/InboxRulesetTestResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/JSONSchemaDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/LinkIssueTests.cs +src/mailslurp_netstandard_2x.Test/Model/ListUnsubscribeRecipientProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/LookupBimiDomainOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/LookupBimiDomainResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/LookupDmarcDomainOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/LookupDmarcDomainResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/LookupMtaStsDomainOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/LookupMtaStsDomainResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/LookupTlsReportingDomainOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/LookupTlsReportingDomainResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/MatchOptionTests.cs +src/mailslurp_netstandard_2x.Test/Model/MatchOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/MissedEmailDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/MissedEmailProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/NameServerRecordTests.cs +src/mailslurp_netstandard_2x.Test/Model/NewFakeEmailAddressResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/OrganizationInboxProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageAliasTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageAttachmentEntityTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageBouncedEmailTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageBouncedRecipientsTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageComplaintTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageConnectorSyncEventsTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageConnectorTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageContactProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageDeliveryStatusTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageEmailPreviewTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageEmailProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageEmailValidationRequestTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageExpiredInboxRecordProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageGroupProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageInboxForwarderDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageInboxForwarderEventsTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageInboxProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageInboxReplierDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageInboxReplierEventsTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageInboxRulesetDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageListUnsubscribeRecipientsTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageMissedEmailProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageOrganizationInboxProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PagePhoneNumberProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageScheduledJobsTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageSentEmailProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageSentEmailWithQueueProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageSmsProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageTemplateProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageThreadProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageTrackingPixelProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageUnknownMissedEmailProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageWebhookProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageWebhookResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/PageableObjectTests.cs +src/mailslurp_netstandard_2x.Test/Model/PhoneNumberDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/PhoneNumberProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/PhonePlanDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/RawEmailJsonTests.cs +src/mailslurp_netstandard_2x.Test/Model/RecipientTests.cs +src/mailslurp_netstandard_2x.Test/Model/ReplyForSmsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ReplyToAliasEmailOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ReplyToEmailOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ScheduledJobDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/ScheduledJobTests.cs +src/mailslurp_netstandard_2x.Test/Model/SearchEmailsOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/SearchInboxesOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/SendEmailBodyPartTests.cs +src/mailslurp_netstandard_2x.Test/Model/SendEmailOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/SendSMTPEnvelopeOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/SendWithQueueResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/SenderTests.cs +src/mailslurp_netstandard_2x.Test/Model/SentEmailDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/SentEmailProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/SentSmsDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/ServerEndpointsTests.cs +src/mailslurp_netstandard_2x.Test/Model/SetInboxFavouritedOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/SimpleSendEmailOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/SmsDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/SmsMatchOptionTests.cs +src/mailslurp_netstandard_2x.Test/Model/SmsPreviewTests.cs +src/mailslurp_netstandard_2x.Test/Model/SmsProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/SmsReplyOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/SmtpAccessDetailsTests.cs +src/mailslurp_netstandard_2x.Test/Model/SortObjectTests.cs +src/mailslurp_netstandard_2x.Test/Model/SpellingIssueTests.cs +src/mailslurp_netstandard_2x.Test/Model/TemplateDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/TemplatePreviewTests.cs +src/mailslurp_netstandard_2x.Test/Model/TemplateProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/TemplateVariableTests.cs +src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetReceivingOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetReceivingResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetSendingOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetSendingResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/TestNewInboxForwarderOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/TestNewInboxRulesetOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/TestPhoneNumberOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ThreadProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/TrackingPixelDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/TrackingPixelProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/UnknownMissedEmailProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/UnreadCountTests.cs +src/mailslurp_netstandard_2x.Test/Model/UnseenErrorCountDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/UpdateAliasOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/UpdateDomainOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/UpdateGroupContactsTests.cs +src/mailslurp_netstandard_2x.Test/Model/UpdateImapAccessOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/UpdateInboxOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/UpdateInboxReplierOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/UpdateSmtpAccessOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/UploadAttachmentOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/UploadMultipartFormRequestTests.cs +src/mailslurp_netstandard_2x.Test/Model/UserInfoDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/ValidateEmailAddressListOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/ValidateEmailAddressListResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/ValidationDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/ValidationMessageTests.cs +src/mailslurp_netstandard_2x.Test/Model/VerifyEmailAddressOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/VerifyWebhookSignatureOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/VerifyWebhookSignatureResultsTests.cs +src/mailslurp_netstandard_2x.Test/Model/WaitForConditionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/WaitForSingleSmsOptionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/WaitForSmsConditionsTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookBouncePayloadTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookBounceRecipientPayloadTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookDeliveryStatusPayloadTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookEmailOpenedPayloadTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookEmailReadPayloadTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookHeaderNameValueTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookHeadersTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookNewAttachmentPayloadTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookNewContactPayloadTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookNewEmailPayloadTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookNewSmsPayloadTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookProjectionTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookRedriveAllResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookRedriveResultTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookResultDtoTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookTestRequestTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookTestResponseTests.cs +src/mailslurp_netstandard_2x.Test/Model/WebhookTestResultTests.cs +src/mailslurp_netstandard_2x.Test/mailslurp_netstandard_2x.Test.csproj +src/mailslurp_netstandard_2x/Api/AliasControllerApi.cs +src/mailslurp_netstandard_2x/Api/AttachmentControllerApi.cs +src/mailslurp_netstandard_2x/Api/BounceControllerApi.cs +src/mailslurp_netstandard_2x/Api/BulkActionsControllerApi.cs +src/mailslurp_netstandard_2x/Api/CommonActionsControllerApi.cs +src/mailslurp_netstandard_2x/Api/ConnectorControllerApi.cs +src/mailslurp_netstandard_2x/Api/ContactControllerApi.cs +src/mailslurp_netstandard_2x/Api/DomainControllerApi.cs +src/mailslurp_netstandard_2x/Api/EmailControllerApi.cs +src/mailslurp_netstandard_2x/Api/EmailVerificationControllerApi.cs +src/mailslurp_netstandard_2x/Api/ExpiredControllerApi.cs +src/mailslurp_netstandard_2x/Api/ExportControllerApi.cs +src/mailslurp_netstandard_2x/Api/FormControllerApi.cs +src/mailslurp_netstandard_2x/Api/GroupControllerApi.cs +src/mailslurp_netstandard_2x/Api/ImapControllerApi.cs +src/mailslurp_netstandard_2x/Api/InboxControllerApi.cs +src/mailslurp_netstandard_2x/Api/InboxForwarderControllerApi.cs +src/mailslurp_netstandard_2x/Api/InboxReplierControllerApi.cs +src/mailslurp_netstandard_2x/Api/InboxRulesetControllerApi.cs +src/mailslurp_netstandard_2x/Api/MailServerControllerApi.cs +src/mailslurp_netstandard_2x/Api/MissedEmailControllerApi.cs +src/mailslurp_netstandard_2x/Api/PhoneControllerApi.cs +src/mailslurp_netstandard_2x/Api/SentEmailsControllerApi.cs +src/mailslurp_netstandard_2x/Api/SmsControllerApi.cs +src/mailslurp_netstandard_2x/Api/TemplateControllerApi.cs +src/mailslurp_netstandard_2x/Api/ToolsControllerApi.cs +src/mailslurp_netstandard_2x/Api/TrackingControllerApi.cs +src/mailslurp_netstandard_2x/Api/UserControllerApi.cs +src/mailslurp_netstandard_2x/Api/WaitForControllerApi.cs +src/mailslurp_netstandard_2x/Api/WebhookControllerApi.cs +src/mailslurp_netstandard_2x/Client/ApiClient.cs +src/mailslurp_netstandard_2x/Client/ApiException.cs +src/mailslurp_netstandard_2x/Client/ApiResponse.cs +src/mailslurp_netstandard_2x/Client/ClientUtils.cs +src/mailslurp_netstandard_2x/Client/Configuration.cs +src/mailslurp_netstandard_2x/Client/ExceptionFactory.cs +src/mailslurp_netstandard_2x/Client/GlobalConfiguration.cs +src/mailslurp_netstandard_2x/Client/HttpMethod.cs +src/mailslurp_netstandard_2x/Client/IApiAccessor.cs +src/mailslurp_netstandard_2x/Client/IAsynchronousClient.cs +src/mailslurp_netstandard_2x/Client/IReadableConfiguration.cs +src/mailslurp_netstandard_2x/Client/ISynchronousClient.cs +src/mailslurp_netstandard_2x/Client/Multimap.cs +src/mailslurp_netstandard_2x/Client/OpenAPIDateConverter.cs +src/mailslurp_netstandard_2x/Client/RequestOptions.cs +src/mailslurp_netstandard_2x/Client/RetryConfiguration.cs +src/mailslurp_netstandard_2x/Model/AbstractOpenAPISchema.cs +src/mailslurp_netstandard_2x/Model/AbstractWebhookPayload.cs +src/mailslurp_netstandard_2x/Model/AccountBounceBlockDto.cs +src/mailslurp_netstandard_2x/Model/AliasDto.cs +src/mailslurp_netstandard_2x/Model/AliasProjection.cs +src/mailslurp_netstandard_2x/Model/AttachmentEntity.cs +src/mailslurp_netstandard_2x/Model/AttachmentMetaData.cs +src/mailslurp_netstandard_2x/Model/AttachmentProjection.cs +src/mailslurp_netstandard_2x/Model/BasicAuthOptions.cs +src/mailslurp_netstandard_2x/Model/BounceProjection.cs +src/mailslurp_netstandard_2x/Model/BounceRecipientProjection.cs +src/mailslurp_netstandard_2x/Model/BouncedEmailDto.cs +src/mailslurp_netstandard_2x/Model/BouncedRecipientDto.cs +src/mailslurp_netstandard_2x/Model/BulkSendEmailOptions.cs +src/mailslurp_netstandard_2x/Model/CanSendEmailResults.cs +src/mailslurp_netstandard_2x/Model/CheckEmailBodyFeatureSupportResults.cs +src/mailslurp_netstandard_2x/Model/CheckEmailBodyResults.cs +src/mailslurp_netstandard_2x/Model/CheckEmailClientSupportOptions.cs +src/mailslurp_netstandard_2x/Model/CheckEmailClientSupportResults.cs +src/mailslurp_netstandard_2x/Model/CheckEmailFeaturesClientSupportOptions.cs +src/mailslurp_netstandard_2x/Model/CheckEmailFeaturesClientSupportResults.cs +src/mailslurp_netstandard_2x/Model/Complaint.cs +src/mailslurp_netstandard_2x/Model/ConditionOption.cs +src/mailslurp_netstandard_2x/Model/ConnectorDto.cs +src/mailslurp_netstandard_2x/Model/ConnectorImapConnectionDto.cs +src/mailslurp_netstandard_2x/Model/ConnectorProjection.cs +src/mailslurp_netstandard_2x/Model/ConnectorSmtpConnectionDto.cs +src/mailslurp_netstandard_2x/Model/ConnectorSyncEventDto.cs +src/mailslurp_netstandard_2x/Model/ConnectorSyncEventProjection.cs +src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResult.cs +src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultException.cs +src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultExceptionCause.cs +src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultExceptionCauseStackTraceInner.cs +src/mailslurp_netstandard_2x/Model/ConnectorSyncResult.cs +src/mailslurp_netstandard_2x/Model/ContactDto.cs +src/mailslurp_netstandard_2x/Model/ContactProjection.cs +src/mailslurp_netstandard_2x/Model/ContentMatchOptions.cs +src/mailslurp_netstandard_2x/Model/CountDto.cs +src/mailslurp_netstandard_2x/Model/CreateAliasOptions.cs +src/mailslurp_netstandard_2x/Model/CreateConnectorImapConnectionOptions.cs +src/mailslurp_netstandard_2x/Model/CreateConnectorOptions.cs +src/mailslurp_netstandard_2x/Model/CreateConnectorSmtpConnectionOptions.cs +src/mailslurp_netstandard_2x/Model/CreateContactOptions.cs +src/mailslurp_netstandard_2x/Model/CreateDomainOptions.cs +src/mailslurp_netstandard_2x/Model/CreateEmergencyAddressOptions.cs +src/mailslurp_netstandard_2x/Model/CreateGroupOptions.cs +src/mailslurp_netstandard_2x/Model/CreateInboxDto.cs +src/mailslurp_netstandard_2x/Model/CreateInboxForwarderOptions.cs +src/mailslurp_netstandard_2x/Model/CreateInboxReplierOptions.cs +src/mailslurp_netstandard_2x/Model/CreateInboxRulesetOptions.cs +src/mailslurp_netstandard_2x/Model/CreateTemplateOptions.cs +src/mailslurp_netstandard_2x/Model/CreateTrackingPixelOptions.cs +src/mailslurp_netstandard_2x/Model/CreateWebhookOptions.cs +src/mailslurp_netstandard_2x/Model/DNSLookupOptions.cs +src/mailslurp_netstandard_2x/Model/DNSLookupResult.cs +src/mailslurp_netstandard_2x/Model/DNSLookupResults.cs +src/mailslurp_netstandard_2x/Model/DNSLookupsOptions.cs +src/mailslurp_netstandard_2x/Model/DeliveryStatusDto.cs +src/mailslurp_netstandard_2x/Model/DescribeDomainOptions.cs +src/mailslurp_netstandard_2x/Model/DescribeMailServerDomainResult.cs +src/mailslurp_netstandard_2x/Model/DomainDto.cs +src/mailslurp_netstandard_2x/Model/DomainGroup.cs +src/mailslurp_netstandard_2x/Model/DomainGroupsDto.cs +src/mailslurp_netstandard_2x/Model/DomainInformation.cs +src/mailslurp_netstandard_2x/Model/DomainIssuesDto.cs +src/mailslurp_netstandard_2x/Model/DomainNameRecord.cs +src/mailslurp_netstandard_2x/Model/DomainPreview.cs +src/mailslurp_netstandard_2x/Model/DownloadAttachmentDto.cs +src/mailslurp_netstandard_2x/Model/Email.cs +src/mailslurp_netstandard_2x/Model/EmailAnalysis.cs +src/mailslurp_netstandard_2x/Model/EmailContentMatchResult.cs +src/mailslurp_netstandard_2x/Model/EmailContentPartResult.cs +src/mailslurp_netstandard_2x/Model/EmailFeatureCategoryName.cs +src/mailslurp_netstandard_2x/Model/EmailFeatureFamilyName.cs +src/mailslurp_netstandard_2x/Model/EmailFeatureFamilyStatistics.cs +src/mailslurp_netstandard_2x/Model/EmailFeatureNames.cs +src/mailslurp_netstandard_2x/Model/EmailFeatureOverview.cs +src/mailslurp_netstandard_2x/Model/EmailFeaturePlatformName.cs +src/mailslurp_netstandard_2x/Model/EmailFeaturePlatformStatistics.cs +src/mailslurp_netstandard_2x/Model/EmailFeatureSupportFlags.cs +src/mailslurp_netstandard_2x/Model/EmailFeatureSupportResult.cs +src/mailslurp_netstandard_2x/Model/EmailFeatureSupportStatusPercentage.cs +src/mailslurp_netstandard_2x/Model/EmailFeatureVersionStatistics.cs +src/mailslurp_netstandard_2x/Model/EmailHtmlDto.cs +src/mailslurp_netstandard_2x/Model/EmailLinksResult.cs +src/mailslurp_netstandard_2x/Model/EmailPreview.cs +src/mailslurp_netstandard_2x/Model/EmailPreviewUrls.cs +src/mailslurp_netstandard_2x/Model/EmailProjection.cs +src/mailslurp_netstandard_2x/Model/EmailRecipients.cs +src/mailslurp_netstandard_2x/Model/EmailScreenshotResult.cs +src/mailslurp_netstandard_2x/Model/EmailTextLinesResult.cs +src/mailslurp_netstandard_2x/Model/EmailValidationRequestDto.cs +src/mailslurp_netstandard_2x/Model/EmailVerificationResult.cs +src/mailslurp_netstandard_2x/Model/EmergencyAddress.cs +src/mailslurp_netstandard_2x/Model/EmergencyAddressDto.cs +src/mailslurp_netstandard_2x/Model/EmptyResponseDto.cs +src/mailslurp_netstandard_2x/Model/ExpirationDefaults.cs +src/mailslurp_netstandard_2x/Model/ExpiredInboxDto.cs +src/mailslurp_netstandard_2x/Model/ExpiredInboxRecordProjection.cs +src/mailslurp_netstandard_2x/Model/ExportLink.cs +src/mailslurp_netstandard_2x/Model/ExportOptions.cs +src/mailslurp_netstandard_2x/Model/FakeEmailDto.cs +src/mailslurp_netstandard_2x/Model/FakeEmailPreview.cs +src/mailslurp_netstandard_2x/Model/FakeEmailResult.cs +src/mailslurp_netstandard_2x/Model/FilterBouncedRecipientsOptions.cs +src/mailslurp_netstandard_2x/Model/FilterBouncedRecipientsResult.cs +src/mailslurp_netstandard_2x/Model/FlushExpiredInboxesResult.cs +src/mailslurp_netstandard_2x/Model/ForwardEmailOptions.cs +src/mailslurp_netstandard_2x/Model/GenerateBimiRecordOptions.cs +src/mailslurp_netstandard_2x/Model/GenerateBimiRecordResults.cs +src/mailslurp_netstandard_2x/Model/GenerateDmarcRecordOptions.cs +src/mailslurp_netstandard_2x/Model/GenerateDmarcRecordResults.cs +src/mailslurp_netstandard_2x/Model/GenerateMtaStsRecordOptions.cs +src/mailslurp_netstandard_2x/Model/GenerateMtaStsRecordResults.cs +src/mailslurp_netstandard_2x/Model/GenerateTlsReportingRecordOptions.cs +src/mailslurp_netstandard_2x/Model/GenerateTlsReportingRecordResults.cs +src/mailslurp_netstandard_2x/Model/GetEmailScreenshotOptions.cs +src/mailslurp_netstandard_2x/Model/GravatarUrl.cs +src/mailslurp_netstandard_2x/Model/GroupContactsDto.cs +src/mailslurp_netstandard_2x/Model/GroupDto.cs +src/mailslurp_netstandard_2x/Model/GroupProjection.cs +src/mailslurp_netstandard_2x/Model/HTMLValidationResult.cs +src/mailslurp_netstandard_2x/Model/IPAddressResult.cs +src/mailslurp_netstandard_2x/Model/ImageIssue.cs +src/mailslurp_netstandard_2x/Model/ImapAccessDetails.cs +src/mailslurp_netstandard_2x/Model/ImapEmailProjection.cs +src/mailslurp_netstandard_2x/Model/ImapFlagOperationOptions.cs +src/mailslurp_netstandard_2x/Model/ImapMailboxStatus.cs +src/mailslurp_netstandard_2x/Model/ImapServerFetchItem.cs +src/mailslurp_netstandard_2x/Model/ImapServerFetchResult.cs +src/mailslurp_netstandard_2x/Model/ImapServerGetResult.cs +src/mailslurp_netstandard_2x/Model/ImapServerListOptions.cs +src/mailslurp_netstandard_2x/Model/ImapServerListResult.cs +src/mailslurp_netstandard_2x/Model/ImapServerSearchOptions.cs +src/mailslurp_netstandard_2x/Model/ImapServerSearchResult.cs +src/mailslurp_netstandard_2x/Model/ImapServerStatusOptions.cs +src/mailslurp_netstandard_2x/Model/ImapServerStatusResult.cs +src/mailslurp_netstandard_2x/Model/ImapSmtpAccessDetails.cs +src/mailslurp_netstandard_2x/Model/ImapSmtpAccessServers.cs +src/mailslurp_netstandard_2x/Model/ImapUpdateFlagsOptions.cs +src/mailslurp_netstandard_2x/Model/InboxByEmailAddressResult.cs +src/mailslurp_netstandard_2x/Model/InboxByNameResult.cs +src/mailslurp_netstandard_2x/Model/InboxDto.cs +src/mailslurp_netstandard_2x/Model/InboxExistsDto.cs +src/mailslurp_netstandard_2x/Model/InboxForwarderDto.cs +src/mailslurp_netstandard_2x/Model/InboxForwarderEventDto.cs +src/mailslurp_netstandard_2x/Model/InboxForwarderEventProjection.cs +src/mailslurp_netstandard_2x/Model/InboxForwarderTestOptions.cs +src/mailslurp_netstandard_2x/Model/InboxForwarderTestResult.cs +src/mailslurp_netstandard_2x/Model/InboxIdItem.cs +src/mailslurp_netstandard_2x/Model/InboxIdsResult.cs +src/mailslurp_netstandard_2x/Model/InboxPreview.cs +src/mailslurp_netstandard_2x/Model/InboxReplierDto.cs +src/mailslurp_netstandard_2x/Model/InboxReplierEventProjection.cs +src/mailslurp_netstandard_2x/Model/InboxRulesetDto.cs +src/mailslurp_netstandard_2x/Model/InboxRulesetTestOptions.cs +src/mailslurp_netstandard_2x/Model/InboxRulesetTestResult.cs +src/mailslurp_netstandard_2x/Model/JSONSchemaDto.cs +src/mailslurp_netstandard_2x/Model/LinkIssue.cs +src/mailslurp_netstandard_2x/Model/ListUnsubscribeRecipientProjection.cs +src/mailslurp_netstandard_2x/Model/LookupBimiDomainOptions.cs +src/mailslurp_netstandard_2x/Model/LookupBimiDomainResults.cs +src/mailslurp_netstandard_2x/Model/LookupDmarcDomainOptions.cs +src/mailslurp_netstandard_2x/Model/LookupDmarcDomainResults.cs +src/mailslurp_netstandard_2x/Model/LookupMtaStsDomainOptions.cs +src/mailslurp_netstandard_2x/Model/LookupMtaStsDomainResults.cs +src/mailslurp_netstandard_2x/Model/LookupTlsReportingDomainOptions.cs +src/mailslurp_netstandard_2x/Model/LookupTlsReportingDomainResults.cs +src/mailslurp_netstandard_2x/Model/MatchOption.cs +src/mailslurp_netstandard_2x/Model/MatchOptions.cs +src/mailslurp_netstandard_2x/Model/MissedEmailDto.cs +src/mailslurp_netstandard_2x/Model/MissedEmailProjection.cs +src/mailslurp_netstandard_2x/Model/NameServerRecord.cs +src/mailslurp_netstandard_2x/Model/NewFakeEmailAddressResult.cs +src/mailslurp_netstandard_2x/Model/OrganizationInboxProjection.cs +src/mailslurp_netstandard_2x/Model/PageAlias.cs +src/mailslurp_netstandard_2x/Model/PageAttachmentEntity.cs +src/mailslurp_netstandard_2x/Model/PageBouncedEmail.cs +src/mailslurp_netstandard_2x/Model/PageBouncedRecipients.cs +src/mailslurp_netstandard_2x/Model/PageComplaint.cs +src/mailslurp_netstandard_2x/Model/PageConnector.cs +src/mailslurp_netstandard_2x/Model/PageConnectorSyncEvents.cs +src/mailslurp_netstandard_2x/Model/PageContactProjection.cs +src/mailslurp_netstandard_2x/Model/PageDeliveryStatus.cs +src/mailslurp_netstandard_2x/Model/PageEmailPreview.cs +src/mailslurp_netstandard_2x/Model/PageEmailProjection.cs +src/mailslurp_netstandard_2x/Model/PageEmailValidationRequest.cs +src/mailslurp_netstandard_2x/Model/PageExpiredInboxRecordProjection.cs +src/mailslurp_netstandard_2x/Model/PageGroupProjection.cs +src/mailslurp_netstandard_2x/Model/PageInboxForwarderDto.cs +src/mailslurp_netstandard_2x/Model/PageInboxForwarderEvents.cs +src/mailslurp_netstandard_2x/Model/PageInboxProjection.cs +src/mailslurp_netstandard_2x/Model/PageInboxReplierDto.cs +src/mailslurp_netstandard_2x/Model/PageInboxReplierEvents.cs +src/mailslurp_netstandard_2x/Model/PageInboxRulesetDto.cs +src/mailslurp_netstandard_2x/Model/PageListUnsubscribeRecipients.cs +src/mailslurp_netstandard_2x/Model/PageMissedEmailProjection.cs +src/mailslurp_netstandard_2x/Model/PageOrganizationInboxProjection.cs +src/mailslurp_netstandard_2x/Model/PagePhoneNumberProjection.cs +src/mailslurp_netstandard_2x/Model/PageScheduledJobs.cs +src/mailslurp_netstandard_2x/Model/PageSentEmailProjection.cs +src/mailslurp_netstandard_2x/Model/PageSentEmailWithQueueProjection.cs +src/mailslurp_netstandard_2x/Model/PageSmsProjection.cs +src/mailslurp_netstandard_2x/Model/PageTemplateProjection.cs +src/mailslurp_netstandard_2x/Model/PageThreadProjection.cs +src/mailslurp_netstandard_2x/Model/PageTrackingPixelProjection.cs +src/mailslurp_netstandard_2x/Model/PageUnknownMissedEmailProjection.cs +src/mailslurp_netstandard_2x/Model/PageWebhookProjection.cs +src/mailslurp_netstandard_2x/Model/PageWebhookResult.cs +src/mailslurp_netstandard_2x/Model/PageableObject.cs +src/mailslurp_netstandard_2x/Model/PhoneNumberDto.cs +src/mailslurp_netstandard_2x/Model/PhoneNumberProjection.cs +src/mailslurp_netstandard_2x/Model/PhonePlanDto.cs +src/mailslurp_netstandard_2x/Model/RawEmailJson.cs +src/mailslurp_netstandard_2x/Model/Recipient.cs +src/mailslurp_netstandard_2x/Model/ReplyForSms.cs +src/mailslurp_netstandard_2x/Model/ReplyToAliasEmailOptions.cs +src/mailslurp_netstandard_2x/Model/ReplyToEmailOptions.cs +src/mailslurp_netstandard_2x/Model/ScheduledJob.cs +src/mailslurp_netstandard_2x/Model/ScheduledJobDto.cs +src/mailslurp_netstandard_2x/Model/SearchEmailsOptions.cs +src/mailslurp_netstandard_2x/Model/SearchInboxesOptions.cs +src/mailslurp_netstandard_2x/Model/SendEmailBodyPart.cs +src/mailslurp_netstandard_2x/Model/SendEmailOptions.cs +src/mailslurp_netstandard_2x/Model/SendSMTPEnvelopeOptions.cs +src/mailslurp_netstandard_2x/Model/SendWithQueueResult.cs +src/mailslurp_netstandard_2x/Model/Sender.cs +src/mailslurp_netstandard_2x/Model/SentEmailDto.cs +src/mailslurp_netstandard_2x/Model/SentEmailProjection.cs +src/mailslurp_netstandard_2x/Model/SentSmsDto.cs +src/mailslurp_netstandard_2x/Model/ServerEndpoints.cs +src/mailslurp_netstandard_2x/Model/SetInboxFavouritedOptions.cs +src/mailslurp_netstandard_2x/Model/SimpleSendEmailOptions.cs +src/mailslurp_netstandard_2x/Model/SmsDto.cs +src/mailslurp_netstandard_2x/Model/SmsMatchOption.cs +src/mailslurp_netstandard_2x/Model/SmsPreview.cs +src/mailslurp_netstandard_2x/Model/SmsProjection.cs +src/mailslurp_netstandard_2x/Model/SmsReplyOptions.cs +src/mailslurp_netstandard_2x/Model/SmtpAccessDetails.cs +src/mailslurp_netstandard_2x/Model/SortObject.cs +src/mailslurp_netstandard_2x/Model/SpellingIssue.cs +src/mailslurp_netstandard_2x/Model/TemplateDto.cs +src/mailslurp_netstandard_2x/Model/TemplatePreview.cs +src/mailslurp_netstandard_2x/Model/TemplateProjection.cs +src/mailslurp_netstandard_2x/Model/TemplateVariable.cs +src/mailslurp_netstandard_2x/Model/TestInboxRulesetReceivingOptions.cs +src/mailslurp_netstandard_2x/Model/TestInboxRulesetReceivingResult.cs +src/mailslurp_netstandard_2x/Model/TestInboxRulesetSendingOptions.cs +src/mailslurp_netstandard_2x/Model/TestInboxRulesetSendingResult.cs +src/mailslurp_netstandard_2x/Model/TestNewInboxForwarderOptions.cs +src/mailslurp_netstandard_2x/Model/TestNewInboxRulesetOptions.cs +src/mailslurp_netstandard_2x/Model/TestPhoneNumberOptions.cs +src/mailslurp_netstandard_2x/Model/ThreadProjection.cs +src/mailslurp_netstandard_2x/Model/TrackingPixelDto.cs +src/mailslurp_netstandard_2x/Model/TrackingPixelProjection.cs +src/mailslurp_netstandard_2x/Model/UnknownMissedEmailProjection.cs +src/mailslurp_netstandard_2x/Model/UnreadCount.cs +src/mailslurp_netstandard_2x/Model/UnseenErrorCountDto.cs +src/mailslurp_netstandard_2x/Model/UpdateAliasOptions.cs +src/mailslurp_netstandard_2x/Model/UpdateDomainOptions.cs +src/mailslurp_netstandard_2x/Model/UpdateGroupContacts.cs +src/mailslurp_netstandard_2x/Model/UpdateImapAccessOptions.cs +src/mailslurp_netstandard_2x/Model/UpdateInboxOptions.cs +src/mailslurp_netstandard_2x/Model/UpdateInboxReplierOptions.cs +src/mailslurp_netstandard_2x/Model/UpdateSmtpAccessOptions.cs +src/mailslurp_netstandard_2x/Model/UploadAttachmentOptions.cs +src/mailslurp_netstandard_2x/Model/UploadMultipartFormRequest.cs +src/mailslurp_netstandard_2x/Model/UserInfoDto.cs +src/mailslurp_netstandard_2x/Model/ValidateEmailAddressListOptions.cs +src/mailslurp_netstandard_2x/Model/ValidateEmailAddressListResult.cs +src/mailslurp_netstandard_2x/Model/ValidationDto.cs +src/mailslurp_netstandard_2x/Model/ValidationMessage.cs +src/mailslurp_netstandard_2x/Model/VerifyEmailAddressOptions.cs +src/mailslurp_netstandard_2x/Model/VerifyWebhookSignatureOptions.cs +src/mailslurp_netstandard_2x/Model/VerifyWebhookSignatureResults.cs +src/mailslurp_netstandard_2x/Model/WaitForConditions.cs +src/mailslurp_netstandard_2x/Model/WaitForSingleSmsOptions.cs +src/mailslurp_netstandard_2x/Model/WaitForSmsConditions.cs +src/mailslurp_netstandard_2x/Model/WebhookBouncePayload.cs +src/mailslurp_netstandard_2x/Model/WebhookBounceRecipientPayload.cs +src/mailslurp_netstandard_2x/Model/WebhookDeliveryStatusPayload.cs +src/mailslurp_netstandard_2x/Model/WebhookDto.cs +src/mailslurp_netstandard_2x/Model/WebhookEmailOpenedPayload.cs +src/mailslurp_netstandard_2x/Model/WebhookEmailReadPayload.cs +src/mailslurp_netstandard_2x/Model/WebhookHeaderNameValue.cs +src/mailslurp_netstandard_2x/Model/WebhookHeaders.cs +src/mailslurp_netstandard_2x/Model/WebhookNewAttachmentPayload.cs +src/mailslurp_netstandard_2x/Model/WebhookNewContactPayload.cs +src/mailslurp_netstandard_2x/Model/WebhookNewEmailPayload.cs +src/mailslurp_netstandard_2x/Model/WebhookNewSmsPayload.cs +src/mailslurp_netstandard_2x/Model/WebhookProjection.cs +src/mailslurp_netstandard_2x/Model/WebhookRedriveAllResult.cs +src/mailslurp_netstandard_2x/Model/WebhookRedriveResult.cs +src/mailslurp_netstandard_2x/Model/WebhookResultDto.cs +src/mailslurp_netstandard_2x/Model/WebhookTestRequest.cs +src/mailslurp_netstandard_2x/Model/WebhookTestResponse.cs +src/mailslurp_netstandard_2x/Model/WebhookTestResult.cs +src/mailslurp_netstandard_2x/mailslurp_netstandard_2x.csproj diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 00000000..0df17dd0 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.2.1 \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..79326edc --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright 2024 MailSlurp Email API (Provided by Pettman OÜ, Estonia) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 00000000..b94f9fa8 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# MailSlurp C\# Client .NET Standard 2.x + +> Create real email addresses on demand. Send and receive emails and attachments from code and tests using CSharp (C# NET Standard 2.1). + +MailSlurp is an email API service that lets you create real email addresses in code. You can then send and receive emails and attachments in C# applications and tests. + +## Quick links + +- [Method Documentation](https://github.com/mailslurp/mailslurp-client-csharp-netstandard-2x) +- [NuGet Package](https://www.nuget.org/packages/mailslurp_netstandard_2x/) +- [Code Examples](https://github.com/mailslurp/examples) +- [Github Source](https://github.com/mailslurp/mailslurp-client-csharp-netstandard-2x) + +### Tutorials + +- [SpecFlow email integration test](https://www.mailslurp.com/examples/specflow-test-email-accounts/) +- [Selenium DotNet email tutorial](https://www.mailslurp.com/examples/test-emails-selenium-dotnet-csharp/) + +## Get started + +This section describes how to get up and running with the CSharp client. The client targets `NET Standard 2.1` and greater. If you need a different target see the .NET Standard targets below or consider calling the [REST API](https://docs.mailslurp.com/api/). + +- [.NET Core 2.1](https://github.com/mailslurp/mailslurp-client-csharp) +- [.NET Standard 2.1](https://github.com/mailslurp/mailslurp-client-csharp-netstandard-2x) + +See the method documentation for a [list of all functions](https://github.com/mailslurp/mailslurp-client-csharp-netstandard-2x) + + +### Install NuGet Package + +MailSlurp's CSharp library is [hosted on NuGet](https://www.nuget.org/packages/mailslurp_netstandard_2x/). + +#### With .NET CLI + +```bash +dotnet add package mailslurp_netstandard_2x +dotnet restore +``` diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..519979d9 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,4 @@ +# Security + +This client calls the MailSlurp API endpoints. Connections should be made over secure HTTPS using your secure API Token. Do not share or commit the token if you can avoid doing so. +To report security issues or talk with MailSlurp support please email [contact@mailslurp.dev](mailto:contact@mailslurp.dev). diff --git a/SUPPORT.md b/SUPPORT.md new file mode 100644 index 00000000..1727eec5 --- /dev/null +++ b/SUPPORT.md @@ -0,0 +1,4 @@ +# Support + +To report issues or talk with MailSlurp support please email [contact@mailslurp.dev](mailto:contact@mailslurp.dev). +Alternatively you can visit our [support portal](https://www.mailslurp.com/support/) or open a ticket in the corresponding [Github repository](https://www.github.com/mailslurp). diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..ccc050d1 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,9 @@ +# auto-generated by OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator) +# +image: Visual Studio 2019 +clone_depth: 1 +build_script: +- dotnet build -c Release +- dotnet test -c Release +after_build: +- dotnet pack .\src\mailslurp_netstandard_2x\mailslurp_netstandard_2x.csproj -o ../../output -c Release --no-build diff --git a/docs/AbstractWebhookPayload.md b/docs/AbstractWebhookPayload.md new file mode 100644 index 00000000..64385c8f --- /dev/null +++ b/docs/AbstractWebhookPayload.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.AbstractWebhookPayload +Abstract webhook payload. Use the correct payload type for your webhook event type in order to access all the specific properties for that event. See the `NEW_EMAIL`,`NEW_CONTACT`, `NEW_ATTACHMENT` and `EMAIL_OPENED` payloads for the properties available for those events. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | | +**MessageId** | **string** | | +**WebhookId** | **Guid** | | +**WebhookName** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/AccountBounceBlockDto.md b/docs/AccountBounceBlockDto.md new file mode 100644 index 00000000..86f4a3c7 --- /dev/null +++ b/docs/AccountBounceBlockDto.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.AccountBounceBlockDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsSendingBlocked** | **bool** | | +**BounceCount** | **long** | | +**BounceCountToday** | **long** | | +**MaximumDailyBounces** | **long** | | +**MaximumAccountBounces** | **long** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/AliasControllerApi.md b/docs/AliasControllerApi.md new file mode 100644 index 00000000..83050e5b --- /dev/null +++ b/docs/AliasControllerApi.md @@ -0,0 +1,1112 @@ +# mailslurp_netstandard_2x.Api.AliasControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateAlias**](AliasControllerApi#createalias) | **POST** /aliases | Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. | +| [**DeleteAlias**](AliasControllerApi#deletealias) | **DELETE** /aliases/{aliasId} | Delete an email alias | +| [**GetAlias**](AliasControllerApi#getalias) | **GET** /aliases/{aliasId} | Get an email alias | +| [**GetAliasEmails**](AliasControllerApi#getaliasemails) | **GET** /aliases/{aliasId}/emails | Get emails for an alias | +| [**GetAliasThreads**](AliasControllerApi#getaliasthreads) | **GET** /aliases/{aliasId}/threads | Get threads created for an alias | +| [**GetAliases**](AliasControllerApi#getaliases) | **GET** /aliases | Get all email aliases you have created | +| [**GetThread**](AliasControllerApi#getthread) | **GET** /aliases/threads/{threadId} | Get a thread | +| [**GetThreadsPaginated**](AliasControllerApi#getthreadspaginated) | **GET** /aliases/threads | Get all threads | +| [**ReplyToAliasEmail**](AliasControllerApi#replytoaliasemail) | **PUT** /aliases/{aliasId}/emails/{emailId} | Reply to an email | +| [**SendAliasEmail**](AliasControllerApi#sendaliasemail) | **POST** /aliases/{aliasId}/emails | Send an email from an alias inbox | +| [**UpdateAlias**](AliasControllerApi#updatealias) | **PUT** /aliases/{aliasId} | Update an email alias | + + +# **CreateAlias** +> AliasDto CreateAlias (CreateAliasOptions createAliasOptions) + +Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. + +Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateAliasExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AliasControllerApi(config); + var createAliasOptions = new CreateAliasOptions(); // CreateAliasOptions | + + try + { + // Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. + AliasDto result = apiInstance.CreateAlias(createAliasOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AliasControllerApi.CreateAlias: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateAliasWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. + ApiResponse response = apiInstance.CreateAliasWithHttpInfo(createAliasOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AliasControllerApi.CreateAliasWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createAliasOptions** | [**CreateAliasOptions**](CreateAliasOptions) | | | + +### Return type + +[**AliasDto**](AliasDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteAlias** +> void DeleteAlias (Guid aliasId) + +Delete an email alias + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAliasExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AliasControllerApi(config); + var aliasId = "aliasId_example"; // Guid | + + try + { + // Delete an email alias + apiInstance.DeleteAlias(aliasId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AliasControllerApi.DeleteAlias: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAliasWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete an email alias + apiInstance.DeleteAliasWithHttpInfo(aliasId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AliasControllerApi.DeleteAliasWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **aliasId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAlias** +> AliasDto GetAlias (Guid aliasId) + +Get an email alias + +Get an email alias by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAliasExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AliasControllerApi(config); + var aliasId = "aliasId_example"; // Guid | + + try + { + // Get an email alias + AliasDto result = apiInstance.GetAlias(aliasId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AliasControllerApi.GetAlias: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAliasWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an email alias + ApiResponse response = apiInstance.GetAliasWithHttpInfo(aliasId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AliasControllerApi.GetAliasWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **aliasId** | **Guid** | | | + +### Return type + +[**AliasDto**](AliasDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAliasEmails** +> PageEmailProjection GetAliasEmails (Guid aliasId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get emails for an alias + +Get paginated emails for an alias by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAliasEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AliasControllerApi(config); + var aliasId = "aliasId_example"; // Guid | + var page = 0; // int? | Optional page index alias email list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size alias email list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by sent after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by sent before given date time (optional) + + try + { + // Get emails for an alias + PageEmailProjection result = apiInstance.GetAliasEmails(aliasId, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AliasControllerApi.GetAliasEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAliasEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get emails for an alias + ApiResponse response = apiInstance.GetAliasEmailsWithHttpInfo(aliasId, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AliasControllerApi.GetAliasEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **aliasId** | **Guid** | | | +| **page** | **int?** | Optional page index alias email list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size alias email list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Optional filter by sent after given date time | [optional] | +| **before** | **DateTime?** | Optional filter by sent before given date time | [optional] | + +### Return type + +[**PageEmailProjection**](PageEmailProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAliasThreads** +> PageThreadProjection GetAliasThreads (Guid aliasId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get threads created for an alias + +Returns threads created for an email alias in paginated form + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAliasThreadsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AliasControllerApi(config); + var aliasId = "aliasId_example"; // Guid | + var page = 0; // int? | Optional page index in thread list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in thread list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by sent after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by sent before given date time (optional) + + try + { + // Get threads created for an alias + PageThreadProjection result = apiInstance.GetAliasThreads(aliasId, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AliasControllerApi.GetAliasThreads: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAliasThreadsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get threads created for an alias + ApiResponse response = apiInstance.GetAliasThreadsWithHttpInfo(aliasId, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AliasControllerApi.GetAliasThreadsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **aliasId** | **Guid** | | | +| **page** | **int?** | Optional page index in thread list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in thread list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Optional filter by sent after given date time | [optional] | +| **before** | **DateTime?** | Optional filter by sent before given date time | [optional] | + +### Return type + +[**PageThreadProjection**](PageThreadProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAliases** +> PageAlias GetAliases (string search = null, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get all email aliases you have created + +Get all email aliases in paginated form + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAliasesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AliasControllerApi(config); + var search = "search_example"; // string | Optional search term (optional) + var page = 0; // int? | Optional page index in alias list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in alias list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get all email aliases you have created + PageAlias result = apiInstance.GetAliases(search, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AliasControllerApi.GetAliases: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAliasesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all email aliases you have created + ApiResponse response = apiInstance.GetAliasesWithHttpInfo(search, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AliasControllerApi.GetAliasesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **search** | **string** | Optional search term | [optional] | +| **page** | **int?** | Optional page index in alias list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in alias list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageAlias**](PageAlias) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetThread** +> ThreadProjection GetThread (Guid threadId) + +Get a thread + +Return a thread associated with an alias + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetThreadExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AliasControllerApi(config); + var threadId = "threadId_example"; // Guid | + + try + { + // Get a thread + ThreadProjection result = apiInstance.GetThread(threadId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AliasControllerApi.GetThread: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetThreadWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a thread + ApiResponse response = apiInstance.GetThreadWithHttpInfo(threadId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AliasControllerApi.GetThreadWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **threadId** | **Guid** | | | + +### Return type + +[**ThreadProjection**](ThreadProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetThreadsPaginated** +> PageThreadProjection GetThreadsPaginated (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get all threads + +Returns threads created for all aliases in paginated form + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetThreadsPaginatedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AliasControllerApi(config); + var page = 0; // int? | Optional page index in thread list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in thread list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by sent after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by sent before given date time (optional) + + try + { + // Get all threads + PageThreadProjection result = apiInstance.GetThreadsPaginated(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AliasControllerApi.GetThreadsPaginated: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetThreadsPaginatedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all threads + ApiResponse response = apiInstance.GetThreadsPaginatedWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AliasControllerApi.GetThreadsPaginatedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in thread list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in thread list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Optional filter by sent after given date time | [optional] | +| **before** | **DateTime?** | Optional filter by sent before given date time | [optional] | + +### Return type + +[**PageThreadProjection**](PageThreadProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ReplyToAliasEmail** +> SentEmailDto ReplyToAliasEmail (Guid aliasId, Guid emailId, ReplyToAliasEmailOptions replyToAliasEmailOptions) + +Reply to an email + +Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ReplyToAliasEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AliasControllerApi(config); + var aliasId = "aliasId_example"; // Guid | ID of the alias that email belongs to + var emailId = "emailId_example"; // Guid | ID of the email that should be replied to + var replyToAliasEmailOptions = new ReplyToAliasEmailOptions(); // ReplyToAliasEmailOptions | + + try + { + // Reply to an email + SentEmailDto result = apiInstance.ReplyToAliasEmail(aliasId, emailId, replyToAliasEmailOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AliasControllerApi.ReplyToAliasEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ReplyToAliasEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Reply to an email + ApiResponse response = apiInstance.ReplyToAliasEmailWithHttpInfo(aliasId, emailId, replyToAliasEmailOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AliasControllerApi.ReplyToAliasEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **aliasId** | **Guid** | ID of the alias that email belongs to | | +| **emailId** | **Guid** | ID of the email that should be replied to | | +| **replyToAliasEmailOptions** | [**ReplyToAliasEmailOptions**](ReplyToAliasEmailOptions) | | | + +### Return type + +[**SentEmailDto**](SentEmailDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SendAliasEmail** +> SentEmailDto SendAliasEmail (Guid aliasId, SendEmailOptions sendEmailOptions) + +Send an email from an alias inbox + +Send an email from an alias. Replies to the email will be forwarded to the alias masked email address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SendAliasEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AliasControllerApi(config); + var aliasId = "aliasId_example"; // Guid | + var sendEmailOptions = new SendEmailOptions(); // SendEmailOptions | + + try + { + // Send an email from an alias inbox + SentEmailDto result = apiInstance.SendAliasEmail(aliasId, sendEmailOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AliasControllerApi.SendAliasEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SendAliasEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send an email from an alias inbox + ApiResponse response = apiInstance.SendAliasEmailWithHttpInfo(aliasId, sendEmailOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AliasControllerApi.SendAliasEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **aliasId** | **Guid** | | | +| **sendEmailOptions** | [**SendEmailOptions**](SendEmailOptions) | | | + +### Return type + +[**SentEmailDto**](SentEmailDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UpdateAlias** +> AliasDto UpdateAlias (Guid aliasId, UpdateAliasOptions updateAliasOptions) + +Update an email alias + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UpdateAliasExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AliasControllerApi(config); + var aliasId = "aliasId_example"; // Guid | + var updateAliasOptions = new UpdateAliasOptions(); // UpdateAliasOptions | + + try + { + // Update an email alias + AliasDto result = apiInstance.UpdateAlias(aliasId, updateAliasOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AliasControllerApi.UpdateAlias: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UpdateAliasWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Update an email alias + ApiResponse response = apiInstance.UpdateAliasWithHttpInfo(aliasId, updateAliasOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AliasControllerApi.UpdateAliasWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **aliasId** | **Guid** | | | +| **updateAliasOptions** | [**UpdateAliasOptions**](UpdateAliasOptions) | | | + +### Return type + +[**AliasDto**](AliasDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Accepted | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/AliasDto.md b/docs/AliasDto.md new file mode 100644 index 00000000..71b7422d --- /dev/null +++ b/docs/AliasDto.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.AliasDto +Email alias representation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**EmailAddress** | **string** | The alias's email address for receiving email | +**MaskedEmailAddress** | **string** | The underlying email address that is hidden and will received forwarded email | [optional] +**UserId** | **Guid** | | +**InboxId** | **Guid** | Inbox that is associated with the alias | +**Name** | **string** | | [optional] +**UseThreads** | **bool?** | If alias will generate response threads or not when email are received by it | [optional] +**IsVerified** | **bool** | Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account | +**DomainId** | **Guid?** | Domain ID associated with the alias | [optional] +**CreatedAt** | **DateTime?** | | [optional] +**UpdatedAt** | **DateTime?** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/AliasProjection.md b/docs/AliasProjection.md new file mode 100644 index 00000000..c42cf0db --- /dev/null +++ b/docs/AliasProjection.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.AliasProjection +Representation of a alias + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailAddress** | **string** | | +**InboxId** | **Guid** | | +**UserId** | **Guid** | | +**UseThreads** | **bool** | | [optional] +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | +**Name** | **string** | | [optional] +**Id** | **Guid** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/AttachmentControllerApi.md b/docs/AttachmentControllerApi.md new file mode 100644 index 00000000..b011f2c2 --- /dev/null +++ b/docs/AttachmentControllerApi.md @@ -0,0 +1,980 @@ +# mailslurp_netstandard_2x.Api.AttachmentControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**DeleteAllAttachments**](AttachmentControllerApi#deleteallattachments) | **DELETE** /attachments | Delete all attachments | +| [**DeleteAttachment**](AttachmentControllerApi#deleteattachment) | **DELETE** /attachments/{attachmentId} | Delete an attachment | +| [**DownloadAttachmentAsBase64Encoded**](AttachmentControllerApi#downloadattachmentasbase64encoded) | **GET** /attachments/{attachmentId}/base64 | Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. | +| [**DownloadAttachmentAsBytes**](AttachmentControllerApi#downloadattachmentasbytes) | **GET** /attachments/{attachmentId}/bytes | Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. | +| [**GetAttachment**](AttachmentControllerApi#getattachment) | **GET** /attachments/{attachmentId} | Get an attachment entity | +| [**GetAttachmentInfo**](AttachmentControllerApi#getattachmentinfo) | **GET** /attachments/{attachmentId}/metadata | Get email attachment metadata information | +| [**GetAttachments**](AttachmentControllerApi#getattachments) | **GET** /attachments | Get email attachments | +| [**UploadAttachment**](AttachmentControllerApi#uploadattachment) | **POST** /attachments | Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. | +| [**UploadAttachmentBytes**](AttachmentControllerApi#uploadattachmentbytes) | **POST** /attachments/bytes | Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. | +| [**UploadMultipartForm**](AttachmentControllerApi#uploadmultipartform) | **POST** /attachments/multipart | Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. | + + +# **DeleteAllAttachments** +> void DeleteAllAttachments () + +Delete all attachments + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAllAttachmentsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AttachmentControllerApi(config); + + try + { + // Delete all attachments + apiInstance.DeleteAllAttachments(); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AttachmentControllerApi.DeleteAllAttachments: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAllAttachmentsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete all attachments + apiInstance.DeleteAllAttachmentsWithHttpInfo(); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AttachmentControllerApi.DeleteAllAttachmentsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteAttachment** +> void DeleteAttachment (string attachmentId) + +Delete an attachment + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAttachmentExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AttachmentControllerApi(config); + var attachmentId = "attachmentId_example"; // string | ID of attachment + + try + { + // Delete an attachment + apiInstance.DeleteAttachment(attachmentId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AttachmentControllerApi.DeleteAttachment: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAttachmentWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete an attachment + apiInstance.DeleteAttachmentWithHttpInfo(attachmentId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AttachmentControllerApi.DeleteAttachmentWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **attachmentId** | **string** | ID of attachment | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DownloadAttachmentAsBase64Encoded** +> DownloadAttachmentDto DownloadAttachmentAsBase64Encoded (string attachmentId) + +Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. + +Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DownloadAttachmentAsBase64EncodedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AttachmentControllerApi(config); + var attachmentId = "attachmentId_example"; // string | ID of attachment + + try + { + // Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. + DownloadAttachmentDto result = apiInstance.DownloadAttachmentAsBase64Encoded(attachmentId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AttachmentControllerApi.DownloadAttachmentAsBase64Encoded: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DownloadAttachmentAsBase64EncodedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. + ApiResponse response = apiInstance.DownloadAttachmentAsBase64EncodedWithHttpInfo(attachmentId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AttachmentControllerApi.DownloadAttachmentAsBase64EncodedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **attachmentId** | **string** | ID of attachment | | + +### Return type + +[**DownloadAttachmentDto**](DownloadAttachmentDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DownloadAttachmentAsBytes** +> byte[] DownloadAttachmentAsBytes (string attachmentId) + +Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. + +Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DownloadAttachmentAsBytesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AttachmentControllerApi(config); + var attachmentId = "attachmentId_example"; // string | ID of attachment + + try + { + // Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. + byte[] result = apiInstance.DownloadAttachmentAsBytes(attachmentId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AttachmentControllerApi.DownloadAttachmentAsBytes: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DownloadAttachmentAsBytesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. + ApiResponse response = apiInstance.DownloadAttachmentAsBytesWithHttpInfo(attachmentId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AttachmentControllerApi.DownloadAttachmentAsBytesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **attachmentId** | **string** | ID of attachment | | + +### Return type + +**byte[]** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/octet-stream + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **0** | default response | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAttachment** +> AttachmentEntity GetAttachment (string attachmentId) + +Get an attachment entity + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAttachmentExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AttachmentControllerApi(config); + var attachmentId = "attachmentId_example"; // string | ID of attachment + + try + { + // Get an attachment entity + AttachmentEntity result = apiInstance.GetAttachment(attachmentId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AttachmentControllerApi.GetAttachment: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAttachmentWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an attachment entity + ApiResponse response = apiInstance.GetAttachmentWithHttpInfo(attachmentId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AttachmentControllerApi.GetAttachmentWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **attachmentId** | **string** | ID of attachment | | + +### Return type + +[**AttachmentEntity**](AttachmentEntity) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAttachmentInfo** +> AttachmentMetaData GetAttachmentInfo (string attachmentId) + +Get email attachment metadata information + +Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAttachmentInfoExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AttachmentControllerApi(config); + var attachmentId = "attachmentId_example"; // string | ID of attachment + + try + { + // Get email attachment metadata information + AttachmentMetaData result = apiInstance.GetAttachmentInfo(attachmentId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AttachmentControllerApi.GetAttachmentInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAttachmentInfoWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email attachment metadata information + ApiResponse response = apiInstance.GetAttachmentInfoWithHttpInfo(attachmentId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AttachmentControllerApi.GetAttachmentInfoWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **attachmentId** | **string** | ID of attachment | | + +### Return type + +[**AttachmentMetaData**](AttachmentMetaData) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAttachments** +> PageAttachmentEntity GetAttachments (int? page = null, int? size = null, string sort = null, string fileNameFilter = null, DateTime? since = null, DateTime? before = null, Guid? inboxId = null) + +Get email attachments + +Get all attachments in paginated response. Each entity contains meta data for the attachment such as `name` and `content-type`. Use the `attachmentId` and the download endpoints to get the file contents. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAttachmentsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AttachmentControllerApi(config); + var page = 0; // int? | Optional page index for list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size for list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var fileNameFilter = "fileNameFilter_example"; // string | Optional file name and content type search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + var inboxId = "inboxId_example"; // Guid? | Optional inboxId to filter attachments by (optional) + + try + { + // Get email attachments + PageAttachmentEntity result = apiInstance.GetAttachments(page, size, sort, fileNameFilter, since, before, inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AttachmentControllerApi.GetAttachments: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAttachmentsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email attachments + ApiResponse response = apiInstance.GetAttachmentsWithHttpInfo(page, size, sort, fileNameFilter, since, before, inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AttachmentControllerApi.GetAttachmentsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index for list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size for list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **fileNameFilter** | **string** | Optional file name and content type search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | +| **inboxId** | **Guid?** | Optional inboxId to filter attachments by | [optional] | + +### Return type + +[**PageAttachmentEntity**](PageAttachmentEntity) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UploadAttachment** +> List<string> UploadAttachment (UploadAttachmentOptions uploadAttachmentOptions) + +Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UploadAttachmentExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AttachmentControllerApi(config); + var uploadAttachmentOptions = new UploadAttachmentOptions(); // UploadAttachmentOptions | + + try + { + // Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. + List result = apiInstance.UploadAttachment(uploadAttachmentOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AttachmentControllerApi.UploadAttachment: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UploadAttachmentWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. + ApiResponse> response = apiInstance.UploadAttachmentWithHttpInfo(uploadAttachmentOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AttachmentControllerApi.UploadAttachmentWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **uploadAttachmentOptions** | [**UploadAttachmentOptions**](UploadAttachmentOptions) | | | + +### Return type + +**List** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UploadAttachmentBytes** +> List<string> UploadAttachmentBytes (string contentType = null, string contentType2 = null, string contentId = null, string filename = null, string filename2 = null) + +Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UploadAttachmentBytesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AttachmentControllerApi(config); + var contentType = "contentType_example"; // string | (optional) + var contentType2 = "contentType_example"; // string | Optional contentType for file. For instance `application/pdf` (optional) + var contentId = "contentId_example"; // string | Optional content ID (CID) to save upload with (optional) + var filename = "filename_example"; // string | Optional filename to save upload with (optional) + var filename2 = "filename_example"; // string | (optional) + + try + { + // Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. + List result = apiInstance.UploadAttachmentBytes(contentType, contentType2, contentId, filename, filename2); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AttachmentControllerApi.UploadAttachmentBytes: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UploadAttachmentBytesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. + ApiResponse> response = apiInstance.UploadAttachmentBytesWithHttpInfo(contentType, contentType2, contentId, filename, filename2); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AttachmentControllerApi.UploadAttachmentBytesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contentType** | **string** | | [optional] | +| **contentType2** | **string** | Optional contentType for file. For instance `application/pdf` | [optional] | +| **contentId** | **string** | Optional content ID (CID) to save upload with | [optional] | +| **filename** | **string** | Optional filename to save upload with | [optional] | +| **filename2** | **string** | | [optional] | + +### Return type + +**List** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UploadMultipartForm** +> List<string> UploadMultipartForm (string contentId = null, string contentType = null, string filename = null, string xFilename = null, UploadMultipartFormRequest uploadMultipartFormRequest = null) + +Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UploadMultipartFormExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new AttachmentControllerApi(config); + var contentId = "contentId_example"; // string | Optional content ID of attachment (optional) + var contentType = "contentType_example"; // string | Optional content type of attachment (optional) + var filename = "filename_example"; // string | Optional name of file (optional) + var xFilename = "xFilename_example"; // string | Optional content type header of attachment (optional) + var uploadMultipartFormRequest = new UploadMultipartFormRequest(); // UploadMultipartFormRequest | (optional) + + try + { + // Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. + List result = apiInstance.UploadMultipartForm(contentId, contentType, filename, xFilename, uploadMultipartFormRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AttachmentControllerApi.UploadMultipartForm: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UploadMultipartFormWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. + ApiResponse> response = apiInstance.UploadMultipartFormWithHttpInfo(contentId, contentType, filename, xFilename, uploadMultipartFormRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AttachmentControllerApi.UploadMultipartFormWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contentId** | **string** | Optional content ID of attachment | [optional] | +| **contentType** | **string** | Optional content type of attachment | [optional] | +| **filename** | **string** | Optional name of file | [optional] | +| **xFilename** | **string** | Optional content type header of attachment | [optional] | +| **uploadMultipartFormRequest** | [**UploadMultipartFormRequest**](UploadMultipartFormRequest) | | [optional] | + +### Return type + +**List** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/AttachmentEntity.md b/docs/AttachmentEntity.md new file mode 100644 index 00000000..61e44043 --- /dev/null +++ b/docs/AttachmentEntity.md @@ -0,0 +1,20 @@ +# mailslurp_netstandard_2x.Model.AttachmentEntity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | [optional] +**AttachmentId** | **string** | | +**Bucket** | **string** | | [optional] +**UserId** | **Guid** | | +**ContentType** | **string** | | [optional] +**ContentLength** | **long** | | [optional] +**ContentId** | **string** | | [optional] +**Name** | **string** | | [optional] +**InboxId** | **Guid** | | [optional] +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/AttachmentMetaData.md b/docs/AttachmentMetaData.md new file mode 100644 index 00000000..79bf7153 --- /dev/null +++ b/docs/AttachmentMetaData.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.AttachmentMetaData +Meta data associated with an attachment. Attachments are stored as byte blobs so the meta data is stored separately. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of attachment if given | +**ContentType** | **string** | Content type of attachment such as `image/png` | +**ContentLength** | **long** | Size of attachment in bytes | +**Id** | **string** | ID of attachment. Can be used to with attachment controller endpoints to download attachment or with sending methods to attach to an email. | +**ContentId** | **string** | CID of attachment | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/AttachmentProjection.md b/docs/AttachmentProjection.md new file mode 100644 index 00000000..63af05d4 --- /dev/null +++ b/docs/AttachmentProjection.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.AttachmentProjection +Email attachment data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **Guid** | | +**ContentId** | **string** | Content ID of attachment. | [optional] +**AttachmentId** | **string** | Attachment ID | +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | +**Name** | **string** | | [optional] +**ContentLength** | **long?** | Content length of attachment in bytes | [optional] +**ContentType** | **string** | Content type of attachment. | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/BasicAuthOptions.md b/docs/BasicAuthOptions.md new file mode 100644 index 00000000..448e9509 --- /dev/null +++ b/docs/BasicAuthOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.BasicAuthOptions +Basic Authentication options for webhooks. Will be used is present when calling webhook endpoints. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | | +**Password** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/BounceControllerApi.md b/docs/BounceControllerApi.md new file mode 100644 index 00000000..04ac0cd2 --- /dev/null +++ b/docs/BounceControllerApi.md @@ -0,0 +1,905 @@ +# mailslurp_netstandard_2x.Api.BounceControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**FilterBouncedRecipient**](BounceControllerApi#filterbouncedrecipient) | **POST** /bounce/filter-recipients | Filter a list of email recipients and remove those who have bounced | +| [**GetAccountBounceBlockStatus**](BounceControllerApi#getaccountbounceblockstatus) | **GET** /bounce/account-block | Can account send email | +| [**GetBouncedEmail**](BounceControllerApi#getbouncedemail) | **GET** /bounce/emails/{id} | Get a bounced email. | +| [**GetBouncedEmails**](BounceControllerApi#getbouncedemails) | **GET** /bounce/emails | Get paginated list of bounced emails. | +| [**GetBouncedRecipient**](BounceControllerApi#getbouncedrecipient) | **GET** /bounce/recipients/{id} | Get a bounced email. | +| [**GetBouncedRecipients**](BounceControllerApi#getbouncedrecipients) | **GET** /bounce/recipients | Get paginated list of bounced recipients. | +| [**GetComplaint**](BounceControllerApi#getcomplaint) | **GET** /bounce/complaints/{id} | Get complaint | +| [**GetComplaints**](BounceControllerApi#getcomplaints) | **GET** /bounce/complaints | Get paginated list of complaints. | +| [**GetListUnsubscribeRecipients**](BounceControllerApi#getlistunsubscriberecipients) | **GET** /bounce/list-unsubscribe-recipients | Get paginated list of unsubscribed recipients. | + + +# **FilterBouncedRecipient** +> FilterBouncedRecipientsResult FilterBouncedRecipient (FilterBouncedRecipientsOptions filterBouncedRecipientsOptions) + +Filter a list of email recipients and remove those who have bounced + +Prevent email sending errors by remove recipients who have resulted in past email bounces or complaints + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class FilterBouncedRecipientExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BounceControllerApi(config); + var filterBouncedRecipientsOptions = new FilterBouncedRecipientsOptions(); // FilterBouncedRecipientsOptions | + + try + { + // Filter a list of email recipients and remove those who have bounced + FilterBouncedRecipientsResult result = apiInstance.FilterBouncedRecipient(filterBouncedRecipientsOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BounceControllerApi.FilterBouncedRecipient: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the FilterBouncedRecipientWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Filter a list of email recipients and remove those who have bounced + ApiResponse response = apiInstance.FilterBouncedRecipientWithHttpInfo(filterBouncedRecipientsOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BounceControllerApi.FilterBouncedRecipientWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **filterBouncedRecipientsOptions** | [**FilterBouncedRecipientsOptions**](FilterBouncedRecipientsOptions) | | | + +### Return type + +[**FilterBouncedRecipientsResult**](FilterBouncedRecipientsResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAccountBounceBlockStatus** +> AccountBounceBlockDto GetAccountBounceBlockStatus () + +Can account send email + +Check if account block status prevents sending + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAccountBounceBlockStatusExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BounceControllerApi(config); + + try + { + // Can account send email + AccountBounceBlockDto result = apiInstance.GetAccountBounceBlockStatus(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BounceControllerApi.GetAccountBounceBlockStatus: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAccountBounceBlockStatusWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Can account send email + ApiResponse response = apiInstance.GetAccountBounceBlockStatusWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BounceControllerApi.GetAccountBounceBlockStatusWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**AccountBounceBlockDto**](AccountBounceBlockDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetBouncedEmail** +> BouncedEmailDto GetBouncedEmail (Guid id) + +Get a bounced email. + +Bounced emails are email you have sent that were rejected by a recipient + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetBouncedEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BounceControllerApi(config); + var id = "id_example"; // Guid | ID of the bounced email to fetch + + try + { + // Get a bounced email. + BouncedEmailDto result = apiInstance.GetBouncedEmail(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BounceControllerApi.GetBouncedEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetBouncedEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a bounced email. + ApiResponse response = apiInstance.GetBouncedEmailWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BounceControllerApi.GetBouncedEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of the bounced email to fetch | | + +### Return type + +[**BouncedEmailDto**](BouncedEmailDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetBouncedEmails** +> PageBouncedEmail GetBouncedEmails (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get paginated list of bounced emails. + +Bounced emails are email you have sent that were rejected by a recipient + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetBouncedEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BounceControllerApi(config); + var page = 0; // int? | Optional page index (optional) (default to 0) + var size = 20; // int? | Optional page size (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get paginated list of bounced emails. + PageBouncedEmail result = apiInstance.GetBouncedEmails(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BounceControllerApi.GetBouncedEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetBouncedEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get paginated list of bounced emails. + ApiResponse response = apiInstance.GetBouncedEmailsWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BounceControllerApi.GetBouncedEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index | [optional] [default to 0] | +| **size** | **int?** | Optional page size | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageBouncedEmail**](PageBouncedEmail) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetBouncedRecipient** +> BouncedRecipientDto GetBouncedRecipient (Guid id) + +Get a bounced email. + +Bounced emails are email you have sent that were rejected by a recipient + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetBouncedRecipientExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BounceControllerApi(config); + var id = "id_example"; // Guid | ID of the bounced recipient + + try + { + // Get a bounced email. + BouncedRecipientDto result = apiInstance.GetBouncedRecipient(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BounceControllerApi.GetBouncedRecipient: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetBouncedRecipientWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a bounced email. + ApiResponse response = apiInstance.GetBouncedRecipientWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BounceControllerApi.GetBouncedRecipientWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of the bounced recipient | | + +### Return type + +[**BouncedRecipientDto**](BouncedRecipientDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetBouncedRecipients** +> PageBouncedRecipients GetBouncedRecipients (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get paginated list of bounced recipients. + +Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetBouncedRecipientsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BounceControllerApi(config); + var page = 0; // int? | Optional page index (optional) (default to 0) + var size = 20; // int? | Optional page size (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get paginated list of bounced recipients. + PageBouncedRecipients result = apiInstance.GetBouncedRecipients(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BounceControllerApi.GetBouncedRecipients: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetBouncedRecipientsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get paginated list of bounced recipients. + ApiResponse response = apiInstance.GetBouncedRecipientsWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BounceControllerApi.GetBouncedRecipientsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index | [optional] [default to 0] | +| **size** | **int?** | Optional page size | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageBouncedRecipients**](PageBouncedRecipients) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetComplaint** +> Complaint GetComplaint (Guid id) + +Get complaint + +Get complaint + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetComplaintExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BounceControllerApi(config); + var id = "id_example"; // Guid | ID of the complaint + + try + { + // Get complaint + Complaint result = apiInstance.GetComplaint(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BounceControllerApi.GetComplaint: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetComplaintWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get complaint + ApiResponse response = apiInstance.GetComplaintWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BounceControllerApi.GetComplaintWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of the complaint | | + +### Return type + +[**Complaint**](Complaint) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetComplaints** +> PageComplaint GetComplaints (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get paginated list of complaints. + +SMTP complaints made against your account + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetComplaintsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BounceControllerApi(config); + var page = 0; // int? | Optional page index (optional) (default to 0) + var size = 20; // int? | Optional page size (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get paginated list of complaints. + PageComplaint result = apiInstance.GetComplaints(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BounceControllerApi.GetComplaints: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetComplaintsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get paginated list of complaints. + ApiResponse response = apiInstance.GetComplaintsWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BounceControllerApi.GetComplaintsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index | [optional] [default to 0] | +| **size** | **int?** | Optional page size | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageComplaint**](PageComplaint) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetListUnsubscribeRecipients** +> PageListUnsubscribeRecipients GetListUnsubscribeRecipients (int? page = null, int? size = null, string sort = null, Guid? domainId = null) + +Get paginated list of unsubscribed recipients. + +Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetListUnsubscribeRecipientsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BounceControllerApi(config); + var page = 0; // int? | Optional page index (optional) (default to 0) + var size = 20; // int? | Optional page size (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var domainId = "domainId_example"; // Guid? | Filter by domainId (optional) + + try + { + // Get paginated list of unsubscribed recipients. + PageListUnsubscribeRecipients result = apiInstance.GetListUnsubscribeRecipients(page, size, sort, domainId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BounceControllerApi.GetListUnsubscribeRecipients: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetListUnsubscribeRecipientsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get paginated list of unsubscribed recipients. + ApiResponse response = apiInstance.GetListUnsubscribeRecipientsWithHttpInfo(page, size, sort, domainId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BounceControllerApi.GetListUnsubscribeRecipientsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index | [optional] [default to 0] | +| **size** | **int?** | Optional page size | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **domainId** | **Guid?** | Filter by domainId | [optional] | + +### Return type + +[**PageListUnsubscribeRecipients**](PageListUnsubscribeRecipients) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/BounceProjection.md b/docs/BounceProjection.md new file mode 100644 index 00000000..f30f43cf --- /dev/null +++ b/docs/BounceProjection.md @@ -0,0 +1,16 @@ +# mailslurp_netstandard_2x.Model.BounceProjection +Bounced email event + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sender** | **string** | | +**BounceMta** | **string** | | [optional] +**BounceType** | **string** | | [optional] +**CreatedAt** | **DateTime** | | +**Subject** | **string** | | [optional] +**Id** | **Guid** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/BounceRecipientProjection.md b/docs/BounceRecipientProjection.md new file mode 100644 index 00000000..b1524c48 --- /dev/null +++ b/docs/BounceRecipientProjection.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.BounceRecipientProjection +Bounced recipient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SentEmailId** | **Guid?** | | [optional] +**Recipient** | **string** | | +**Action** | **string** | | [optional] +**BounceType** | **string** | | [optional] +**CreatedAt** | **DateTime** | | +**Id** | **Guid** | | [optional] +**Status** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/BouncedEmailDto.md b/docs/BouncedEmailDto.md new file mode 100644 index 00000000..65a056f8 --- /dev/null +++ b/docs/BouncedEmailDto.md @@ -0,0 +1,22 @@ +# mailslurp_netstandard_2x.Model.BouncedEmailDto +Bounced email + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**NotificationType** | **string** | | +**SentToRecipients** | **List<string>** | | [optional] +**Sender** | **string** | | +**BounceMta** | **string** | | [optional] +**BounceType** | **string** | | [optional] +**BounceRecipients** | **List<string>** | | [optional] +**BounceSubType** | **string** | | [optional] +**SentEmailId** | **Guid?** | | [optional] +**Subject** | **string** | | [optional] +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/BouncedRecipientDto.md b/docs/BouncedRecipientDto.md new file mode 100644 index 00000000..eeb01a98 --- /dev/null +++ b/docs/BouncedRecipientDto.md @@ -0,0 +1,19 @@ +# mailslurp_netstandard_2x.Model.BouncedRecipientDto +Bounced recipient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid?** | | [optional] +**SentEmailId** | **Guid?** | | [optional] +**Recipient** | **string** | | +**DiagnosticCode** | **string** | | [optional] +**Action** | **string** | | [optional] +**BounceType** | **string** | | [optional] +**Status** | **string** | | [optional] +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/BulkActionsControllerApi.md b/docs/BulkActionsControllerApi.md new file mode 100644 index 00000000..8a09bb26 --- /dev/null +++ b/docs/BulkActionsControllerApi.md @@ -0,0 +1,284 @@ +# mailslurp_netstandard_2x.Api.BulkActionsControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**BulkCreateInboxes**](BulkActionsControllerApi#bulkcreateinboxes) | **POST** /bulk/inboxes | Bulk create Inboxes (email addresses) | +| [**BulkDeleteInboxes**](BulkActionsControllerApi#bulkdeleteinboxes) | **DELETE** /bulk/inboxes | Bulk Delete Inboxes | +| [**BulkSendEmails**](BulkActionsControllerApi#bulksendemails) | **POST** /bulk/send | Bulk Send Emails | + + +# **BulkCreateInboxes** +> List<InboxDto> BulkCreateInboxes (int count) + +Bulk create Inboxes (email addresses) + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class BulkCreateInboxesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BulkActionsControllerApi(config); + var count = 56; // int | Number of inboxes to be created in bulk + + try + { + // Bulk create Inboxes (email addresses) + List result = apiInstance.BulkCreateInboxes(count); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BulkActionsControllerApi.BulkCreateInboxes: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the BulkCreateInboxesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Bulk create Inboxes (email addresses) + ApiResponse> response = apiInstance.BulkCreateInboxesWithHttpInfo(count); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BulkActionsControllerApi.BulkCreateInboxesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **count** | **int** | Number of inboxes to be created in bulk | | + +### Return type + +[**List<InboxDto>**](InboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **BulkDeleteInboxes** +> void BulkDeleteInboxes (List requestBody) + +Bulk Delete Inboxes + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class BulkDeleteInboxesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BulkActionsControllerApi(config); + var requestBody = new List(); // List | + + try + { + // Bulk Delete Inboxes + apiInstance.BulkDeleteInboxes(requestBody); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BulkActionsControllerApi.BulkDeleteInboxes: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the BulkDeleteInboxesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Bulk Delete Inboxes + apiInstance.BulkDeleteInboxesWithHttpInfo(requestBody); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BulkActionsControllerApi.BulkDeleteInboxesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **requestBody** | [**List<Guid>**](Guid) | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **BulkSendEmails** +> void BulkSendEmails (BulkSendEmailOptions bulkSendEmailOptions) + +Bulk Send Emails + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class BulkSendEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new BulkActionsControllerApi(config); + var bulkSendEmailOptions = new BulkSendEmailOptions(); // BulkSendEmailOptions | + + try + { + // Bulk Send Emails + apiInstance.BulkSendEmails(bulkSendEmailOptions); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BulkActionsControllerApi.BulkSendEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the BulkSendEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Bulk Send Emails + apiInstance.BulkSendEmailsWithHttpInfo(bulkSendEmailOptions); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BulkActionsControllerApi.BulkSendEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **bulkSendEmailOptions** | [**BulkSendEmailOptions**](BulkSendEmailOptions) | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/BulkSendEmailOptions.md b/docs/BulkSendEmailOptions.md new file mode 100644 index 00000000..7f727502 --- /dev/null +++ b/docs/BulkSendEmailOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.BulkSendEmailOptions +Options for bulk sending an email from multiple addresses. See regular `sendEmail` methods for more information. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxIds** | **List<Guid>** | Inboxes to send the email from | +**SendEmailOptions** | [**SendEmailOptions**](SendEmailOptions) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CanSendEmailResults.md b/docs/CanSendEmailResults.md new file mode 100644 index 00000000..8ed38065 --- /dev/null +++ b/docs/CanSendEmailResults.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.CanSendEmailResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsSendingPermitted** | **bool** | | +**Message** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CheckEmailBodyFeatureSupportResults.md b/docs/CheckEmailBodyFeatureSupportResults.md new file mode 100644 index 00000000..af0525ce --- /dev/null +++ b/docs/CheckEmailBodyFeatureSupportResults.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.CheckEmailBodyFeatureSupportResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**EmailFeatureSupportResult**](EmailFeatureSupportResult) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CheckEmailBodyResults.md b/docs/CheckEmailBodyResults.md new file mode 100644 index 00000000..a5eda697 --- /dev/null +++ b/docs/CheckEmailBodyResults.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.CheckEmailBodyResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HasIssues** | **bool** | | +**LinkIssues** | [**List<LinkIssue>**](LinkIssue) | | +**ImageIssues** | [**List<ImageIssue>**](ImageIssue) | | +**SpellingIssues** | [**List<SpellingIssue>**](SpellingIssue) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CheckEmailClientSupportOptions.md b/docs/CheckEmailClientSupportOptions.md new file mode 100644 index 00000000..4819f39d --- /dev/null +++ b/docs/CheckEmailClientSupportOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.CheckEmailClientSupportOptions +Options for the email to be validated + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailBody** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CheckEmailClientSupportResults.md b/docs/CheckEmailClientSupportResults.md new file mode 100644 index 00000000..5cd75825 --- /dev/null +++ b/docs/CheckEmailClientSupportResults.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.CheckEmailClientSupportResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**EmailFeatureSupportResult**](EmailFeatureSupportResult) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CheckEmailFeaturesClientSupportOptions.md b/docs/CheckEmailFeaturesClientSupportOptions.md new file mode 100644 index 00000000..57e9fb9e --- /dev/null +++ b/docs/CheckEmailFeaturesClientSupportOptions.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.CheckEmailFeaturesClientSupportOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailBody** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CheckEmailFeaturesClientSupportResults.md b/docs/CheckEmailFeaturesClientSupportResults.md new file mode 100644 index 00000000..e1ac5fbe --- /dev/null +++ b/docs/CheckEmailFeaturesClientSupportResults.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.CheckEmailFeaturesClientSupportResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**EmailFeatureSupportResult**](EmailFeatureSupportResult) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CommonActionsControllerApi.md b/docs/CommonActionsControllerApi.md new file mode 100644 index 00000000..014be8e7 --- /dev/null +++ b/docs/CommonActionsControllerApi.md @@ -0,0 +1,635 @@ +# mailslurp_netstandard_2x.Api.CommonActionsControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateNewEmailAddress**](CommonActionsControllerApi#createnewemailaddress) | **POST** /newEmailAddress | Create new random inbox | +| [**CreateRandomInbox**](CommonActionsControllerApi#createrandominbox) | **POST** /createInbox | Create new random inbox | +| [**DeleteEmailAddress**](CommonActionsControllerApi#deleteemailaddress) | **DELETE** /deleteEmailAddress | Delete inbox email address by inbox id | +| [**EmptyInbox**](CommonActionsControllerApi#emptyinbox) | **DELETE** /emptyInbox | Delete all emails in an inbox | +| [**SendEmailQuery**](CommonActionsControllerApi#sendemailquery) | **POST** /sendEmailQuery | Send an email using query parameters | +| [**SendEmailSimple**](CommonActionsControllerApi#sendemailsimple) | **POST** /sendEmail | Send an email | + + +# **CreateNewEmailAddress** +> InboxDto CreateNewEmailAddress (bool? allowTeamAccess = null, bool? useDomainPool = null, DateTime? expiresAt = null, long? expiresIn = null, string emailAddress = null, string inboxType = null, string description = null, string name = null, List tags = null, bool? favourite = null, bool? virtualInbox = null, bool? useShortAddress = null, string domainName = null, Guid? domainId = null, string prefix = null) + +Create new random inbox + +Returns an Inbox with an `id` and an `emailAddress` + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateNewEmailAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new CommonActionsControllerApi(config); + var allowTeamAccess = true; // bool? | (optional) + var useDomainPool = true; // bool? | (optional) + var expiresAt = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | (optional) + var expiresIn = 789L; // long? | (optional) + var emailAddress = "emailAddress_example"; // string | (optional) + var inboxType = "HTTP_INBOX"; // string | (optional) + var description = "description_example"; // string | (optional) + var name = "name_example"; // string | (optional) + var tags = new List(); // List | (optional) + var favourite = true; // bool? | (optional) + var virtualInbox = true; // bool? | (optional) + var useShortAddress = true; // bool? | (optional) + var domainName = "domainName_example"; // string | (optional) + var domainId = "domainId_example"; // Guid? | (optional) + var prefix = "prefix_example"; // string | (optional) + + try + { + // Create new random inbox + InboxDto result = apiInstance.CreateNewEmailAddress(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CommonActionsControllerApi.CreateNewEmailAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateNewEmailAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create new random inbox + ApiResponse response = apiInstance.CreateNewEmailAddressWithHttpInfo(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CommonActionsControllerApi.CreateNewEmailAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **allowTeamAccess** | **bool?** | | [optional] | +| **useDomainPool** | **bool?** | | [optional] | +| **expiresAt** | **DateTime?** | | [optional] | +| **expiresIn** | **long?** | | [optional] | +| **emailAddress** | **string** | | [optional] | +| **inboxType** | **string** | | [optional] | +| **description** | **string** | | [optional] | +| **name** | **string** | | [optional] | +| **tags** | [**List<string>**](string) | | [optional] | +| **favourite** | **bool?** | | [optional] | +| **virtualInbox** | **bool?** | | [optional] | +| **useShortAddress** | **bool?** | | [optional] | +| **domainName** | **string** | | [optional] | +| **domainId** | **Guid?** | | [optional] | +| **prefix** | **string** | | [optional] | + +### Return type + +[**InboxDto**](InboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateRandomInbox** +> InboxDto CreateRandomInbox (bool? allowTeamAccess = null, bool? useDomainPool = null, DateTime? expiresAt = null, long? expiresIn = null, string emailAddress = null, string inboxType = null, string description = null, string name = null, List tags = null, bool? favourite = null, bool? virtualInbox = null, bool? useShortAddress = null, string domainName = null, Guid? domainId = null, string prefix = null) + +Create new random inbox + +Returns an Inbox with an `id` and an `emailAddress` + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateRandomInboxExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new CommonActionsControllerApi(config); + var allowTeamAccess = true; // bool? | (optional) + var useDomainPool = true; // bool? | (optional) + var expiresAt = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | (optional) + var expiresIn = 789L; // long? | (optional) + var emailAddress = "emailAddress_example"; // string | (optional) + var inboxType = "HTTP_INBOX"; // string | (optional) + var description = "description_example"; // string | (optional) + var name = "name_example"; // string | (optional) + var tags = new List(); // List | (optional) + var favourite = true; // bool? | (optional) + var virtualInbox = true; // bool? | (optional) + var useShortAddress = true; // bool? | (optional) + var domainName = "domainName_example"; // string | (optional) + var domainId = "domainId_example"; // Guid? | (optional) + var prefix = "prefix_example"; // string | (optional) + + try + { + // Create new random inbox + InboxDto result = apiInstance.CreateRandomInbox(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CommonActionsControllerApi.CreateRandomInbox: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateRandomInboxWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create new random inbox + ApiResponse response = apiInstance.CreateRandomInboxWithHttpInfo(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CommonActionsControllerApi.CreateRandomInboxWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **allowTeamAccess** | **bool?** | | [optional] | +| **useDomainPool** | **bool?** | | [optional] | +| **expiresAt** | **DateTime?** | | [optional] | +| **expiresIn** | **long?** | | [optional] | +| **emailAddress** | **string** | | [optional] | +| **inboxType** | **string** | | [optional] | +| **description** | **string** | | [optional] | +| **name** | **string** | | [optional] | +| **tags** | [**List<string>**](string) | | [optional] | +| **favourite** | **bool?** | | [optional] | +| **virtualInbox** | **bool?** | | [optional] | +| **useShortAddress** | **bool?** | | [optional] | +| **domainName** | **string** | | [optional] | +| **domainId** | **Guid?** | | [optional] | +| **prefix** | **string** | | [optional] | + +### Return type + +[**InboxDto**](InboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteEmailAddress** +> void DeleteEmailAddress (Guid inboxId) + +Delete inbox email address by inbox id + +Deletes inbox email address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteEmailAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new CommonActionsControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + + try + { + // Delete inbox email address by inbox id + apiInstance.DeleteEmailAddress(inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CommonActionsControllerApi.DeleteEmailAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteEmailAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete inbox email address by inbox id + apiInstance.DeleteEmailAddressWithHttpInfo(inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CommonActionsControllerApi.DeleteEmailAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **EmptyInbox** +> void EmptyInbox (Guid inboxId) + +Delete all emails in an inbox + +Deletes all emails + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class EmptyInboxExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new CommonActionsControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + + try + { + // Delete all emails in an inbox + apiInstance.EmptyInbox(inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CommonActionsControllerApi.EmptyInbox: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the EmptyInboxWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete all emails in an inbox + apiInstance.EmptyInboxWithHttpInfo(inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CommonActionsControllerApi.EmptyInboxWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SendEmailQuery** +> void SendEmailQuery (string to, Guid? senderId = null, string body = null, string subject = null) + +Send an email using query parameters + +If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SendEmailQueryExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new CommonActionsControllerApi(config); + var to = "to_example"; // string | Email address to send to + var senderId = "senderId_example"; // Guid? | ID of inbox to send from. If null an inbox will be created for sending (optional) + var body = "body_example"; // string | Body of the email message. Supports HTML (optional) + var subject = "subject_example"; // string | Subject line of the email (optional) + + try + { + // Send an email using query parameters + apiInstance.SendEmailQuery(to, senderId, body, subject); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CommonActionsControllerApi.SendEmailQuery: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SendEmailQueryWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send an email using query parameters + apiInstance.SendEmailQueryWithHttpInfo(to, senderId, body, subject); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CommonActionsControllerApi.SendEmailQueryWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **to** | **string** | Email address to send to | | +| **senderId** | **Guid?** | ID of inbox to send from. If null an inbox will be created for sending | [optional] | +| **body** | **string** | Body of the email message. Supports HTML | [optional] | +| **subject** | **string** | Subject line of the email | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SendEmailSimple** +> void SendEmailSimple (SimpleSendEmailOptions simpleSendEmailOptions) + +Send an email + +If no senderId or inboxId provided a random email address will be used to send from. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SendEmailSimpleExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new CommonActionsControllerApi(config); + var simpleSendEmailOptions = new SimpleSendEmailOptions(); // SimpleSendEmailOptions | + + try + { + // Send an email + apiInstance.SendEmailSimple(simpleSendEmailOptions); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CommonActionsControllerApi.SendEmailSimple: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SendEmailSimpleWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send an email + apiInstance.SendEmailSimpleWithHttpInfo(simpleSendEmailOptions); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CommonActionsControllerApi.SendEmailSimpleWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **simpleSendEmailOptions** | [**SimpleSendEmailOptions**](SimpleSendEmailOptions) | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/Complaint.md b/docs/Complaint.md new file mode 100644 index 00000000..4029fc81 --- /dev/null +++ b/docs/Complaint.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.Complaint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | [optional] +**EventType** | **string** | | [optional] +**MailSource** | **string** | | [optional] +**MailMessageId** | **string** | | [optional] +**ComplaintRecipient** | **string** | | +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConditionOption.md b/docs/ConditionOption.md new file mode 100644 index 00000000..2653de43 --- /dev/null +++ b/docs/ConditionOption.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.ConditionOption +Options for matching emails in an inbox based on a condition such as `HAS_ATTACHMENTS=TRUE` + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Condition** | **string** | Condition of an email object that can be used to filter results | +**Value** | **string** | Expected condition value | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConnectorControllerApi.md b/docs/ConnectorControllerApi.md new file mode 100644 index 00000000..04ebd284 --- /dev/null +++ b/docs/ConnectorControllerApi.md @@ -0,0 +1,1360 @@ +# mailslurp_netstandard_2x.Api.ConnectorControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateConnector**](ConnectorControllerApi#createconnector) | **POST** /connectors | Create an inbox connector | +| [**CreateConnectorImapConnection**](ConnectorControllerApi#createconnectorimapconnection) | **POST** /connectors/{id}/imap | Create an inbox connector IMAP connection | +| [**CreateConnectorSmtpConnection**](ConnectorControllerApi#createconnectorsmtpconnection) | **POST** /connectors/{id}/smtp | Create an inbox connector SMTP connection | +| [**DeleteAllConnector**](ConnectorControllerApi#deleteallconnector) | **DELETE** /connectors | Delete all inbox connectors | +| [**DeleteConnector**](ConnectorControllerApi#deleteconnector) | **DELETE** /connectors/{id} | Delete an inbox connector | +| [**DeleteConnectorImapConnection**](ConnectorControllerApi#deleteconnectorimapconnection) | **DELETE** /connectors/{id}/imap | Delete an inbox connector IMAP connection | +| [**DeleteConnectorSmtpConnection**](ConnectorControllerApi#deleteconnectorsmtpconnection) | **DELETE** /connectors/{id}/smtp | Delete an inbox connector SMTP connection | +| [**GetAllConnectorSyncEvents**](ConnectorControllerApi#getallconnectorsyncevents) | **GET** /connectors/events | Get all inbox connector sync events | +| [**GetConnector**](ConnectorControllerApi#getconnector) | **GET** /connectors/{id} | Get an inbox connector | +| [**GetConnectorSyncEvent**](ConnectorControllerApi#getconnectorsyncevent) | **GET** /connectors/events/{id} | Get an inbox connector sync event | +| [**GetConnectorSyncEvents**](ConnectorControllerApi#getconnectorsyncevents) | **GET** /connectors/{id}/events | Get an inbox connector sync events | +| [**GetConnectors**](ConnectorControllerApi#getconnectors) | **GET** /connectors | Get inbox connectors | +| [**SyncConnector**](ConnectorControllerApi#syncconnector) | **POST** /connectors/{id}/sync | Sync an inbox connector | +| [**UpdateConnector**](ConnectorControllerApi#updateconnector) | **PUT** /connectors/{id} | Update an inbox connector | + + +# **CreateConnector** +> ConnectorDto CreateConnector (CreateConnectorOptions createConnectorOptions) + +Create an inbox connector + +Sync emails between external mailboxes and MailSlurp inboxes + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateConnectorExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var createConnectorOptions = new CreateConnectorOptions(); // CreateConnectorOptions | + + try + { + // Create an inbox connector + ConnectorDto result = apiInstance.CreateConnector(createConnectorOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.CreateConnector: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateConnectorWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create an inbox connector + ApiResponse response = apiInstance.CreateConnectorWithHttpInfo(createConnectorOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.CreateConnectorWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createConnectorOptions** | [**CreateConnectorOptions**](CreateConnectorOptions) | | | + +### Return type + +[**ConnectorDto**](ConnectorDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateConnectorImapConnection** +> ConnectorImapConnectionDto CreateConnectorImapConnection (Guid id, CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions) + +Create an inbox connector IMAP connection + +Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateConnectorImapConnectionExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var id = "id_example"; // Guid | + var createConnectorImapConnectionOptions = new CreateConnectorImapConnectionOptions(); // CreateConnectorImapConnectionOptions | + + try + { + // Create an inbox connector IMAP connection + ConnectorImapConnectionDto result = apiInstance.CreateConnectorImapConnection(id, createConnectorImapConnectionOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.CreateConnectorImapConnection: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateConnectorImapConnectionWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create an inbox connector IMAP connection + ApiResponse response = apiInstance.CreateConnectorImapConnectionWithHttpInfo(id, createConnectorImapConnectionOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.CreateConnectorImapConnectionWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | +| **createConnectorImapConnectionOptions** | [**CreateConnectorImapConnectionOptions**](CreateConnectorImapConnectionOptions) | | | + +### Return type + +[**ConnectorImapConnectionDto**](ConnectorImapConnectionDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateConnectorSmtpConnection** +> ConnectorSmtpConnectionDto CreateConnectorSmtpConnection (Guid id, CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions) + +Create an inbox connector SMTP connection + +Allows sending via connector and email is routed to connected inbox and sent via SMTP + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateConnectorSmtpConnectionExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var id = "id_example"; // Guid | + var createConnectorSmtpConnectionOptions = new CreateConnectorSmtpConnectionOptions(); // CreateConnectorSmtpConnectionOptions | + + try + { + // Create an inbox connector SMTP connection + ConnectorSmtpConnectionDto result = apiInstance.CreateConnectorSmtpConnection(id, createConnectorSmtpConnectionOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.CreateConnectorSmtpConnection: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateConnectorSmtpConnectionWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create an inbox connector SMTP connection + ApiResponse response = apiInstance.CreateConnectorSmtpConnectionWithHttpInfo(id, createConnectorSmtpConnectionOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.CreateConnectorSmtpConnectionWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | +| **createConnectorSmtpConnectionOptions** | [**CreateConnectorSmtpConnectionOptions**](CreateConnectorSmtpConnectionOptions) | | | + +### Return type + +[**ConnectorSmtpConnectionDto**](ConnectorSmtpConnectionDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteAllConnector** +> void DeleteAllConnector () + +Delete all inbox connectors + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAllConnectorExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + + try + { + // Delete all inbox connectors + apiInstance.DeleteAllConnector(); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.DeleteAllConnector: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAllConnectorWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete all inbox connectors + apiInstance.DeleteAllConnectorWithHttpInfo(); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.DeleteAllConnectorWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteConnector** +> void DeleteConnector (Guid id) + +Delete an inbox connector + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteConnectorExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Delete an inbox connector + apiInstance.DeleteConnector(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.DeleteConnector: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteConnectorWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete an inbox connector + apiInstance.DeleteConnectorWithHttpInfo(id); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.DeleteConnectorWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteConnectorImapConnection** +> void DeleteConnectorImapConnection (Guid id) + +Delete an inbox connector IMAP connection + +Delete IMAP connection for external inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteConnectorImapConnectionExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Delete an inbox connector IMAP connection + apiInstance.DeleteConnectorImapConnection(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.DeleteConnectorImapConnection: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteConnectorImapConnectionWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete an inbox connector IMAP connection + apiInstance.DeleteConnectorImapConnectionWithHttpInfo(id); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.DeleteConnectorImapConnectionWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteConnectorSmtpConnection** +> void DeleteConnectorSmtpConnection (Guid id) + +Delete an inbox connector SMTP connection + +Delete SMTP connection for external inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteConnectorSmtpConnectionExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Delete an inbox connector SMTP connection + apiInstance.DeleteConnectorSmtpConnection(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.DeleteConnectorSmtpConnection: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteConnectorSmtpConnectionWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete an inbox connector SMTP connection + apiInstance.DeleteConnectorSmtpConnectionWithHttpInfo(id); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.DeleteConnectorSmtpConnectionWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllConnectorSyncEvents** +> PageConnectorSyncEvents GetAllConnectorSyncEvents (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get all inbox connector sync events + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllConnectorSyncEventsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var page = 0; // int? | Optional page index in connector list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in connector list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get all inbox connector sync events + PageConnectorSyncEvents result = apiInstance.GetAllConnectorSyncEvents(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.GetAllConnectorSyncEvents: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllConnectorSyncEventsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all inbox connector sync events + ApiResponse response = apiInstance.GetAllConnectorSyncEventsWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.GetAllConnectorSyncEventsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in connector list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in connector list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageConnectorSyncEvents**](PageConnectorSyncEvents) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetConnector** +> ConnectorDto GetConnector (Guid id) + +Get an inbox connector + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetConnectorExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Get an inbox connector + ConnectorDto result = apiInstance.GetConnector(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.GetConnector: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetConnectorWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an inbox connector + ApiResponse response = apiInstance.GetConnectorWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.GetConnectorWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +[**ConnectorDto**](ConnectorDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetConnectorSyncEvent** +> ConnectorSyncEventDto GetConnectorSyncEvent (Guid id) + +Get an inbox connector sync event + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetConnectorSyncEventExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Get an inbox connector sync event + ConnectorSyncEventDto result = apiInstance.GetConnectorSyncEvent(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.GetConnectorSyncEvent: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetConnectorSyncEventWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an inbox connector sync event + ApiResponse response = apiInstance.GetConnectorSyncEventWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.GetConnectorSyncEventWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +[**ConnectorSyncEventDto**](ConnectorSyncEventDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetConnectorSyncEvents** +> PageConnectorSyncEvents GetConnectorSyncEvents (Guid id, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get an inbox connector sync events + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetConnectorSyncEventsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var id = "id_example"; // Guid | + var page = 0; // int? | Optional page index in connector list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in connector list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get an inbox connector sync events + PageConnectorSyncEvents result = apiInstance.GetConnectorSyncEvents(id, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.GetConnectorSyncEvents: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetConnectorSyncEventsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an inbox connector sync events + ApiResponse response = apiInstance.GetConnectorSyncEventsWithHttpInfo(id, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.GetConnectorSyncEventsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | +| **page** | **int?** | Optional page index in connector list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in connector list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageConnectorSyncEvents**](PageConnectorSyncEvents) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetConnectors** +> PageConnector GetConnectors (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get inbox connectors + +List inbox connectors that sync external emails to MailSlurp inboxes + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetConnectorsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var page = 0; // int? | Optional page index in connector list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in connector list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get inbox connectors + PageConnector result = apiInstance.GetConnectors(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.GetConnectors: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetConnectorsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get inbox connectors + ApiResponse response = apiInstance.GetConnectorsWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.GetConnectorsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in connector list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in connector list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageConnector**](PageConnector) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SyncConnector** +> ConnectorSyncRequestResult SyncConnector (Guid id) + +Sync an inbox connector + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SyncConnectorExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Sync an inbox connector + ConnectorSyncRequestResult result = apiInstance.SyncConnector(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.SyncConnector: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SyncConnectorWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Sync an inbox connector + ApiResponse response = apiInstance.SyncConnectorWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.SyncConnectorWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +[**ConnectorSyncRequestResult**](ConnectorSyncRequestResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UpdateConnector** +> ConnectorDto UpdateConnector (Guid id, CreateConnectorOptions createConnectorOptions) + +Update an inbox connector + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UpdateConnectorExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ConnectorControllerApi(config); + var id = "id_example"; // Guid | + var createConnectorOptions = new CreateConnectorOptions(); // CreateConnectorOptions | + + try + { + // Update an inbox connector + ConnectorDto result = apiInstance.UpdateConnector(id, createConnectorOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConnectorControllerApi.UpdateConnector: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UpdateConnectorWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Update an inbox connector + ApiResponse response = apiInstance.UpdateConnectorWithHttpInfo(id, createConnectorOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConnectorControllerApi.UpdateConnectorWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | +| **createConnectorOptions** | [**CreateConnectorOptions**](CreateConnectorOptions) | | | + +### Return type + +[**ConnectorDto**](ConnectorDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/ConnectorDto.md b/docs/ConnectorDto.md new file mode 100644 index 00000000..cc23c7b4 --- /dev/null +++ b/docs/ConnectorDto.md @@ -0,0 +1,20 @@ +# mailslurp_netstandard_2x.Model.ConnectorDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**Name** | **string** | | [optional] +**Enabled** | **bool** | | +**UserId** | **Guid** | | +**InboxId** | **Guid** | | +**SyncEnabled** | **bool** | | +**SyncScheduleType** | **string** | | [optional] +**SyncInterval** | **int?** | | [optional] +**HasImapConnection** | **bool** | | +**HasSmtpConnection** | **bool** | | +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConnectorImapConnectionDto.md b/docs/ConnectorImapConnectionDto.md new file mode 100644 index 00000000..295098ef --- /dev/null +++ b/docs/ConnectorImapConnectionDto.md @@ -0,0 +1,20 @@ +# mailslurp_netstandard_2x.Model.ConnectorImapConnectionDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorId** | **Guid** | | +**ImapHost** | **string** | | [optional] +**ImapPort** | **int** | | [optional] +**ImapUsername** | **string** | | [optional] +**ImapPassword** | **string** | | [optional] +**ImapSsl** | **bool** | | [optional] +**SelectFolder** | **string** | | [optional] +**SearchTerms** | **string** | | [optional] +**Enabled** | **bool** | | [optional] +**CreatedAt** | **DateTime** | | +**Id** | **Guid** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConnectorProjection.md b/docs/ConnectorProjection.md new file mode 100644 index 00000000..d562735e --- /dev/null +++ b/docs/ConnectorProjection.md @@ -0,0 +1,20 @@ +# mailslurp_netstandard_2x.Model.ConnectorProjection +Connector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | | [optional] +**EmailAddress** | **string** | | [optional] +**InboxId** | **Guid** | | +**UserId** | **Guid** | | +**SyncEnabled** | **bool** | | [optional] +**SyncScheduleType** | **string** | | +**SyncInterval** | **int** | | [optional] +**CreatedAt** | **DateTime** | | +**Name** | **string** | | [optional] +**Id** | **Guid** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConnectorSmtpConnectionDto.md b/docs/ConnectorSmtpConnectionDto.md new file mode 100644 index 00000000..eac4cdb0 --- /dev/null +++ b/docs/ConnectorSmtpConnectionDto.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.ConnectorSmtpConnectionDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorId** | **Guid** | | +**SmtpHost** | **string** | | [optional] +**SmtpPort** | **int** | | [optional] +**SmtpUsername** | **string** | | [optional] +**SmtpPassword** | **string** | | [optional] +**SmtpSsl** | **bool** | | [optional] +**Enabled** | **bool** | | [optional] +**CreatedAt** | **DateTime** | | +**Id** | **Guid** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConnectorSyncEventDto.md b/docs/ConnectorSyncEventDto.md new file mode 100644 index 00000000..4e5497ae --- /dev/null +++ b/docs/ConnectorSyncEventDto.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.ConnectorSyncEventDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**ConnectorId** | **Guid** | | +**SyncStatus** | **string** | | +**SyncCount** | **long** | | +**Message** | **string** | | [optional] +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConnectorSyncEventProjection.md b/docs/ConnectorSyncEventProjection.md new file mode 100644 index 00000000..9a8930d3 --- /dev/null +++ b/docs/ConnectorSyncEventProjection.md @@ -0,0 +1,16 @@ +# mailslurp_netstandard_2x.Model.ConnectorSyncEventProjection +ConnectorSyncEventProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorId** | **Guid** | | +**SyncCount** | **long** | | +**SyncStatus** | **string** | | +**CreatedAt** | **DateTime** | | +**Message** | **string** | | [optional] +**Id** | **Guid** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConnectorSyncRequestResult.md b/docs/ConnectorSyncRequestResult.md new file mode 100644 index 00000000..235120ab --- /dev/null +++ b/docs/ConnectorSyncRequestResult.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.ConnectorSyncRequestResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SyncResult** | [**ConnectorSyncResult**](ConnectorSyncResult) | | [optional] +**Exception** | [**ConnectorSyncRequestResultException**](ConnectorSyncRequestResultException) | | [optional] +**EventId** | **Guid** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConnectorSyncRequestResultException.md b/docs/ConnectorSyncRequestResultException.md new file mode 100644 index 00000000..26604f5d --- /dev/null +++ b/docs/ConnectorSyncRequestResultException.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.ConnectorSyncRequestResultException + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cause** | [**ConnectorSyncRequestResultExceptionCause**](ConnectorSyncRequestResultExceptionCause) | | [optional] +**StackTrace** | [**List<ConnectorSyncRequestResultExceptionCauseStackTraceInner>**](ConnectorSyncRequestResultExceptionCauseStackTraceInner) | | [optional] +**Message** | **string** | | [optional] +**Suppressed** | [**List<ConnectorSyncRequestResultExceptionCause>**](ConnectorSyncRequestResultExceptionCause) | | [optional] +**LocalizedMessage** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConnectorSyncRequestResultExceptionCause.md b/docs/ConnectorSyncRequestResultExceptionCause.md new file mode 100644 index 00000000..93278916 --- /dev/null +++ b/docs/ConnectorSyncRequestResultExceptionCause.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.ConnectorSyncRequestResultExceptionCause + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StackTrace** | [**List<ConnectorSyncRequestResultExceptionCauseStackTraceInner>**](ConnectorSyncRequestResultExceptionCauseStackTraceInner) | | [optional] +**Message** | **string** | | [optional] +**LocalizedMessage** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConnectorSyncRequestResultExceptionCauseStackTraceInner.md b/docs/ConnectorSyncRequestResultExceptionCauseStackTraceInner.md new file mode 100644 index 00000000..213013c5 --- /dev/null +++ b/docs/ConnectorSyncRequestResultExceptionCauseStackTraceInner.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.ConnectorSyncRequestResultExceptionCauseStackTraceInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClassLoaderName** | **string** | | [optional] +**ModuleName** | **string** | | [optional] +**ModuleVersion** | **string** | | [optional] +**MethodName** | **string** | | [optional] +**FileName** | **string** | | [optional] +**LineNumber** | **int** | | [optional] +**ClassName** | **string** | | [optional] +**NativeMethod** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ConnectorSyncResult.md b/docs/ConnectorSyncResult.md new file mode 100644 index 00000000..beb0a3f5 --- /dev/null +++ b/docs/ConnectorSyncResult.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.ConnectorSyncResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailSyncCount** | **int** | | +**LogLines** | **List<string>** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ContactControllerApi.md b/docs/ContactControllerApi.md new file mode 100644 index 00000000..6e132d41 --- /dev/null +++ b/docs/ContactControllerApi.md @@ -0,0 +1,574 @@ +# mailslurp_netstandard_2x.Api.ContactControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateContact**](ContactControllerApi#createcontact) | **POST** /contacts | Create a contact | +| [**DeleteContact**](ContactControllerApi#deletecontact) | **DELETE** /contacts/{contactId} | Delete contact | +| [**GetAllContacts**](ContactControllerApi#getallcontacts) | **GET** /contacts/paginated | Get all contacts | +| [**GetContact**](ContactControllerApi#getcontact) | **GET** /contacts/{contactId} | Get contact | +| [**GetContactVCard**](ContactControllerApi#getcontactvcard) | **GET** /contacts/{contactId}/download | Get contact vCard vcf file | +| [**GetContacts**](ContactControllerApi#getcontacts) | **GET** /contacts | Get all contacts | + + +# **CreateContact** +> ContactDto CreateContact (CreateContactOptions createContactOptions) + +Create a contact + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateContactExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ContactControllerApi(config); + var createContactOptions = new CreateContactOptions(); // CreateContactOptions | + + try + { + // Create a contact + ContactDto result = apiInstance.CreateContact(createContactOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ContactControllerApi.CreateContact: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateContactWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a contact + ApiResponse response = apiInstance.CreateContactWithHttpInfo(createContactOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ContactControllerApi.CreateContactWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createContactOptions** | [**CreateContactOptions**](CreateContactOptions) | | | + +### Return type + +[**ContactDto**](ContactDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteContact** +> void DeleteContact (Guid contactId) + +Delete contact + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteContactExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ContactControllerApi(config); + var contactId = "contactId_example"; // Guid | + + try + { + // Delete contact + apiInstance.DeleteContact(contactId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ContactControllerApi.DeleteContact: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteContactWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete contact + apiInstance.DeleteContactWithHttpInfo(contactId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ContactControllerApi.DeleteContactWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contactId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllContacts** +> PageContactProjection GetAllContacts (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, string search = null) + +Get all contacts + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllContactsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ContactControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + var search = "search_example"; // string | Search terms (optional) + + try + { + // Get all contacts + PageContactProjection result = apiInstance.GetAllContacts(page, size, sort, since, before, search); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ContactControllerApi.GetAllContacts: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllContactsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all contacts + ApiResponse response = apiInstance.GetAllContactsWithHttpInfo(page, size, sort, since, before, search); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ContactControllerApi.GetAllContactsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | +| **search** | **string** | Search terms | [optional] | + +### Return type + +[**PageContactProjection**](PageContactProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetContact** +> ContactDto GetContact (Guid contactId) + +Get contact + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetContactExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ContactControllerApi(config); + var contactId = "contactId_example"; // Guid | + + try + { + // Get contact + ContactDto result = apiInstance.GetContact(contactId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ContactControllerApi.GetContact: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetContactWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get contact + ApiResponse response = apiInstance.GetContactWithHttpInfo(contactId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ContactControllerApi.GetContactWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contactId** | **Guid** | | | + +### Return type + +[**ContactDto**](ContactDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetContactVCard** +> void GetContactVCard (Guid contactId) + +Get contact vCard vcf file + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetContactVCardExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ContactControllerApi(config); + var contactId = "contactId_example"; // Guid | + + try + { + // Get contact vCard vcf file + apiInstance.GetContactVCard(contactId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ContactControllerApi.GetContactVCard: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetContactVCardWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get contact vCard vcf file + apiInstance.GetContactVCardWithHttpInfo(contactId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ContactControllerApi.GetContactVCardWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contactId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetContacts** +> List<ContactProjection> GetContacts () + +Get all contacts + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetContactsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ContactControllerApi(config); + + try + { + // Get all contacts + List result = apiInstance.GetContacts(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ContactControllerApi.GetContacts: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetContactsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all contacts + ApiResponse> response = apiInstance.GetContactsWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ContactControllerApi.GetContactsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**List<ContactProjection>**](ContactProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/ContactDto.md b/docs/ContactDto.md new file mode 100644 index 00000000..af0ec02f --- /dev/null +++ b/docs/ContactDto.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.ContactDto +Contact object. For saving a user in contact book. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**GroupId** | **Guid?** | | [optional] +**FirstName** | **string** | | [optional] +**LastName** | **string** | | [optional] +**Company** | **string** | | [optional] +**EmailAddresses** | **List<string>** | | +**PrimaryEmailAddress** | **string** | | [optional] +**Tags** | **List<string>** | | +**MetaData** | **Object** | | [optional] +**OptOut** | **bool?** | | [optional] +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ContactProjection.md b/docs/ContactProjection.md new file mode 100644 index 00000000..da32979e --- /dev/null +++ b/docs/ContactProjection.md @@ -0,0 +1,19 @@ +# mailslurp_netstandard_2x.Model.ContactProjection +Email contact for address book + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailAddress** | **string** | | [optional] +**EmailAddresses** | **List<string>** | | [optional] +**FirstName** | **string** | | [optional] +**LastName** | **string** | | [optional] +**Company** | **string** | | [optional] +**OptOut** | **bool?** | | [optional] +**CreatedAt** | **DateTime** | | +**Id** | **Guid** | | +**GroupId** | **Guid?** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ContentMatchOptions.md b/docs/ContentMatchOptions.md new file mode 100644 index 00000000..b2b3510b --- /dev/null +++ b/docs/ContentMatchOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.ContentMatchOptions +Options for matching content using regex patterns based on Java Pattern syntax + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pattern** | **string** | Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CountDto.md b/docs/CountDto.md new file mode 100644 index 00000000..95b3f370 --- /dev/null +++ b/docs/CountDto.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.CountDto +Number of elements + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalElements** | **long** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateAliasOptions.md b/docs/CreateAliasOptions.md new file mode 100644 index 00000000..133edfdc --- /dev/null +++ b/docs/CreateAliasOptions.md @@ -0,0 +1,16 @@ +# mailslurp_netstandard_2x.Model.CreateAliasOptions +Create email alias options. Email aliases can be used to mask real email addresses behind an ID. You can also attach an inbox to an alias so that any email received by the inbox email address if forwarded to the alias email address. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailAddress** | **string** | Email address to be hidden behind alias. Emails sent to the alias email address will be forwarded to this address. If you want to enable replies set useThreads true and the reply-to for the email will allow outbound communication via a thread. Some email addresses may require verification if they are not added as a contact first. | +**InboxId** | **Guid?** | Optional inbox ID to attach to alias. Null by default means an a new inbox will be created for the alias. Use a custom inbox to control what email address the alias uses. To use custom email addresses create a domain and an inbox, the use the inbox ID with this call. Emails received by this inbox will be forwarded to the alias email address | [optional] +**Name** | **string** | Optional name for alias | [optional] +**UseThreads** | **bool** | Enable threads options. If true emails will be sent with a unique reply-to thread address. This means you can reply to the forwarded email and it will be sent to the recipients via your alias address. That way a thread conversation is preserved. | +**DomainId** | **Guid?** | Custom domain ID to use when generating alias email addresses | [optional] +**VerifyEmailAddress** | **bool?** | Whether to verify the masked email address exists before sending an email to it | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateConnectorImapConnectionOptions.md b/docs/CreateConnectorImapConnectionOptions.md new file mode 100644 index 00000000..3a5ea10b --- /dev/null +++ b/docs/CreateConnectorImapConnectionOptions.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.CreateConnectorImapConnectionOptions +Options for IMAP connection to external email inbox. Allows syncing emails iva IMAP. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImapSsl** | **bool?** | | [optional] +**ImapUsername** | **string** | | [optional] +**ImapPassword** | **string** | | [optional] +**SelectFolder** | **string** | Optional folder to select during IMAP connection | [optional] +**SearchTerms** | **string** | | [optional] +**ImapPort** | **int?** | IMAP server port | [optional] +**ImapHost** | **string** | IMAP server host | +**Enabled** | **bool?** | IMAP server enabled | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateConnectorOptions.md b/docs/CreateConnectorOptions.md new file mode 100644 index 00000000..19cbe960 --- /dev/null +++ b/docs/CreateConnectorOptions.md @@ -0,0 +1,16 @@ +# mailslurp_netstandard_2x.Model.CreateConnectorOptions +Options for creating an inbox connection with an external mail provider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SyncEnabled** | **bool?** | Enable automatic background sync | [optional] +**SyncScheduleType** | **string** | Sync schedule type | [optional] +**SyncInterval** | **int?** | Sync interval in minutes | [optional] +**Name** | **string** | Name of connector | [optional] +**EmailAddress** | **string** | Email address of external inbox | [optional] +**Enabled** | **bool?** | Is connector enabled | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateConnectorSmtpConnectionOptions.md b/docs/CreateConnectorSmtpConnectionOptions.md new file mode 100644 index 00000000..dc66c989 --- /dev/null +++ b/docs/CreateConnectorSmtpConnectionOptions.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.CreateConnectorSmtpConnectionOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | | [optional] +**SmtpHost** | **string** | | +**SmtpPort** | **int** | | [optional] +**SmtpSsl** | **bool** | | [optional] +**SmtpUsername** | **string** | | [optional] +**SmtpPassword** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateContactOptions.md b/docs/CreateContactOptions.md new file mode 100644 index 00000000..5655401f --- /dev/null +++ b/docs/CreateContactOptions.md @@ -0,0 +1,19 @@ +# mailslurp_netstandard_2x.Model.CreateContactOptions +Options for creating an email contact in address book + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstName** | **string** | | [optional] +**LastName** | **string** | | [optional] +**Company** | **string** | | [optional] +**EmailAddresses** | **List<string>** | Set of email addresses belonging to the contact | [optional] +**Tags** | **List<string>** | Tags that can be used to search and group contacts | [optional] +**MetaData** | **Object** | | [optional] +**OptOut** | **bool?** | Has the user explicitly or implicitly opted out of being contacted? If so MailSlurp will ignore them in all actions. | [optional] +**GroupId** | **Guid?** | Group IDs that contact belongs to | [optional] +**VerifyEmailAddresses** | **bool?** | Whether to validate contact email address exists | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateDomainOptions.md b/docs/CreateDomainOptions.md new file mode 100644 index 00000000..a55d8c8a --- /dev/null +++ b/docs/CreateDomainOptions.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.CreateDomainOptions +Options for creating a domain to use with MailSlurp. You must have ownership access to this domain in order to verify it. Domains will not function correctly until the domain has been verified. See https://www.mailslurp.com/guides/custom-domains for help. Domains can be either `HTTP` or `SMTP` type. The type of domain determines which inboxes can be used with it. `SMTP` inboxes use a mail server running `mxslurp.click` while `HTTP` inboxes are handled by AWS SES. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Domain** | **string** | The top level domain you wish to use with MailSlurp. Do not specify subdomain just the top level. So `test.com` covers all subdomains such as `mail.test.com`. Don't include a protocol such as `http://`. Once added you must complete the verification steps by adding the returned records to your domain. | +**Description** | **string** | Optional description of the domain. | [optional] +**CreatedCatchAllInbox** | **bool?** | Whether to create a catch all inbox for the domain. Any email sent to an address using your domain that cannot be matched to an existing inbox you created with the domain will be routed to the created catch all inbox. You can access emails using the regular methods on this inbox ID. | [optional] +**DomainType** | **string** | Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateEmergencyAddressOptions.md b/docs/CreateEmergencyAddressOptions.md new file mode 100644 index 00000000..fa055668 --- /dev/null +++ b/docs/CreateEmergencyAddressOptions.md @@ -0,0 +1,16 @@ +# mailslurp_netstandard_2x.Model.CreateEmergencyAddressOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomerName** | **string** | | +**Address1** | **string** | | +**City** | **string** | | +**Region** | **string** | | +**PostalCode** | **string** | | +**IsoCountryCode** | **string** | | +**DisplayName** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateGroupOptions.md b/docs/CreateGroupOptions.md new file mode 100644 index 00000000..1881df13 --- /dev/null +++ b/docs/CreateGroupOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.CreateGroupOptions +Create contact group options + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateInboxDto.md b/docs/CreateInboxDto.md new file mode 100644 index 00000000..b042f0ee --- /dev/null +++ b/docs/CreateInboxDto.md @@ -0,0 +1,25 @@ +# mailslurp_netstandard_2x.Model.CreateInboxDto +Options for creating an inbox. An inbox has a real email address that can send and receive emails. Inboxes can be permanent or expire at a given time. Inboxes are either `SMTP` or `HTTP` mailboxes. `SMTP` inboxes are processed by a mail server running at `mailslurp.mx` while `HTTP` inboxes are processed by AWS SES backed mailservers. An inbox email address is randomly assigned by default ending in either `mailslurp.com` or (if `useDomainPool` is enabled) ending in a similar domain such as `mailslurp.xyz` (selected at random). To specify an address use a custom domain: either pass the `emailAddress` options with `@`. To create a randomized address for your domain set the `domainName` to the domain you have verified or pass the `domainId`. Virtual inboxes prevent outbound sending and instead trap mail. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailAddress** | **string** | A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. | [optional] +**DomainName** | **string** | FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. | [optional] +**DomainId** | **Guid?** | ID of custom domain to use for email address. | [optional] +**Name** | **string** | Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. | [optional] +**Description** | **string** | Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with | [optional] +**UseDomainPool** | **bool?** | Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. | [optional] +**Tags** | **List<string>** | Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. | [optional] +**ExpiresAt** | **DateTime?** | Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. | [optional] +**Favourite** | **bool?** | Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering | [optional] +**ExpiresIn** | **long?** | Number of milliseconds that inbox should exist for | [optional] +**AllowTeamAccess** | **bool?** | DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. | [optional] +**InboxType** | **string** | Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). | [optional] +**VirtualInbox** | **bool?** | Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. | [optional] +**UseShortAddress** | **bool?** | Use a shorter email address under 31 characters | [optional] +**Prefix** | **string** | Prefix to add before the email address for easier labelling or identification. | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateInboxForwarderOptions.md b/docs/CreateInboxForwarderOptions.md new file mode 100644 index 00000000..243edb99 --- /dev/null +++ b/docs/CreateInboxForwarderOptions.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.CreateInboxForwarderOptions +Options for creating an inbox forwarder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Field** | **string** | Field to match against to trigger inbox forwarding for inbound email | +**Match** | **string** | String or wildcard style match for field specified when evaluating forwarding rules | +**ForwardToRecipients** | **List<string>** | Email addresses to forward an email to if it matches the field and match criteria of the forwarder | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateInboxReplierOptions.md b/docs/CreateInboxReplierOptions.md new file mode 100644 index 00000000..cb1304cb --- /dev/null +++ b/docs/CreateInboxReplierOptions.md @@ -0,0 +1,23 @@ +# mailslurp_netstandard_2x.Model.CreateInboxReplierOptions +Options for creating an inbox replier. Repliers can be attached to inboxes and send automated responses when an inbound email matches given criteria. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxId** | **Guid** | Inbox ID to attach replier to | +**Name** | **string** | Name for replier | [optional] +**Field** | **string** | Field to match against to trigger inbox replier for inbound email | +**Match** | **string** | String or wildcard style match for field specified when evaluating reply rules. Use `*` to match anything. | +**ReplyTo** | **string** | Reply-to email address when sending replying | [optional] +**Subject** | **string** | Subject override when replying to email | [optional] +**From** | **string** | Send email from address | [optional] +**Charset** | **string** | Email reply charset | [optional] +**IgnoreReplyTo** | **bool?** | Ignore sender replyTo when responding. Send directly to the sender if enabled. | [optional] +**IsHTML** | **bool?** | Send HTML email | [optional] +**Body** | **string** | Email body for reply | [optional] +**TemplateId** | **Guid?** | ID of template to use when sending a reply | [optional] +**TemplateVariables** | **Dictionary<string, Object>** | Template variable values | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateInboxRulesetOptions.md b/docs/CreateInboxRulesetOptions.md new file mode 100644 index 00000000..011d1ced --- /dev/null +++ b/docs/CreateInboxRulesetOptions.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.CreateInboxRulesetOptions +Options for creating inbox rulesets. Inbox rulesets can be used to block, allow, filter, or forward emails when sending or receiving using the inbox. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Scope** | **string** | What type of emails actions to apply ruleset to. Either `SENDING_EMAILS` or `RECEIVING_EMAILS` will apply action and target to any sending or receiving of emails respectively. | +**Action** | **string** | Action to be taken when the ruleset matches an email for the given scope. For example: `BLOCK` action with target `*` and scope `SENDING_EMAILS` blocks sending to all recipients. Note `ALLOW` takes precedent over `BLOCK`. `FILTER_REMOVE` is like block but will remove offending email addresses during a send or receive event instead of blocking the action. | +**Target** | **string** | Target to match emails with. Can be a wild-card type pattern or a valid email address. For instance `*@gmail.com` matches all gmail addresses while `test@gmail.com` matches one address exactly. The target is applied to every recipient field email address when `SENDING_EMAILS` is the scope and is applied to sender of email when `RECEIVING_EMAILS`. | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateTemplateOptions.md b/docs/CreateTemplateOptions.md new file mode 100644 index 00000000..2f2ab02c --- /dev/null +++ b/docs/CreateTemplateOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.CreateTemplateOptions +Create template options + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of template | +**Content** | **string** | Template content. Can include moustache style variables such as {{var_name}} | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateTrackingPixelOptions.md b/docs/CreateTrackingPixelOptions.md new file mode 100644 index 00000000..178210d1 --- /dev/null +++ b/docs/CreateTrackingPixelOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.CreateTrackingPixelOptions +Options for creating a tracking pixel for email open tracking + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] +**Recipient** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/CreateWebhookOptions.md b/docs/CreateWebhookOptions.md new file mode 100644 index 00000000..fd5f7796 --- /dev/null +++ b/docs/CreateWebhookOptions.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.CreateWebhookOptions +Options for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will POST a webhook payload to the URL specified whenever the webhook's event is triggered. Webhooks are great for processing many inbound emails and responding to other events at scale. Customize the payload sent to your endpoint by setting the `requestBodyTemplate` property to a string with moustache style variables. Property names from the standard payload model for the given event are available as variables. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger. The payload of the submitted JSON is dependent on the webhook event type. See docs.mailslurp.com/webhooks for event payload documentation. | +**BasicAuth** | [**BasicAuthOptions**](BasicAuthOptions) | | [optional] +**Name** | **string** | Optional name for the webhook | [optional] +**EventName** | **string** | Optional webhook event name. Default is `EMAIL_RECEIVED` and is triggered when an email is received by the inbox associated with the webhook. Payload differ according to the webhook event name. | [optional] +**IncludeHeaders** | [**WebhookHeaders**](WebhookHeaders) | | [optional] +**RequestBodyTemplate** | **string** | Template for the JSON body of the webhook request that will be sent to your server. Use Moustache style `{{variableName}}` templating to use parts of the standard webhook payload for the given event. | [optional] +**UseStaticIpRange** | **bool?** | Use static IP range when calling webhook endpoint | [optional] [default to false] +**IgnoreInsecureSslCertificates** | **bool?** | Ignore insecure SSL certificates when sending request. Useful for self-signed certs. | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DNSLookupOptions.md b/docs/DNSLookupOptions.md new file mode 100644 index 00000000..b919e1a7 --- /dev/null +++ b/docs/DNSLookupOptions.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.DNSLookupOptions +Options for DNS query. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | **string** | List of record types you wish to query such as MX, DNS, TXT, NS, A etc. | +**RecordTypes** | **List<DNSLookupOptions.RecordTypesEnum>** | List of record types you wish to query such as MX, DNS, TXT, NS, A etc. | +**OmitFinalDNSDot** | **bool** | Optionally control whether to omit the final dot in full DNS name values. | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DNSLookupResult.md b/docs/DNSLookupResult.md new file mode 100644 index 00000000..6b9cf212 --- /dev/null +++ b/docs/DNSLookupResult.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.DNSLookupResult +DNS lookup result. Includes record type, time to live, raw response, and name value for the name server response. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RecordType** | **string** | Domain Name Server Record Types | +**Ttl** | **long** | | +**RecordEntries** | **List<string>** | | +**Name** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DNSLookupResults.md b/docs/DNSLookupResults.md new file mode 100644 index 00000000..f80b62c7 --- /dev/null +++ b/docs/DNSLookupResults.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.DNSLookupResults +Results of query on domain name servers + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | [**List<DNSLookupResult>**](DNSLookupResult) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DNSLookupsOptions.md b/docs/DNSLookupsOptions.md new file mode 100644 index 00000000..023467d2 --- /dev/null +++ b/docs/DNSLookupsOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.DNSLookupsOptions +Options for multiple DNS queries + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lookups** | [**List<DNSLookupOptions>**](DNSLookupOptions) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DeliveryStatusDto.md b/docs/DeliveryStatusDto.md new file mode 100644 index 00000000..dda797b7 --- /dev/null +++ b/docs/DeliveryStatusDto.md @@ -0,0 +1,23 @@ +# mailslurp_netstandard_2x.Model.DeliveryStatusDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**SentId** | **Guid** | | [optional] +**RemoteMtaIp** | **string** | | [optional] +**InboxId** | **Guid** | | [optional] +**ReportingMta** | **string** | | [optional] +**Recipients** | **List<string>** | | [optional] +**SmtpResponse** | **string** | | [optional] +**SmtpStatusCode** | **int** | | [optional] +**ProcessingTimeMillis** | **long** | | [optional] +**Received** | **DateTime** | | [optional] +**Subject** | **string** | | [optional] +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DescribeDomainOptions.md b/docs/DescribeDomainOptions.md new file mode 100644 index 00000000..de28d4c3 --- /dev/null +++ b/docs/DescribeDomainOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.DescribeDomainOptions +Domain record description + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Domain** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DescribeMailServerDomainResult.md b/docs/DescribeMailServerDomainResult.md new file mode 100644 index 00000000..4e99b532 --- /dev/null +++ b/docs/DescribeMailServerDomainResult.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.DescribeMailServerDomainResult +Name Server lookup result + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MxRecords** | [**List<NameServerRecord>**](NameServerRecord) | | +**Domain** | **string** | | +**Message** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DomainControllerApi.md b/docs/DomainControllerApi.md new file mode 100644 index 00000000..c7d22b21 --- /dev/null +++ b/docs/DomainControllerApi.md @@ -0,0 +1,971 @@ +# mailslurp_netstandard_2x.Api.DomainControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**AddDomainWildcardCatchAll**](DomainControllerApi#adddomainwildcardcatchall) | **POST** /domains/{id}/wildcard | Add catch all wild card inbox to domain | +| [**CreateDomain**](DomainControllerApi#createdomain) | **POST** /domains | Create Domain | +| [**DeleteDomain**](DomainControllerApi#deletedomain) | **DELETE** /domains/{id} | Delete a domain | +| [**GetAvailableDomains**](DomainControllerApi#getavailabledomains) | **GET** /domains/available-domains | Get all usable domains | +| [**GetDomain**](DomainControllerApi#getdomain) | **GET** /domains/{id} | Get a domain | +| [**GetDomainIssues**](DomainControllerApi#getdomainissues) | **GET** /domains/issues | Get domain issues | +| [**GetDomainWildcardCatchAllInbox**](DomainControllerApi#getdomainwildcardcatchallinbox) | **GET** /domains/{id}/wildcard | Get catch all wild card inbox for domain | +| [**GetDomains**](DomainControllerApi#getdomains) | **GET** /domains | Get domains | +| [**GetMailSlurpDomains**](DomainControllerApi#getmailslurpdomains) | **GET** /domains/mailslurp-domains | Get MailSlurp domains | +| [**UpdateDomain**](DomainControllerApi#updatedomain) | **PUT** /domains/{id} | Update a domain | + + +# **AddDomainWildcardCatchAll** +> DomainDto AddDomainWildcardCatchAll (Guid id) + +Add catch all wild card inbox to domain + +Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class AddDomainWildcardCatchAllExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new DomainControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Add catch all wild card inbox to domain + DomainDto result = apiInstance.AddDomainWildcardCatchAll(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling DomainControllerApi.AddDomainWildcardCatchAll: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the AddDomainWildcardCatchAllWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Add catch all wild card inbox to domain + ApiResponse response = apiInstance.AddDomainWildcardCatchAllWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling DomainControllerApi.AddDomainWildcardCatchAllWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +[**DomainDto**](DomainDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateDomain** +> DomainDto CreateDomain (CreateDomainOptions createDomainOptions) + +Create Domain + +Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateDomainExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new DomainControllerApi(config); + var createDomainOptions = new CreateDomainOptions(); // CreateDomainOptions | + + try + { + // Create Domain + DomainDto result = apiInstance.CreateDomain(createDomainOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling DomainControllerApi.CreateDomain: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateDomainWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create Domain + ApiResponse response = apiInstance.CreateDomainWithHttpInfo(createDomainOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling DomainControllerApi.CreateDomainWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createDomainOptions** | [**CreateDomainOptions**](CreateDomainOptions) | | | + +### Return type + +[**DomainDto**](DomainDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteDomain** +> List<string> DeleteDomain (Guid id) + +Delete a domain + +Delete a domain. This will disable any existing inboxes that use this domain. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteDomainExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new DomainControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Delete a domain + List result = apiInstance.DeleteDomain(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling DomainControllerApi.DeleteDomain: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteDomainWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete a domain + ApiResponse> response = apiInstance.DeleteDomainWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling DomainControllerApi.DeleteDomainWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +**List** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAvailableDomains** +> DomainGroupsDto GetAvailableDomains (string inboxType = null) + +Get all usable domains + +List all domains available for use with email address creation + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAvailableDomainsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new DomainControllerApi(config); + var inboxType = "HTTP_INBOX"; // string | (optional) + + try + { + // Get all usable domains + DomainGroupsDto result = apiInstance.GetAvailableDomains(inboxType); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling DomainControllerApi.GetAvailableDomains: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAvailableDomainsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all usable domains + ApiResponse response = apiInstance.GetAvailableDomainsWithHttpInfo(inboxType); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling DomainControllerApi.GetAvailableDomainsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxType** | **string** | | [optional] | + +### Return type + +[**DomainGroupsDto**](DomainGroupsDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetDomain** +> DomainDto GetDomain (Guid id, bool? checkForErrors = null) + +Get a domain + +Returns domain verification status and tokens for a given domain + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetDomainExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new DomainControllerApi(config); + var id = "id_example"; // Guid | + var checkForErrors = true; // bool? | (optional) + + try + { + // Get a domain + DomainDto result = apiInstance.GetDomain(id, checkForErrors); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling DomainControllerApi.GetDomain: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetDomainWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a domain + ApiResponse response = apiInstance.GetDomainWithHttpInfo(id, checkForErrors); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling DomainControllerApi.GetDomainWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | +| **checkForErrors** | **bool?** | | [optional] | + +### Return type + +[**DomainDto**](DomainDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetDomainIssues** +> DomainIssuesDto GetDomainIssues () + +Get domain issues + +List domain issues for domains you have created + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetDomainIssuesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new DomainControllerApi(config); + + try + { + // Get domain issues + DomainIssuesDto result = apiInstance.GetDomainIssues(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling DomainControllerApi.GetDomainIssues: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetDomainIssuesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get domain issues + ApiResponse response = apiInstance.GetDomainIssuesWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling DomainControllerApi.GetDomainIssuesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**DomainIssuesDto**](DomainIssuesDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetDomainWildcardCatchAllInbox** +> InboxDto GetDomainWildcardCatchAllInbox (Guid id) + +Get catch all wild card inbox for domain + +Get the catch all inbox for a domain for missed emails + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetDomainWildcardCatchAllInboxExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new DomainControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Get catch all wild card inbox for domain + InboxDto result = apiInstance.GetDomainWildcardCatchAllInbox(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling DomainControllerApi.GetDomainWildcardCatchAllInbox: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetDomainWildcardCatchAllInboxWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get catch all wild card inbox for domain + ApiResponse response = apiInstance.GetDomainWildcardCatchAllInboxWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling DomainControllerApi.GetDomainWildcardCatchAllInboxWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +[**InboxDto**](InboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetDomains** +> List<DomainPreview> GetDomains () + +Get domains + +List all custom domains you have created + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetDomainsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new DomainControllerApi(config); + + try + { + // Get domains + List result = apiInstance.GetDomains(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling DomainControllerApi.GetDomains: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetDomainsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get domains + ApiResponse> response = apiInstance.GetDomainsWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling DomainControllerApi.GetDomainsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**List<DomainPreview>**](DomainPreview) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetMailSlurpDomains** +> DomainGroupsDto GetMailSlurpDomains (string inboxType = null) + +Get MailSlurp domains + +List all MailSlurp domains used with non-custom email addresses + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetMailSlurpDomainsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new DomainControllerApi(config); + var inboxType = "HTTP_INBOX"; // string | (optional) + + try + { + // Get MailSlurp domains + DomainGroupsDto result = apiInstance.GetMailSlurpDomains(inboxType); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling DomainControllerApi.GetMailSlurpDomains: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetMailSlurpDomainsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get MailSlurp domains + ApiResponse response = apiInstance.GetMailSlurpDomainsWithHttpInfo(inboxType); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling DomainControllerApi.GetMailSlurpDomainsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxType** | **string** | | [optional] | + +### Return type + +[**DomainGroupsDto**](DomainGroupsDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UpdateDomain** +> DomainDto UpdateDomain (Guid id, UpdateDomainOptions updateDomainOptions) + +Update a domain + +Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UpdateDomainExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new DomainControllerApi(config); + var id = "id_example"; // Guid | + var updateDomainOptions = new UpdateDomainOptions(); // UpdateDomainOptions | + + try + { + // Update a domain + DomainDto result = apiInstance.UpdateDomain(id, updateDomainOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling DomainControllerApi.UpdateDomain: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UpdateDomainWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Update a domain + ApiResponse response = apiInstance.UpdateDomainWithHttpInfo(id, updateDomainOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling DomainControllerApi.UpdateDomainWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | +| **updateDomainOptions** | [**UpdateDomainOptions**](UpdateDomainOptions) | | | + +### Return type + +[**DomainDto**](DomainDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/DomainDto.md b/docs/DomainDto.md new file mode 100644 index 00000000..b321f6a5 --- /dev/null +++ b/docs/DomainDto.md @@ -0,0 +1,23 @@ +# mailslurp_netstandard_2x.Model.DomainDto +Domain plus verification records and status + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**Domain** | **string** | Custom domain name | +**VerificationToken** | **string** | Verification tokens | +**DkimTokens** | **List<string>** | Unique token DKIM tokens | +**MissingRecordsMessage** | **string** | If the domain is missing records then show which pairs are missing. | [optional] +**HasMissingRecords** | **bool** | Whether the domain has missing required records. If true then see the domain in the dashboard app. | +**IsVerified** | **bool** | Whether domain has been verified or not. If the domain is not verified after 72 hours there is most likely an issue with the domains DNS records. | +**DomainNameRecords** | [**List<DomainNameRecord>**](DomainNameRecord) | List of DNS domain name records (C, MX, TXT) etc that you must add to the DNS server associated with your domain provider. | +**CatchAllInboxId** | **Guid?** | The optional catch all inbox that will receive emails sent to the domain that cannot be matched. | [optional] +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | +**DomainType** | **string** | Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DomainGroup.md b/docs/DomainGroup.md new file mode 100644 index 00000000..f2b96b16 --- /dev/null +++ b/docs/DomainGroup.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.DomainGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Label** | **string** | | +**Domains** | [**List<DomainInformation>**](DomainInformation) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DomainGroupsDto.md b/docs/DomainGroupsDto.md new file mode 100644 index 00000000..51fc5bef --- /dev/null +++ b/docs/DomainGroupsDto.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.DomainGroupsDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DomainGroups** | [**List<DomainGroup>**](DomainGroup) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DomainInformation.md b/docs/DomainInformation.md new file mode 100644 index 00000000..cd9e79e4 --- /dev/null +++ b/docs/DomainInformation.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.DomainInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DomainName** | **string** | | +**Verified** | **bool** | | +**DomainType** | **string** | Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DomainIssuesDto.md b/docs/DomainIssuesDto.md new file mode 100644 index 00000000..388f3a9e --- /dev/null +++ b/docs/DomainIssuesDto.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.DomainIssuesDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HasIssues** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DomainNameRecord.md b/docs/DomainNameRecord.md new file mode 100644 index 00000000..451a1e27 --- /dev/null +++ b/docs/DomainNameRecord.md @@ -0,0 +1,16 @@ +# mailslurp_netstandard_2x.Model.DomainNameRecord +DNS Record required for verification of a domain. Record vary depending on domain type. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Label** | **string** | Domain Name Server Record Label | +**Required** | **bool** | | +**RecordType** | **string** | Domain Name Server Record Types | +**Name** | **string** | | +**RecordEntries** | **List<string>** | | +**Ttl** | **long** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DomainPreview.md b/docs/DomainPreview.md new file mode 100644 index 00000000..3968ccab --- /dev/null +++ b/docs/DomainPreview.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.DomainPreview +Preview object for domain entity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**Domain** | **string** | | +**CatchAllInboxId** | **Guid?** | | [optional] +**CreatedAt** | **DateTime** | | +**DomainType** | **string** | Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. | +**IsVerified** | **bool** | | +**HasMissingRecords** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/DownloadAttachmentDto.md b/docs/DownloadAttachmentDto.md new file mode 100644 index 00000000..bfe3a53b --- /dev/null +++ b/docs/DownloadAttachmentDto.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.DownloadAttachmentDto +Content of attachment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Base64FileContents** | **string** | Base64 encoded string of attachment bytes. Decode the base64 encoded string to get the raw contents. If the file has a content type such as `text/html` you can read the contents directly by converting it to string using `utf-8` encoding. | +**ContentType** | **string** | Content type of attachment. Examples are `image/png`, `application/msword`, `text/csv` etc. | +**SizeBytes** | **long** | Size in bytes of attachment content | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/Email.md b/docs/Email.md new file mode 100644 index 00000000..a0744cf5 --- /dev/null +++ b/docs/Email.md @@ -0,0 +1,40 @@ +# mailslurp_netstandard_2x.Model.Email +Email entity (also known as EmailDto). When an SMTP email message is received by MailSlurp it is parsed. The body and attachments are written to disk and the fields such as to, from, subject etc are stored in a database. The `body` contains the email content. If you want the original SMTP message see the `getRawEmail` endpoints. The attachments can be fetched using the AttachmentController + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | ID of the email entity | +**UserId** | **Guid** | ID of user that email belongs to | +**InboxId** | **Guid** | ID of the inbox that received the email | +**DomainId** | **Guid?** | ID of the domain that received the email | [optional] +**To** | **List<string>** | List of `To` recipient email addresses that the email was addressed to. See recipients object for names. | +**From** | **string** | Who the email was sent from. An email address - see fromName for the sender name. | [optional] +**Sender** | [**Sender**](Sender) | | [optional] +**Recipients** | [**EmailRecipients**](EmailRecipients) | | [optional] +**ReplyTo** | **string** | The `replyTo` field on the received email message | [optional] +**Cc** | **List<string>** | List of `CC` recipients email addresses that the email was addressed to. See recipients object for names. | [optional] +**Bcc** | **List<string>** | List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names. | [optional] +**Headers** | **Dictionary<string, string>** | Collection of SMTP headers attached to email | [optional] +**HeadersMap** | **Dictionary<string, List<string>>** | Multi-value map of SMTP headers attached to email | [optional] +**Attachments** | **List<string>** | List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension. | [optional] +**Subject** | **string** | The subject line of the email message as specified by SMTP subject header | [optional] +**Body** | **string** | The body of the email message as text parsed from the SMTP message body (does not include attachments). Fetch the raw content to access the SMTP message and use the attachments property to access attachments. The body is stored separately to the email entity so the body is not returned in paginated results only in full single email or wait requests. | [optional] +**BodyExcerpt** | **string** | An excerpt of the body of the email message for quick preview. Takes HTML content part if exists falls back to TEXT content part if not | [optional] +**TextExcerpt** | **string** | An excerpt of the body of the email message for quick preview. Takes TEXT content part if exists | [optional] +**BodyMD5Hash** | **string** | A hash signature of the email message using MD5. Useful for comparing emails without fetching full body. | [optional] +**IsHTML** | **bool?** | Is the email body content type HTML? | [optional] +**Charset** | **string** | Detected character set of the email body such as UTF-8 | [optional] +**Analysis** | [**EmailAnalysis**](EmailAnalysis) | | [optional] +**CreatedAt** | **DateTime** | When was the email received by MailSlurp | +**UpdatedAt** | **DateTime** | When was the email last updated | +**Read** | **bool** | Read flag. Has the email ever been viewed in the dashboard or fetched via the API with a hydrated body? If so the email is marked as read. Paginated results do not affect read status. Read status is different to email opened event as it depends on your own account accessing the email. Email opened is determined by tracking pixels sent to other uses if enable during sending. You can listened for both email read and email opened events using webhooks. | +**TeamAccess** | **bool** | Can the email be accessed by organization team members | +**IsXAmpHtml** | **bool?** | Is the email body content type x-amp-html Amp4Email? | [optional] +**BodyPartContentTypes** | **List<string>** | A list of detected multipart mime message body part content types such as text/plain and text/html. Can be used with email bodyPart endpoints to fetch individual body parts. | [optional] +**Html** | **bool** | | [optional] +**XampHtml** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailAnalysis.md b/docs/EmailAnalysis.md new file mode 100644 index 00000000..3291207e --- /dev/null +++ b/docs/EmailAnalysis.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.EmailAnalysis +Analysis result for email. Each verdict property is a string PASS|FAIL|GRAY or dynamic error message + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SpamVerdict** | **string** | Verdict of spam ranking analysis | [optional] +**VirusVerdict** | **string** | Verdict of virus scan analysis | [optional] +**SpfVerdict** | **string** | Verdict of Send Policy Framework record spoofing analysis | [optional] +**DkimVerdict** | **string** | Verdict of DomainKeys Identified Mail analysis | [optional] +**DmarcVerdict** | **string** | Verdict of Domain-based Message Authentication Reporting and Conformance analysis | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailContentMatchResult.md b/docs/EmailContentMatchResult.md new file mode 100644 index 00000000..0f6f8293 --- /dev/null +++ b/docs/EmailContentMatchResult.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.EmailContentMatchResult +Matches for the given pattern + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pattern** | **string** | | +**Matches** | **List<string>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailContentPartResult.md b/docs/EmailContentPartResult.md new file mode 100644 index 00000000..c501a653 --- /dev/null +++ b/docs/EmailContentPartResult.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.EmailContentPartResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailControllerApi.md b/docs/EmailControllerApi.md new file mode 100644 index 00000000..7da18dba --- /dev/null +++ b/docs/EmailControllerApi.md @@ -0,0 +1,4045 @@ +# mailslurp_netstandard_2x.Api.EmailControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**ApplyImapFlagOperation**](EmailControllerApi#applyimapflagoperation) | **POST** /emails/{emailId}/imap-flag-operation | Set IMAP flags associated with a message. Only supports '\\Seen' flag. | +| [**CanSend**](EmailControllerApi#cansend) | **POST** /emails/can-send | Check if email can be sent and options are valid. | +| [**CheckEmailBody**](EmailControllerApi#checkemailbody) | **POST** /emails/{emailId}/check-email-body | Detect broken links, spelling, and images in email content | +| [**CheckEmailBodyFeatureSupport**](EmailControllerApi#checkemailbodyfeaturesupport) | **POST** /emails/{emailId}/check-email-body-feature-support | Show which mail clients support the HTML and CSS features used in an email body. | +| [**CheckEmailClientSupport**](EmailControllerApi#checkemailclientsupport) | **POST** /emails/check-email-client-support | Show which email programs and devices support the features used in an email body. | +| [**DeleteAllEmails**](EmailControllerApi#deleteallemails) | **DELETE** /emails | Delete all emails in all inboxes. | +| [**DeleteEmail**](EmailControllerApi#deleteemail) | **DELETE** /emails/{emailId} | Delete an email | +| [**DownloadAttachment**](EmailControllerApi#downloadattachment) | **GET** /emails/{emailId}/attachments/{attachmentId} | Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. | +| [**DownloadAttachmentBase64**](EmailControllerApi#downloadattachmentbase64) | **GET** /emails/{emailId}/attachments/{attachmentId}/base64 | Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. | +| [**DownloadBody**](EmailControllerApi#downloadbody) | **GET** /emails/{emailId}/body | Get email body as string. Returned as `plain/text` with content type header. | +| [**DownloadBodyBytes**](EmailControllerApi#downloadbodybytes) | **GET** /emails/{emailId}/body-bytes | Get email body in bytes. Returned as `octet-stream` with content type header. | +| [**ForwardEmail**](EmailControllerApi#forwardemail) | **POST** /emails/{emailId}/forward | Forward email to recipients | +| [**GetAttachmentMetaData**](EmailControllerApi#getattachmentmetadata) | **GET** /emails/{emailId}/attachments/{attachmentId}/metadata | Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. | +| [**GetEmail**](EmailControllerApi#getemail) | **GET** /emails/{emailId} | Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. | +| [**GetEmailAttachments**](EmailControllerApi#getemailattachments) | **GET** /emails/{emailId}/attachments | Get all email attachment metadata. Metadata includes name and size of attachments. | +| [**GetEmailContentMatch**](EmailControllerApi#getemailcontentmatch) | **POST** /emails/{emailId}/contentMatch | Get email content regex pattern match results. Runs regex against email body and returns match groups. | +| [**GetEmailContentPart**](EmailControllerApi#getemailcontentpart) | **GET** /emails/{emailId}/contentPart | Get email content part by content type | +| [**GetEmailCount**](EmailControllerApi#getemailcount) | **GET** /emails/emails/count | Get email count | +| [**GetEmailHTML**](EmailControllerApi#getemailhtml) | **GET** /emails/{emailId}/html | Get email content as HTML. For displaying emails in browser context. | +| [**GetEmailHTMLJson**](EmailControllerApi#getemailhtmljson) | **GET** /emails/{emailId}/html/json | Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content | +| [**GetEmailHTMLQuery**](EmailControllerApi#getemailhtmlquery) | **GET** /emails/{emailId}/htmlQuery | Parse and return text from an email, stripping HTML and decoding encoded characters | +| [**GetEmailLinks**](EmailControllerApi#getemaillinks) | **GET** /emails/{emailId}/links | Parse and return list of links found in an email (only works for HTML content) | +| [**GetEmailPreviewURLs**](EmailControllerApi#getemailpreviewurls) | **GET** /emails/{emailId}/urls | Get email URLs for viewing in browser or downloading | +| [**GetEmailScreenshotAsBase64**](EmailControllerApi#getemailscreenshotasbase64) | **POST** /emails/{emailId}/screenshot/base64 | Take a screenshot of an email in a browser and return base64 encoded string | +| [**GetEmailScreenshotAsBinary**](EmailControllerApi#getemailscreenshotasbinary) | **POST** /emails/{emailId}/screenshot/binary | Take a screenshot of an email in a browser | +| [**GetEmailTextLines**](EmailControllerApi#getemailtextlines) | **GET** /emails/{emailId}/textLines | Parse and return text from an email, stripping HTML and decoding encoded characters | +| [**GetEmailsOffsetPaginated**](EmailControllerApi#getemailsoffsetpaginated) | **GET** /emails/offset-paginated | Get all emails in all inboxes in paginated form. Email API list all. | +| [**GetEmailsPaginated**](EmailControllerApi#getemailspaginated) | **GET** /emails | Get all emails in all inboxes in paginated form. Email API list all. | +| [**GetGravatarUrlForEmailAddress**](EmailControllerApi#getgravatarurlforemailaddress) | **GET** /emails/gravatarFor | | +| [**GetLatestEmail**](EmailControllerApi#getlatestemail) | **GET** /emails/latest | Get latest email in all inboxes. Most recently received. | +| [**GetLatestEmailInInbox1**](EmailControllerApi#getlatestemailininbox1) | **GET** /emails/latestIn | Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. | +| [**GetOrganizationEmailsPaginated**](EmailControllerApi#getorganizationemailspaginated) | **GET** /emails/organization | Get all organization emails. List team or shared test email accounts | +| [**GetRawEmailContents**](EmailControllerApi#getrawemailcontents) | **GET** /emails/{emailId}/raw | Get raw email string. Returns unparsed raw SMTP message with headers and body. | +| [**GetRawEmailJson**](EmailControllerApi#getrawemailjson) | **GET** /emails/{emailId}/raw/json | Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. | +| [**GetUnreadEmailCount**](EmailControllerApi#getunreademailcount) | **GET** /emails/unreadCount | Get unread email count | +| [**MarkAllAsRead**](EmailControllerApi#markallasread) | **PATCH** /emails/read | Mark all emails as read or unread | +| [**MarkAsRead**](EmailControllerApi#markasread) | **PATCH** /emails/{emailId}/read | Mark an email as read or unread | +| [**ReplyToEmail**](EmailControllerApi#replytoemail) | **PUT** /emails/{emailId} | Reply to an email | +| [**SearchEmails**](EmailControllerApi#searchemails) | **POST** /emails/search | Get all emails by search criteria. Return in paginated form. | +| [**SendEmailSourceOptional**](EmailControllerApi#sendemailsourceoptional) | **POST** /emails | Send email | +| [**ValidateEmail**](EmailControllerApi#validateemail) | **POST** /emails/{emailId}/validate | Validate email HTML contents | + + +# **ApplyImapFlagOperation** +> EmailPreview ApplyImapFlagOperation (Guid emailId, ImapFlagOperationOptions imapFlagOperationOptions) + +Set IMAP flags associated with a message. Only supports '\\Seen' flag. + +Apply RFC3501 section-2.3.2 IMAP flag operations on an email + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ApplyImapFlagOperationExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | + var imapFlagOperationOptions = new ImapFlagOperationOptions(); // ImapFlagOperationOptions | + + try + { + // Set IMAP flags associated with a message. Only supports '\\Seen' flag. + EmailPreview result = apiInstance.ApplyImapFlagOperation(emailId, imapFlagOperationOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.ApplyImapFlagOperation: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApplyImapFlagOperationWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Set IMAP flags associated with a message. Only supports '\\Seen' flag. + ApiResponse response = apiInstance.ApplyImapFlagOperationWithHttpInfo(emailId, imapFlagOperationOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.ApplyImapFlagOperationWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | | | +| **imapFlagOperationOptions** | [**ImapFlagOperationOptions**](ImapFlagOperationOptions) | | | + +### Return type + +[**EmailPreview**](EmailPreview) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CanSend** +> CanSendEmailResults CanSend (Guid inboxId, SendEmailOptions sendEmailOptions) + +Check if email can be sent and options are valid. + +Can user send email to given recipient or is the recipient blocked + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CanSendExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of the inbox you want to send the email from + var sendEmailOptions = new SendEmailOptions(); // SendEmailOptions | + + try + { + // Check if email can be sent and options are valid. + CanSendEmailResults result = apiInstance.CanSend(inboxId, sendEmailOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.CanSend: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CanSendWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Check if email can be sent and options are valid. + ApiResponse response = apiInstance.CanSendWithHttpInfo(inboxId, sendEmailOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.CanSendWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of the inbox you want to send the email from | | +| **sendEmailOptions** | [**SendEmailOptions**](SendEmailOptions) | | | + +### Return type + +[**CanSendEmailResults**](CanSendEmailResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CheckEmailBody** +> CheckEmailBodyResults CheckEmailBody (Guid emailId) + +Detect broken links, spelling, and images in email content + +Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful. Any resource that returns a 4xx or 5xx response or is not reachable via HEAD or GET HTTP operations will be considered unhealthy. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CheckEmailBodyExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | + + try + { + // Detect broken links, spelling, and images in email content + CheckEmailBodyResults result = apiInstance.CheckEmailBody(emailId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.CheckEmailBody: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CheckEmailBodyWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Detect broken links, spelling, and images in email content + ApiResponse response = apiInstance.CheckEmailBodyWithHttpInfo(emailId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.CheckEmailBodyWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | | | + +### Return type + +[**CheckEmailBodyResults**](CheckEmailBodyResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CheckEmailBodyFeatureSupport** +> CheckEmailBodyFeatureSupportResults CheckEmailBodyFeatureSupport (Guid emailId) + +Show which mail clients support the HTML and CSS features used in an email body. + +Detect HTML and CSS features inside an email body and return a report of email client support across different platforms and versions. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CheckEmailBodyFeatureSupportExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | + + try + { + // Show which mail clients support the HTML and CSS features used in an email body. + CheckEmailBodyFeatureSupportResults result = apiInstance.CheckEmailBodyFeatureSupport(emailId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.CheckEmailBodyFeatureSupport: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CheckEmailBodyFeatureSupportWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Show which mail clients support the HTML and CSS features used in an email body. + ApiResponse response = apiInstance.CheckEmailBodyFeatureSupportWithHttpInfo(emailId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.CheckEmailBodyFeatureSupportWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | | | + +### Return type + +[**CheckEmailBodyFeatureSupportResults**](CheckEmailBodyFeatureSupportResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CheckEmailClientSupport** +> CheckEmailClientSupportResults CheckEmailClientSupport (CheckEmailClientSupportOptions checkEmailClientSupportOptions) + +Show which email programs and devices support the features used in an email body. + +Evaluate the features used in an email body and return a report of email client support across different platforms and versions. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CheckEmailClientSupportExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var checkEmailClientSupportOptions = new CheckEmailClientSupportOptions(); // CheckEmailClientSupportOptions | + + try + { + // Show which email programs and devices support the features used in an email body. + CheckEmailClientSupportResults result = apiInstance.CheckEmailClientSupport(checkEmailClientSupportOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.CheckEmailClientSupport: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CheckEmailClientSupportWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Show which email programs and devices support the features used in an email body. + ApiResponse response = apiInstance.CheckEmailClientSupportWithHttpInfo(checkEmailClientSupportOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.CheckEmailClientSupportWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **checkEmailClientSupportOptions** | [**CheckEmailClientSupportOptions**](CheckEmailClientSupportOptions) | | | + +### Return type + +[**CheckEmailClientSupportResults**](CheckEmailClientSupportResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteAllEmails** +> void DeleteAllEmails () + +Delete all emails in all inboxes. + +Deletes all emails in your account. Be careful as emails cannot be recovered + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAllEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + + try + { + // Delete all emails in all inboxes. + apiInstance.DeleteAllEmails(); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.DeleteAllEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAllEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete all emails in all inboxes. + apiInstance.DeleteAllEmailsWithHttpInfo(); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.DeleteAllEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteEmail** +> void DeleteEmail (Guid emailId) + +Delete an email + +Deletes an email and removes it from the inbox. Deleted emails cannot be recovered. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email to delete + + try + { + // Delete an email + apiInstance.DeleteEmail(emailId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.DeleteEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete an email + apiInstance.DeleteEmailWithHttpInfo(emailId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.DeleteEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email to delete | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DownloadAttachment** +> byte[] DownloadAttachment (Guid emailId, string attachmentId, string apiKey = null) + +Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. + +Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DownloadAttachmentExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + var attachmentId = "attachmentId_example"; // string | ID of attachment + var apiKey = "apiKey_example"; // string | Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly. (optional) + + try + { + // Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. + byte[] result = apiInstance.DownloadAttachment(emailId, attachmentId, apiKey); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.DownloadAttachment: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DownloadAttachmentWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. + ApiResponse response = apiInstance.DownloadAttachmentWithHttpInfo(emailId, attachmentId, apiKey); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.DownloadAttachmentWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | +| **attachmentId** | **string** | ID of attachment | | +| **apiKey** | **string** | Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly. | [optional] | + +### Return type + +**byte[]** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/octet-stream + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **0** | default response | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DownloadAttachmentBase64** +> DownloadAttachmentDto DownloadAttachmentBase64 (Guid emailId, string attachmentId) + +Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. + +Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DownloadAttachmentBase64Example + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + var attachmentId = "attachmentId_example"; // string | ID of attachment + + try + { + // Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. + DownloadAttachmentDto result = apiInstance.DownloadAttachmentBase64(emailId, attachmentId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.DownloadAttachmentBase64: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DownloadAttachmentBase64WithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. + ApiResponse response = apiInstance.DownloadAttachmentBase64WithHttpInfo(emailId, attachmentId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.DownloadAttachmentBase64WithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | +| **attachmentId** | **string** | ID of attachment | | + +### Return type + +[**DownloadAttachmentDto**](DownloadAttachmentDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DownloadBody** +> string DownloadBody (Guid emailId) + +Get email body as string. Returned as `plain/text` with content type header. + +Returns the specified email body for a given email as a string + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DownloadBodyExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + + try + { + // Get email body as string. Returned as `plain/text` with content type header. + string result = apiInstance.DownloadBody(emailId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.DownloadBody: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DownloadBodyWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email body as string. Returned as `plain/text` with content type header. + ApiResponse response = apiInstance.DownloadBodyWithHttpInfo(emailId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.DownloadBodyWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | + +### Return type + +**string** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, text/html + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DownloadBodyBytes** +> byte[] DownloadBodyBytes (Guid emailId) + +Get email body in bytes. Returned as `octet-stream` with content type header. + +Returns the specified email body for a given email as a stream / array of bytes. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DownloadBodyBytesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + + try + { + // Get email body in bytes. Returned as `octet-stream` with content type header. + byte[] result = apiInstance.DownloadBodyBytes(emailId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.DownloadBodyBytes: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DownloadBodyBytesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email body in bytes. Returned as `octet-stream` with content type header. + ApiResponse response = apiInstance.DownloadBodyBytesWithHttpInfo(emailId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.DownloadBodyBytesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | + +### Return type + +**byte[]** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/octet-stream + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **0** | default response | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ForwardEmail** +> SentEmailDto ForwardEmail (Guid emailId, ForwardEmailOptions forwardEmailOptions) + +Forward email to recipients + +Forward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the `from` option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ForwardEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + var forwardEmailOptions = new ForwardEmailOptions(); // ForwardEmailOptions | + + try + { + // Forward email to recipients + SentEmailDto result = apiInstance.ForwardEmail(emailId, forwardEmailOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.ForwardEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ForwardEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Forward email to recipients + ApiResponse response = apiInstance.ForwardEmailWithHttpInfo(emailId, forwardEmailOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.ForwardEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | +| **forwardEmailOptions** | [**ForwardEmailOptions**](ForwardEmailOptions) | | | + +### Return type + +[**SentEmailDto**](SentEmailDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAttachmentMetaData** +> AttachmentMetaData GetAttachmentMetaData (Guid emailId, string attachmentId) + +Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. + +Returns the metadata such as name and content-type for a given attachment and email. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAttachmentMetaDataExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + var attachmentId = "attachmentId_example"; // string | ID of attachment + + try + { + // Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. + AttachmentMetaData result = apiInstance.GetAttachmentMetaData(emailId, attachmentId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetAttachmentMetaData: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAttachmentMetaDataWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. + ApiResponse response = apiInstance.GetAttachmentMetaDataWithHttpInfo(emailId, attachmentId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetAttachmentMetaDataWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | +| **attachmentId** | **string** | ID of attachment | | + +### Return type + +[**AttachmentMetaData**](AttachmentMetaData) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmail** +> Email GetEmail (Guid emailId, bool? decode = null) + +Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. + +Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | + var decode = false; // bool? | Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing (optional) (default to false) + + try + { + // Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. + Email result = apiInstance.GetEmail(emailId, decode); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. + ApiResponse response = apiInstance.GetEmailWithHttpInfo(emailId, decode); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | | | +| **decode** | **bool?** | Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing | [optional] [default to false] | + +### Return type + +[**Email**](Email) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailAttachments** +> List<AttachmentMetaData> GetEmailAttachments (Guid emailId) + +Get all email attachment metadata. Metadata includes name and size of attachments. + +Returns an array of attachment metadata such as name and content-type for a given email if present. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailAttachmentsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + + try + { + // Get all email attachment metadata. Metadata includes name and size of attachments. + List result = apiInstance.GetEmailAttachments(emailId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailAttachments: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailAttachmentsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all email attachment metadata. Metadata includes name and size of attachments. + ApiResponse> response = apiInstance.GetEmailAttachmentsWithHttpInfo(emailId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailAttachmentsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | + +### Return type + +[**List<AttachmentMetaData>**](AttachmentMetaData) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailContentMatch** +> EmailContentMatchResult GetEmailContentMatch (Guid emailId, ContentMatchOptions contentMatchOptions) + +Get email content regex pattern match results. Runs regex against email body and returns match groups. + +Return the matches for a given Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailContentMatchExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email to match against + var contentMatchOptions = new ContentMatchOptions(); // ContentMatchOptions | + + try + { + // Get email content regex pattern match results. Runs regex against email body and returns match groups. + EmailContentMatchResult result = apiInstance.GetEmailContentMatch(emailId, contentMatchOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailContentMatch: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailContentMatchWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email content regex pattern match results. Runs regex against email body and returns match groups. + ApiResponse response = apiInstance.GetEmailContentMatchWithHttpInfo(emailId, contentMatchOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailContentMatchWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email to match against | | +| **contentMatchOptions** | [**ContentMatchOptions**](ContentMatchOptions) | | | + +### Return type + +[**EmailContentMatchResult**](EmailContentMatchResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailContentPart** +> EmailContentPartResult GetEmailContentPart (Guid emailId, string contentType) + +Get email content part by content type + +Get email body content parts from a multipart email message for a given content type + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailContentPartExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email to match against + var contentType = "contentType_example"; // string | Content type + + try + { + // Get email content part by content type + EmailContentPartResult result = apiInstance.GetEmailContentPart(emailId, contentType); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailContentPart: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailContentPartWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email content part by content type + ApiResponse response = apiInstance.GetEmailContentPartWithHttpInfo(emailId, contentType); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailContentPartWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email to match against | | +| **contentType** | **string** | Content type | | + +### Return type + +[**EmailContentPartResult**](EmailContentPartResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailCount** +> CountDto GetEmailCount (Guid? inboxId = null) + +Get email count + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailCountExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | (optional) + + try + { + // Get email count + CountDto result = apiInstance.GetEmailCount(inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailCount: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailCountWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email count + ApiResponse response = apiInstance.GetEmailCountWithHttpInfo(inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailCountWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | | [optional] | + +### Return type + +[**CountDto**](CountDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailHTML** +> string GetEmailHTML (Guid emailId, bool? decode = null, bool? replaceCidImages = null) + +Get email content as HTML. For displaying emails in browser context. + +Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`. Returns content-type `text/html;charset=utf-8` so you must call expecting that content response not JSON. For JSON response see the `getEmailHTMLJson` method. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailHTMLExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | + var decode = false; // bool? | (optional) (default to false) + var replaceCidImages = false; // bool? | (optional) (default to false) + + try + { + // Get email content as HTML. For displaying emails in browser context. + string result = apiInstance.GetEmailHTML(emailId, decode, replaceCidImages); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailHTML: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailHTMLWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email content as HTML. For displaying emails in browser context. + ApiResponse response = apiInstance.GetEmailHTMLWithHttpInfo(emailId, decode, replaceCidImages); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailHTMLWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | | | +| **decode** | **bool?** | | [optional] [default to false] | +| **replaceCidImages** | **bool?** | | [optional] [default to false] | + +### Return type + +**string** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/html;charset=utf-8, text/html + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailHTMLJson** +> EmailHtmlDto GetEmailHTMLJson (Guid emailId, bool? decode = null, bool? replaceCidImages = null) + +Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content + +Retrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type `application/json;charset=utf-8` so you must call expecting that content response not JSON. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailHTMLJsonExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | + var decode = false; // bool? | (optional) (default to false) + var replaceCidImages = false; // bool? | (optional) (default to false) + + try + { + // Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content + EmailHtmlDto result = apiInstance.GetEmailHTMLJson(emailId, decode, replaceCidImages); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailHTMLJson: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailHTMLJsonWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content + ApiResponse response = apiInstance.GetEmailHTMLJsonWithHttpInfo(emailId, decode, replaceCidImages); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailHTMLJsonWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | | | +| **decode** | **bool?** | | [optional] [default to false] | +| **replaceCidImages** | **bool?** | | [optional] [default to false] | + +### Return type + +[**EmailHtmlDto**](EmailHtmlDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailHTMLQuery** +> EmailTextLinesResult GetEmailHTMLQuery (Guid emailId, string htmlSelector) + +Parse and return text from an email, stripping HTML and decoding encoded characters + +Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailHTMLQueryExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email to perform HTML query on + var htmlSelector = "htmlSelector_example"; // string | HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information. + + try + { + // Parse and return text from an email, stripping HTML and decoding encoded characters + EmailTextLinesResult result = apiInstance.GetEmailHTMLQuery(emailId, htmlSelector); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailHTMLQuery: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailHTMLQueryWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Parse and return text from an email, stripping HTML and decoding encoded characters + ApiResponse response = apiInstance.GetEmailHTMLQueryWithHttpInfo(emailId, htmlSelector); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailHTMLQueryWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email to perform HTML query on | | +| **htmlSelector** | **string** | HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information. | | + +### Return type + +[**EmailTextLinesResult**](EmailTextLinesResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailLinks** +> EmailLinksResult GetEmailLinks (Guid emailId) + +Parse and return list of links found in an email (only works for HTML content) + +HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailLinksExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email to fetch text for + + try + { + // Parse and return list of links found in an email (only works for HTML content) + EmailLinksResult result = apiInstance.GetEmailLinks(emailId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailLinks: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailLinksWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Parse and return list of links found in an email (only works for HTML content) + ApiResponse response = apiInstance.GetEmailLinksWithHttpInfo(emailId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailLinksWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email to fetch text for | | + +### Return type + +[**EmailLinksResult**](EmailLinksResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailPreviewURLs** +> EmailPreviewUrls GetEmailPreviewURLs (Guid emailId) + +Get email URLs for viewing in browser or downloading + +Get a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailPreviewURLsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | + + try + { + // Get email URLs for viewing in browser or downloading + EmailPreviewUrls result = apiInstance.GetEmailPreviewURLs(emailId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailPreviewURLs: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailPreviewURLsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email URLs for viewing in browser or downloading + ApiResponse response = apiInstance.GetEmailPreviewURLsWithHttpInfo(emailId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailPreviewURLsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | | | + +### Return type + +[**EmailPreviewUrls**](EmailPreviewUrls) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailScreenshotAsBase64** +> EmailScreenshotResult GetEmailScreenshotAsBase64 (Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions) + +Take a screenshot of an email in a browser and return base64 encoded string + +Capture image of email screenshot and return as base64 encoded string. Useful for embedding in HTML. Be careful as this may contain sensitive information. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailScreenshotAsBase64Example + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | + var getEmailScreenshotOptions = new GetEmailScreenshotOptions(); // GetEmailScreenshotOptions | + + try + { + // Take a screenshot of an email in a browser and return base64 encoded string + EmailScreenshotResult result = apiInstance.GetEmailScreenshotAsBase64(emailId, getEmailScreenshotOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailScreenshotAsBase64: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailScreenshotAsBase64WithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Take a screenshot of an email in a browser and return base64 encoded string + ApiResponse response = apiInstance.GetEmailScreenshotAsBase64WithHttpInfo(emailId, getEmailScreenshotOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailScreenshotAsBase64WithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | | | +| **getEmailScreenshotOptions** | [**GetEmailScreenshotOptions**](GetEmailScreenshotOptions) | | | + +### Return type + +[**EmailScreenshotResult**](EmailScreenshotResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailScreenshotAsBinary** +> void GetEmailScreenshotAsBinary (Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions) + +Take a screenshot of an email in a browser + +Returns binary octet-stream of screenshot of the given email + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailScreenshotAsBinaryExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | + var getEmailScreenshotOptions = new GetEmailScreenshotOptions(); // GetEmailScreenshotOptions | + + try + { + // Take a screenshot of an email in a browser + apiInstance.GetEmailScreenshotAsBinary(emailId, getEmailScreenshotOptions); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailScreenshotAsBinary: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailScreenshotAsBinaryWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Take a screenshot of an email in a browser + apiInstance.GetEmailScreenshotAsBinaryWithHttpInfo(emailId, getEmailScreenshotOptions); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailScreenshotAsBinaryWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | | | +| **getEmailScreenshotOptions** | [**GetEmailScreenshotOptions**](GetEmailScreenshotOptions) | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailTextLines** +> EmailTextLinesResult GetEmailTextLines (Guid emailId, bool? decodeHtmlEntities = null, string lineSeparator = null) + +Parse and return text from an email, stripping HTML and decoding encoded characters + +Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailTextLinesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email to fetch text for + var decodeHtmlEntities = true; // bool? | Decode HTML entities (optional) + var lineSeparator = "lineSeparator_example"; // string | Line separator character (optional) + + try + { + // Parse and return text from an email, stripping HTML and decoding encoded characters + EmailTextLinesResult result = apiInstance.GetEmailTextLines(emailId, decodeHtmlEntities, lineSeparator); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailTextLines: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailTextLinesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Parse and return text from an email, stripping HTML and decoding encoded characters + ApiResponse response = apiInstance.GetEmailTextLinesWithHttpInfo(emailId, decodeHtmlEntities, lineSeparator); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailTextLinesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email to fetch text for | | +| **decodeHtmlEntities** | **bool?** | Decode HTML entities | [optional] | +| **lineSeparator** | **string** | Line separator character | [optional] | + +### Return type + +[**EmailTextLinesResult**](EmailTextLinesResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailsOffsetPaginated** +> PageEmailProjection GetEmailsOffsetPaginated (List inboxId = null, int? page = null, int? size = null, string sort = null, bool? unreadOnly = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +Get all emails in all inboxes in paginated form. Email API list all. + +By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailsOffsetPaginatedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var inboxId = new List(); // List | Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + var page = 0; // int? | Optional page index in email list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var unreadOnly = false; // bool? | Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional) (default to false) + var searchFilter = "searchFilter_example"; // string | Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter emails received after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter emails received before given date time (optional) + + try + { + // Get all emails in all inboxes in paginated form. Email API list all. + PageEmailProjection result = apiInstance.GetEmailsOffsetPaginated(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailsOffsetPaginated: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailsOffsetPaginatedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all emails in all inboxes in paginated form. Email API list all. + ApiResponse response = apiInstance.GetEmailsOffsetPaginatedWithHttpInfo(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailsOffsetPaginatedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | [**List<Guid>**](Guid) | Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. | [optional] | +| **page** | **int?** | Optional page index in email list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **unreadOnly** | **bool?** | Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly | [optional] [default to false] | +| **searchFilter** | **string** | Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body | [optional] | +| **since** | **DateTime?** | Optional filter emails received after given date time | [optional] | +| **before** | **DateTime?** | Optional filter emails received before given date time | [optional] | + +### Return type + +[**PageEmailProjection**](PageEmailProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmailsPaginated** +> PageEmailProjection GetEmailsPaginated (List inboxId = null, int? page = null, int? size = null, string sort = null, bool? unreadOnly = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +Get all emails in all inboxes in paginated form. Email API list all. + +By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailsPaginatedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var inboxId = new List(); // List | Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + var page = 0; // int? | Optional page index in email list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var unreadOnly = false; // bool? | Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional) (default to false) + var searchFilter = "searchFilter_example"; // string | Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter emails received before given date time (optional) + + try + { + // Get all emails in all inboxes in paginated form. Email API list all. + PageEmailProjection result = apiInstance.GetEmailsPaginated(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetEmailsPaginated: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailsPaginatedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all emails in all inboxes in paginated form. Email API list all. + ApiResponse response = apiInstance.GetEmailsPaginatedWithHttpInfo(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetEmailsPaginatedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | [**List<Guid>**](Guid) | Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. | [optional] | +| **page** | **int?** | Optional page index in email list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **unreadOnly** | **bool?** | Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly | [optional] [default to false] | +| **searchFilter** | **string** | Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body | [optional] | +| **since** | **DateTime?** | Optional filter emails received after given date time. If unset will use time 24hours prior to now. | [optional] | +| **before** | **DateTime?** | Optional filter emails received before given date time | [optional] | + +### Return type + +[**PageEmailProjection**](PageEmailProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetGravatarUrlForEmailAddress** +> GravatarUrl GetGravatarUrlForEmailAddress (string emailAddress, string size = null) + + + +Get gravatar url for email address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetGravatarUrlForEmailAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailAddress = "emailAddress_example"; // string | + var size = "size_example"; // string | (optional) + + try + { + GravatarUrl result = apiInstance.GetGravatarUrlForEmailAddress(emailAddress, size); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetGravatarUrlForEmailAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetGravatarUrlForEmailAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetGravatarUrlForEmailAddressWithHttpInfo(emailAddress, size); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetGravatarUrlForEmailAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailAddress** | **string** | | | +| **size** | **string** | | [optional] | + +### Return type + +[**GravatarUrl**](GravatarUrl) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetLatestEmail** +> Email GetLatestEmail (List inboxIds = null) + +Get latest email in all inboxes. Most recently received. + +Get the newest email in all inboxes or in a passed set of inbox IDs + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetLatestEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var inboxIds = new List(); // List | Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes (optional) + + try + { + // Get latest email in all inboxes. Most recently received. + Email result = apiInstance.GetLatestEmail(inboxIds); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetLatestEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetLatestEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get latest email in all inboxes. Most recently received. + ApiResponse response = apiInstance.GetLatestEmailWithHttpInfo(inboxIds); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetLatestEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxIds** | [**List<Guid>**](Guid) | Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes | [optional] | + +### Return type + +[**Email**](Email) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetLatestEmailInInbox1** +> Email GetLatestEmailInInbox1 (Guid inboxId) + +Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + +Get the newest email in all inboxes or in a passed set of inbox IDs + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetLatestEmailInInbox1Example + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of the inbox you want to get the latest email from + + try + { + // Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + Email result = apiInstance.GetLatestEmailInInbox1(inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetLatestEmailInInbox1: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetLatestEmailInInbox1WithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + ApiResponse response = apiInstance.GetLatestEmailInInbox1WithHttpInfo(inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetLatestEmailInInbox1WithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of the inbox you want to get the latest email from | | + +### Return type + +[**Email**](Email) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetOrganizationEmailsPaginated** +> PageEmailProjection GetOrganizationEmailsPaginated (List inboxId = null, int? page = null, int? size = null, string sort = null, bool? unreadOnly = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +Get all organization emails. List team or shared test email accounts + +By default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetOrganizationEmailsPaginatedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var inboxId = new List(); // List | Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + var page = 0; // int? | Optional page index in email list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var unreadOnly = false; // bool? | Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional) (default to false) + var searchFilter = "searchFilter_example"; // string | Optional search filter search filter for emails. (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter emails received before given date time (optional) + + try + { + // Get all organization emails. List team or shared test email accounts + PageEmailProjection result = apiInstance.GetOrganizationEmailsPaginated(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetOrganizationEmailsPaginated: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetOrganizationEmailsPaginatedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all organization emails. List team or shared test email accounts + ApiResponse response = apiInstance.GetOrganizationEmailsPaginatedWithHttpInfo(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetOrganizationEmailsPaginatedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | [**List<Guid>**](Guid) | Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. | [optional] | +| **page** | **int?** | Optional page index in email list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **unreadOnly** | **bool?** | Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly | [optional] [default to false] | +| **searchFilter** | **string** | Optional search filter search filter for emails. | [optional] | +| **since** | **DateTime?** | Optional filter emails received after given date time. If unset will use time 24hours prior to now. | [optional] | +| **before** | **DateTime?** | Optional filter emails received before given date time | [optional] | + +### Return type + +[**PageEmailProjection**](PageEmailProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetRawEmailContents** +> void GetRawEmailContents (Guid emailId) + +Get raw email string. Returns unparsed raw SMTP message with headers and body. + +Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetRawEmailContentsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + + try + { + // Get raw email string. Returns unparsed raw SMTP message with headers and body. + apiInstance.GetRawEmailContents(emailId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetRawEmailContents: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetRawEmailContentsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get raw email string. Returns unparsed raw SMTP message with headers and body. + apiInstance.GetRawEmailContentsWithHttpInfo(emailId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetRawEmailContentsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetRawEmailJson** +> RawEmailJson GetRawEmailJson (Guid emailId) + +Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. + +Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetRawEmailJsonExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + + try + { + // Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. + RawEmailJson result = apiInstance.GetRawEmailJson(emailId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetRawEmailJson: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetRawEmailJsonWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. + ApiResponse response = apiInstance.GetRawEmailJsonWithHttpInfo(emailId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetRawEmailJsonWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | + +### Return type + +[**RawEmailJson**](RawEmailJson) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetUnreadEmailCount** +> UnreadCount GetUnreadEmailCount (Guid? inboxId = null) + +Get unread email count + +Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetUnreadEmailCountExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Optional inbox ID filter (optional) + + try + { + // Get unread email count + UnreadCount result = apiInstance.GetUnreadEmailCount(inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.GetUnreadEmailCount: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetUnreadEmailCountWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get unread email count + ApiResponse response = apiInstance.GetUnreadEmailCountWithHttpInfo(inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.GetUnreadEmailCountWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Optional inbox ID filter | [optional] | + +### Return type + +[**UnreadCount**](UnreadCount) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **MarkAllAsRead** +> void MarkAllAsRead (bool? read = null, Guid? inboxId = null) + +Mark all emails as read or unread + +Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class MarkAllAsReadExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var read = true; // bool? | What value to assign to email read property. Default true. (optional) (default to true) + var inboxId = "inboxId_example"; // Guid? | Optional inbox ID filter (optional) + + try + { + // Mark all emails as read or unread + apiInstance.MarkAllAsRead(read, inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.MarkAllAsRead: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the MarkAllAsReadWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Mark all emails as read or unread + apiInstance.MarkAllAsReadWithHttpInfo(read, inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.MarkAllAsReadWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **read** | **bool?** | What value to assign to email read property. Default true. | [optional] [default to true] | +| **inboxId** | **Guid?** | Optional inbox ID filter | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **MarkAsRead** +> EmailPreview MarkAsRead (Guid emailId, bool? read = null) + +Mark an email as read or unread + +Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class MarkAsReadExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | + var read = true; // bool? | What value to assign to email read property. Default true. (optional) (default to true) + + try + { + // Mark an email as read or unread + EmailPreview result = apiInstance.MarkAsRead(emailId, read); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.MarkAsRead: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the MarkAsReadWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Mark an email as read or unread + ApiResponse response = apiInstance.MarkAsReadWithHttpInfo(emailId, read); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.MarkAsReadWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | | | +| **read** | **bool?** | What value to assign to email read property. Default true. | [optional] [default to true] | + +### Return type + +[**EmailPreview**](EmailPreview) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ReplyToEmail** +> SentEmailDto ReplyToEmail (Guid emailId, ReplyToEmailOptions replyToEmailOptions) + +Reply to an email + +Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ReplyToEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of the email that should be replied to + var replyToEmailOptions = new ReplyToEmailOptions(); // ReplyToEmailOptions | + + try + { + // Reply to an email + SentEmailDto result = apiInstance.ReplyToEmail(emailId, replyToEmailOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.ReplyToEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ReplyToEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Reply to an email + ApiResponse response = apiInstance.ReplyToEmailWithHttpInfo(emailId, replyToEmailOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.ReplyToEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of the email that should be replied to | | +| **replyToEmailOptions** | [**ReplyToEmailOptions**](ReplyToEmailOptions) | | | + +### Return type + +[**SentEmailDto**](SentEmailDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SearchEmails** +> PageEmailProjection SearchEmails (SearchEmailsOptions searchEmailsOptions) + +Get all emails by search criteria. Return in paginated form. + +Search emails by given criteria return matches in paginated format. Searches against email recipients, sender, subject, email address and ID. Does not search email body + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SearchEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var searchEmailsOptions = new SearchEmailsOptions(); // SearchEmailsOptions | + + try + { + // Get all emails by search criteria. Return in paginated form. + PageEmailProjection result = apiInstance.SearchEmails(searchEmailsOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.SearchEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SearchEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all emails by search criteria. Return in paginated form. + ApiResponse response = apiInstance.SearchEmailsWithHttpInfo(searchEmailsOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.SearchEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **searchEmailsOptions** | [**SearchEmailsOptions**](SearchEmailsOptions) | | | + +### Return type + +[**PageEmailProjection**](PageEmailProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SendEmailSourceOptional** +> void SendEmailSourceOptional (SendEmailOptions sendEmailOptions, Guid? inboxId = null, bool? useDomainPool = null, bool? virtualSend = null) + +Send email + +Alias for `InboxController.sendEmail` method - see original method for full details. Sends an email from a given inbox that you have created. If no inbox is supplied a random inbox will be created for you and used to send the email. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SendEmailSourceOptionalExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var sendEmailOptions = new SendEmailOptions(); // SendEmailOptions | + var inboxId = "inboxId_example"; // Guid? | ID of the inbox you want to send the email from (optional) + var useDomainPool = true; // bool? | Use domain pool. Optionally create inbox to send from using the mailslurp domain pool. (optional) + var virtualSend = true; // bool? | Optionally create inbox to send from that is a virtual inbox and won't send to external addresses (optional) + + try + { + // Send email + apiInstance.SendEmailSourceOptional(sendEmailOptions, inboxId, useDomainPool, virtualSend); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.SendEmailSourceOptional: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SendEmailSourceOptionalWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send email + apiInstance.SendEmailSourceOptionalWithHttpInfo(sendEmailOptions, inboxId, useDomainPool, virtualSend); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.SendEmailSourceOptionalWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **sendEmailOptions** | [**SendEmailOptions**](SendEmailOptions) | | | +| **inboxId** | **Guid?** | ID of the inbox you want to send the email from | [optional] | +| **useDomainPool** | **bool?** | Use domain pool. Optionally create inbox to send from using the mailslurp domain pool. | [optional] | +| **virtualSend** | **bool?** | Optionally create inbox to send from that is a virtual inbox and won't send to external addresses | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ValidateEmail** +> ValidationDto ValidateEmail (Guid emailId) + +Validate email HTML contents + +Validate the HTML content of email if HTML is found. Considered valid if no HTML is present. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ValidateEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + + try + { + // Validate email HTML contents + ValidationDto result = apiInstance.ValidateEmail(emailId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailControllerApi.ValidateEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ValidateEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Validate email HTML contents + ApiResponse response = apiInstance.ValidateEmailWithHttpInfo(emailId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailControllerApi.ValidateEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | + +### Return type + +[**ValidationDto**](ValidationDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/EmailFeatureCategoryName.md b/docs/EmailFeatureCategoryName.md new file mode 100644 index 00000000..2a3da20e --- /dev/null +++ b/docs/EmailFeatureCategoryName.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.EmailFeatureCategoryName + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Slug** | **string** | | +**Name** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailFeatureFamilyName.md b/docs/EmailFeatureFamilyName.md new file mode 100644 index 00000000..9bacdd93 --- /dev/null +++ b/docs/EmailFeatureFamilyName.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.EmailFeatureFamilyName + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Slug** | **string** | | +**Name** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailFeatureFamilyStatistics.md b/docs/EmailFeatureFamilyStatistics.md new file mode 100644 index 00000000..290db0b3 --- /dev/null +++ b/docs/EmailFeatureFamilyStatistics.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.EmailFeatureFamilyStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Feature** | **string** | | +**Family** | **string** | | +**Platforms** | [**List<EmailFeaturePlatformStatistics>**](EmailFeaturePlatformStatistics) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailFeatureNames.md b/docs/EmailFeatureNames.md new file mode 100644 index 00000000..745fba7c --- /dev/null +++ b/docs/EmailFeatureNames.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.EmailFeatureNames + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Family** | [**List<EmailFeatureFamilyName>**](EmailFeatureFamilyName) | | +**Platform** | [**List<EmailFeaturePlatformName>**](EmailFeaturePlatformName) | | +**Category** | [**List<EmailFeatureCategoryName>**](EmailFeatureCategoryName) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailFeatureOverview.md b/docs/EmailFeatureOverview.md new file mode 100644 index 00000000..e5d99ab8 --- /dev/null +++ b/docs/EmailFeatureOverview.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.EmailFeatureOverview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Feature** | **string** | | +**Title** | **string** | | [optional] +**Description** | **string** | | [optional] +**Category** | **string** | | [optional] +**Notes** | **string** | | [optional] +**NotesNumbers** | **Dictionary<string, string>** | | [optional] +**FeatureStatistics** | [**List<EmailFeatureFamilyStatistics>**](EmailFeatureFamilyStatistics) | | [optional] +**Statuses** | **List<EmailFeatureOverview.StatusesEnum>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailFeaturePlatformName.md b/docs/EmailFeaturePlatformName.md new file mode 100644 index 00000000..b20d3253 --- /dev/null +++ b/docs/EmailFeaturePlatformName.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.EmailFeaturePlatformName + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Slug** | **string** | | +**Name** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailFeaturePlatformStatistics.md b/docs/EmailFeaturePlatformStatistics.md new file mode 100644 index 00000000..ecb17e90 --- /dev/null +++ b/docs/EmailFeaturePlatformStatistics.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.EmailFeaturePlatformStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Platform** | **string** | | +**Versions** | [**List<EmailFeatureVersionStatistics>**](EmailFeatureVersionStatistics) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailFeatureSupportFlags.md b/docs/EmailFeatureSupportFlags.md new file mode 100644 index 00000000..54cf0254 --- /dev/null +++ b/docs/EmailFeatureSupportFlags.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.EmailFeatureSupportFlags + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**Notes** | **List<string>** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailFeatureSupportResult.md b/docs/EmailFeatureSupportResult.md new file mode 100644 index 00000000..1b9cb95f --- /dev/null +++ b/docs/EmailFeatureSupportResult.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.EmailFeatureSupportResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Names** | [**EmailFeatureNames**](EmailFeatureNames) | | +**DetectedFeatures** | **List<EmailFeatureSupportResult.DetectedFeaturesEnum>** | | +**FeatureOverviews** | [**List<EmailFeatureOverview>**](EmailFeatureOverview) | | +**FeaturePercentages** | [**List<EmailFeatureSupportStatusPercentage>**](EmailFeatureSupportStatusPercentage) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailFeatureSupportStatusPercentage.md b/docs/EmailFeatureSupportStatusPercentage.md new file mode 100644 index 00000000..bd4840e8 --- /dev/null +++ b/docs/EmailFeatureSupportStatusPercentage.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.EmailFeatureSupportStatusPercentage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**Percentage** | **float** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailFeatureVersionStatistics.md b/docs/EmailFeatureVersionStatistics.md new file mode 100644 index 00000000..4b1eb1b7 --- /dev/null +++ b/docs/EmailFeatureVersionStatistics.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.EmailFeatureVersionStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_Version** | **string** | | +**SupportFlags** | [**EmailFeatureSupportFlags**](EmailFeatureSupportFlags) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailHtmlDto.md b/docs/EmailHtmlDto.md new file mode 100644 index 00000000..9ba9c426 --- /dev/null +++ b/docs/EmailHtmlDto.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.EmailHtmlDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Subject** | **string** | | [optional] +**Body** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailLinksResult.md b/docs/EmailLinksResult.md new file mode 100644 index 00000000..fc3fdd10 --- /dev/null +++ b/docs/EmailLinksResult.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.EmailLinksResult +Links found in HTML + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | **List<string>** | | +**Body** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailPreview.md b/docs/EmailPreview.md new file mode 100644 index 00000000..b104b6d5 --- /dev/null +++ b/docs/EmailPreview.md @@ -0,0 +1,20 @@ +# mailslurp_netstandard_2x.Model.EmailPreview +Preview of an email message. For full message (including body and attachments) call the `getEmail` or other email endpoints with the provided email ID. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | ID of the email entity | +**DomainId** | **Guid?** | ID of the domain that received the email | [optional] +**Subject** | **string** | The subject line of the email message as specified by SMTP subject header | [optional] +**To** | **List<string>** | List of `To` recipient email addresses that the email was addressed to. See recipients object for names. | +**From** | **string** | Who the email was sent from. An email address - see fromName for the sender name. | [optional] +**Bcc** | **List<string>** | List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names. | [optional] +**Cc** | **List<string>** | List of `CC` recipients email addresses that the email was addressed to. See recipients object for names. | [optional] +**CreatedAt** | **DateTime** | When was the email received by MailSlurp | +**Read** | **bool** | Read flag. Has the email ever been viewed in the dashboard or fetched via the API with a hydrated body? If so the email is marked as read. Paginated results do not affect read status. Read status is different to email opened event as it depends on your own account accessing the email. Email opened is determined by tracking pixels sent to other uses if enable during sending. You can listened for both email read and email opened events using webhooks. | +**Attachments** | **List<string>** | List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension. | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailPreviewUrls.md b/docs/EmailPreviewUrls.md new file mode 100644 index 00000000..ff6c10ac --- /dev/null +++ b/docs/EmailPreviewUrls.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.EmailPreviewUrls +URLs for email body + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RawSmtpMessageUrl** | **string** | | +**PlainHtmlBodyUrl** | **string** | | +**Origin** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailProjection.md b/docs/EmailProjection.md new file mode 100644 index 00000000..2bf90b2f --- /dev/null +++ b/docs/EmailProjection.md @@ -0,0 +1,25 @@ +# mailslurp_netstandard_2x.Model.EmailProjection +A compact representation of a full email. Used in list endpoints to keep response sizes low. Body and attachments are not included. To get all fields of the email use the `getEmail` method with the email projection's ID. See `EmailDto` for documentation on projection properties. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attachments** | **List<string>** | | [optional] +**InboxId** | **Guid** | | +**To** | **List<string>** | | +**DomainId** | **Guid?** | | [optional] +**Bcc** | **List<string>** | | [optional] +**Cc** | **List<string>** | | [optional] +**Read** | **bool** | | +**BodyExcerpt** | **string** | | [optional] +**TeamAccess** | **bool** | | +**BodyMD5Hash** | **string** | | [optional] +**TextExcerpt** | **string** | | [optional] +**CreatedAt** | **DateTime** | | +**Subject** | **string** | | [optional] +**Id** | **Guid** | | +**From** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailRecipients.md b/docs/EmailRecipients.md new file mode 100644 index 00000000..d71297ca --- /dev/null +++ b/docs/EmailRecipients.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.EmailRecipients +The `To`,`CC`,`BCC` recipients stored in object form with email address and name accessible. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | [**List<Recipient>**](Recipient) | | [optional] +**Cc** | [**List<Recipient>**](Recipient) | | [optional] +**Bcc** | [**List<Recipient>**](Recipient) | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailScreenshotResult.md b/docs/EmailScreenshotResult.md new file mode 100644 index 00000000..ea0e74a3 --- /dev/null +++ b/docs/EmailScreenshotResult.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.EmailScreenshotResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Base64EncodedImage** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailTextLinesResult.md b/docs/EmailTextLinesResult.md new file mode 100644 index 00000000..fa7c97a4 --- /dev/null +++ b/docs/EmailTextLinesResult.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.EmailTextLinesResult +Parsed text of an email + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lines** | **List<string>** | | +**Body** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailValidationRequestDto.md b/docs/EmailValidationRequestDto.md new file mode 100644 index 00000000..dbfb848c --- /dev/null +++ b/docs/EmailValidationRequestDto.md @@ -0,0 +1,16 @@ +# mailslurp_netstandard_2x.Model.EmailValidationRequestDto +Email validation request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**EmailAddress** | **string** | | +**IsValid** | **bool** | | +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmailVerificationControllerApi.md b/docs/EmailVerificationControllerApi.md new file mode 100644 index 00000000..369ec326 --- /dev/null +++ b/docs/EmailVerificationControllerApi.md @@ -0,0 +1,386 @@ +# mailslurp_netstandard_2x.Api.EmailVerificationControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**DeleteAllValidationRequests**](EmailVerificationControllerApi#deleteallvalidationrequests) | **DELETE** /email-verification | Delete all validation requests | +| [**DeleteValidationRequest**](EmailVerificationControllerApi#deletevalidationrequest) | **DELETE** /email-verification/{id} | Delete a validation record | +| [**GetValidationRequests**](EmailVerificationControllerApi#getvalidationrequests) | **GET** /email-verification/validation-requests | Validate a list of email addresses. Per unit billing. See your plan for pricing. | +| [**ValidateEmailAddressList**](EmailVerificationControllerApi#validateemailaddresslist) | **POST** /email-verification/email-address-list | Validate a list of email addresses. Per unit billing. See your plan for pricing. | + + +# **DeleteAllValidationRequests** +> void DeleteAllValidationRequests () + +Delete all validation requests + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAllValidationRequestsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailVerificationControllerApi(config); + + try + { + // Delete all validation requests + apiInstance.DeleteAllValidationRequests(); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailVerificationControllerApi.DeleteAllValidationRequests: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAllValidationRequestsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete all validation requests + apiInstance.DeleteAllValidationRequestsWithHttpInfo(); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailVerificationControllerApi.DeleteAllValidationRequestsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteValidationRequest** +> void DeleteValidationRequest (Guid id) + +Delete a validation record + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteValidationRequestExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailVerificationControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Delete a validation record + apiInstance.DeleteValidationRequest(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailVerificationControllerApi.DeleteValidationRequest: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteValidationRequestWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete a validation record + apiInstance.DeleteValidationRequestWithHttpInfo(id); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailVerificationControllerApi.DeleteValidationRequestWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetValidationRequests** +> PageEmailValidationRequest GetValidationRequests (int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, bool? isValid = null) + +Validate a list of email addresses. Per unit billing. See your plan for pricing. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetValidationRequestsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailVerificationControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size for paginated result list. (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to DESC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + var isValid = true; // bool? | Filter where email is valid is true or false (optional) + + try + { + // Validate a list of email addresses. Per unit billing. See your plan for pricing. + PageEmailValidationRequest result = apiInstance.GetValidationRequests(page, size, sort, searchFilter, since, before, isValid); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailVerificationControllerApi.GetValidationRequests: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetValidationRequestsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Validate a list of email addresses. Per unit billing. See your plan for pricing. + ApiResponse response = apiInstance.GetValidationRequestsWithHttpInfo(page, size, sort, searchFilter, since, before, isValid); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailVerificationControllerApi.GetValidationRequestsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size for paginated result list. | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to DESC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | +| **isValid** | **bool?** | Filter where email is valid is true or false | [optional] | + +### Return type + +[**PageEmailValidationRequest**](PageEmailValidationRequest) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ValidateEmailAddressList** +> ValidateEmailAddressListResult ValidateEmailAddressList (ValidateEmailAddressListOptions validateEmailAddressListOptions) + +Validate a list of email addresses. Per unit billing. See your plan for pricing. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ValidateEmailAddressListExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new EmailVerificationControllerApi(config); + var validateEmailAddressListOptions = new ValidateEmailAddressListOptions(); // ValidateEmailAddressListOptions | + + try + { + // Validate a list of email addresses. Per unit billing. See your plan for pricing. + ValidateEmailAddressListResult result = apiInstance.ValidateEmailAddressList(validateEmailAddressListOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EmailVerificationControllerApi.ValidateEmailAddressList: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ValidateEmailAddressListWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Validate a list of email addresses. Per unit billing. See your plan for pricing. + ApiResponse response = apiInstance.ValidateEmailAddressListWithHttpInfo(validateEmailAddressListOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling EmailVerificationControllerApi.ValidateEmailAddressListWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **validateEmailAddressListOptions** | [**ValidateEmailAddressListOptions**](ValidateEmailAddressListOptions) | | | + +### Return type + +[**ValidateEmailAddressListResult**](ValidateEmailAddressListResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/EmailVerificationResult.md b/docs/EmailVerificationResult.md new file mode 100644 index 00000000..f7538ca1 --- /dev/null +++ b/docs/EmailVerificationResult.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.EmailVerificationResult +Email verification result. Valid means email address exists according to response from mail server running at the domain and port given. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DomainName** | **string** | | +**Port** | **int** | | +**EmailAddress** | **string** | | +**IsValid** | **bool** | | +**Error** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmergencyAddress.md b/docs/EmergencyAddress.md new file mode 100644 index 00000000..4a71e029 --- /dev/null +++ b/docs/EmergencyAddress.md @@ -0,0 +1,22 @@ +# mailslurp_netstandard_2x.Model.EmergencyAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | [optional] +**Sid** | **string** | | +**UserId** | **Guid** | | +**DisplayName** | **string** | | +**CustomerName** | **string** | | +**Address1** | **string** | | +**City** | **string** | | +**Region** | **string** | | +**PostalCode** | **string** | | +**PhoneCountry** | **string** | | +**AccountSid** | **string** | | +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmergencyAddressDto.md b/docs/EmergencyAddressDto.md new file mode 100644 index 00000000..a5a44c77 --- /dev/null +++ b/docs/EmergencyAddressDto.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.EmergencyAddressDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**Address1** | **string** | | +**PhoneCountry** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/EmptyResponseDto.md b/docs/EmptyResponseDto.md new file mode 100644 index 00000000..b49c3f24 --- /dev/null +++ b/docs/EmptyResponseDto.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.EmptyResponseDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ExpirationDefaults.md b/docs/ExpirationDefaults.md new file mode 100644 index 00000000..d3aceeb8 --- /dev/null +++ b/docs/ExpirationDefaults.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.ExpirationDefaults +Expiration defaults for your account + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultExpirationMillis** | **long?** | | [optional] +**MaxExpirationMillis** | **long?** | | [optional] +**DefaultExpiresAt** | **DateTime?** | | [optional] +**CanPermanentInbox** | **bool** | | +**NextInboxAllowsPermanent** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ExpiredControllerApi.md b/docs/ExpiredControllerApi.md new file mode 100644 index 00000000..c448e9a8 --- /dev/null +++ b/docs/ExpiredControllerApi.md @@ -0,0 +1,398 @@ +# mailslurp_netstandard_2x.Api.ExpiredControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetExpirationDefaults**](ExpiredControllerApi#getexpirationdefaults) | **GET** /expired/defaults | Get default expiration settings | +| [**GetExpiredInboxByInboxId**](ExpiredControllerApi#getexpiredinboxbyinboxid) | **GET** /expired/inbox/{inboxId} | Get expired inbox record for a previously existing inbox | +| [**GetExpiredInboxRecord**](ExpiredControllerApi#getexpiredinboxrecord) | **GET** /expired/{expiredId} | Get an expired inbox record | +| [**GetExpiredInboxes**](ExpiredControllerApi#getexpiredinboxes) | **GET** /expired | List records of expired inboxes | + + +# **GetExpirationDefaults** +> ExpirationDefaults GetExpirationDefaults () + +Get default expiration settings + +Return default times used for inbox expiration + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetExpirationDefaultsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ExpiredControllerApi(config); + + try + { + // Get default expiration settings + ExpirationDefaults result = apiInstance.GetExpirationDefaults(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ExpiredControllerApi.GetExpirationDefaults: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetExpirationDefaultsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get default expiration settings + ApiResponse response = apiInstance.GetExpirationDefaultsWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ExpiredControllerApi.GetExpirationDefaultsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**ExpirationDefaults**](ExpirationDefaults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetExpiredInboxByInboxId** +> ExpiredInboxDto GetExpiredInboxByInboxId (Guid inboxId) + +Get expired inbox record for a previously existing inbox + +Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetExpiredInboxByInboxIdExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ExpiredControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of inbox you want to retrieve (not the inbox ID) + + try + { + // Get expired inbox record for a previously existing inbox + ExpiredInboxDto result = apiInstance.GetExpiredInboxByInboxId(inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ExpiredControllerApi.GetExpiredInboxByInboxId: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetExpiredInboxByInboxIdWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get expired inbox record for a previously existing inbox + ApiResponse response = apiInstance.GetExpiredInboxByInboxIdWithHttpInfo(inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ExpiredControllerApi.GetExpiredInboxByInboxIdWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of inbox you want to retrieve (not the inbox ID) | | + +### Return type + +[**ExpiredInboxDto**](ExpiredInboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetExpiredInboxRecord** +> ExpiredInboxDto GetExpiredInboxRecord (Guid expiredId) + +Get an expired inbox record + +Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetExpiredInboxRecordExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ExpiredControllerApi(config); + var expiredId = "expiredId_example"; // Guid | ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId + + try + { + // Get an expired inbox record + ExpiredInboxDto result = apiInstance.GetExpiredInboxRecord(expiredId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ExpiredControllerApi.GetExpiredInboxRecord: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetExpiredInboxRecordWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an expired inbox record + ApiResponse response = apiInstance.GetExpiredInboxRecordWithHttpInfo(expiredId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ExpiredControllerApi.GetExpiredInboxRecordWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **expiredId** | **Guid** | ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId | | + +### Return type + +[**ExpiredInboxDto**](ExpiredInboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetExpiredInboxes** +> PageExpiredInboxRecordProjection GetExpiredInboxes (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +List records of expired inboxes + +Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetExpiredInboxesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ExpiredControllerApi(config); + var page = 0; // int? | Optional page index in inbox sent email list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox sent email list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // List records of expired inboxes + PageExpiredInboxRecordProjection result = apiInstance.GetExpiredInboxes(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ExpiredControllerApi.GetExpiredInboxes: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetExpiredInboxesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List records of expired inboxes + ApiResponse response = apiInstance.GetExpiredInboxesWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ExpiredControllerApi.GetExpiredInboxesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in inbox sent email list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox sent email list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageExpiredInboxRecordProjection**](PageExpiredInboxRecordProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/ExpiredInboxDto.md b/docs/ExpiredInboxDto.md new file mode 100644 index 00000000..22ed430e --- /dev/null +++ b/docs/ExpiredInboxDto.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.ExpiredInboxDto +Expired inbox + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**InboxId** | **Guid** | | +**EmailAddress** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ExpiredInboxRecordProjection.md b/docs/ExpiredInboxRecordProjection.md new file mode 100644 index 00000000..df9312b8 --- /dev/null +++ b/docs/ExpiredInboxRecordProjection.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.ExpiredInboxRecordProjection +Record of inbox expiration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailAddress** | **string** | | +**UserId** | **Guid** | | +**CreatedAt** | **DateTime** | | +**Id** | **Guid** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ExportControllerApi.md b/docs/ExportControllerApi.md new file mode 100644 index 00000000..22013715 --- /dev/null +++ b/docs/ExportControllerApi.md @@ -0,0 +1,215 @@ +# mailslurp_netstandard_2x.Api.ExportControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**ExportEntities**](ExportControllerApi#exportentities) | **GET** /export | Export inboxes link callable via browser | +| [**GetExportLink**](ExportControllerApi#getexportlink) | **POST** /export | Get export link | + + +# **ExportEntities** +> byte[] ExportEntities (string exportType, string apiKey, string outputFormat, string filter = null, string listSeparatorToken = null, bool? excludePreviouslyExported = null, DateTime? createdEarliestTime = null, DateTime? createdOldestTime = null) + +Export inboxes link callable via browser + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ExportEntitiesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ExportControllerApi(config); + var exportType = "INBOXES"; // string | + var apiKey = "apiKey_example"; // string | + var outputFormat = "CSV_DEFAULT"; // string | + var filter = "filter_example"; // string | (optional) + var listSeparatorToken = "listSeparatorToken_example"; // string | (optional) + var excludePreviouslyExported = true; // bool? | (optional) + var createdEarliestTime = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | (optional) + var createdOldestTime = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | (optional) + + try + { + // Export inboxes link callable via browser + byte[] result = apiInstance.ExportEntities(exportType, apiKey, outputFormat, filter, listSeparatorToken, excludePreviouslyExported, createdEarliestTime, createdOldestTime); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ExportControllerApi.ExportEntities: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ExportEntitiesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Export inboxes link callable via browser + ApiResponse response = apiInstance.ExportEntitiesWithHttpInfo(exportType, apiKey, outputFormat, filter, listSeparatorToken, excludePreviouslyExported, createdEarliestTime, createdOldestTime); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ExportControllerApi.ExportEntitiesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **exportType** | **string** | | | +| **apiKey** | **string** | | | +| **outputFormat** | **string** | | | +| **filter** | **string** | | [optional] | +| **listSeparatorToken** | **string** | | [optional] | +| **excludePreviouslyExported** | **bool?** | | [optional] | +| **createdEarliestTime** | **DateTime?** | | [optional] | +| **createdOldestTime** | **DateTime?** | | [optional] | + +### Return type + +**byte[]** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetExportLink** +> ExportLink GetExportLink (string exportType, ExportOptions exportOptions, string apiKey = null) + +Get export link + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetExportLinkExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ExportControllerApi(config); + var exportType = "INBOXES"; // string | + var exportOptions = new ExportOptions(); // ExportOptions | + var apiKey = "apiKey_example"; // string | (optional) + + try + { + // Get export link + ExportLink result = apiInstance.GetExportLink(exportType, exportOptions, apiKey); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ExportControllerApi.GetExportLink: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetExportLinkWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get export link + ApiResponse response = apiInstance.GetExportLinkWithHttpInfo(exportType, exportOptions, apiKey); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ExportControllerApi.GetExportLinkWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **exportType** | **string** | | | +| **exportOptions** | [**ExportOptions**](ExportOptions) | | | +| **apiKey** | **string** | | [optional] | + +### Return type + +[**ExportLink**](ExportLink) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/ExportLink.md b/docs/ExportLink.md new file mode 100644 index 00000000..e786e2f4 --- /dev/null +++ b/docs/ExportLink.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.ExportLink +Export download link + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DownloadLink** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ExportOptions.md b/docs/ExportOptions.md new file mode 100644 index 00000000..df6c44e7 --- /dev/null +++ b/docs/ExportOptions.md @@ -0,0 +1,16 @@ +# mailslurp_netstandard_2x.Model.ExportOptions +Options for exporting user data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OutputFormat** | **string** | | +**ExcludePreviouslyExported** | **bool?** | | [optional] +**CreatedEarliestTime** | **DateTime?** | | [optional] +**CreatedOldestTime** | **DateTime?** | | [optional] +**Filter** | **string** | | [optional] +**ListSeparatorToken** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/FakeEmailDto.md b/docs/FakeEmailDto.md new file mode 100644 index 00000000..492bf50f --- /dev/null +++ b/docs/FakeEmailDto.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.FakeEmailDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**EmailAddress** | **string** | | +**Sender** | [**Sender**](Sender) | | [optional] +**Recipients** | [**EmailRecipients**](EmailRecipients) | | [optional] +**Subject** | **string** | | [optional] +**Preview** | **string** | | [optional] +**Body** | **string** | | +**Seen** | **bool** | | +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/FakeEmailPreview.md b/docs/FakeEmailPreview.md new file mode 100644 index 00000000..f3d5dbe9 --- /dev/null +++ b/docs/FakeEmailPreview.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.FakeEmailPreview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**EmailAddress** | **string** | | +**Sender** | [**Sender**](Sender) | | [optional] +**Recipients** | [**EmailRecipients**](EmailRecipients) | | [optional] +**Subject** | **string** | | [optional] +**Preview** | **string** | | [optional] +**CreatedAt** | **DateTime** | | +**Seen** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/FakeEmailResult.md b/docs/FakeEmailResult.md new file mode 100644 index 00000000..70262b55 --- /dev/null +++ b/docs/FakeEmailResult.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.FakeEmailResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | [**FakeEmailDto**](FakeEmailDto) | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/FilterBouncedRecipientsOptions.md b/docs/FilterBouncedRecipientsOptions.md new file mode 100644 index 00000000..0c22e098 --- /dev/null +++ b/docs/FilterBouncedRecipientsOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.FilterBouncedRecipientsOptions +Options for filtering bounced email recipients + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailRecipients** | **List<string>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/FilterBouncedRecipientsResult.md b/docs/FilterBouncedRecipientsResult.md new file mode 100644 index 00000000..9bcec201 --- /dev/null +++ b/docs/FilterBouncedRecipientsResult.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.FilterBouncedRecipientsResult +Remaining recipients that were filtered to remove bounced recipients + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FilteredRecipients** | **List<string>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/FlushExpiredInboxesResult.md b/docs/FlushExpiredInboxesResult.md new file mode 100644 index 00000000..36599c54 --- /dev/null +++ b/docs/FlushExpiredInboxesResult.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.FlushExpiredInboxesResult +Result from calling expire on any inboxes that have applicable expiration dates given current time. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxIds** | **List<Guid>** | Inbox IDs affected by expiration | +**ExpireBefore** | **DateTime** | DateTime to filter inboxes so that those expiring before this time are expired | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/FormControllerApi.md b/docs/FormControllerApi.md new file mode 100644 index 00000000..64616f49 --- /dev/null +++ b/docs/FormControllerApi.md @@ -0,0 +1,116 @@ +# mailslurp_netstandard_2x.Api.FormControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**SubmitForm**](FormControllerApi#submitform) | **POST** /forms | Submit a form to be parsed and sent as an email to an address determined by the form fields | + + +# **SubmitForm** +> string SubmitForm (string to = null, string subject = null, string redirectTo = null, string emailAddress = null, string successMessage = null, string spamCheck = null, string otherParameters = null) + +Submit a form to be parsed and sent as an email to an address determined by the form fields + +This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html
``` #### URL Example ```html
``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `
`. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SubmitFormExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new FormControllerApi(config); + var to = test@example.com; // string | The email address that submitted form should be sent to. (optional) + var subject = My form submission; // string | Optional subject of the email that will be sent. (optional) + var redirectTo = https://mysite.com/form-success; // string | Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional) + var emailAddress = test@example.com; // string | Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional) + var successMessage = Thanks for submitting; // string | Optional success message to display if no _redirectTo present. (optional) + var spamCheck = "spamCheck_example"; // string | Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional) + var otherParameters = "otherParameters_example"; // string | All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional) + + try + { + // Submit a form to be parsed and sent as an email to an address determined by the form fields + string result = apiInstance.SubmitForm(to, subject, redirectTo, emailAddress, successMessage, spamCheck, otherParameters); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling FormControllerApi.SubmitForm: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SubmitFormWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Submit a form to be parsed and sent as an email to an address determined by the form fields + ApiResponse response = apiInstance.SubmitFormWithHttpInfo(to, subject, redirectTo, emailAddress, successMessage, spamCheck, otherParameters); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling FormControllerApi.SubmitFormWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **to** | **string** | The email address that submitted form should be sent to. | [optional] | +| **subject** | **string** | Optional subject of the email that will be sent. | [optional] | +| **redirectTo** | **string** | Optional URL to redirect form submitter to after submission. If not present user will see a success message. | [optional] | +| **emailAddress** | **string** | Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. | [optional] | +| **successMessage** | **string** | Optional success message to display if no _redirectTo present. | [optional] | +| **spamCheck** | **string** | Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. | [optional] | +| **otherParameters** | **string** | All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. | [optional] | + +### Return type + +**string** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/ForwardEmailOptions.md b/docs/ForwardEmailOptions.md new file mode 100644 index 00000000..4323a213 --- /dev/null +++ b/docs/ForwardEmailOptions.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.ForwardEmailOptions +Options for forwarding an email + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | **List<string>** | To recipients for forwarded email | +**Subject** | **string** | Subject for forwarded email | [optional] +**Cc** | **List<string>** | Optional cc recipients | [optional] +**Bcc** | **List<string>** | Optional bcc recipients | [optional] +**From** | **string** | Optional from override | [optional] +**UseInboxName** | **bool?** | Optionally use inbox name as display name for sender email address | [optional] +**FilterBouncedRecipients** | **bool?** | Filter recipients to remove any bounced recipients from to, bcc, and cc before sending | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GenerateBimiRecordOptions.md b/docs/GenerateBimiRecordOptions.md new file mode 100644 index 00000000..09c6f54e --- /dev/null +++ b/docs/GenerateBimiRecordOptions.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.GenerateBimiRecordOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Domain** | **string** | | +**_Version** | **string** | | +**LogoUrl** | **string** | | +**VmcUrl** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GenerateBimiRecordResults.md b/docs/GenerateBimiRecordResults.md new file mode 100644 index 00000000..c867b98f --- /dev/null +++ b/docs/GenerateBimiRecordResults.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.GenerateBimiRecordResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Type** | **string** | Domain Name Server Record Types | +**Ttl** | **int** | | +**Value** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GenerateDmarcRecordOptions.md b/docs/GenerateDmarcRecordOptions.md new file mode 100644 index 00000000..8aee0f5b --- /dev/null +++ b/docs/GenerateDmarcRecordOptions.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.GenerateDmarcRecordOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Domain** | **string** | | +**_Version** | **string** | | +**Policy** | **string** | | +**SubdomainPolicy** | **string** | | [optional] +**ReportEmailAddress** | **List<string>** | | [optional] +**ForensicEmailAddress** | **List<string>** | | [optional] +**Percentage** | **int** | | [optional] +**ReportFormat** | **string** | | [optional] +**SecondsBetweenReports** | **int** | | [optional] +**Adkim** | **string** | | [optional] +**Aspf** | **string** | | [optional] +**Fo** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GenerateDmarcRecordResults.md b/docs/GenerateDmarcRecordResults.md new file mode 100644 index 00000000..6e0781e9 --- /dev/null +++ b/docs/GenerateDmarcRecordResults.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.GenerateDmarcRecordResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Type** | **string** | Domain Name Server Record Types | +**Ttl** | **int** | | +**Value** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GenerateMtaStsRecordOptions.md b/docs/GenerateMtaStsRecordOptions.md new file mode 100644 index 00000000..72df9edd --- /dev/null +++ b/docs/GenerateMtaStsRecordOptions.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.GenerateMtaStsRecordOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | **string** | | +**_Version** | **string** | | +**Mode** | **string** | | +**Ttl** | **int** | | +**MaxAgeSeconds** | **int** | | +**MxRecords** | **List<string>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GenerateMtaStsRecordResults.md b/docs/GenerateMtaStsRecordResults.md new file mode 100644 index 00000000..d38b0820 --- /dev/null +++ b/docs/GenerateMtaStsRecordResults.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.GenerateMtaStsRecordResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Type** | **string** | Domain Name Server Record Types | +**Ttl** | **int** | | +**Value** | **string** | | +**WellKnownValue** | **string** | | +**WellKnownUrl** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GenerateTlsReportingRecordOptions.md b/docs/GenerateTlsReportingRecordOptions.md new file mode 100644 index 00000000..cae110b8 --- /dev/null +++ b/docs/GenerateTlsReportingRecordOptions.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.GenerateTlsReportingRecordOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReportingAddresses** | **List<string>** | | +**ReportingUrl** | **string** | | [optional] +**Host** | **string** | | +**_Version** | **string** | | +**Ttl** | **int** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GenerateTlsReportingRecordResults.md b/docs/GenerateTlsReportingRecordResults.md new file mode 100644 index 00000000..3ffed871 --- /dev/null +++ b/docs/GenerateTlsReportingRecordResults.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.GenerateTlsReportingRecordResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Type** | **string** | Domain Name Server Record Types | +**Ttl** | **int** | | +**Value** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GetEmailScreenshotOptions.md b/docs/GetEmailScreenshotOptions.md new file mode 100644 index 00000000..43615a6d --- /dev/null +++ b/docs/GetEmailScreenshotOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.GetEmailScreenshotOptions +Options taking a screenshot capture of a rendered email + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Height** | **int?** | Window height in pixels | [optional] +**Width** | **int?** | Window width in pixels | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GravatarUrl.md b/docs/GravatarUrl.md new file mode 100644 index 00000000..2395addc --- /dev/null +++ b/docs/GravatarUrl.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.GravatarUrl +User image + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | +**Hash** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GroupContactsDto.md b/docs/GroupContactsDto.md new file mode 100644 index 00000000..0f3489a6 --- /dev/null +++ b/docs/GroupContactsDto.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.GroupContactsDto +Describes contacts attached to a contact group + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**GroupDto**](GroupDto) | | +**Contacts** | [**List<ContactDto>**](ContactDto) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GroupControllerApi.md b/docs/GroupControllerApi.md new file mode 100644 index 00000000..34368a7b --- /dev/null +++ b/docs/GroupControllerApi.md @@ -0,0 +1,875 @@ +# mailslurp_netstandard_2x.Api.GroupControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**AddContactsToGroup**](GroupControllerApi#addcontactstogroup) | **PUT** /groups/{groupId}/contacts | Add contacts to a group | +| [**CreateGroup**](GroupControllerApi#creategroup) | **POST** /groups | Create a group | +| [**DeleteGroup**](GroupControllerApi#deletegroup) | **DELETE** /groups/{groupId} | Delete group | +| [**GetAllGroups**](GroupControllerApi#getallgroups) | **GET** /groups/paginated | Get all Contact Groups in paginated format | +| [**GetGroup**](GroupControllerApi#getgroup) | **GET** /groups/{groupId} | Get group | +| [**GetGroupWithContacts**](GroupControllerApi#getgroupwithcontacts) | **GET** /groups/{groupId}/contacts | Get group and contacts belonging to it | +| [**GetGroupWithContactsPaginated**](GroupControllerApi#getgroupwithcontactspaginated) | **GET** /groups/{groupId}/contacts-paginated | | +| [**GetGroups**](GroupControllerApi#getgroups) | **GET** /groups | Get all groups | +| [**RemoveContactsFromGroup**](GroupControllerApi#removecontactsfromgroup) | **DELETE** /groups/{groupId}/contacts | Remove contacts from a group | + + +# **AddContactsToGroup** +> GroupContactsDto AddContactsToGroup (Guid groupId, UpdateGroupContacts updateGroupContacts) + +Add contacts to a group + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class AddContactsToGroupExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new GroupControllerApi(config); + var groupId = "groupId_example"; // Guid | + var updateGroupContacts = new UpdateGroupContacts(); // UpdateGroupContacts | + + try + { + // Add contacts to a group + GroupContactsDto result = apiInstance.AddContactsToGroup(groupId, updateGroupContacts); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling GroupControllerApi.AddContactsToGroup: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the AddContactsToGroupWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Add contacts to a group + ApiResponse response = apiInstance.AddContactsToGroupWithHttpInfo(groupId, updateGroupContacts); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling GroupControllerApi.AddContactsToGroupWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **groupId** | **Guid** | | | +| **updateGroupContacts** | [**UpdateGroupContacts**](UpdateGroupContacts) | | | + +### Return type + +[**GroupContactsDto**](GroupContactsDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateGroup** +> GroupDto CreateGroup (CreateGroupOptions createGroupOptions) + +Create a group + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateGroupExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new GroupControllerApi(config); + var createGroupOptions = new CreateGroupOptions(); // CreateGroupOptions | + + try + { + // Create a group + GroupDto result = apiInstance.CreateGroup(createGroupOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling GroupControllerApi.CreateGroup: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateGroupWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a group + ApiResponse response = apiInstance.CreateGroupWithHttpInfo(createGroupOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling GroupControllerApi.CreateGroupWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createGroupOptions** | [**CreateGroupOptions**](CreateGroupOptions) | | | + +### Return type + +[**GroupDto**](GroupDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteGroup** +> void DeleteGroup (Guid groupId) + +Delete group + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteGroupExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new GroupControllerApi(config); + var groupId = "groupId_example"; // Guid | + + try + { + // Delete group + apiInstance.DeleteGroup(groupId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling GroupControllerApi.DeleteGroup: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteGroupWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete group + apiInstance.DeleteGroupWithHttpInfo(groupId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling GroupControllerApi.DeleteGroupWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **groupId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllGroups** +> PageGroupProjection GetAllGroups (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get all Contact Groups in paginated format + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllGroupsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new GroupControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get all Contact Groups in paginated format + PageGroupProjection result = apiInstance.GetAllGroups(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling GroupControllerApi.GetAllGroups: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllGroupsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all Contact Groups in paginated format + ApiResponse response = apiInstance.GetAllGroupsWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling GroupControllerApi.GetAllGroupsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageGroupProjection**](PageGroupProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetGroup** +> GroupDto GetGroup (Guid groupId) + +Get group + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetGroupExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new GroupControllerApi(config); + var groupId = "groupId_example"; // Guid | + + try + { + // Get group + GroupDto result = apiInstance.GetGroup(groupId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling GroupControllerApi.GetGroup: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetGroupWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get group + ApiResponse response = apiInstance.GetGroupWithHttpInfo(groupId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling GroupControllerApi.GetGroupWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **groupId** | **Guid** | | | + +### Return type + +[**GroupDto**](GroupDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetGroupWithContacts** +> GroupContactsDto GetGroupWithContacts (Guid groupId) + +Get group and contacts belonging to it + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetGroupWithContactsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new GroupControllerApi(config); + var groupId = "groupId_example"; // Guid | + + try + { + // Get group and contacts belonging to it + GroupContactsDto result = apiInstance.GetGroupWithContacts(groupId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling GroupControllerApi.GetGroupWithContacts: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetGroupWithContactsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get group and contacts belonging to it + ApiResponse response = apiInstance.GetGroupWithContactsWithHttpInfo(groupId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling GroupControllerApi.GetGroupWithContactsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **groupId** | **Guid** | | | + +### Return type + +[**GroupContactsDto**](GroupContactsDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetGroupWithContactsPaginated** +> PageContactProjection GetGroupWithContactsPaginated (Guid groupId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + + + +Get group and paginated contacts belonging to it + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetGroupWithContactsPaginatedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new GroupControllerApi(config); + var groupId = "groupId_example"; // Guid | + var page = 0; // int? | Optional page index in group contact pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in group contact pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + PageContactProjection result = apiInstance.GetGroupWithContactsPaginated(groupId, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling GroupControllerApi.GetGroupWithContactsPaginated: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetGroupWithContactsPaginatedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetGroupWithContactsPaginatedWithHttpInfo(groupId, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling GroupControllerApi.GetGroupWithContactsPaginatedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **groupId** | **Guid** | | | +| **page** | **int?** | Optional page index in group contact pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in group contact pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageContactProjection**](PageContactProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetGroups** +> List<GroupProjection> GetGroups () + +Get all groups + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetGroupsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new GroupControllerApi(config); + + try + { + // Get all groups + List result = apiInstance.GetGroups(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling GroupControllerApi.GetGroups: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetGroupsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all groups + ApiResponse> response = apiInstance.GetGroupsWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling GroupControllerApi.GetGroupsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**List<GroupProjection>**](GroupProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **RemoveContactsFromGroup** +> GroupContactsDto RemoveContactsFromGroup (Guid groupId, UpdateGroupContacts updateGroupContacts) + +Remove contacts from a group + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class RemoveContactsFromGroupExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new GroupControllerApi(config); + var groupId = "groupId_example"; // Guid | + var updateGroupContacts = new UpdateGroupContacts(); // UpdateGroupContacts | + + try + { + // Remove contacts from a group + GroupContactsDto result = apiInstance.RemoveContactsFromGroup(groupId, updateGroupContacts); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling GroupControllerApi.RemoveContactsFromGroup: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the RemoveContactsFromGroupWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Remove contacts from a group + ApiResponse response = apiInstance.RemoveContactsFromGroupWithHttpInfo(groupId, updateGroupContacts); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling GroupControllerApi.RemoveContactsFromGroupWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **groupId** | **Guid** | | | +| **updateGroupContacts** | [**UpdateGroupContacts**](UpdateGroupContacts) | | | + +### Return type + +[**GroupContactsDto**](GroupContactsDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/GroupDto.md b/docs/GroupDto.md new file mode 100644 index 00000000..6fd2bd81 --- /dev/null +++ b/docs/GroupDto.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.GroupDto +Contact group data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**Name** | **string** | | +**Description** | **string** | | [optional] +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/GroupProjection.md b/docs/GroupProjection.md new file mode 100644 index 00000000..5f78a026 --- /dev/null +++ b/docs/GroupProjection.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.GroupProjection +Data for contact group + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | **DateTime** | | +**Name** | **string** | | +**Id** | **Guid** | | +**Description** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/HTMLValidationResult.md b/docs/HTMLValidationResult.md new file mode 100644 index 00000000..f8675e25 --- /dev/null +++ b/docs/HTMLValidationResult.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.HTMLValidationResult +HTML Validation Results + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsValid** | **bool** | Is HTML validation result valid | +**Infos** | [**List<ValidationMessage>**](ValidationMessage) | Optional infos resulting from HTML validation | +**Errors** | [**List<ValidationMessage>**](ValidationMessage) | Optional errors resulting from HTML validation | +**Warnings** | [**List<ValidationMessage>**](ValidationMessage) | Optional warnings resulting from HTML validation | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/IPAddressResult.md b/docs/IPAddressResult.md new file mode 100644 index 00000000..586e92cf --- /dev/null +++ b/docs/IPAddressResult.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.IPAddressResult +IP Address look up result for a given domain / hostname + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | | +**Hostname** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImageIssue.md b/docs/ImageIssue.md new file mode 100644 index 00000000..949ece9e --- /dev/null +++ b/docs/ImageIssue.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.ImageIssue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | +**ResponseStatus** | **int** | | [optional] +**Severity** | **string** | | +**Message** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapAccessDetails.md b/docs/ImapAccessDetails.md new file mode 100644 index 00000000..b821f109 --- /dev/null +++ b/docs/ImapAccessDetails.md @@ -0,0 +1,19 @@ +# mailslurp_netstandard_2x.Model.ImapAccessDetails +Access details for inbox using IMAP + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SecureImapServerHost** | **string** | Secure TLS IMAP server host domain | +**SecureImapServerPort** | **int** | Secure TLS IMAP server host port | +**SecureImapUsername** | **string** | Secure TLS IMAP username for login | +**SecureImapPassword** | **string** | Secure TLS IMAP password for login | +**ImapServerHost** | **string** | IMAP server host domain | +**ImapServerPort** | **int** | IMAP server host port | +**ImapUsername** | **string** | IMAP username for login | +**ImapPassword** | **string** | IMAP password for login | +**ImapMailbox** | **string** | IMAP mailbox to SELECT | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapControllerApi.md b/docs/ImapControllerApi.md new file mode 100644 index 00000000..8e1abe88 --- /dev/null +++ b/docs/ImapControllerApi.md @@ -0,0 +1,585 @@ +# mailslurp_netstandard_2x.Api.ImapControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**ImapServerFetch**](ImapControllerApi#imapserverfetch) | **POST** /imap/server/fetch | Fetch message in an inbox | +| [**ImapServerGet**](ImapControllerApi#imapserverget) | **POST** /imap/server/get | Get a message by email ID | +| [**ImapServerList**](ImapControllerApi#imapserverlist) | **POST** /imap/server/list | List messages in an inbox | +| [**ImapServerSearch**](ImapControllerApi#imapserversearch) | **POST** /imap/server/search | Search messages in an inbox | +| [**ImapServerStatus**](ImapControllerApi#imapserverstatus) | **POST** /imap/server/status | Get status for mailbox | +| [**ImapServerUpdateFlags**](ImapControllerApi#imapserverupdateflags) | **POST** /imap/server/update-flags | | + + +# **ImapServerFetch** +> ImapServerFetchResult ImapServerFetch (long seqNum, Guid? inboxId = null) + +Fetch message in an inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ImapServerFetchExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ImapControllerApi(config); + var seqNum = 789L; // long | + var inboxId = "inboxId_example"; // Guid? | Inbox ID to search (optional) + + try + { + // Fetch message in an inbox + ImapServerFetchResult result = apiInstance.ImapServerFetch(seqNum, inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ImapControllerApi.ImapServerFetch: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ImapServerFetchWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Fetch message in an inbox + ApiResponse response = apiInstance.ImapServerFetchWithHttpInfo(seqNum, inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ImapControllerApi.ImapServerFetchWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **seqNum** | **long** | | | +| **inboxId** | **Guid?** | Inbox ID to search | [optional] | + +### Return type + +[**ImapServerFetchResult**](ImapServerFetchResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ImapServerGet** +> ImapServerGetResult ImapServerGet (Guid emailId, Guid? inboxId = null) + +Get a message by email ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ImapServerGetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ImapControllerApi(config); + var emailId = "emailId_example"; // Guid | Email ID to get + var inboxId = "inboxId_example"; // Guid? | Inbox ID to search (optional) + + try + { + // Get a message by email ID + ImapServerGetResult result = apiInstance.ImapServerGet(emailId, inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ImapControllerApi.ImapServerGet: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ImapServerGetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a message by email ID + ApiResponse response = apiInstance.ImapServerGetWithHttpInfo(emailId, inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ImapControllerApi.ImapServerGetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | Email ID to get | | +| **inboxId** | **Guid?** | Inbox ID to search | [optional] | + +### Return type + +[**ImapServerGetResult**](ImapServerGetResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ImapServerList** +> ImapServerListResult ImapServerList (ImapServerListOptions imapServerListOptions, Guid? inboxId = null) + +List messages in an inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ImapServerListExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ImapControllerApi(config); + var imapServerListOptions = new ImapServerListOptions(); // ImapServerListOptions | + var inboxId = "inboxId_example"; // Guid? | Inbox ID to list (optional) + + try + { + // List messages in an inbox + ImapServerListResult result = apiInstance.ImapServerList(imapServerListOptions, inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ImapControllerApi.ImapServerList: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ImapServerListWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List messages in an inbox + ApiResponse response = apiInstance.ImapServerListWithHttpInfo(imapServerListOptions, inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ImapControllerApi.ImapServerListWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **imapServerListOptions** | [**ImapServerListOptions**](ImapServerListOptions) | | | +| **inboxId** | **Guid?** | Inbox ID to list | [optional] | + +### Return type + +[**ImapServerListResult**](ImapServerListResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ImapServerSearch** +> ImapServerSearchResult ImapServerSearch (ImapServerSearchOptions imapServerSearchOptions, Guid? inboxId = null) + +Search messages in an inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ImapServerSearchExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ImapControllerApi(config); + var imapServerSearchOptions = new ImapServerSearchOptions(); // ImapServerSearchOptions | + var inboxId = "inboxId_example"; // Guid? | Inbox ID to search (optional) + + try + { + // Search messages in an inbox + ImapServerSearchResult result = apiInstance.ImapServerSearch(imapServerSearchOptions, inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ImapControllerApi.ImapServerSearch: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ImapServerSearchWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Search messages in an inbox + ApiResponse response = apiInstance.ImapServerSearchWithHttpInfo(imapServerSearchOptions, inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ImapControllerApi.ImapServerSearchWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **imapServerSearchOptions** | [**ImapServerSearchOptions**](ImapServerSearchOptions) | | | +| **inboxId** | **Guid?** | Inbox ID to search | [optional] | + +### Return type + +[**ImapServerSearchResult**](ImapServerSearchResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ImapServerStatus** +> ImapServerStatusResult ImapServerStatus (ImapServerStatusOptions imapServerStatusOptions, Guid? inboxId = null) + +Get status for mailbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ImapServerStatusExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ImapControllerApi(config); + var imapServerStatusOptions = new ImapServerStatusOptions(); // ImapServerStatusOptions | + var inboxId = "inboxId_example"; // Guid? | Inbox ID to list (optional) + + try + { + // Get status for mailbox + ImapServerStatusResult result = apiInstance.ImapServerStatus(imapServerStatusOptions, inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ImapControllerApi.ImapServerStatus: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ImapServerStatusWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get status for mailbox + ApiResponse response = apiInstance.ImapServerStatusWithHttpInfo(imapServerStatusOptions, inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ImapControllerApi.ImapServerStatusWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **imapServerStatusOptions** | [**ImapServerStatusOptions**](ImapServerStatusOptions) | | | +| **inboxId** | **Guid?** | Inbox ID to list | [optional] | + +### Return type + +[**ImapServerStatusResult**](ImapServerStatusResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ImapServerUpdateFlags** +> void ImapServerUpdateFlags (ImapUpdateFlagsOptions imapUpdateFlagsOptions, Guid? inboxId = null) + + + +Update message flags + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ImapServerUpdateFlagsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ImapControllerApi(config); + var imapUpdateFlagsOptions = new ImapUpdateFlagsOptions(); // ImapUpdateFlagsOptions | + var inboxId = "inboxId_example"; // Guid? | (optional) + + try + { + apiInstance.ImapServerUpdateFlags(imapUpdateFlagsOptions, inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ImapControllerApi.ImapServerUpdateFlags: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ImapServerUpdateFlagsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + apiInstance.ImapServerUpdateFlagsWithHttpInfo(imapUpdateFlagsOptions, inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ImapControllerApi.ImapServerUpdateFlagsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **imapUpdateFlagsOptions** | [**ImapUpdateFlagsOptions**](ImapUpdateFlagsOptions) | | | +| **inboxId** | **Guid?** | | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/ImapEmailProjection.md b/docs/ImapEmailProjection.md new file mode 100644 index 00000000..bfba928b --- /dev/null +++ b/docs/ImapEmailProjection.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.ImapEmailProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Read** | **bool?** | | [optional] +**Uid** | **long** | | +**SeqNum** | **long** | | +**CreatedAt** | **DateTime** | | +**Id** | **Guid** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapFlagOperationOptions.md b/docs/ImapFlagOperationOptions.md new file mode 100644 index 00000000..ad20ad06 --- /dev/null +++ b/docs/ImapFlagOperationOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.ImapFlagOperationOptions +IMAP operation flags + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlagOperation** | **string** | | +**Flags** | **List<string>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapMailboxStatus.md b/docs/ImapMailboxStatus.md new file mode 100644 index 00000000..6ecac19f --- /dev/null +++ b/docs/ImapMailboxStatus.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.ImapMailboxStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The mailbox name. | +**ReadOnly** | **bool** | True if the mailbox is open in read-only mode. | +**Items** | **Object** | Results map | +**Flags** | **List<string>** | The mailbox flags. | +**PermanentFlags** | **List<string>** | The mailbox permanent flags. | +**UnseenSeqNum** | **long** | The sequence number of the first unseen message in the mailbox. | +**Messages** | **int** | The number of messages in this mailbox. | +**Recent** | **int** | The number of messages not seen since the last time the mailbox was opened. | +**Unseen** | **int** | The number of unread messages. | +**UidNext** | **long** | The next UID. | +**UidValidity** | **int** | Together with a UID, it is a unique identifier for a message. Must be greater than or equal to 1. | +**AppendLimit** | **int?** | Per-mailbox limit of message size. Set only if server supports the APPENDLIMIT extension | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapServerFetchItem.md b/docs/ImapServerFetchItem.md new file mode 100644 index 00000000..338980c2 --- /dev/null +++ b/docs/ImapServerFetchItem.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.ImapServerFetchItem +IMAP fetch content in raw format + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | **string** | Content of the email | +**Id** | **Guid** | ID of the email | +**Uid** | **long** | UID of the email | +**SeqNum** | **long** | Sequence number of the email | +**Read** | **bool** | Read status of the email | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapServerFetchResult.md b/docs/ImapServerFetchResult.md new file mode 100644 index 00000000..94c28cf0 --- /dev/null +++ b/docs/ImapServerFetchResult.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.ImapServerFetchResult +IMAP fetch email result + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**ImapServerFetchItem**](ImapServerFetchItem) | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapServerGetResult.md b/docs/ImapServerGetResult.md new file mode 100644 index 00000000..8e5d9c0d --- /dev/null +++ b/docs/ImapServerGetResult.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.ImapServerGetResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**ImapEmailProjection**](ImapEmailProjection) | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapServerListOptions.md b/docs/ImapServerListOptions.md new file mode 100644 index 00000000..32cff778 --- /dev/null +++ b/docs/ImapServerListOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.ImapServerListOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UidSet** | **string** | | [optional] +**SeqSet** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapServerListResult.md b/docs/ImapServerListResult.md new file mode 100644 index 00000000..d9ea01ef --- /dev/null +++ b/docs/ImapServerListResult.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.ImapServerListResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | [**List<ImapEmailProjection>**](ImapEmailProjection) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapServerSearchOptions.md b/docs/ImapServerSearchOptions.md new file mode 100644 index 00000000..0effef59 --- /dev/null +++ b/docs/ImapServerSearchOptions.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.ImapServerSearchOptions +IMAP server search options + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SeqNum** | **string** | | [optional] +**Uid** | **string** | | [optional] +**Since** | **DateTime?** | | [optional] +**Before** | **DateTime?** | | [optional] +**SentSince** | **DateTime?** | | [optional] +**SentBefore** | **DateTime?** | | [optional] +**Header** | **Dictionary<string, List<string>>** | | [optional] +**Body** | **List<string>** | | [optional] +**Text** | **List<string>** | | [optional] +**WithFlags** | **List<string>** | | [optional] +**WithoutFlags** | **List<string>** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapServerSearchResult.md b/docs/ImapServerSearchResult.md new file mode 100644 index 00000000..0b73c6dc --- /dev/null +++ b/docs/ImapServerSearchResult.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.ImapServerSearchResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | [**List<ImapEmailProjection>**](ImapEmailProjection) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapServerStatusOptions.md b/docs/ImapServerStatusOptions.md new file mode 100644 index 00000000..2a1482b4 --- /dev/null +++ b/docs/ImapServerStatusOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.ImapServerStatusOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] +**StatusItems** | **List<ImapServerStatusOptions.StatusItemsEnum>** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapServerStatusResult.md b/docs/ImapServerStatusResult.md new file mode 100644 index 00000000..5c3c9f0f --- /dev/null +++ b/docs/ImapServerStatusResult.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.ImapServerStatusResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**ImapMailboxStatus**](ImapMailboxStatus) | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapSmtpAccessDetails.md b/docs/ImapSmtpAccessDetails.md new file mode 100644 index 00000000..f63f74ab --- /dev/null +++ b/docs/ImapSmtpAccessDetails.md @@ -0,0 +1,28 @@ +# mailslurp_netstandard_2x.Model.ImapSmtpAccessDetails +Access details for inbox using SMTP or IMAP + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SecureSmtpServerHost** | **string** | Secure TLS SMTP server host domain | +**SecureSmtpServerPort** | **int** | Secure TLS SMTP server host port | +**SecureSmtpUsername** | **string** | Secure TLS SMTP username for login | +**SecureSmtpPassword** | **string** | Secure TLS SMTP password for login | +**SmtpServerHost** | **string** | SMTP server host domain | +**SmtpServerPort** | **int** | SMTP server host port | +**SmtpUsername** | **string** | SMTP username for login | +**SmtpPassword** | **string** | SMTP password for login | +**SecureImapServerHost** | **string** | Secure TLS IMAP server host domain | +**SecureImapServerPort** | **int** | Secure TLS IMAP server host port | +**SecureImapUsername** | **string** | Secure TLS IMAP username for login | +**SecureImapPassword** | **string** | Secure TLS IMAP password for login | +**ImapServerHost** | **string** | IMAP server host domain | +**ImapServerPort** | **int** | IMAP server host port | +**ImapUsername** | **string** | IMAP username for login | +**ImapPassword** | **string** | IMAP password for login | +**ImapMailbox** | **string** | IMAP mailbox to SELECT | +**MailFromDomain** | **string** | Mail from domain or SMTP HELO value | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapSmtpAccessServers.md b/docs/ImapSmtpAccessServers.md new file mode 100644 index 00000000..d6bc0e38 --- /dev/null +++ b/docs/ImapSmtpAccessServers.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.ImapSmtpAccessServers +IMAP and SMTP server endpoints for MailSlurp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImapServer** | [**ServerEndpoints**](ServerEndpoints) | | +**SecureImapServer** | [**ServerEndpoints**](ServerEndpoints) | | +**SmtpServer** | [**ServerEndpoints**](ServerEndpoints) | | +**SecureSmtpServer** | [**ServerEndpoints**](ServerEndpoints) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ImapUpdateFlagsOptions.md b/docs/ImapUpdateFlagsOptions.md new file mode 100644 index 00000000..206c8370 --- /dev/null +++ b/docs/ImapUpdateFlagsOptions.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.ImapUpdateFlagsOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Operation** | **string** | | +**Flags** | **List<string>** | | [optional] +**UidSet** | **string** | | [optional] +**SeqSet** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxByEmailAddressResult.md b/docs/InboxByEmailAddressResult.md new file mode 100644 index 00000000..448e0be6 --- /dev/null +++ b/docs/InboxByEmailAddressResult.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.InboxByEmailAddressResult +Result of search for inbox by email address + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxId** | **Guid?** | | [optional] +**Exists** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxByNameResult.md b/docs/InboxByNameResult.md new file mode 100644 index 00000000..83934896 --- /dev/null +++ b/docs/InboxByNameResult.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.InboxByNameResult +Result of search for inbox by name + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxId** | **Guid?** | | [optional] +**Exists** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxControllerApi.md b/docs/InboxControllerApi.md new file mode 100644 index 00000000..43c38e1b --- /dev/null +++ b/docs/InboxControllerApi.md @@ -0,0 +1,4975 @@ +# mailslurp_netstandard_2x.Api.InboxControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CancelScheduledJob**](InboxControllerApi#cancelscheduledjob) | **DELETE** /inboxes/scheduled-jobs/{jobId} | Cancel a scheduled email job | +| [**CreateInbox**](InboxControllerApi#createinbox) | **POST** /inboxes | Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. | +| [**CreateInboxRuleset**](InboxControllerApi#createinboxruleset) | **POST** /inboxes/{inboxId}/rulesets | Create an inbox ruleset | +| [**CreateInboxWithDefaults**](InboxControllerApi#createinboxwithdefaults) | **POST** /inboxes/withDefaults | Create an inbox with default options. Uses MailSlurp domain pool address and is private. | +| [**CreateInboxWithOptions**](InboxControllerApi#createinboxwithoptions) | **POST** /inboxes/withOptions | Create an inbox with options. Extended options for inbox creation. | +| [**DeleteAllInboxEmails**](InboxControllerApi#deleteallinboxemails) | **DELETE** /inboxes/{inboxId}/deleteAllInboxEmails | Delete all emails in a given inboxes. | +| [**DeleteAllInboxes**](InboxControllerApi#deleteallinboxes) | **DELETE** /inboxes | Delete all inboxes | +| [**DeleteAllInboxesByDescription**](InboxControllerApi#deleteallinboxesbydescription) | **DELETE** /inboxes/by-description | Delete inboxes by description | +| [**DeleteAllInboxesByName**](InboxControllerApi#deleteallinboxesbyname) | **DELETE** /inboxes/by-name | Delete inboxes by name | +| [**DeleteAllInboxesByTag**](InboxControllerApi#deleteallinboxesbytag) | **DELETE** /inboxes/by-tag | Delete inboxes by tag | +| [**DeleteInbox**](InboxControllerApi#deleteinbox) | **DELETE** /inboxes/{inboxId} | Delete inbox | +| [**DoesInboxExist**](InboxControllerApi#doesinboxexist) | **GET** /inboxes/exists | Does inbox exist | +| [**FlushExpired**](InboxControllerApi#flushexpired) | **DELETE** /inboxes/expired | Remove expired inboxes | +| [**GetAllInboxes**](InboxControllerApi#getallinboxes) | **GET** /inboxes/paginated | List All Inboxes Paginated | +| [**GetAllInboxesOffsetPaginated**](InboxControllerApi#getallinboxesoffsetpaginated) | **GET** /inboxes/offset-paginated | List All Inboxes Offset Paginated | +| [**GetAllScheduledJobs**](InboxControllerApi#getallscheduledjobs) | **GET** /inboxes/scheduled-jobs | Get all scheduled email sending jobs for account | +| [**GetDeliveryStatusesByInboxId**](InboxControllerApi#getdeliverystatusesbyinboxid) | **GET** /inboxes/{inboxId}/delivery-status | | +| [**GetEmails**](InboxControllerApi#getemails) | **GET** /inboxes/{inboxId}/emails | Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. | +| [**GetImapAccess**](InboxControllerApi#getimapaccess) | **GET** /inboxes/imap-access | | +| [**GetImapSmtpAccess**](InboxControllerApi#getimapsmtpaccess) | **GET** /inboxes/imap-smtp-access | | +| [**GetImapSmtpAccessEnv**](InboxControllerApi#getimapsmtpaccessenv) | **GET** /inboxes/imap-smtp-access/env | | +| [**GetImapSmtpAccessServers**](InboxControllerApi#getimapsmtpaccessservers) | **GET** /inboxes/imap-smtp-access/servers | | +| [**GetInbox**](InboxControllerApi#getinbox) | **GET** /inboxes/{inboxId} | Get Inbox. Returns properties of an inbox. | +| [**GetInboxByEmailAddress**](InboxControllerApi#getinboxbyemailaddress) | **GET** /inboxes/byEmailAddress | Search for an inbox with the provided email address | +| [**GetInboxByName**](InboxControllerApi#getinboxbyname) | **GET** /inboxes/byName | Search for an inbox with the given name | +| [**GetInboxCount**](InboxControllerApi#getinboxcount) | **GET** /inboxes/count | Get total inbox count | +| [**GetInboxEmailCount**](InboxControllerApi#getinboxemailcount) | **GET** /inboxes/{inboxId}/emails/count | Get email count in inbox | +| [**GetInboxEmailsPaginated**](InboxControllerApi#getinboxemailspaginated) | **GET** /inboxes/{inboxId}/emails/paginated | Get inbox emails paginated | +| [**GetInboxIds**](InboxControllerApi#getinboxids) | **GET** /inboxes/ids | Get all inbox IDs | +| [**GetInboxSentEmails**](InboxControllerApi#getinboxsentemails) | **GET** /inboxes/{inboxId}/sent | Get Inbox Sent Emails | +| [**GetInboxTags**](InboxControllerApi#getinboxtags) | **GET** /inboxes/tags | Get inbox tags | +| [**GetInboxes**](InboxControllerApi#getinboxes) | **GET** /inboxes | List Inboxes and email addresses | +| [**GetLatestEmailInInbox**](InboxControllerApi#getlatestemailininbox) | **GET** /inboxes/getLatestEmail | Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. | +| [**GetOrganizationInboxes**](InboxControllerApi#getorganizationinboxes) | **GET** /inboxes/organization | List Organization Inboxes Paginated | +| [**GetScheduledJob**](InboxControllerApi#getscheduledjob) | **GET** /inboxes/scheduled-jobs/{jobId} | Get a scheduled email job | +| [**GetScheduledJobsByInboxId**](InboxControllerApi#getscheduledjobsbyinboxid) | **GET** /inboxes/{inboxId}/scheduled-jobs | Get all scheduled email sending jobs for the inbox | +| [**GetSmtpAccess**](InboxControllerApi#getsmtpaccess) | **GET** /inboxes/smtp-access | | +| [**ListInboxRulesets**](InboxControllerApi#listinboxrulesets) | **GET** /inboxes/{inboxId}/rulesets | List inbox rulesets | +| [**ListInboxTrackingPixels**](InboxControllerApi#listinboxtrackingpixels) | **GET** /inboxes/{inboxId}/tracking-pixels | List inbox tracking pixels | +| [**SearchInboxes**](InboxControllerApi#searchinboxes) | **POST** /inboxes/search | Search all inboxes and return matching inboxes | +| [**SendEmail**](InboxControllerApi#sendemail) | **POST** /inboxes/{inboxId} | Send Email | +| [**SendEmailAndConfirm**](InboxControllerApi#sendemailandconfirm) | **POST** /inboxes/{inboxId}/confirm | Send email and return sent confirmation | +| [**SendEmailWithQueue**](InboxControllerApi#sendemailwithqueue) | **POST** /inboxes/{inboxId}/with-queue | Send email with queue | +| [**SendSmtpEnvelope**](InboxControllerApi#sendsmtpenvelope) | **POST** /inboxes/{inboxId}/smtp-envelope | Send email using an SMTP mail envelope and message body and return sent confirmation | +| [**SendTestEmail**](InboxControllerApi#sendtestemail) | **POST** /inboxes/{inboxId}/send-test-email | Send a test email to inbox | +| [**SendWithSchedule**](InboxControllerApi#sendwithschedule) | **POST** /inboxes/{inboxId}/with-schedule | Send email with with delay or schedule | +| [**SetInboxFavourited**](InboxControllerApi#setinboxfavourited) | **PUT** /inboxes/{inboxId}/favourite | Set inbox favourited state | +| [**UpdateImapAccess**](InboxControllerApi#updateimapaccess) | **PATCH** /inboxes/imap-access | | +| [**UpdateInbox**](InboxControllerApi#updateinbox) | **PATCH** /inboxes/{inboxId} | Update Inbox. Change name and description. Email address is not editable. | +| [**UpdateSmtpAccess**](InboxControllerApi#updatesmtpaccess) | **PATCH** /inboxes/smtp-access | | + + +# **CancelScheduledJob** +> ScheduledJobDto CancelScheduledJob (Guid jobId) + +Cancel a scheduled email job + +Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CancelScheduledJobExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var jobId = "jobId_example"; // Guid | + + try + { + // Cancel a scheduled email job + ScheduledJobDto result = apiInstance.CancelScheduledJob(jobId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.CancelScheduledJob: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CancelScheduledJobWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Cancel a scheduled email job + ApiResponse response = apiInstance.CancelScheduledJobWithHttpInfo(jobId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.CancelScheduledJobWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **jobId** | **Guid** | | | + +### Return type + +[**ScheduledJobDto**](ScheduledJobDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateInbox** +> InboxDto CreateInbox (string emailAddress = null, List tags = null, string name = null, string description = null, bool? useDomainPool = null, bool? favourite = null, DateTime? expiresAt = null, long? expiresIn = null, bool? allowTeamAccess = null, string inboxType = null, bool? virtualInbox = null, bool? useShortAddress = null, Guid? domainId = null, string domainName = null, string prefix = null) + +Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. + +Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateInboxExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var emailAddress = "emailAddress_example"; // string | A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) + var tags = new List(); // List | Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) + var name = "name_example"; // string | Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) + var description = "description_example"; // string | Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) + var useDomainPool = true; // bool? | Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) + var favourite = true; // bool? | Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) + var expiresAt = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) + var expiresIn = 789L; // long? | Number of milliseconds that inbox should exist for (optional) + var allowTeamAccess = true; // bool? | DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) + var inboxType = "HTTP_INBOX"; // string | HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) + var virtualInbox = true; // bool? | Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) + var useShortAddress = true; // bool? | Use a shorter email address under 31 characters (optional) + var domainId = "domainId_example"; // Guid? | ID of custom domain to use for email address. (optional) + var domainName = "domainName_example"; // string | FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) + var prefix = "prefix_example"; // string | Prefix to add before the email address for easier labelling or identification. (optional) + + try + { + // Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. + InboxDto result = apiInstance.CreateInbox(emailAddress, tags, name, description, useDomainPool, favourite, expiresAt, expiresIn, allowTeamAccess, inboxType, virtualInbox, useShortAddress, domainId, domainName, prefix); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.CreateInbox: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateInboxWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. + ApiResponse response = apiInstance.CreateInboxWithHttpInfo(emailAddress, tags, name, description, useDomainPool, favourite, expiresAt, expiresIn, allowTeamAccess, inboxType, virtualInbox, useShortAddress, domainId, domainName, prefix); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.CreateInboxWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailAddress** | **string** | A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. | [optional] | +| **tags** | [**List<string>**](string) | Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. | [optional] | +| **name** | **string** | Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. | [optional] | +| **description** | **string** | Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with | [optional] | +| **useDomainPool** | **bool?** | Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. | [optional] | +| **favourite** | **bool?** | Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering | [optional] | +| **expiresAt** | **DateTime?** | Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. | [optional] | +| **expiresIn** | **long?** | Number of milliseconds that inbox should exist for | [optional] | +| **allowTeamAccess** | **bool?** | DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. | [optional] | +| **inboxType** | **string** | HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. | [optional] | +| **virtualInbox** | **bool?** | Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. | [optional] | +| **useShortAddress** | **bool?** | Use a shorter email address under 31 characters | [optional] | +| **domainId** | **Guid?** | ID of custom domain to use for email address. | [optional] | +| **domainName** | **string** | FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. | [optional] | +| **prefix** | **string** | Prefix to add before the email address for easier labelling or identification. | [optional] | + +### Return type + +[**InboxDto**](InboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateInboxRuleset** +> InboxRulesetDto CreateInboxRuleset (Guid inboxId, CreateInboxRulesetOptions createInboxRulesetOptions) + +Create an inbox ruleset + +Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateInboxRulesetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | inboxId + var createInboxRulesetOptions = new CreateInboxRulesetOptions(); // CreateInboxRulesetOptions | + + try + { + // Create an inbox ruleset + InboxRulesetDto result = apiInstance.CreateInboxRuleset(inboxId, createInboxRulesetOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.CreateInboxRuleset: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateInboxRulesetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create an inbox ruleset + ApiResponse response = apiInstance.CreateInboxRulesetWithHttpInfo(inboxId, createInboxRulesetOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.CreateInboxRulesetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | inboxId | | +| **createInboxRulesetOptions** | [**CreateInboxRulesetOptions**](CreateInboxRulesetOptions) | | | + +### Return type + +[**InboxRulesetDto**](InboxRulesetDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateInboxWithDefaults** +> InboxDto CreateInboxWithDefaults () + +Create an inbox with default options. Uses MailSlurp domain pool address and is private. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateInboxWithDefaultsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + + try + { + // Create an inbox with default options. Uses MailSlurp domain pool address and is private. + InboxDto result = apiInstance.CreateInboxWithDefaults(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.CreateInboxWithDefaults: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateInboxWithDefaultsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create an inbox with default options. Uses MailSlurp domain pool address and is private. + ApiResponse response = apiInstance.CreateInboxWithDefaultsWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.CreateInboxWithDefaultsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**InboxDto**](InboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateInboxWithOptions** +> InboxDto CreateInboxWithOptions (CreateInboxDto createInboxDto) + +Create an inbox with options. Extended options for inbox creation. + +Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateInboxWithOptionsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var createInboxDto = new CreateInboxDto(); // CreateInboxDto | + + try + { + // Create an inbox with options. Extended options for inbox creation. + InboxDto result = apiInstance.CreateInboxWithOptions(createInboxDto); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.CreateInboxWithOptions: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateInboxWithOptionsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create an inbox with options. Extended options for inbox creation. + ApiResponse response = apiInstance.CreateInboxWithOptionsWithHttpInfo(createInboxDto); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.CreateInboxWithOptionsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createInboxDto** | [**CreateInboxDto**](CreateInboxDto) | | | + +### Return type + +[**InboxDto**](InboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteAllInboxEmails** +> void DeleteAllInboxEmails (Guid inboxId) + +Delete all emails in a given inboxes. + +Deletes all emails in an inbox. Be careful as emails cannot be recovered + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAllInboxEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + + try + { + // Delete all emails in a given inboxes. + apiInstance.DeleteAllInboxEmails(inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.DeleteAllInboxEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAllInboxEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete all emails in a given inboxes. + apiInstance.DeleteAllInboxEmailsWithHttpInfo(inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.DeleteAllInboxEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteAllInboxes** +> void DeleteAllInboxes () + +Delete all inboxes + +Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAllInboxesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + + try + { + // Delete all inboxes + apiInstance.DeleteAllInboxes(); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.DeleteAllInboxes: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAllInboxesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete all inboxes + apiInstance.DeleteAllInboxesWithHttpInfo(); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.DeleteAllInboxesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteAllInboxesByDescription** +> void DeleteAllInboxesByDescription (string description) + +Delete inboxes by description + +Permanently delete all inboxes by description + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAllInboxesByDescriptionExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var description = "description_example"; // string | + + try + { + // Delete inboxes by description + apiInstance.DeleteAllInboxesByDescription(description); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.DeleteAllInboxesByDescription: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAllInboxesByDescriptionWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete inboxes by description + apiInstance.DeleteAllInboxesByDescriptionWithHttpInfo(description); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.DeleteAllInboxesByDescriptionWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **description** | **string** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteAllInboxesByName** +> void DeleteAllInboxesByName (string name) + +Delete inboxes by name + +Permanently delete all inboxes by name + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAllInboxesByNameExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var name = "name_example"; // string | + + try + { + // Delete inboxes by name + apiInstance.DeleteAllInboxesByName(name); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.DeleteAllInboxesByName: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAllInboxesByNameWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete inboxes by name + apiInstance.DeleteAllInboxesByNameWithHttpInfo(name); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.DeleteAllInboxesByNameWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **name** | **string** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteAllInboxesByTag** +> void DeleteAllInboxesByTag (string tag) + +Delete inboxes by tag + +Permanently delete all inboxes by tag + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAllInboxesByTagExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var tag = "tag_example"; // string | + + try + { + // Delete inboxes by tag + apiInstance.DeleteAllInboxesByTag(tag); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.DeleteAllInboxesByTag: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAllInboxesByTagWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete inboxes by tag + apiInstance.DeleteAllInboxesByTagWithHttpInfo(tag); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.DeleteAllInboxesByTagWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **tag** | **string** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteInbox** +> void DeleteInbox (Guid inboxId) + +Delete inbox + +Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteInboxExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + + try + { + // Delete inbox + apiInstance.DeleteInbox(inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.DeleteInbox: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteInboxWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete inbox + apiInstance.DeleteInboxWithHttpInfo(inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.DeleteInboxWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DoesInboxExist** +> InboxExistsDto DoesInboxExist (string emailAddress, bool? allowCatchAll = null) + +Does inbox exist + +Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DoesInboxExistExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var emailAddress = "emailAddress_example"; // string | Email address + var allowCatchAll = true; // bool? | (optional) + + try + { + // Does inbox exist + InboxExistsDto result = apiInstance.DoesInboxExist(emailAddress, allowCatchAll); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.DoesInboxExist: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DoesInboxExistWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Does inbox exist + ApiResponse response = apiInstance.DoesInboxExistWithHttpInfo(emailAddress, allowCatchAll); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.DoesInboxExistWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailAddress** | **string** | Email address | | +| **allowCatchAll** | **bool?** | | [optional] | + +### Return type + +[**InboxExistsDto**](InboxExistsDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **FlushExpired** +> FlushExpiredInboxesResult FlushExpired (DateTime? before = null) + +Remove expired inboxes + +Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class FlushExpiredExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) + + try + { + // Remove expired inboxes + FlushExpiredInboxesResult result = apiInstance.FlushExpired(before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.FlushExpired: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the FlushExpiredWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Remove expired inboxes + ApiResponse response = apiInstance.FlushExpiredWithHttpInfo(before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.FlushExpiredWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **before** | **DateTime?** | Optional expired at before flag to flush expired inboxes that have expired before the given time | [optional] | + +### Return type + +[**FlushExpiredInboxesResult**](FlushExpiredInboxesResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllInboxes** +> PageInboxProjection GetAllInboxes (int? page = null, int? size = null, string sort = null, bool? favourite = null, string search = null, string tag = null, bool? teamAccess = null, DateTime? since = null, DateTime? before = null, string inboxType = null, string inboxFunction = null, Guid? domainId = null) + +List All Inboxes Paginated + +List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllInboxesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var favourite = false; // bool? | Optionally filter results for favourites only (optional) (default to false) + var search = "search_example"; // string | Optionally filter by search words partial matching ID, tags, name, and email address (optional) + var tag = "tag_example"; // string | Optionally filter by tags. Will return inboxes that include given tags (optional) + var teamAccess = true; // bool? | DEPRECATED. Optionally filter by team access. (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created before given date time (optional) + var inboxType = "HTTP_INBOX"; // string | Optional filter by inbox type (optional) + var inboxFunction = "ALIAS"; // string | Optional filter by inbox function (optional) + var domainId = "domainId_example"; // Guid? | Optional domain ID filter (optional) + + try + { + // List All Inboxes Paginated + PageInboxProjection result = apiInstance.GetAllInboxes(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetAllInboxes: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllInboxesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List All Inboxes Paginated + ApiResponse response = apiInstance.GetAllInboxesWithHttpInfo(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetAllInboxesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **favourite** | **bool?** | Optionally filter results for favourites only | [optional] [default to false] | +| **search** | **string** | Optionally filter by search words partial matching ID, tags, name, and email address | [optional] | +| **tag** | **string** | Optionally filter by tags. Will return inboxes that include given tags | [optional] | +| **teamAccess** | **bool?** | DEPRECATED. Optionally filter by team access. | [optional] | +| **since** | **DateTime?** | Optional filter by created after given date time | [optional] | +| **before** | **DateTime?** | Optional filter by created before given date time | [optional] | +| **inboxType** | **string** | Optional filter by inbox type | [optional] | +| **inboxFunction** | **string** | Optional filter by inbox function | [optional] | +| **domainId** | **Guid?** | Optional domain ID filter | [optional] | + +### Return type + +[**PageInboxProjection**](PageInboxProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllInboxesOffsetPaginated** +> PageInboxProjection GetAllInboxesOffsetPaginated (int? page = null, int? size = null, string sort = null, bool? favourite = null, string search = null, string tag = null, bool? teamAccess = null, DateTime? since = null, DateTime? before = null, string inboxType = null, string inboxFunction = null, Guid? domainId = null) + +List All Inboxes Offset Paginated + +List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllInboxesOffsetPaginatedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var favourite = false; // bool? | Optionally filter results for favourites only (optional) (default to false) + var search = "search_example"; // string | Optionally filter by search words partial matching ID, tags, name, and email address (optional) + var tag = "tag_example"; // string | Optionally filter by tags. Will return inboxes that include given tags (optional) + var teamAccess = true; // bool? | DEPRECATED. Optionally filter by team access. (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created before given date time (optional) + var inboxType = "HTTP_INBOX"; // string | Optional filter by inbox type (optional) + var inboxFunction = "ALIAS"; // string | Optional filter by inbox function (optional) + var domainId = "domainId_example"; // Guid? | Optional domain ID filter (optional) + + try + { + // List All Inboxes Offset Paginated + PageInboxProjection result = apiInstance.GetAllInboxesOffsetPaginated(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetAllInboxesOffsetPaginated: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllInboxesOffsetPaginatedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List All Inboxes Offset Paginated + ApiResponse response = apiInstance.GetAllInboxesOffsetPaginatedWithHttpInfo(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetAllInboxesOffsetPaginatedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **favourite** | **bool?** | Optionally filter results for favourites only | [optional] [default to false] | +| **search** | **string** | Optionally filter by search words partial matching ID, tags, name, and email address | [optional] | +| **tag** | **string** | Optionally filter by tags. Will return inboxes that include given tags | [optional] | +| **teamAccess** | **bool?** | DEPRECATED. Optionally filter by team access. | [optional] | +| **since** | **DateTime?** | Optional filter by created after given date time | [optional] | +| **before** | **DateTime?** | Optional filter by created before given date time | [optional] | +| **inboxType** | **string** | Optional filter by inbox type | [optional] | +| **inboxFunction** | **string** | Optional filter by inbox function | [optional] | +| **domainId** | **Guid?** | Optional domain ID filter | [optional] | + +### Return type + +[**PageInboxProjection**](PageInboxProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllScheduledJobs** +> PageScheduledJobs GetAllScheduledJobs (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get all scheduled email sending jobs for account + +Schedule sending of emails using scheduled jobs. These can be inbox or account level. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllScheduledJobsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var page = 0; // int? | Optional page index in scheduled job list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in scheduled job list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get all scheduled email sending jobs for account + PageScheduledJobs result = apiInstance.GetAllScheduledJobs(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetAllScheduledJobs: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllScheduledJobsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all scheduled email sending jobs for account + ApiResponse response = apiInstance.GetAllScheduledJobsWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetAllScheduledJobsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in scheduled job list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in scheduled job list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageScheduledJobs**](PageScheduledJobs) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetDeliveryStatusesByInboxId** +> PageDeliveryStatus GetDeliveryStatusesByInboxId (Guid inboxId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + + + +Get all email delivery statuses for an inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetDeliveryStatusesByInboxIdExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + var page = 0; // int? | Optional page index in delivery status list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in delivery status list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + PageDeliveryStatus result = apiInstance.GetDeliveryStatusesByInboxId(inboxId, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetDeliveryStatusesByInboxId: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetDeliveryStatusesByInboxIdWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetDeliveryStatusesByInboxIdWithHttpInfo(inboxId, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetDeliveryStatusesByInboxIdWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | +| **page** | **int?** | Optional page index in delivery status list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in delivery status list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageDeliveryStatus**](PageDeliveryStatus) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmails** +> List<EmailPreview> GetEmails (Guid inboxId, int? size = null, int? limit = null, string sort = null, long? retryTimeout = null, long? delayTimeout = null, long? minCount = null, bool? unreadOnly = null, DateTime? before = null, DateTime? since = null) + +Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. + +List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | Id of inbox that emails belongs to + var size = 56; // int? | Alias for limit. Assessed first before assessing any passed limit. (optional) + var limit = 56; // int? | Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) + var sort = "ASC"; // string | Sort the results by received date and direction ASC or DESC (optional) + var retryTimeout = 789L; // long? | Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) + var delayTimeout = 789L; // long? | (optional) + var minCount = 789L; // long? | Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) + var unreadOnly = true; // bool? | (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Exclude emails received after this ISO 8601 date time (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Exclude emails received before this ISO 8601 date time (optional) + + try + { + // Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. + List result = apiInstance.GetEmails(inboxId, size, limit, sort, retryTimeout, delayTimeout, minCount, unreadOnly, before, since); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. + ApiResponse> response = apiInstance.GetEmailsWithHttpInfo(inboxId, size, limit, sort, retryTimeout, delayTimeout, minCount, unreadOnly, before, since); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | Id of inbox that emails belongs to | | +| **size** | **int?** | Alias for limit. Assessed first before assessing any passed limit. | [optional] | +| **limit** | **int?** | Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller | [optional] | +| **sort** | **string** | Sort the results by received date and direction ASC or DESC | [optional] | +| **retryTimeout** | **long?** | Maximum milliseconds to spend retrying inbox database until minCount emails are returned | [optional] | +| **delayTimeout** | **long?** | | [optional] | +| **minCount** | **long?** | Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. | [optional] | +| **unreadOnly** | **bool?** | | [optional] | +| **before** | **DateTime?** | Exclude emails received after this ISO 8601 date time | [optional] | +| **since** | **DateTime?** | Exclude emails received before this ISO 8601 date time | [optional] | + +### Return type + +[**List<EmailPreview>**](EmailPreview) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetImapAccess** +> ImapAccessDetails GetImapAccess (Guid? inboxId = null) + + + +Get IMAP access usernames and passwords + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetImapAccessExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Inbox ID (optional) + + try + { + ImapAccessDetails result = apiInstance.GetImapAccess(inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetImapAccess: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetImapAccessWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetImapAccessWithHttpInfo(inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetImapAccessWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Inbox ID | [optional] | + +### Return type + +[**ImapAccessDetails**](ImapAccessDetails) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetImapSmtpAccess** +> ImapSmtpAccessDetails GetImapSmtpAccess (Guid? inboxId = null) + + + +Get IMAP and SMTP access usernames and passwords + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetImapSmtpAccessExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Inbox ID (optional) + + try + { + ImapSmtpAccessDetails result = apiInstance.GetImapSmtpAccess(inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetImapSmtpAccess: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetImapSmtpAccessWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetImapSmtpAccessWithHttpInfo(inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetImapSmtpAccessWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Inbox ID | [optional] | + +### Return type + +[**ImapSmtpAccessDetails**](ImapSmtpAccessDetails) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetImapSmtpAccessEnv** +> string GetImapSmtpAccessEnv (Guid? inboxId = null) + + + +Get IMAP and SMTP access details in .env format + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetImapSmtpAccessEnvExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Inbox ID (optional) + + try + { + string result = apiInstance.GetImapSmtpAccessEnv(inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetImapSmtpAccessEnv: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetImapSmtpAccessEnvWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetImapSmtpAccessEnvWithHttpInfo(inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetImapSmtpAccessEnvWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Inbox ID | [optional] | + +### Return type + +**string** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetImapSmtpAccessServers** +> ImapSmtpAccessServers GetImapSmtpAccessServers () + + + +Get IMAP and SMTP server hosts + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetImapSmtpAccessServersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + + try + { + ImapSmtpAccessServers result = apiInstance.GetImapSmtpAccessServers(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetImapSmtpAccessServers: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetImapSmtpAccessServersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetImapSmtpAccessServersWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetImapSmtpAccessServersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**ImapSmtpAccessServers**](ImapSmtpAccessServers) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInbox** +> InboxDto GetInbox (Guid inboxId) + +Get Inbox. Returns properties of an inbox. + +Returns an inbox's properties, including its email address and ID. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + + try + { + // Get Inbox. Returns properties of an inbox. + InboxDto result = apiInstance.GetInbox(inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetInbox: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get Inbox. Returns properties of an inbox. + ApiResponse response = apiInstance.GetInboxWithHttpInfo(inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetInboxWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | + +### Return type + +[**InboxDto**](InboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxByEmailAddress** +> InboxByEmailAddressResult GetInboxByEmailAddress (string emailAddress) + +Search for an inbox with the provided email address + +Get a inbox result by email address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxByEmailAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var emailAddress = "emailAddress_example"; // string | + + try + { + // Search for an inbox with the provided email address + InboxByEmailAddressResult result = apiInstance.GetInboxByEmailAddress(emailAddress); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetInboxByEmailAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxByEmailAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Search for an inbox with the provided email address + ApiResponse response = apiInstance.GetInboxByEmailAddressWithHttpInfo(emailAddress); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetInboxByEmailAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailAddress** | **string** | | | + +### Return type + +[**InboxByEmailAddressResult**](InboxByEmailAddressResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxByName** +> InboxByNameResult GetInboxByName (string name) + +Search for an inbox with the given name + +Get a inbox result by name + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxByNameExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var name = "name_example"; // string | + + try + { + // Search for an inbox with the given name + InboxByNameResult result = apiInstance.GetInboxByName(name); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetInboxByName: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxByNameWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Search for an inbox with the given name + ApiResponse response = apiInstance.GetInboxByNameWithHttpInfo(name); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetInboxByNameWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **name** | **string** | | | + +### Return type + +[**InboxByNameResult**](InboxByNameResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxCount** +> CountDto GetInboxCount () + +Get total inbox count + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxCountExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + + try + { + // Get total inbox count + CountDto result = apiInstance.GetInboxCount(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetInboxCount: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxCountWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get total inbox count + ApiResponse response = apiInstance.GetInboxCountWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetInboxCountWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**CountDto**](CountDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxEmailCount** +> CountDto GetInboxEmailCount (Guid inboxId) + +Get email count in inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxEmailCountExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | Id of inbox that emails belongs to + + try + { + // Get email count in inbox + CountDto result = apiInstance.GetInboxEmailCount(inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetInboxEmailCount: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxEmailCountWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get email count in inbox + ApiResponse response = apiInstance.GetInboxEmailCountWithHttpInfo(inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetInboxEmailCountWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | Id of inbox that emails belongs to | | + +### Return type + +[**CountDto**](CountDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxEmailsPaginated** +> PageEmailPreview GetInboxEmailsPaginated (Guid inboxId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get inbox emails paginated + +Get a paginated list of emails in an inbox. Does not hold connections open. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxEmailsPaginatedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | Id of inbox that emails belongs to + var page = 0; // int? | Optional page index in inbox emails list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox emails list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by received after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by received before given date time (optional) + + try + { + // Get inbox emails paginated + PageEmailPreview result = apiInstance.GetInboxEmailsPaginated(inboxId, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetInboxEmailsPaginated: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxEmailsPaginatedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get inbox emails paginated + ApiResponse response = apiInstance.GetInboxEmailsPaginatedWithHttpInfo(inboxId, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetInboxEmailsPaginatedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | Id of inbox that emails belongs to | | +| **page** | **int?** | Optional page index in inbox emails list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox emails list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Optional filter by received after given date time | [optional] | +| **before** | **DateTime?** | Optional filter by received before given date time | [optional] | + +### Return type + +[**PageEmailPreview**](PageEmailPreview) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxIds** +> InboxIdsResult GetInboxIds () + +Get all inbox IDs + +Get list of inbox IDs + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxIdsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + + try + { + // Get all inbox IDs + InboxIdsResult result = apiInstance.GetInboxIds(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetInboxIds: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxIdsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all inbox IDs + ApiResponse response = apiInstance.GetInboxIdsWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetInboxIdsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**InboxIdsResult**](InboxIdsResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxSentEmails** +> PageSentEmailProjection GetInboxSentEmails (Guid inboxId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +Get Inbox Sent Emails + +Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxSentEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + var page = 0; // int? | Optional page index in inbox sent email list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox sent email list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional sent email search (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by sent after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by sent before given date time (optional) + + try + { + // Get Inbox Sent Emails + PageSentEmailProjection result = apiInstance.GetInboxSentEmails(inboxId, page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetInboxSentEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxSentEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get Inbox Sent Emails + ApiResponse response = apiInstance.GetInboxSentEmailsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetInboxSentEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | +| **page** | **int?** | Optional page index in inbox sent email list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox sent email list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional sent email search | [optional] | +| **since** | **DateTime?** | Optional filter by sent after given date time | [optional] | +| **before** | **DateTime?** | Optional filter by sent before given date time | [optional] | + +### Return type + +[**PageSentEmailProjection**](PageSentEmailProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxTags** +> List<string> GetInboxTags () + +Get inbox tags + +Get all inbox tags + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxTagsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + + try + { + // Get inbox tags + List result = apiInstance.GetInboxTags(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetInboxTags: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxTagsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get inbox tags + ApiResponse> response = apiInstance.GetInboxTagsWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetInboxTagsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +**List** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxes** +> List<InboxDto> GetInboxes (int? size = null, string sort = null, DateTime? since = null, bool? excludeCatchAllInboxes = null, DateTime? before = null) + +List Inboxes and email addresses + +List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var size = 100; // int? | Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional) (default to 100) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created after given date time (optional) + var excludeCatchAllInboxes = true; // bool? | Optional exclude catch all inboxes (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created before given date time (optional) + + try + { + // List Inboxes and email addresses + List result = apiInstance.GetInboxes(size, sort, since, excludeCatchAllInboxes, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetInboxes: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List Inboxes and email addresses + ApiResponse> response = apiInstance.GetInboxesWithHttpInfo(size, sort, since, excludeCatchAllInboxes, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetInboxesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **size** | **int?** | Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. | [optional] [default to 100] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Optional filter by created after given date time | [optional] | +| **excludeCatchAllInboxes** | **bool?** | Optional exclude catch all inboxes | [optional] | +| **before** | **DateTime?** | Optional filter by created before given date time | [optional] | + +### Return type + +[**List<InboxDto>**](InboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetLatestEmailInInbox** +> Email GetLatestEmailInInbox (Guid inboxId, long timeoutMillis) + +Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + +Get the newest email in an inbox or wait for one to arrive + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetLatestEmailInInboxExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of the inbox you want to get the latest email from + var timeoutMillis = 789L; // long | Timeout milliseconds to wait for latest email + + try + { + // Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + Email result = apiInstance.GetLatestEmailInInbox(inboxId, timeoutMillis); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetLatestEmailInInbox: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetLatestEmailInInboxWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + ApiResponse response = apiInstance.GetLatestEmailInInboxWithHttpInfo(inboxId, timeoutMillis); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetLatestEmailInInboxWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of the inbox you want to get the latest email from | | +| **timeoutMillis** | **long** | Timeout milliseconds to wait for latest email | | + +### Return type + +[**Email**](Email) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetOrganizationInboxes** +> PageOrganizationInboxProjection GetOrganizationInboxes (int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +List Organization Inboxes Paginated + +List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetOrganizationInboxesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created before given date time (optional) + + try + { + // List Organization Inboxes Paginated + PageOrganizationInboxProjection result = apiInstance.GetOrganizationInboxes(page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetOrganizationInboxes: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetOrganizationInboxesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List Organization Inboxes Paginated + ApiResponse response = apiInstance.GetOrganizationInboxesWithHttpInfo(page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetOrganizationInboxesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Optional filter by created after given date time | [optional] | +| **before** | **DateTime?** | Optional filter by created before given date time | [optional] | + +### Return type + +[**PageOrganizationInboxProjection**](PageOrganizationInboxProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetScheduledJob** +> ScheduledJobDto GetScheduledJob (Guid jobId) + +Get a scheduled email job + +Get a scheduled email job details. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetScheduledJobExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var jobId = "jobId_example"; // Guid | + + try + { + // Get a scheduled email job + ScheduledJobDto result = apiInstance.GetScheduledJob(jobId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetScheduledJob: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetScheduledJobWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a scheduled email job + ApiResponse response = apiInstance.GetScheduledJobWithHttpInfo(jobId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetScheduledJobWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **jobId** | **Guid** | | | + +### Return type + +[**ScheduledJobDto**](ScheduledJobDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetScheduledJobsByInboxId** +> PageScheduledJobs GetScheduledJobsByInboxId (Guid inboxId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get all scheduled email sending jobs for the inbox + +Schedule sending of emails using scheduled jobs. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetScheduledJobsByInboxIdExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + var page = 0; // int? | Optional page index in scheduled job list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in scheduled job list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get all scheduled email sending jobs for the inbox + PageScheduledJobs result = apiInstance.GetScheduledJobsByInboxId(inboxId, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetScheduledJobsByInboxId: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetScheduledJobsByInboxIdWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all scheduled email sending jobs for the inbox + ApiResponse response = apiInstance.GetScheduledJobsByInboxIdWithHttpInfo(inboxId, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetScheduledJobsByInboxIdWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | +| **page** | **int?** | Optional page index in scheduled job list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in scheduled job list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageScheduledJobs**](PageScheduledJobs) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSmtpAccess** +> SmtpAccessDetails GetSmtpAccess (Guid? inboxId = null) + + + +Get SMTP access usernames and passwords + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSmtpAccessExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Inbox ID (optional) + + try + { + SmtpAccessDetails result = apiInstance.GetSmtpAccess(inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.GetSmtpAccess: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSmtpAccessWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetSmtpAccessWithHttpInfo(inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.GetSmtpAccessWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Inbox ID | [optional] | + +### Return type + +[**SmtpAccessDetails**](SmtpAccessDetails) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ListInboxRulesets** +> PageInboxRulesetDto ListInboxRulesets (Guid inboxId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +List inbox rulesets + +List all rulesets attached to an inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ListInboxRulesetsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + var page = 0; // int? | Optional page index in inbox ruleset list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox ruleset list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created before given date time (optional) + + try + { + // List inbox rulesets + PageInboxRulesetDto result = apiInstance.ListInboxRulesets(inboxId, page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.ListInboxRulesets: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListInboxRulesetsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List inbox rulesets + ApiResponse response = apiInstance.ListInboxRulesetsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.ListInboxRulesetsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | +| **page** | **int?** | Optional page index in inbox ruleset list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox ruleset list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Optional filter by created after given date time | [optional] | +| **before** | **DateTime?** | Optional filter by created before given date time | [optional] | + +### Return type + +[**PageInboxRulesetDto**](PageInboxRulesetDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ListInboxTrackingPixels** +> PageTrackingPixelProjection ListInboxTrackingPixels (Guid inboxId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +List inbox tracking pixels + +List all tracking pixels sent from an inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ListInboxTrackingPixelsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + var page = 0; // int? | Optional page index in inbox tracking pixel list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox tracking pixel list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter by created before given date time (optional) + + try + { + // List inbox tracking pixels + PageTrackingPixelProjection result = apiInstance.ListInboxTrackingPixels(inboxId, page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.ListInboxTrackingPixels: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListInboxTrackingPixelsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List inbox tracking pixels + ApiResponse response = apiInstance.ListInboxTrackingPixelsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.ListInboxTrackingPixelsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | +| **page** | **int?** | Optional page index in inbox tracking pixel list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox tracking pixel list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Optional filter by created after given date time | [optional] | +| **before** | **DateTime?** | Optional filter by created before given date time | [optional] | + +### Return type + +[**PageTrackingPixelProjection**](PageTrackingPixelProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SearchInboxes** +> PageInboxProjection SearchInboxes (SearchInboxesOptions searchInboxesOptions) + +Search all inboxes and return matching inboxes + +Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SearchInboxesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var searchInboxesOptions = new SearchInboxesOptions(); // SearchInboxesOptions | + + try + { + // Search all inboxes and return matching inboxes + PageInboxProjection result = apiInstance.SearchInboxes(searchInboxesOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.SearchInboxes: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SearchInboxesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Search all inboxes and return matching inboxes + ApiResponse response = apiInstance.SearchInboxesWithHttpInfo(searchInboxesOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.SearchInboxesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **searchInboxesOptions** | [**SearchInboxesOptions**](SearchInboxesOptions) | | | + +### Return type + +[**PageInboxProjection**](PageInboxProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SendEmail** +> void SendEmail (Guid inboxId, SendEmailOptions sendEmailOptions) + +Send Email + +Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SendEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of the inbox you want to send the email from + var sendEmailOptions = new SendEmailOptions(); // SendEmailOptions | + + try + { + // Send Email + apiInstance.SendEmail(inboxId, sendEmailOptions); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.SendEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SendEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send Email + apiInstance.SendEmailWithHttpInfo(inboxId, sendEmailOptions); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.SendEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of the inbox you want to send the email from | | +| **sendEmailOptions** | [**SendEmailOptions**](SendEmailOptions) | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SendEmailAndConfirm** +> SentEmailDto SendEmailAndConfirm (Guid inboxId, SendEmailOptions sendEmailOptions) + +Send email and return sent confirmation + +Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SendEmailAndConfirmExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of the inbox you want to send the email from + var sendEmailOptions = new SendEmailOptions(); // SendEmailOptions | + + try + { + // Send email and return sent confirmation + SentEmailDto result = apiInstance.SendEmailAndConfirm(inboxId, sendEmailOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.SendEmailAndConfirm: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SendEmailAndConfirmWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send email and return sent confirmation + ApiResponse response = apiInstance.SendEmailAndConfirmWithHttpInfo(inboxId, sendEmailOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.SendEmailAndConfirmWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of the inbox you want to send the email from | | +| **sendEmailOptions** | [**SendEmailOptions**](SendEmailOptions) | | | + +### Return type + +[**SentEmailDto**](SentEmailDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SendEmailWithQueue** +> void SendEmailWithQueue (Guid inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions) + +Send email with queue + +Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SendEmailWithQueueExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of the inbox you want to send the email from + var validateBeforeEnqueue = true; // bool | Validate before adding to queue + var sendEmailOptions = new SendEmailOptions(); // SendEmailOptions | + + try + { + // Send email with queue + apiInstance.SendEmailWithQueue(inboxId, validateBeforeEnqueue, sendEmailOptions); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.SendEmailWithQueue: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SendEmailWithQueueWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send email with queue + apiInstance.SendEmailWithQueueWithHttpInfo(inboxId, validateBeforeEnqueue, sendEmailOptions); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.SendEmailWithQueueWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of the inbox you want to send the email from | | +| **validateBeforeEnqueue** | **bool** | Validate before adding to queue | | +| **sendEmailOptions** | [**SendEmailOptions**](SendEmailOptions) | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SendSmtpEnvelope** +> SentEmailDto SendSmtpEnvelope (Guid inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions) + +Send email using an SMTP mail envelope and message body and return sent confirmation + +Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SendSmtpEnvelopeExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of the inbox you want to send the email from + var sendSMTPEnvelopeOptions = new SendSMTPEnvelopeOptions(); // SendSMTPEnvelopeOptions | + + try + { + // Send email using an SMTP mail envelope and message body and return sent confirmation + SentEmailDto result = apiInstance.SendSmtpEnvelope(inboxId, sendSMTPEnvelopeOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.SendSmtpEnvelope: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SendSmtpEnvelopeWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send email using an SMTP mail envelope and message body and return sent confirmation + ApiResponse response = apiInstance.SendSmtpEnvelopeWithHttpInfo(inboxId, sendSMTPEnvelopeOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.SendSmtpEnvelopeWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of the inbox you want to send the email from | | +| **sendSMTPEnvelopeOptions** | [**SendSMTPEnvelopeOptions**](SendSMTPEnvelopeOptions) | | | + +### Return type + +[**SentEmailDto**](SentEmailDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SendTestEmail** +> void SendTestEmail (Guid inboxId) + +Send a test email to inbox + +Send an inbox a test email to test email receiving is working + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SendTestEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + + try + { + // Send a test email to inbox + apiInstance.SendTestEmail(inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.SendTestEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SendTestEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send a test email to inbox + apiInstance.SendTestEmailWithHttpInfo(inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.SendTestEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SendWithSchedule** +> ScheduledJobDto SendWithSchedule (Guid inboxId, SendEmailOptions sendEmailOptions, DateTime? sendAtTimestamp = null, long? sendAtNowPlusSeconds = null, bool? validateBeforeEnqueue = null) + +Send email with with delay or schedule + +Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SendWithScheduleExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of the inbox you want to send the email from + var sendEmailOptions = new SendEmailOptions(); // SendEmailOptions | + var sendAtTimestamp = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Sending timestamp (optional) + var sendAtNowPlusSeconds = 789L; // long? | Send after n seconds (optional) + var validateBeforeEnqueue = true; // bool? | Validate before adding to queue (optional) + + try + { + // Send email with with delay or schedule + ScheduledJobDto result = apiInstance.SendWithSchedule(inboxId, sendEmailOptions, sendAtTimestamp, sendAtNowPlusSeconds, validateBeforeEnqueue); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.SendWithSchedule: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SendWithScheduleWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send email with with delay or schedule + ApiResponse response = apiInstance.SendWithScheduleWithHttpInfo(inboxId, sendEmailOptions, sendAtTimestamp, sendAtNowPlusSeconds, validateBeforeEnqueue); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.SendWithScheduleWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of the inbox you want to send the email from | | +| **sendEmailOptions** | [**SendEmailOptions**](SendEmailOptions) | | | +| **sendAtTimestamp** | **DateTime?** | Sending timestamp | [optional] | +| **sendAtNowPlusSeconds** | **long?** | Send after n seconds | [optional] | +| **validateBeforeEnqueue** | **bool?** | Validate before adding to queue | [optional] | + +### Return type + +[**ScheduledJobDto**](ScheduledJobDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SetInboxFavourited** +> InboxDto SetInboxFavourited (Guid inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions) + +Set inbox favourited state + +Set and return new favourite state for an inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SetInboxFavouritedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of inbox to set favourite state + var setInboxFavouritedOptions = new SetInboxFavouritedOptions(); // SetInboxFavouritedOptions | + + try + { + // Set inbox favourited state + InboxDto result = apiInstance.SetInboxFavourited(inboxId, setInboxFavouritedOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.SetInboxFavourited: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SetInboxFavouritedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Set inbox favourited state + ApiResponse response = apiInstance.SetInboxFavouritedWithHttpInfo(inboxId, setInboxFavouritedOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.SetInboxFavouritedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of inbox to set favourite state | | +| **setInboxFavouritedOptions** | [**SetInboxFavouritedOptions**](SetInboxFavouritedOptions) | | | + +### Return type + +[**InboxDto**](InboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UpdateImapAccess** +> void UpdateImapAccess (UpdateImapAccessOptions updateImapAccessOptions, Guid? inboxId = null) + + + +Update IMAP access usernames and passwords + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UpdateImapAccessExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var updateImapAccessOptions = new UpdateImapAccessOptions(); // UpdateImapAccessOptions | + var inboxId = "inboxId_example"; // Guid? | Inbox ID (optional) + + try + { + apiInstance.UpdateImapAccess(updateImapAccessOptions, inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.UpdateImapAccess: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UpdateImapAccessWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + apiInstance.UpdateImapAccessWithHttpInfo(updateImapAccessOptions, inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.UpdateImapAccessWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **updateImapAccessOptions** | [**UpdateImapAccessOptions**](UpdateImapAccessOptions) | | | +| **inboxId** | **Guid?** | Inbox ID | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UpdateInbox** +> InboxDto UpdateInbox (Guid inboxId, UpdateInboxOptions updateInboxOptions) + +Update Inbox. Change name and description. Email address is not editable. + +Update editable fields on an inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UpdateInboxExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + var updateInboxOptions = new UpdateInboxOptions(); // UpdateInboxOptions | + + try + { + // Update Inbox. Change name and description. Email address is not editable. + InboxDto result = apiInstance.UpdateInbox(inboxId, updateInboxOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.UpdateInbox: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UpdateInboxWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Update Inbox. Change name and description. Email address is not editable. + ApiResponse response = apiInstance.UpdateInboxWithHttpInfo(inboxId, updateInboxOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.UpdateInboxWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | +| **updateInboxOptions** | [**UpdateInboxOptions**](UpdateInboxOptions) | | | + +### Return type + +[**InboxDto**](InboxDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UpdateSmtpAccess** +> void UpdateSmtpAccess (UpdateSmtpAccessOptions updateSmtpAccessOptions, Guid? inboxId = null) + + + +Update SMTP access usernames and passwords + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UpdateSmtpAccessExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxControllerApi(config); + var updateSmtpAccessOptions = new UpdateSmtpAccessOptions(); // UpdateSmtpAccessOptions | + var inboxId = "inboxId_example"; // Guid? | Inbox ID (optional) + + try + { + apiInstance.UpdateSmtpAccess(updateSmtpAccessOptions, inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxControllerApi.UpdateSmtpAccess: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UpdateSmtpAccessWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + apiInstance.UpdateSmtpAccessWithHttpInfo(updateSmtpAccessOptions, inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxControllerApi.UpdateSmtpAccessWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **updateSmtpAccessOptions** | [**UpdateSmtpAccessOptions**](UpdateSmtpAccessOptions) | | | +| **inboxId** | **Guid?** | Inbox ID | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/InboxDto.md b/docs/InboxDto.md new file mode 100644 index 00000000..fccb49e1 --- /dev/null +++ b/docs/InboxDto.md @@ -0,0 +1,24 @@ +# mailslurp_netstandard_2x.Model.InboxDto +Representation of a MailSlurp inbox. An inbox has an ID and a real email address. Emails can be sent to or from this email address. Inboxes are either `SMTP` or `HTTP` mailboxes. The default, `HTTP` inboxes, use AWS SES to process emails and are best suited as test email accounts and do not support IMAP or POP3. `SMTP` inboxes use a custom mail server at `mxslurp.click` and support SMTP login, IMAP and POP3. Use the `EmailController` or the `InboxController` methods to send and receive emails and attachments. Inboxes may have a description, name, and tags for display purposes. You can also favourite an inbox for easier searching. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. | +**UserId** | **Guid?** | ID of user that inbox belongs to | [optional] +**CreatedAt** | **DateTime** | When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. | +**Name** | **string** | Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search | [optional] +**DomainId** | **Guid?** | ID of custom domain used by the inbox if any | [optional] +**Description** | **string** | Description of an inbox for labelling and searching purposes | [optional] +**EmailAddress** | **string** | The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. | +**ExpiresAt** | **string** | Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email. | [optional] +**Favourite** | **bool** | Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering | +**Tags** | **List<string>** | Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. | [optional] +**InboxType** | **string** | Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). | [optional] +**ReadOnly** | **bool** | Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes. | +**VirtualInbox** | **bool** | Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. | +**FunctionsAs** | **string** | Inbox function if used as a primitive for another system. | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxExistsDto.md b/docs/InboxExistsDto.md new file mode 100644 index 00000000..56be9999 --- /dev/null +++ b/docs/InboxExistsDto.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.InboxExistsDto +Result of email exists query + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Exists** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxForwarderControllerApi.md b/docs/InboxForwarderControllerApi.md new file mode 100644 index 00000000..fc2240e3 --- /dev/null +++ b/docs/InboxForwarderControllerApi.md @@ -0,0 +1,1294 @@ +# mailslurp_netstandard_2x.Api.InboxForwarderControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateNewInboxForwarder**](InboxForwarderControllerApi#createnewinboxforwarder) | **POST** /forwarders | Create an inbox forwarder | +| [**DeleteInboxForwarder**](InboxForwarderControllerApi#deleteinboxforwarder) | **DELETE** /forwarders/{id} | Delete an inbox forwarder | +| [**DeleteInboxForwarders**](InboxForwarderControllerApi#deleteinboxforwarders) | **DELETE** /forwarders | Delete inbox forwarders | +| [**GetAllInboxForwarderEvents**](InboxForwarderControllerApi#getallinboxforwarderevents) | **GET** /forwarders/events | Get all inbox forwarder events | +| [**GetForwarderEvent**](InboxForwarderControllerApi#getforwarderevent) | **GET** /forwarders/events/{eventId} | Get a forwarder event | +| [**GetInboxForwarder**](InboxForwarderControllerApi#getinboxforwarder) | **GET** /forwarders/{id} | Get an inbox forwarder | +| [**GetInboxForwarderEvent**](InboxForwarderControllerApi#getinboxforwarderevent) | **GET** /forwarders/{id}/events/{eventId} | Get an inbox forwarder event | +| [**GetInboxForwarderEvents**](InboxForwarderControllerApi#getinboxforwarderevents) | **GET** /forwarders/{id}/events | Get an inbox forwarder event list | +| [**GetInboxForwarders**](InboxForwarderControllerApi#getinboxforwarders) | **GET** /forwarders | List inbox forwarders | +| [**TestInboxForwarder**](InboxForwarderControllerApi#testinboxforwarder) | **POST** /forwarders/{id}/test | Test an inbox forwarder | +| [**TestInboxForwardersForInbox**](InboxForwarderControllerApi#testinboxforwardersforinbox) | **PUT** /forwarders | Test inbox forwarders for inbox | +| [**TestNewInboxForwarder**](InboxForwarderControllerApi#testnewinboxforwarder) | **PATCH** /forwarders | Test new inbox forwarder | +| [**UpdateInboxForwarder**](InboxForwarderControllerApi#updateinboxforwarder) | **PUT** /forwarders/{id} | Update an inbox forwarder | + + +# **CreateNewInboxForwarder** +> InboxForwarderDto CreateNewInboxForwarder (Guid inboxId, CreateInboxForwarderOptions createInboxForwarderOptions) + +Create an inbox forwarder + +Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateNewInboxForwarderExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var inboxId = "inboxId_example"; // Guid | Inbox id to attach forwarder to + var createInboxForwarderOptions = new CreateInboxForwarderOptions(); // CreateInboxForwarderOptions | + + try + { + // Create an inbox forwarder + InboxForwarderDto result = apiInstance.CreateNewInboxForwarder(inboxId, createInboxForwarderOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.CreateNewInboxForwarder: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateNewInboxForwarderWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create an inbox forwarder + ApiResponse response = apiInstance.CreateNewInboxForwarderWithHttpInfo(inboxId, createInboxForwarderOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.CreateNewInboxForwarderWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | Inbox id to attach forwarder to | | +| **createInboxForwarderOptions** | [**CreateInboxForwarderOptions**](CreateInboxForwarderOptions) | | | + +### Return type + +[**InboxForwarderDto**](InboxForwarderDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteInboxForwarder** +> void DeleteInboxForwarder (Guid id) + +Delete an inbox forwarder + +Delete inbox forwarder + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteInboxForwarderExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var id = "id_example"; // Guid | ID of inbox forwarder + + try + { + // Delete an inbox forwarder + apiInstance.DeleteInboxForwarder(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.DeleteInboxForwarder: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteInboxForwarderWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete an inbox forwarder + apiInstance.DeleteInboxForwarderWithHttpInfo(id); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.DeleteInboxForwarderWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox forwarder | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteInboxForwarders** +> void DeleteInboxForwarders (Guid? inboxId = null) + +Delete inbox forwarders + +Delete inbox forwarders. Accepts optional inboxId filter. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteInboxForwardersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Optional inbox id to attach forwarder to (optional) + + try + { + // Delete inbox forwarders + apiInstance.DeleteInboxForwarders(inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.DeleteInboxForwarders: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteInboxForwardersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete inbox forwarders + apiInstance.DeleteInboxForwardersWithHttpInfo(inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.DeleteInboxForwardersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Optional inbox id to attach forwarder to | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllInboxForwarderEvents** +> PageInboxForwarderEvents GetAllInboxForwarderEvents (int? page = null, int? size = null, Guid? inboxId = null, string sort = null) + +Get all inbox forwarder events + +Get all inbox forwarder events + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllInboxForwarderEventsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var page = 0; // int? | Optional page index in inbox forwarder event list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox forwarder event list pagination (optional) (default to 20) + var inboxId = "inboxId_example"; // Guid? | Optional inbox ID to filter for (optional) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + + try + { + // Get all inbox forwarder events + PageInboxForwarderEvents result = apiInstance.GetAllInboxForwarderEvents(page, size, inboxId, sort); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.GetAllInboxForwarderEvents: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllInboxForwarderEventsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all inbox forwarder events + ApiResponse response = apiInstance.GetAllInboxForwarderEventsWithHttpInfo(page, size, inboxId, sort); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.GetAllInboxForwarderEventsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in inbox forwarder event list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox forwarder event list pagination | [optional] [default to 20] | +| **inboxId** | **Guid?** | Optional inbox ID to filter for | [optional] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | + +### Return type + +[**PageInboxForwarderEvents**](PageInboxForwarderEvents) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetForwarderEvent** +> InboxForwarderEventDto GetForwarderEvent (Guid eventId) + +Get a forwarder event + +Get forwarder event + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetForwarderEventExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var eventId = "eventId_example"; // Guid | ID of inbox forwarder event + + try + { + // Get a forwarder event + InboxForwarderEventDto result = apiInstance.GetForwarderEvent(eventId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.GetForwarderEvent: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetForwarderEventWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a forwarder event + ApiResponse response = apiInstance.GetForwarderEventWithHttpInfo(eventId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.GetForwarderEventWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **eventId** | **Guid** | ID of inbox forwarder event | | + +### Return type + +[**InboxForwarderEventDto**](InboxForwarderEventDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxForwarder** +> InboxForwarderDto GetInboxForwarder (Guid id) + +Get an inbox forwarder + +Get inbox forwarder + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxForwarderExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var id = "id_example"; // Guid | ID of inbox forwarder + + try + { + // Get an inbox forwarder + InboxForwarderDto result = apiInstance.GetInboxForwarder(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.GetInboxForwarder: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxForwarderWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an inbox forwarder + ApiResponse response = apiInstance.GetInboxForwarderWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.GetInboxForwarderWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox forwarder | | + +### Return type + +[**InboxForwarderDto**](InboxForwarderDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxForwarderEvent** +> InboxForwarderEventDto GetInboxForwarderEvent (Guid id, Guid eventId) + +Get an inbox forwarder event + +Get inbox forwarder event + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxForwarderEventExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var id = "id_example"; // Guid | ID of inbox forwarder + var eventId = "eventId_example"; // Guid | ID of inbox forwarder event + + try + { + // Get an inbox forwarder event + InboxForwarderEventDto result = apiInstance.GetInboxForwarderEvent(id, eventId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.GetInboxForwarderEvent: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxForwarderEventWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an inbox forwarder event + ApiResponse response = apiInstance.GetInboxForwarderEventWithHttpInfo(id, eventId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.GetInboxForwarderEventWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox forwarder | | +| **eventId** | **Guid** | ID of inbox forwarder event | | + +### Return type + +[**InboxForwarderEventDto**](InboxForwarderEventDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxForwarderEvents** +> PageInboxForwarderEvents GetInboxForwarderEvents (Guid id, int? page = null, int? size = null, string sort = null) + +Get an inbox forwarder event list + +Get inbox forwarder events + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxForwarderEventsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var id = "id_example"; // Guid | ID of inbox forwarder + var page = 0; // int? | Optional page index in inbox forwarder event list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox forwarder event list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + + try + { + // Get an inbox forwarder event list + PageInboxForwarderEvents result = apiInstance.GetInboxForwarderEvents(id, page, size, sort); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.GetInboxForwarderEvents: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxForwarderEventsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an inbox forwarder event list + ApiResponse response = apiInstance.GetInboxForwarderEventsWithHttpInfo(id, page, size, sort); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.GetInboxForwarderEventsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox forwarder | | +| **page** | **int?** | Optional page index in inbox forwarder event list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox forwarder event list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | + +### Return type + +[**PageInboxForwarderEvents**](PageInboxForwarderEvents) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxForwarders** +> PageInboxForwarderDto GetInboxForwarders (Guid? inboxId = null, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +List inbox forwarders + +List all forwarders attached to an inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxForwardersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Optional inbox id to get forwarders from (optional) + var page = 0; // int? | Optional page index in inbox forwarder list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox forwarder list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // List inbox forwarders + PageInboxForwarderDto result = apiInstance.GetInboxForwarders(inboxId, page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.GetInboxForwarders: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxForwardersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List inbox forwarders + ApiResponse response = apiInstance.GetInboxForwardersWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.GetInboxForwardersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Optional inbox id to get forwarders from | [optional] | +| **page** | **int?** | Optional page index in inbox forwarder list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox forwarder list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageInboxForwarderDto**](PageInboxForwarderDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **TestInboxForwarder** +> InboxForwarderTestResult TestInboxForwarder (Guid id, InboxForwarderTestOptions inboxForwarderTestOptions) + +Test an inbox forwarder + +Test an inbox forwarder + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class TestInboxForwarderExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var id = "id_example"; // Guid | ID of inbox forwarder + var inboxForwarderTestOptions = new InboxForwarderTestOptions(); // InboxForwarderTestOptions | + + try + { + // Test an inbox forwarder + InboxForwarderTestResult result = apiInstance.TestInboxForwarder(id, inboxForwarderTestOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.TestInboxForwarder: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the TestInboxForwarderWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Test an inbox forwarder + ApiResponse response = apiInstance.TestInboxForwarderWithHttpInfo(id, inboxForwarderTestOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.TestInboxForwarderWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox forwarder | | +| **inboxForwarderTestOptions** | [**InboxForwarderTestOptions**](InboxForwarderTestOptions) | | | + +### Return type + +[**InboxForwarderTestResult**](InboxForwarderTestResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **TestInboxForwardersForInbox** +> InboxForwarderTestResult TestInboxForwardersForInbox (Guid inboxId, InboxForwarderTestOptions inboxForwarderTestOptions) + +Test inbox forwarders for inbox + +Test inbox forwarders for inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class TestInboxForwardersForInboxExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of inbox + var inboxForwarderTestOptions = new InboxForwarderTestOptions(); // InboxForwarderTestOptions | + + try + { + // Test inbox forwarders for inbox + InboxForwarderTestResult result = apiInstance.TestInboxForwardersForInbox(inboxId, inboxForwarderTestOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.TestInboxForwardersForInbox: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the TestInboxForwardersForInboxWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Test inbox forwarders for inbox + ApiResponse response = apiInstance.TestInboxForwardersForInboxWithHttpInfo(inboxId, inboxForwarderTestOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.TestInboxForwardersForInboxWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of inbox | | +| **inboxForwarderTestOptions** | [**InboxForwarderTestOptions**](InboxForwarderTestOptions) | | | + +### Return type + +[**InboxForwarderTestResult**](InboxForwarderTestResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **TestNewInboxForwarder** +> InboxForwarderTestResult TestNewInboxForwarder (TestNewInboxForwarderOptions testNewInboxForwarderOptions) + +Test new inbox forwarder + +Test new inbox forwarder + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class TestNewInboxForwarderExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var testNewInboxForwarderOptions = new TestNewInboxForwarderOptions(); // TestNewInboxForwarderOptions | + + try + { + // Test new inbox forwarder + InboxForwarderTestResult result = apiInstance.TestNewInboxForwarder(testNewInboxForwarderOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.TestNewInboxForwarder: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the TestNewInboxForwarderWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Test new inbox forwarder + ApiResponse response = apiInstance.TestNewInboxForwarderWithHttpInfo(testNewInboxForwarderOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.TestNewInboxForwarderWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **testNewInboxForwarderOptions** | [**TestNewInboxForwarderOptions**](TestNewInboxForwarderOptions) | | | + +### Return type + +[**InboxForwarderTestResult**](InboxForwarderTestResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UpdateInboxForwarder** +> InboxForwarderDto UpdateInboxForwarder (Guid id, CreateInboxForwarderOptions createInboxForwarderOptions) + +Update an inbox forwarder + +Update inbox forwarder + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UpdateInboxForwarderExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxForwarderControllerApi(config); + var id = "id_example"; // Guid | ID of inbox forwarder + var createInboxForwarderOptions = new CreateInboxForwarderOptions(); // CreateInboxForwarderOptions | + + try + { + // Update an inbox forwarder + InboxForwarderDto result = apiInstance.UpdateInboxForwarder(id, createInboxForwarderOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxForwarderControllerApi.UpdateInboxForwarder: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UpdateInboxForwarderWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Update an inbox forwarder + ApiResponse response = apiInstance.UpdateInboxForwarderWithHttpInfo(id, createInboxForwarderOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxForwarderControllerApi.UpdateInboxForwarderWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox forwarder | | +| **createInboxForwarderOptions** | [**CreateInboxForwarderOptions**](CreateInboxForwarderOptions) | | | + +### Return type + +[**InboxForwarderDto**](InboxForwarderDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/InboxForwarderDto.md b/docs/InboxForwarderDto.md new file mode 100644 index 00000000..d4a9bd3d --- /dev/null +++ b/docs/InboxForwarderDto.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.InboxForwarderDto +Inbox forwarder. Describes how an inbox will forward matching emails to designated recipients. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**InboxId** | **Guid** | | +**Name** | **string** | Name of inbox forwarder | [optional] +**Field** | **string** | Which field to match against | +**Match** | **string** | Wild-card type pattern to apply to field | +**ForwardToRecipients** | **List<string>** | Who to send forwarded email to | +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxForwarderEventDto.md b/docs/InboxForwarderEventDto.md new file mode 100644 index 00000000..3aa16de0 --- /dev/null +++ b/docs/InboxForwarderEventDto.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.InboxForwarderEventDto +Inbox forwarder event. Describes how an email was handled by an inbox forwarder. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid?** | | [optional] +**InboxId** | **Guid?** | | [optional] +**EmailId** | **Guid?** | | [optional] +**UserId** | **Guid?** | | [optional] +**ForwarderId** | **Guid?** | | [optional] +**Message** | **string** | | [optional] +**Status** | **string** | | [optional] +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxForwarderEventProjection.md b/docs/InboxForwarderEventProjection.md new file mode 100644 index 00000000..8df26277 --- /dev/null +++ b/docs/InboxForwarderEventProjection.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.InboxForwarderEventProjection +Inbox forwarder event + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailId** | **Guid?** | | [optional] +**InboxId** | **Guid?** | | [optional] +**UserId** | **Guid?** | | [optional] +**ForwarderId** | **Guid?** | | [optional] +**CreatedAt** | **DateTime** | | +**Message** | **string** | | [optional] +**Id** | **Guid?** | | [optional] +**Status** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxForwarderTestOptions.md b/docs/InboxForwarderTestOptions.md new file mode 100644 index 00000000..30d8ed11 --- /dev/null +++ b/docs/InboxForwarderTestOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.InboxForwarderTestOptions +Options for testing an inbox forwarder against a value + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TestValue** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxForwarderTestResult.md b/docs/InboxForwarderTestResult.md new file mode 100644 index 00000000..482e4d23 --- /dev/null +++ b/docs/InboxForwarderTestResult.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.InboxForwarderTestResult +Results of inbox forwarder test + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Matches** | **Dictionary<string, bool>** | | +**DoesMatch** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxIdItem.md b/docs/InboxIdItem.md new file mode 100644 index 00000000..bc0e9f61 --- /dev/null +++ b/docs/InboxIdItem.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.InboxIdItem +Inbox ID and email address pair + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**EmailAddress** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxIdsResult.md b/docs/InboxIdsResult.md new file mode 100644 index 00000000..aa3f60fb --- /dev/null +++ b/docs/InboxIdsResult.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.InboxIdsResult +List of inbox IDs and email addresses + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxIds** | [**List<InboxIdItem>**](InboxIdItem) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxPreview.md b/docs/InboxPreview.md new file mode 100644 index 00000000..c2354f01 --- /dev/null +++ b/docs/InboxPreview.md @@ -0,0 +1,22 @@ +# mailslurp_netstandard_2x.Model.InboxPreview +Inbox data preview element. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. | +**DomainId** | **Guid?** | ID of custom domain used by the inbox if any | [optional] +**EmailAddress** | **string** | The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. | [optional] +**CreatedAt** | **DateTime** | When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. | +**Favourite** | **bool** | Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering | +**Name** | **string** | Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search | [optional] +**Tags** | **List<string>** | Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. | [optional] +**TeamAccess** | **bool** | Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/ | +**InboxType** | **string** | Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). | [optional] +**VirtualInbox** | **bool** | Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. | +**ExpiresAt** | **string** | Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email. | [optional] +**FunctionsAs** | **string** | Inbox function if used as a primitive for another system. | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxReplierControllerApi.md b/docs/InboxReplierControllerApi.md new file mode 100644 index 00000000..3b9a33b8 --- /dev/null +++ b/docs/InboxReplierControllerApi.md @@ -0,0 +1,696 @@ +# mailslurp_netstandard_2x.Api.InboxReplierControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateNewInboxReplier**](InboxReplierControllerApi#createnewinboxreplier) | **POST** /repliers | Create an inbox replier | +| [**DeleteInboxReplier**](InboxReplierControllerApi#deleteinboxreplier) | **DELETE** /repliers/{id} | Delete an inbox replier | +| [**DeleteInboxRepliers**](InboxReplierControllerApi#deleteinboxrepliers) | **DELETE** /repliers | Delete inbox repliers | +| [**GetInboxReplier**](InboxReplierControllerApi#getinboxreplier) | **GET** /repliers/{id} | Get an inbox replier | +| [**GetInboxReplierEvents**](InboxReplierControllerApi#getinboxreplierevents) | **GET** /repliers/{id}/events | Get an inbox replier event list | +| [**GetInboxRepliers**](InboxReplierControllerApi#getinboxrepliers) | **GET** /repliers | List inbox repliers | +| [**UpdateInboxReplier**](InboxReplierControllerApi#updateinboxreplier) | **PUT** /repliers/{id} | Update an inbox replier | + + +# **CreateNewInboxReplier** +> InboxReplierDto CreateNewInboxReplier (CreateInboxReplierOptions createInboxReplierOptions) + +Create an inbox replier + +Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateNewInboxReplierExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxReplierControllerApi(config); + var createInboxReplierOptions = new CreateInboxReplierOptions(); // CreateInboxReplierOptions | + + try + { + // Create an inbox replier + InboxReplierDto result = apiInstance.CreateNewInboxReplier(createInboxReplierOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxReplierControllerApi.CreateNewInboxReplier: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateNewInboxReplierWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create an inbox replier + ApiResponse response = apiInstance.CreateNewInboxReplierWithHttpInfo(createInboxReplierOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxReplierControllerApi.CreateNewInboxReplierWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createInboxReplierOptions** | [**CreateInboxReplierOptions**](CreateInboxReplierOptions) | | | + +### Return type + +[**InboxReplierDto**](InboxReplierDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteInboxReplier** +> void DeleteInboxReplier (Guid id) + +Delete an inbox replier + +Delete inbox replier + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteInboxReplierExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxReplierControllerApi(config); + var id = "id_example"; // Guid | ID of inbox replier + + try + { + // Delete an inbox replier + apiInstance.DeleteInboxReplier(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxReplierControllerApi.DeleteInboxReplier: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteInboxReplierWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete an inbox replier + apiInstance.DeleteInboxReplierWithHttpInfo(id); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxReplierControllerApi.DeleteInboxReplierWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox replier | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteInboxRepliers** +> void DeleteInboxRepliers (Guid? inboxId = null) + +Delete inbox repliers + +Delete inbox repliers. Accepts optional inboxId filter. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteInboxRepliersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxReplierControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Optional inbox id to attach replier to (optional) + + try + { + // Delete inbox repliers + apiInstance.DeleteInboxRepliers(inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxReplierControllerApi.DeleteInboxRepliers: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteInboxRepliersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete inbox repliers + apiInstance.DeleteInboxRepliersWithHttpInfo(inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxReplierControllerApi.DeleteInboxRepliersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Optional inbox id to attach replier to | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxReplier** +> InboxReplierDto GetInboxReplier (Guid id) + +Get an inbox replier + +Get inbox ruleset + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxReplierExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxReplierControllerApi(config); + var id = "id_example"; // Guid | ID of inbox replier + + try + { + // Get an inbox replier + InboxReplierDto result = apiInstance.GetInboxReplier(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxReplierControllerApi.GetInboxReplier: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxReplierWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an inbox replier + ApiResponse response = apiInstance.GetInboxReplierWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxReplierControllerApi.GetInboxReplierWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox replier | | + +### Return type + +[**InboxReplierDto**](InboxReplierDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxReplierEvents** +> PageInboxReplierEvents GetInboxReplierEvents (Guid id, int? page = null, int? size = null, string sort = null) + +Get an inbox replier event list + +Get inbox ruleset events + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxReplierEventsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxReplierControllerApi(config); + var id = "id_example"; // Guid | ID of inbox replier + var page = 0; // int? | Optional page index in inbox replier event list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox replier event list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + + try + { + // Get an inbox replier event list + PageInboxReplierEvents result = apiInstance.GetInboxReplierEvents(id, page, size, sort); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxReplierControllerApi.GetInboxReplierEvents: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxReplierEventsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an inbox replier event list + ApiResponse response = apiInstance.GetInboxReplierEventsWithHttpInfo(id, page, size, sort); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxReplierControllerApi.GetInboxReplierEventsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox replier | | +| **page** | **int?** | Optional page index in inbox replier event list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox replier event list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | + +### Return type + +[**PageInboxReplierEvents**](PageInboxReplierEvents) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxRepliers** +> PageInboxReplierDto GetInboxRepliers (Guid? inboxId = null, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +List inbox repliers + +List all repliers attached to an inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxRepliersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxReplierControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Optional inbox id to get repliers from (optional) + var page = 0; // int? | Optional page index in inbox replier list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox replier list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // List inbox repliers + PageInboxReplierDto result = apiInstance.GetInboxRepliers(inboxId, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxReplierControllerApi.GetInboxRepliers: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxRepliersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List inbox repliers + ApiResponse response = apiInstance.GetInboxRepliersWithHttpInfo(inboxId, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxReplierControllerApi.GetInboxRepliersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Optional inbox id to get repliers from | [optional] | +| **page** | **int?** | Optional page index in inbox replier list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox replier list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageInboxReplierDto**](PageInboxReplierDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UpdateInboxReplier** +> InboxReplierDto UpdateInboxReplier (Guid id, UpdateInboxReplierOptions updateInboxReplierOptions) + +Update an inbox replier + +Update inbox ruleset + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UpdateInboxReplierExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxReplierControllerApi(config); + var id = "id_example"; // Guid | ID of inbox replier + var updateInboxReplierOptions = new UpdateInboxReplierOptions(); // UpdateInboxReplierOptions | + + try + { + // Update an inbox replier + InboxReplierDto result = apiInstance.UpdateInboxReplier(id, updateInboxReplierOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxReplierControllerApi.UpdateInboxReplier: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UpdateInboxReplierWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Update an inbox replier + ApiResponse response = apiInstance.UpdateInboxReplierWithHttpInfo(id, updateInboxReplierOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxReplierControllerApi.UpdateInboxReplierWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox replier | | +| **updateInboxReplierOptions** | [**UpdateInboxReplierOptions**](UpdateInboxReplierOptions) | | | + +### Return type + +[**InboxReplierDto**](InboxReplierDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/InboxReplierDto.md b/docs/InboxReplierDto.md new file mode 100644 index 00000000..f705e1e0 --- /dev/null +++ b/docs/InboxReplierDto.md @@ -0,0 +1,24 @@ +# mailslurp_netstandard_2x.Model.InboxReplierDto +Inbox replier. Will automatically reply to inbound emails that match given field for an inbox. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**InboxId** | **Guid** | | +**Name** | **string** | | [optional] +**Field** | **string** | | +**Match** | **string** | | +**ReplyTo** | **string** | | [optional] +**Subject** | **string** | | [optional] +**From** | **string** | | [optional] +**Charset** | **string** | | [optional] +**IsHTML** | **bool** | | +**TemplateId** | **Guid?** | | [optional] +**TemplateVariables** | **Dictionary<string, Object>** | | [optional] +**IgnoreReplyTo** | **bool** | | +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxReplierEventProjection.md b/docs/InboxReplierEventProjection.md new file mode 100644 index 00000000..f80ca3b1 --- /dev/null +++ b/docs/InboxReplierEventProjection.md @@ -0,0 +1,20 @@ +# mailslurp_netstandard_2x.Model.InboxReplierEventProjection +Inbox replier event + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Recipients** | **List<string>** | | [optional] +**EmailId** | **Guid?** | | [optional] +**InboxId** | **Guid?** | | [optional] +**UserId** | **Guid?** | | [optional] +**SentId** | **Guid?** | | [optional] +**ReplierId** | **Guid?** | | [optional] +**CreatedAt** | **DateTime** | | +**Message** | **string** | | [optional] +**Id** | **Guid?** | | [optional] +**Status** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxRulesetControllerApi.md b/docs/InboxRulesetControllerApi.md new file mode 100644 index 00000000..94deaa13 --- /dev/null +++ b/docs/InboxRulesetControllerApi.md @@ -0,0 +1,987 @@ +# mailslurp_netstandard_2x.Api.InboxRulesetControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateNewInboxRuleset**](InboxRulesetControllerApi#createnewinboxruleset) | **POST** /rulesets | Create an inbox ruleset | +| [**DeleteInboxRuleset**](InboxRulesetControllerApi#deleteinboxruleset) | **DELETE** /rulesets/{id} | Delete an inbox ruleset | +| [**DeleteInboxRulesets**](InboxRulesetControllerApi#deleteinboxrulesets) | **DELETE** /rulesets | Delete inbox rulesets | +| [**GetInboxRuleset**](InboxRulesetControllerApi#getinboxruleset) | **GET** /rulesets/{id} | Get an inbox ruleset | +| [**GetInboxRulesets**](InboxRulesetControllerApi#getinboxrulesets) | **GET** /rulesets | List inbox rulesets | +| [**TestInboxRuleset**](InboxRulesetControllerApi#testinboxruleset) | **POST** /rulesets/{id}/test | Test an inbox ruleset | +| [**TestInboxRulesetReceiving**](InboxRulesetControllerApi#testinboxrulesetreceiving) | **POST** /rulesets/test-receiving | Test receiving with inbox rulesets | +| [**TestInboxRulesetSending**](InboxRulesetControllerApi#testinboxrulesetsending) | **POST** /rulesets/test-sending | Test sending with inbox rulesets | +| [**TestInboxRulesetsForInbox**](InboxRulesetControllerApi#testinboxrulesetsforinbox) | **PUT** /rulesets | Test inbox rulesets for inbox | +| [**TestNewInboxRuleset**](InboxRulesetControllerApi#testnewinboxruleset) | **PATCH** /rulesets | Test new inbox ruleset | + + +# **CreateNewInboxRuleset** +> InboxRulesetDto CreateNewInboxRuleset (CreateInboxRulesetOptions createInboxRulesetOptions, Guid? inboxId = null) + +Create an inbox ruleset + +Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateNewInboxRulesetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxRulesetControllerApi(config); + var createInboxRulesetOptions = new CreateInboxRulesetOptions(); // CreateInboxRulesetOptions | + var inboxId = "inboxId_example"; // Guid? | Inbox id to attach ruleset to (optional) + + try + { + // Create an inbox ruleset + InboxRulesetDto result = apiInstance.CreateNewInboxRuleset(createInboxRulesetOptions, inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxRulesetControllerApi.CreateNewInboxRuleset: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateNewInboxRulesetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create an inbox ruleset + ApiResponse response = apiInstance.CreateNewInboxRulesetWithHttpInfo(createInboxRulesetOptions, inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxRulesetControllerApi.CreateNewInboxRulesetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createInboxRulesetOptions** | [**CreateInboxRulesetOptions**](CreateInboxRulesetOptions) | | | +| **inboxId** | **Guid?** | Inbox id to attach ruleset to | [optional] | + +### Return type + +[**InboxRulesetDto**](InboxRulesetDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteInboxRuleset** +> void DeleteInboxRuleset (Guid id) + +Delete an inbox ruleset + +Delete inbox ruleset + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteInboxRulesetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxRulesetControllerApi(config); + var id = "id_example"; // Guid | ID of inbox ruleset + + try + { + // Delete an inbox ruleset + apiInstance.DeleteInboxRuleset(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxRulesetControllerApi.DeleteInboxRuleset: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteInboxRulesetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete an inbox ruleset + apiInstance.DeleteInboxRulesetWithHttpInfo(id); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxRulesetControllerApi.DeleteInboxRulesetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox ruleset | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteInboxRulesets** +> void DeleteInboxRulesets (Guid? inboxId = null) + +Delete inbox rulesets + +Delete inbox rulesets. Accepts optional inboxId filter. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteInboxRulesetsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxRulesetControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Optional inbox id to attach ruleset to (optional) + + try + { + // Delete inbox rulesets + apiInstance.DeleteInboxRulesets(inboxId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxRulesetControllerApi.DeleteInboxRulesets: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteInboxRulesetsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete inbox rulesets + apiInstance.DeleteInboxRulesetsWithHttpInfo(inboxId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxRulesetControllerApi.DeleteInboxRulesetsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Optional inbox id to attach ruleset to | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxRuleset** +> InboxRulesetDto GetInboxRuleset (Guid id) + +Get an inbox ruleset + +Get inbox ruleset + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxRulesetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxRulesetControllerApi(config); + var id = "id_example"; // Guid | ID of inbox ruleset + + try + { + // Get an inbox ruleset + InboxRulesetDto result = apiInstance.GetInboxRuleset(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxRulesetControllerApi.GetInboxRuleset: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxRulesetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get an inbox ruleset + ApiResponse response = apiInstance.GetInboxRulesetWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxRulesetControllerApi.GetInboxRulesetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox ruleset | | + +### Return type + +[**InboxRulesetDto**](InboxRulesetDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxRulesets** +> PageInboxRulesetDto GetInboxRulesets (Guid? inboxId = null, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +List inbox rulesets + +List all rulesets attached to an inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxRulesetsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxRulesetControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Optional inbox id to get rulesets from (optional) + var page = 0; // int? | Optional page index in inbox ruleset list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox ruleset list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // List inbox rulesets + PageInboxRulesetDto result = apiInstance.GetInboxRulesets(inboxId, page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxRulesetControllerApi.GetInboxRulesets: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxRulesetsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List inbox rulesets + ApiResponse response = apiInstance.GetInboxRulesetsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxRulesetControllerApi.GetInboxRulesetsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Optional inbox id to get rulesets from | [optional] | +| **page** | **int?** | Optional page index in inbox ruleset list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox ruleset list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageInboxRulesetDto**](PageInboxRulesetDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **TestInboxRuleset** +> InboxRulesetTestResult TestInboxRuleset (Guid id, InboxRulesetTestOptions inboxRulesetTestOptions) + +Test an inbox ruleset + +Test an inbox ruleset + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class TestInboxRulesetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxRulesetControllerApi(config); + var id = "id_example"; // Guid | ID of inbox ruleset + var inboxRulesetTestOptions = new InboxRulesetTestOptions(); // InboxRulesetTestOptions | + + try + { + // Test an inbox ruleset + InboxRulesetTestResult result = apiInstance.TestInboxRuleset(id, inboxRulesetTestOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxRulesetControllerApi.TestInboxRuleset: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the TestInboxRulesetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Test an inbox ruleset + ApiResponse response = apiInstance.TestInboxRulesetWithHttpInfo(id, inboxRulesetTestOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxRulesetControllerApi.TestInboxRulesetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | ID of inbox ruleset | | +| **inboxRulesetTestOptions** | [**InboxRulesetTestOptions**](InboxRulesetTestOptions) | | | + +### Return type + +[**InboxRulesetTestResult**](InboxRulesetTestResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **TestInboxRulesetReceiving** +> TestInboxRulesetReceivingResult TestInboxRulesetReceiving (TestInboxRulesetReceivingOptions testInboxRulesetReceivingOptions) + +Test receiving with inbox rulesets + +Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class TestInboxRulesetReceivingExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxRulesetControllerApi(config); + var testInboxRulesetReceivingOptions = new TestInboxRulesetReceivingOptions(); // TestInboxRulesetReceivingOptions | + + try + { + // Test receiving with inbox rulesets + TestInboxRulesetReceivingResult result = apiInstance.TestInboxRulesetReceiving(testInboxRulesetReceivingOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxRulesetControllerApi.TestInboxRulesetReceiving: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the TestInboxRulesetReceivingWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Test receiving with inbox rulesets + ApiResponse response = apiInstance.TestInboxRulesetReceivingWithHttpInfo(testInboxRulesetReceivingOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxRulesetControllerApi.TestInboxRulesetReceivingWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **testInboxRulesetReceivingOptions** | [**TestInboxRulesetReceivingOptions**](TestInboxRulesetReceivingOptions) | | | + +### Return type + +[**TestInboxRulesetReceivingResult**](TestInboxRulesetReceivingResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **TestInboxRulesetSending** +> TestInboxRulesetSendingResult TestInboxRulesetSending (TestInboxRulesetSendingOptions testInboxRulesetSendingOptions) + +Test sending with inbox rulesets + +Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class TestInboxRulesetSendingExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxRulesetControllerApi(config); + var testInboxRulesetSendingOptions = new TestInboxRulesetSendingOptions(); // TestInboxRulesetSendingOptions | + + try + { + // Test sending with inbox rulesets + TestInboxRulesetSendingResult result = apiInstance.TestInboxRulesetSending(testInboxRulesetSendingOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxRulesetControllerApi.TestInboxRulesetSending: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the TestInboxRulesetSendingWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Test sending with inbox rulesets + ApiResponse response = apiInstance.TestInboxRulesetSendingWithHttpInfo(testInboxRulesetSendingOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxRulesetControllerApi.TestInboxRulesetSendingWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **testInboxRulesetSendingOptions** | [**TestInboxRulesetSendingOptions**](TestInboxRulesetSendingOptions) | | | + +### Return type + +[**TestInboxRulesetSendingResult**](TestInboxRulesetSendingResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **TestInboxRulesetsForInbox** +> InboxRulesetTestResult TestInboxRulesetsForInbox (Guid inboxId, InboxRulesetTestOptions inboxRulesetTestOptions) + +Test inbox rulesets for inbox + +Test inbox rulesets for inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class TestInboxRulesetsForInboxExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxRulesetControllerApi(config); + var inboxId = "inboxId_example"; // Guid | ID of inbox + var inboxRulesetTestOptions = new InboxRulesetTestOptions(); // InboxRulesetTestOptions | + + try + { + // Test inbox rulesets for inbox + InboxRulesetTestResult result = apiInstance.TestInboxRulesetsForInbox(inboxId, inboxRulesetTestOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxRulesetControllerApi.TestInboxRulesetsForInbox: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the TestInboxRulesetsForInboxWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Test inbox rulesets for inbox + ApiResponse response = apiInstance.TestInboxRulesetsForInboxWithHttpInfo(inboxId, inboxRulesetTestOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxRulesetControllerApi.TestInboxRulesetsForInboxWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | ID of inbox | | +| **inboxRulesetTestOptions** | [**InboxRulesetTestOptions**](InboxRulesetTestOptions) | | | + +### Return type + +[**InboxRulesetTestResult**](InboxRulesetTestResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **TestNewInboxRuleset** +> InboxRulesetTestResult TestNewInboxRuleset (TestNewInboxRulesetOptions testNewInboxRulesetOptions) + +Test new inbox ruleset + +Test new inbox ruleset + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class TestNewInboxRulesetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new InboxRulesetControllerApi(config); + var testNewInboxRulesetOptions = new TestNewInboxRulesetOptions(); // TestNewInboxRulesetOptions | + + try + { + // Test new inbox ruleset + InboxRulesetTestResult result = apiInstance.TestNewInboxRuleset(testNewInboxRulesetOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling InboxRulesetControllerApi.TestNewInboxRuleset: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the TestNewInboxRulesetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Test new inbox ruleset + ApiResponse response = apiInstance.TestNewInboxRulesetWithHttpInfo(testNewInboxRulesetOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling InboxRulesetControllerApi.TestNewInboxRulesetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **testNewInboxRulesetOptions** | [**TestNewInboxRulesetOptions**](TestNewInboxRulesetOptions) | | | + +### Return type + +[**InboxRulesetTestResult**](InboxRulesetTestResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/InboxRulesetDto.md b/docs/InboxRulesetDto.md new file mode 100644 index 00000000..448aaa22 --- /dev/null +++ b/docs/InboxRulesetDto.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.InboxRulesetDto +Rules for inbox + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**InboxId** | **Guid?** | | [optional] +**Scope** | **string** | | +**Action** | **string** | | +**Target** | **string** | | +**Handler** | **string** | | +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxRulesetTestOptions.md b/docs/InboxRulesetTestOptions.md new file mode 100644 index 00000000..60e81823 --- /dev/null +++ b/docs/InboxRulesetTestOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.InboxRulesetTestOptions +Test options for inbox ruleset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TestTarget** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/InboxRulesetTestResult.md b/docs/InboxRulesetTestResult.md new file mode 100644 index 00000000..4a6d6123 --- /dev/null +++ b/docs/InboxRulesetTestResult.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.InboxRulesetTestResult +Result of test of inbox ruleset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RulesetMatches** | **Dictionary<string, bool>** | Map of inbox ruleset ID to boolean of if target matches | +**Matches** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/JSONSchemaDto.md b/docs/JSONSchemaDto.md new file mode 100644 index 00000000..bcde060c --- /dev/null +++ b/docs/JSONSchemaDto.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.JSONSchemaDto +JSONSchema for payload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/LinkIssue.md b/docs/LinkIssue.md new file mode 100644 index 00000000..20986771 --- /dev/null +++ b/docs/LinkIssue.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.LinkIssue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | +**ResponseStatus** | **int** | | [optional] +**Severity** | **string** | | +**Message** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ListUnsubscribeRecipientProjection.md b/docs/ListUnsubscribeRecipientProjection.md new file mode 100644 index 00000000..cbf9fec3 --- /dev/null +++ b/docs/ListUnsubscribeRecipientProjection.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.ListUnsubscribeRecipientProjection +List unsubscribe recipient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailAddress** | **string** | | +**DomainId** | **Guid?** | | [optional] +**CreatedAt** | **DateTime** | | +**Id** | **Guid** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/LookupBimiDomainOptions.md b/docs/LookupBimiDomainOptions.md new file mode 100644 index 00000000..b03ab557 --- /dev/null +++ b/docs/LookupBimiDomainOptions.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.LookupBimiDomainOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/LookupBimiDomainResults.md b/docs/LookupBimiDomainResults.md new file mode 100644 index 00000000..443a373d --- /dev/null +++ b/docs/LookupBimiDomainResults.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.LookupBimiDomainResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Valid** | **bool** | | +**Query** | [**DNSLookupOptions**](DNSLookupOptions) | | +**Records** | [**List<DNSLookupResult>**](DNSLookupResult) | | +**Errors** | **List<string>** | | +**Warnings** | **List<string>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/LookupDmarcDomainOptions.md b/docs/LookupDmarcDomainOptions.md new file mode 100644 index 00000000..5ca7d565 --- /dev/null +++ b/docs/LookupDmarcDomainOptions.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.LookupDmarcDomainOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/LookupDmarcDomainResults.md b/docs/LookupDmarcDomainResults.md new file mode 100644 index 00000000..ab1d7c22 --- /dev/null +++ b/docs/LookupDmarcDomainResults.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.LookupDmarcDomainResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Valid** | **bool** | | +**Query** | [**DNSLookupOptions**](DNSLookupOptions) | | +**Records** | [**List<DNSLookupResult>**](DNSLookupResult) | | +**Errors** | **List<string>** | | +**Warnings** | **List<string>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/LookupMtaStsDomainOptions.md b/docs/LookupMtaStsDomainOptions.md new file mode 100644 index 00000000..2561b0f7 --- /dev/null +++ b/docs/LookupMtaStsDomainOptions.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.LookupMtaStsDomainOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/LookupMtaStsDomainResults.md b/docs/LookupMtaStsDomainResults.md new file mode 100644 index 00000000..b0eeb5ea --- /dev/null +++ b/docs/LookupMtaStsDomainResults.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.LookupMtaStsDomainResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Valid** | **bool** | | +**Query** | [**DNSLookupOptions**](DNSLookupOptions) | | +**Records** | [**List<DNSLookupResult>**](DNSLookupResult) | | +**WellKnownQuery** | **string** | | +**WellKnownPresent** | **bool** | | +**WellKnownValue** | **string** | | +**Errors** | **List<string>** | | +**Warnings** | **List<string>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/LookupTlsReportingDomainOptions.md b/docs/LookupTlsReportingDomainOptions.md new file mode 100644 index 00000000..e96b906c --- /dev/null +++ b/docs/LookupTlsReportingDomainOptions.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.LookupTlsReportingDomainOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/LookupTlsReportingDomainResults.md b/docs/LookupTlsReportingDomainResults.md new file mode 100644 index 00000000..38424a03 --- /dev/null +++ b/docs/LookupTlsReportingDomainResults.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.LookupTlsReportingDomainResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Valid** | **bool** | | +**Query** | [**DNSLookupOptions**](DNSLookupOptions) | | +**Records** | [**List<DNSLookupResult>**](DNSLookupResult) | | +**Errors** | **List<string>** | | +**Warnings** | **List<string>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/MailServerControllerApi.md b/docs/MailServerControllerApi.md new file mode 100644 index 00000000..1d2dd082 --- /dev/null +++ b/docs/MailServerControllerApi.md @@ -0,0 +1,482 @@ +# mailslurp_netstandard_2x.Api.MailServerControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**DescribeMailServerDomain**](MailServerControllerApi#describemailserverdomain) | **POST** /mail-server/describe/domain | Get DNS Mail Server records for a domain | +| [**GetDnsLookup**](MailServerControllerApi#getdnslookup) | **POST** /mail-server/describe/dns-lookup | Lookup DNS records for a domain | +| [**GetDnsLookups**](MailServerControllerApi#getdnslookups) | **POST** /mail-server/describe/dns-lookups | Lookup DNS records for multiple domains | +| [**GetIpAddress**](MailServerControllerApi#getipaddress) | **POST** /mail-server/describe/ip-address | Get IP address for a domain | +| [**VerifyEmailAddress**](MailServerControllerApi#verifyemailaddress) | **POST** /mail-server/verify/email-address | Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. | + + +# **DescribeMailServerDomain** +> DescribeMailServerDomainResult DescribeMailServerDomain (DescribeDomainOptions describeDomainOptions) + +Get DNS Mail Server records for a domain + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DescribeMailServerDomainExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new MailServerControllerApi(config); + var describeDomainOptions = new DescribeDomainOptions(); // DescribeDomainOptions | + + try + { + // Get DNS Mail Server records for a domain + DescribeMailServerDomainResult result = apiInstance.DescribeMailServerDomain(describeDomainOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MailServerControllerApi.DescribeMailServerDomain: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DescribeMailServerDomainWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get DNS Mail Server records for a domain + ApiResponse response = apiInstance.DescribeMailServerDomainWithHttpInfo(describeDomainOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MailServerControllerApi.DescribeMailServerDomainWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **describeDomainOptions** | [**DescribeDomainOptions**](DescribeDomainOptions) | | | + +### Return type + +[**DescribeMailServerDomainResult**](DescribeMailServerDomainResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetDnsLookup** +> DNSLookupResults GetDnsLookup (DNSLookupOptions dNSLookupOptions) + +Lookup DNS records for a domain + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetDnsLookupExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new MailServerControllerApi(config); + var dNSLookupOptions = new DNSLookupOptions(); // DNSLookupOptions | + + try + { + // Lookup DNS records for a domain + DNSLookupResults result = apiInstance.GetDnsLookup(dNSLookupOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MailServerControllerApi.GetDnsLookup: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetDnsLookupWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Lookup DNS records for a domain + ApiResponse response = apiInstance.GetDnsLookupWithHttpInfo(dNSLookupOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MailServerControllerApi.GetDnsLookupWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **dNSLookupOptions** | [**DNSLookupOptions**](DNSLookupOptions) | | | + +### Return type + +[**DNSLookupResults**](DNSLookupResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetDnsLookups** +> DNSLookupResults GetDnsLookups (DNSLookupsOptions dNSLookupsOptions) + +Lookup DNS records for multiple domains + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetDnsLookupsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new MailServerControllerApi(config); + var dNSLookupsOptions = new DNSLookupsOptions(); // DNSLookupsOptions | + + try + { + // Lookup DNS records for multiple domains + DNSLookupResults result = apiInstance.GetDnsLookups(dNSLookupsOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MailServerControllerApi.GetDnsLookups: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetDnsLookupsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Lookup DNS records for multiple domains + ApiResponse response = apiInstance.GetDnsLookupsWithHttpInfo(dNSLookupsOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MailServerControllerApi.GetDnsLookupsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **dNSLookupsOptions** | [**DNSLookupsOptions**](DNSLookupsOptions) | | | + +### Return type + +[**DNSLookupResults**](DNSLookupResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetIpAddress** +> IPAddressResult GetIpAddress (string name) + +Get IP address for a domain + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetIpAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new MailServerControllerApi(config); + var name = "name_example"; // string | + + try + { + // Get IP address for a domain + IPAddressResult result = apiInstance.GetIpAddress(name); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MailServerControllerApi.GetIpAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetIpAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get IP address for a domain + ApiResponse response = apiInstance.GetIpAddressWithHttpInfo(name); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MailServerControllerApi.GetIpAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **name** | **string** | | | + +### Return type + +[**IPAddressResult**](IPAddressResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **VerifyEmailAddress** +> EmailVerificationResult VerifyEmailAddress (VerifyEmailAddressOptions verifyEmailAddressOptions) + +Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class VerifyEmailAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new MailServerControllerApi(config); + var verifyEmailAddressOptions = new VerifyEmailAddressOptions(); // VerifyEmailAddressOptions | + + try + { + // Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. + EmailVerificationResult result = apiInstance.VerifyEmailAddress(verifyEmailAddressOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MailServerControllerApi.VerifyEmailAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the VerifyEmailAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. + ApiResponse response = apiInstance.VerifyEmailAddressWithHttpInfo(verifyEmailAddressOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MailServerControllerApi.VerifyEmailAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **verifyEmailAddressOptions** | [**VerifyEmailAddressOptions**](VerifyEmailAddressOptions) | | | + +### Return type + +[**EmailVerificationResult**](EmailVerificationResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/MatchOption.md b/docs/MatchOption.md new file mode 100644 index 00000000..3a788680 --- /dev/null +++ b/docs/MatchOption.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.MatchOption +Options for matching emails in an inbox. Each match option object contains a `field`, `should` and `value` property. Together they form logical conditions such as `SUBJECT` should `CONTAIN` value. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Field** | **string** | Fields of an email object that can be used to filter results | +**Should** | **string** | How the value of the email field specified should be compared to the value given in the match options. | +**Value** | **string** | The value you wish to compare with the value of the field specified using the `should` value passed. For example `BODY` should `CONTAIN` a value passed. | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/MatchOptions.md b/docs/MatchOptions.md new file mode 100644 index 00000000..936a81a3 --- /dev/null +++ b/docs/MatchOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.MatchOptions +Optional filter for matching emails based on fields. For instance filter results to only include emails whose `SUBJECT` value does `CONTAIN` given match value. An example payload would be `{ matches: [{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }] }`. You can also pass conditions such as `HAS_ATTACHMENT`. If you wish to extract regex matches inside the email content see the `getEmailContentMatch` method in the EmailController. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Matches** | [**List<MatchOption>**](MatchOption) | Zero or more match options such as `{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }`. Options are additive so if one does not match the email is excluded from results | [optional] +**Conditions** | [**List<ConditionOption>**](ConditionOption) | Zero or more conditions such as `{ condition: 'HAS_ATTACHMENTS', value: 'TRUE' }`. Note the values are the strings `TRUE|FALSE` not booleans. | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/MissedEmailControllerApi.md b/docs/MissedEmailControllerApi.md new file mode 100644 index 00000000..284c62b7 --- /dev/null +++ b/docs/MissedEmailControllerApi.md @@ -0,0 +1,513 @@ +# mailslurp_netstandard_2x.Api.MissedEmailControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetAllMissedEmails**](MissedEmailControllerApi#getallmissedemails) | **GET** /missed-emails | Get all MissedEmails in paginated format | +| [**GetAllUnknownMissedEmails**](MissedEmailControllerApi#getallunknownmissedemails) | **GET** /missed-emails/unknown | Get all unknown missed emails in paginated format | +| [**GetMissedEmail**](MissedEmailControllerApi#getmissedemail) | **GET** /missed-emails/{missedEmailId} | Get MissedEmail | +| [**RestoreMissedEmails**](MissedEmailControllerApi#restoremissedemails) | **POST** /missed-emails/restore | Restore missed emails | +| [**WaitForNthMissedEmail**](MissedEmailControllerApi#waitfornthmissedemail) | **GET** /missed-emails/waitForNthMissedEmail | Wait for Nth missed email | + + +# **GetAllMissedEmails** +> PageMissedEmailProjection GetAllMissedEmails (int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, Guid? inboxId = null) + +Get all MissedEmails in paginated format + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllMissedEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new MissedEmailControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + var inboxId = "inboxId_example"; // Guid? | Optional inbox ID filter (optional) + + try + { + // Get all MissedEmails in paginated format + PageMissedEmailProjection result = apiInstance.GetAllMissedEmails(page, size, sort, searchFilter, since, before, inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MissedEmailControllerApi.GetAllMissedEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllMissedEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all MissedEmails in paginated format + ApiResponse response = apiInstance.GetAllMissedEmailsWithHttpInfo(page, size, sort, searchFilter, since, before, inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MissedEmailControllerApi.GetAllMissedEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | +| **inboxId** | **Guid?** | Optional inbox ID filter | [optional] | + +### Return type + +[**PageMissedEmailProjection**](PageMissedEmailProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllUnknownMissedEmails** +> PageUnknownMissedEmailProjection GetAllUnknownMissedEmails (int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, Guid? inboxId = null) + +Get all unknown missed emails in paginated format + +Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllUnknownMissedEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new MissedEmailControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + var inboxId = "inboxId_example"; // Guid? | Optional inbox ID filter (optional) + + try + { + // Get all unknown missed emails in paginated format + PageUnknownMissedEmailProjection result = apiInstance.GetAllUnknownMissedEmails(page, size, sort, searchFilter, since, before, inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MissedEmailControllerApi.GetAllUnknownMissedEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllUnknownMissedEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all unknown missed emails in paginated format + ApiResponse response = apiInstance.GetAllUnknownMissedEmailsWithHttpInfo(page, size, sort, searchFilter, since, before, inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MissedEmailControllerApi.GetAllUnknownMissedEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | +| **inboxId** | **Guid?** | Optional inbox ID filter | [optional] | + +### Return type + +[**PageUnknownMissedEmailProjection**](PageUnknownMissedEmailProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetMissedEmail** +> MissedEmailDto GetMissedEmail (Guid missedEmailId) + +Get MissedEmail + +List emails that were missed due to plan limits. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetMissedEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new MissedEmailControllerApi(config); + var missedEmailId = "missedEmailId_example"; // Guid | + + try + { + // Get MissedEmail + MissedEmailDto result = apiInstance.GetMissedEmail(missedEmailId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MissedEmailControllerApi.GetMissedEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetMissedEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get MissedEmail + ApiResponse response = apiInstance.GetMissedEmailWithHttpInfo(missedEmailId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MissedEmailControllerApi.GetMissedEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **missedEmailId** | **Guid** | | | + +### Return type + +[**MissedEmailDto**](MissedEmailDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **RestoreMissedEmails** +> void RestoreMissedEmails () + +Restore missed emails + +If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class RestoreMissedEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new MissedEmailControllerApi(config); + + try + { + // Restore missed emails + apiInstance.RestoreMissedEmails(); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MissedEmailControllerApi.RestoreMissedEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the RestoreMissedEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Restore missed emails + apiInstance.RestoreMissedEmailsWithHttpInfo(); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MissedEmailControllerApi.RestoreMissedEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **WaitForNthMissedEmail** +> MissedEmailDto WaitForNthMissedEmail (int index, Guid? inboxId = null, long? timeout = null, DateTime? since = null, DateTime? before = null) + +Wait for Nth missed email + +Wait for 0 based index missed email + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class WaitForNthMissedEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new MissedEmailControllerApi(config); + var index = 56; // int | Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1 + var inboxId = "inboxId_example"; // Guid? | Optional inbox ID filter (optional) + var timeout = 789L; // long? | Optional timeout milliseconds (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Wait for Nth missed email + MissedEmailDto result = apiInstance.WaitForNthMissedEmail(index, inboxId, timeout, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MissedEmailControllerApi.WaitForNthMissedEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the WaitForNthMissedEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Wait for Nth missed email + ApiResponse response = apiInstance.WaitForNthMissedEmailWithHttpInfo(index, inboxId, timeout, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MissedEmailControllerApi.WaitForNthMissedEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **index** | **int** | Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1 | | +| **inboxId** | **Guid?** | Optional inbox ID filter | [optional] | +| **timeout** | **long?** | Optional timeout milliseconds | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**MissedEmailDto**](MissedEmailDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/MissedEmailDto.md b/docs/MissedEmailDto.md new file mode 100644 index 00000000..254fdee8 --- /dev/null +++ b/docs/MissedEmailDto.md @@ -0,0 +1,26 @@ +# mailslurp_netstandard_2x.Model.MissedEmailDto +Missed email + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid?** | | [optional] +**Subject** | **string** | | [optional] +**BodyExcerpt** | **string** | | [optional] +**AttachmentCount** | **int** | | +**From** | **string** | | [optional] +**RawUrl** | **string** | | [optional] +**RawKey** | **string** | | [optional] +**RawBucket** | **string** | | [optional] +**CanRestore** | **bool?** | | [optional] +**To** | **List<string>** | | +**Cc** | **List<string>** | | +**Bcc** | **List<string>** | | +**InboxIds** | **List<Guid>** | | +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/MissedEmailProjection.md b/docs/MissedEmailProjection.md new file mode 100644 index 00000000..aad26f22 --- /dev/null +++ b/docs/MissedEmailProjection.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.MissedEmailProjection +Missed email data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **Guid?** | | [optional] +**CreatedAt** | **DateTime** | | +**Subject** | **string** | | [optional] +**Id** | **Guid** | | +**From** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/NameServerRecord.md b/docs/NameServerRecord.md new file mode 100644 index 00000000..fde070e3 --- /dev/null +++ b/docs/NameServerRecord.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.NameServerRecord +Name Server Record + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Raw** | **string** | | +**RecordType** | **string** | | +**Priority** | **string** | | +**Value** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/NewFakeEmailAddressResult.md b/docs/NewFakeEmailAddressResult.md new file mode 100644 index 00000000..2048a4f8 --- /dev/null +++ b/docs/NewFakeEmailAddressResult.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.NewFakeEmailAddressResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailAddress** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/OrganizationInboxProjection.md b/docs/OrganizationInboxProjection.md new file mode 100644 index 00000000..b595db69 --- /dev/null +++ b/docs/OrganizationInboxProjection.md @@ -0,0 +1,22 @@ +# mailslurp_netstandard_2x.Model.OrganizationInboxProjection +Organization team inbox + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. | +**DomainId** | **Guid?** | ID of custom domain used by the inbox if any | [optional] +**CreatedAt** | **DateTime** | When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. | +**Name** | **string** | Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search | [optional] +**EmailAddress** | **string** | The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. | [optional] +**Favourite** | **bool** | Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering | +**Tags** | **List<string>** | Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. | [optional] +**TeamAccess** | **bool** | Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/ | +**InboxType** | **string** | Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). | [optional] +**ReadOnly** | **bool** | Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes. | +**VirtualInbox** | **bool** | Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. | +**FunctionsAs** | **string** | Inbox function if used as a primitive for another system. | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageAlias.md b/docs/PageAlias.md new file mode 100644 index 00000000..33c3c79f --- /dev/null +++ b/docs/PageAlias.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageAlias +Paginated email alias results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<AliasProjection>**](AliasProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageAttachmentEntity.md b/docs/PageAttachmentEntity.md new file mode 100644 index 00000000..9504315d --- /dev/null +++ b/docs/PageAttachmentEntity.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageAttachmentEntity +Paginated attachment entity results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<AttachmentProjection>**](AttachmentProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageBouncedEmail.md b/docs/PageBouncedEmail.md new file mode 100644 index 00000000..e13e6adc --- /dev/null +++ b/docs/PageBouncedEmail.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageBouncedEmail +Paginated bounced email. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<BounceProjection>**](BounceProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageBouncedRecipients.md b/docs/PageBouncedRecipients.md new file mode 100644 index 00000000..2c3eb8a6 --- /dev/null +++ b/docs/PageBouncedRecipients.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageBouncedRecipients +Paginated bounced recipients. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<BounceRecipientProjection>**](BounceRecipientProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageComplaint.md b/docs/PageComplaint.md new file mode 100644 index 00000000..7dba4a23 --- /dev/null +++ b/docs/PageComplaint.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageComplaint +Paginated complaint email. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<Complaint>**](Complaint) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageConnector.md b/docs/PageConnector.md new file mode 100644 index 00000000..499ac61e --- /dev/null +++ b/docs/PageConnector.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageConnector +Paginated inbox connectors. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<ConnectorProjection>**](ConnectorProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageConnectorSyncEvents.md b/docs/PageConnectorSyncEvents.md new file mode 100644 index 00000000..eb1e98e1 --- /dev/null +++ b/docs/PageConnectorSyncEvents.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageConnectorSyncEvents +Paginated inbox connector sync events. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<ConnectorSyncEventProjection>**](ConnectorSyncEventProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageContactProjection.md b/docs/PageContactProjection.md new file mode 100644 index 00000000..d6a09580 --- /dev/null +++ b/docs/PageContactProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageContactProjection +Paginated contact results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<ContactProjection>**](ContactProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageDeliveryStatus.md b/docs/PageDeliveryStatus.md new file mode 100644 index 00000000..89c31e04 --- /dev/null +++ b/docs/PageDeliveryStatus.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageDeliveryStatus +Paginated delivery status results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<DeliveryStatusDto>**](DeliveryStatusDto) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageEmailPreview.md b/docs/PageEmailPreview.md new file mode 100644 index 00000000..2eadf2e2 --- /dev/null +++ b/docs/PageEmailPreview.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageEmailPreview +Paginated email preview results. EmailProjections and EmailPreviews are essentially the same but have legacy naming issues. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. For emails there are several methods for fetching message bodies and attachments. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<EmailPreview>**](EmailPreview) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageEmailProjection.md b/docs/PageEmailProjection.md new file mode 100644 index 00000000..fb094f1c --- /dev/null +++ b/docs/PageEmailProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageEmailProjection +Paginated email projection results. EmailProjections and EmailPreviews are essentially the same but have legacy naming issues. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full email entity use the projection ID with individual method calls. For emails there are several methods for fetching message bodies and attachments. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<EmailProjection>**](EmailProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageEmailValidationRequest.md b/docs/PageEmailValidationRequest.md new file mode 100644 index 00000000..38f3cec3 --- /dev/null +++ b/docs/PageEmailValidationRequest.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageEmailValidationRequest +Paginated email validation request records. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<EmailValidationRequestDto>**](EmailValidationRequestDto) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageExpiredInboxRecordProjection.md b/docs/PageExpiredInboxRecordProjection.md new file mode 100644 index 00000000..75930d34 --- /dev/null +++ b/docs/PageExpiredInboxRecordProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageExpiredInboxRecordProjection +Paginated expired inbox results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<ExpiredInboxRecordProjection>**](ExpiredInboxRecordProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageGroupProjection.md b/docs/PageGroupProjection.md new file mode 100644 index 00000000..77a04ac8 --- /dev/null +++ b/docs/PageGroupProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageGroupProjection +Paginated missed email results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<GroupProjection>**](GroupProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageInboxForwarderDto.md b/docs/PageInboxForwarderDto.md new file mode 100644 index 00000000..0dc9b749 --- /dev/null +++ b/docs/PageInboxForwarderDto.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageInboxForwarderDto +Paginated inbox forwarder results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<InboxForwarderDto>**](InboxForwarderDto) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageInboxForwarderEvents.md b/docs/PageInboxForwarderEvents.md new file mode 100644 index 00000000..8aed965e --- /dev/null +++ b/docs/PageInboxForwarderEvents.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageInboxForwarderEvents +Paginated inbox forwarder events. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<InboxForwarderEventProjection>**](InboxForwarderEventProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageInboxProjection.md b/docs/PageInboxProjection.md new file mode 100644 index 00000000..7d6304e9 --- /dev/null +++ b/docs/PageInboxProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageInboxProjection +Paginated inbox results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<InboxPreview>**](InboxPreview) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageInboxReplierDto.md b/docs/PageInboxReplierDto.md new file mode 100644 index 00000000..7412f0d7 --- /dev/null +++ b/docs/PageInboxReplierDto.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageInboxReplierDto +Paginated inbox replier results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<InboxReplierDto>**](InboxReplierDto) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageInboxReplierEvents.md b/docs/PageInboxReplierEvents.md new file mode 100644 index 00000000..55746280 --- /dev/null +++ b/docs/PageInboxReplierEvents.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageInboxReplierEvents +Paginated inbox replier events. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<InboxReplierEventProjection>**](InboxReplierEventProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageInboxRulesetDto.md b/docs/PageInboxRulesetDto.md new file mode 100644 index 00000000..4bade03f --- /dev/null +++ b/docs/PageInboxRulesetDto.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageInboxRulesetDto +Paginated inbox ruleset results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<InboxRulesetDto>**](InboxRulesetDto) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageListUnsubscribeRecipients.md b/docs/PageListUnsubscribeRecipients.md new file mode 100644 index 00000000..1b29458c --- /dev/null +++ b/docs/PageListUnsubscribeRecipients.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageListUnsubscribeRecipients +Paginated list unsubscribe recipients. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<ListUnsubscribeRecipientProjection>**](ListUnsubscribeRecipientProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageMissedEmailProjection.md b/docs/PageMissedEmailProjection.md new file mode 100644 index 00000000..cdd3a7d5 --- /dev/null +++ b/docs/PageMissedEmailProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageMissedEmailProjection +Paginated MissedEmail results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<MissedEmailProjection>**](MissedEmailProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageOrganizationInboxProjection.md b/docs/PageOrganizationInboxProjection.md new file mode 100644 index 00000000..ab7c7ca5 --- /dev/null +++ b/docs/PageOrganizationInboxProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageOrganizationInboxProjection +Paginated organization inbox results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<OrganizationInboxProjection>**](OrganizationInboxProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PagePhoneNumberProjection.md b/docs/PagePhoneNumberProjection.md new file mode 100644 index 00000000..6b6cfe86 --- /dev/null +++ b/docs/PagePhoneNumberProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PagePhoneNumberProjection +Paginated phone numbers. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<PhoneNumberProjection>**](PhoneNumberProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageScheduledJobs.md b/docs/PageScheduledJobs.md new file mode 100644 index 00000000..01f62b27 --- /dev/null +++ b/docs/PageScheduledJobs.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageScheduledJobs +Paginated scheduled jobs results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<ScheduledJob>**](ScheduledJob) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageSentEmailProjection.md b/docs/PageSentEmailProjection.md new file mode 100644 index 00000000..5cd5f3fc --- /dev/null +++ b/docs/PageSentEmailProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageSentEmailProjection +Paginated sent email results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full sent email entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<SentEmailProjection>**](SentEmailProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageSentEmailWithQueueProjection.md b/docs/PageSentEmailWithQueueProjection.md new file mode 100644 index 00000000..c1db05fb --- /dev/null +++ b/docs/PageSentEmailWithQueueProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageSentEmailWithQueueProjection +Paginated sent email results for emails sent with queue. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full sent email entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<SendWithQueueResult>**](SendWithQueueResult) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageSmsProjection.md b/docs/PageSmsProjection.md new file mode 100644 index 00000000..284df25b --- /dev/null +++ b/docs/PageSmsProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageSmsProjection +Paginated SMS messages. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<SmsProjection>**](SmsProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageTemplateProjection.md b/docs/PageTemplateProjection.md new file mode 100644 index 00000000..ecaa7814 --- /dev/null +++ b/docs/PageTemplateProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageTemplateProjection +Paginated email template results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<TemplateProjection>**](TemplateProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageThreadProjection.md b/docs/PageThreadProjection.md new file mode 100644 index 00000000..07ca5964 --- /dev/null +++ b/docs/PageThreadProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageThreadProjection +Paginated email projection results. EmailProjections and EmailPreviews are essentially the same but have legacy naming issues. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full email entity use the projection ID with individual method calls. For emails there are several methods for fetching message bodies and attachments. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<ThreadProjection>**](ThreadProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageTrackingPixelProjection.md b/docs/PageTrackingPixelProjection.md new file mode 100644 index 00000000..ce79de03 --- /dev/null +++ b/docs/PageTrackingPixelProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageTrackingPixelProjection +Paginated TrackingPixel results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<TrackingPixelProjection>**](TrackingPixelProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageUnknownMissedEmailProjection.md b/docs/PageUnknownMissedEmailProjection.md new file mode 100644 index 00000000..824e145e --- /dev/null +++ b/docs/PageUnknownMissedEmailProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageUnknownMissedEmailProjection +Paginated unknown MissedEmail results. Unknown missed emails are emails that were sent to MailSlurp /Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<UnknownMissedEmailProjection>**](UnknownMissedEmailProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageWebhookProjection.md b/docs/PageWebhookProjection.md new file mode 100644 index 00000000..5438793e --- /dev/null +++ b/docs/PageWebhookProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageWebhookProjection +Paginated webhook entity. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<WebhookProjection>**](WebhookProjection) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageWebhookResult.md b/docs/PageWebhookResult.md new file mode 100644 index 00000000..e4a77844 --- /dev/null +++ b/docs/PageWebhookResult.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.PageWebhookResult +Paginated webhook results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**List<WebhookResultDto>**](WebhookResultDto) | | [optional] +**Pageable** | [**PageableObject**](PageableObject) | | [optional] +**TotalPages** | **int** | | +**TotalElements** | **long** | | +**Last** | **bool** | | [optional] +**NumberOfElements** | **int** | | [optional] +**Size** | **int** | | [optional] +**Number** | **int** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] +**First** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PageableObject.md b/docs/PageableObject.md new file mode 100644 index 00000000..23b4e333 --- /dev/null +++ b/docs/PageableObject.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.PageableObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PageNumber** | **int** | | [optional] +**PageSize** | **int** | | [optional] +**Paged** | **bool** | | [optional] +**Unpaged** | **bool** | | [optional] +**Offset** | **long** | | [optional] +**Sort** | [**SortObject**](SortObject) | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PhoneControllerApi.md b/docs/PhoneControllerApi.md new file mode 100644 index 00000000..bfca8c13 --- /dev/null +++ b/docs/PhoneControllerApi.md @@ -0,0 +1,840 @@ +# mailslurp_netstandard_2x.Api.PhoneControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateEmergencyAddress**](PhoneControllerApi#createemergencyaddress) | **POST** /phone/emergency-addresses | | +| [**DeleteEmergencyAddress**](PhoneControllerApi#deleteemergencyaddress) | **DELETE** /phone/emergency-addresses/{addressId} | | +| [**DeletePhoneNumber**](PhoneControllerApi#deletephonenumber) | **DELETE** /phone/numbers/{phoneNumberId} | | +| [**GetEmergencyAddress**](PhoneControllerApi#getemergencyaddress) | **GET** /phone/emergency-addresses/{addressId} | | +| [**GetEmergencyAddresses**](PhoneControllerApi#getemergencyaddresses) | **GET** /phone/emergency-addresses | | +| [**GetPhoneNumber**](PhoneControllerApi#getphonenumber) | **GET** /phone/numbers/{phoneNumberId} | | +| [**GetPhoneNumbers**](PhoneControllerApi#getphonenumbers) | **GET** /phone/numbers | | +| [**GetPhonePlans**](PhoneControllerApi#getphoneplans) | **GET** /phone/plans | | +| [**TestPhoneNumberSendSms**](PhoneControllerApi#testphonenumbersendsms) | **POST** /phone/numbers/{phoneNumberId}/test | | + + +# **CreateEmergencyAddress** +> EmergencyAddress CreateEmergencyAddress (CreateEmergencyAddressOptions createEmergencyAddressOptions) + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateEmergencyAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new PhoneControllerApi(config); + var createEmergencyAddressOptions = new CreateEmergencyAddressOptions(); // CreateEmergencyAddressOptions | + + try + { + EmergencyAddress result = apiInstance.CreateEmergencyAddress(createEmergencyAddressOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PhoneControllerApi.CreateEmergencyAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateEmergencyAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.CreateEmergencyAddressWithHttpInfo(createEmergencyAddressOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PhoneControllerApi.CreateEmergencyAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createEmergencyAddressOptions** | [**CreateEmergencyAddressOptions**](CreateEmergencyAddressOptions) | | | + +### Return type + +[**EmergencyAddress**](EmergencyAddress) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteEmergencyAddress** +> EmptyResponseDto DeleteEmergencyAddress (Guid addressId) + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteEmergencyAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new PhoneControllerApi(config); + var addressId = "addressId_example"; // Guid | + + try + { + EmptyResponseDto result = apiInstance.DeleteEmergencyAddress(addressId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PhoneControllerApi.DeleteEmergencyAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteEmergencyAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.DeleteEmergencyAddressWithHttpInfo(addressId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PhoneControllerApi.DeleteEmergencyAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **addressId** | **Guid** | | | + +### Return type + +[**EmptyResponseDto**](EmptyResponseDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeletePhoneNumber** +> void DeletePhoneNumber (Guid phoneNumberId) + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeletePhoneNumberExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new PhoneControllerApi(config); + var phoneNumberId = "phoneNumberId_example"; // Guid | + + try + { + apiInstance.DeletePhoneNumber(phoneNumberId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PhoneControllerApi.DeletePhoneNumber: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeletePhoneNumberWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + apiInstance.DeletePhoneNumberWithHttpInfo(phoneNumberId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PhoneControllerApi.DeletePhoneNumberWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **phoneNumberId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmergencyAddress** +> EmergencyAddress GetEmergencyAddress (Guid addressId) + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmergencyAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new PhoneControllerApi(config); + var addressId = "addressId_example"; // Guid | + + try + { + EmergencyAddress result = apiInstance.GetEmergencyAddress(addressId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PhoneControllerApi.GetEmergencyAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmergencyAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetEmergencyAddressWithHttpInfo(addressId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PhoneControllerApi.GetEmergencyAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **addressId** | **Guid** | | | + +### Return type + +[**EmergencyAddress**](EmergencyAddress) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetEmergencyAddresses** +> List<EmergencyAddressDto> GetEmergencyAddresses () + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetEmergencyAddressesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new PhoneControllerApi(config); + + try + { + List result = apiInstance.GetEmergencyAddresses(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PhoneControllerApi.GetEmergencyAddresses: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetEmergencyAddressesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse> response = apiInstance.GetEmergencyAddressesWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PhoneControllerApi.GetEmergencyAddressesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**List<EmergencyAddressDto>**](EmergencyAddressDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetPhoneNumber** +> PhoneNumberDto GetPhoneNumber (Guid phoneNumberId) + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetPhoneNumberExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new PhoneControllerApi(config); + var phoneNumberId = "phoneNumberId_example"; // Guid | + + try + { + PhoneNumberDto result = apiInstance.GetPhoneNumber(phoneNumberId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PhoneControllerApi.GetPhoneNumber: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetPhoneNumberWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetPhoneNumberWithHttpInfo(phoneNumberId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PhoneControllerApi.GetPhoneNumberWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **phoneNumberId** | **Guid** | | | + +### Return type + +[**PhoneNumberDto**](PhoneNumberDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetPhoneNumbers** +> PagePhoneNumberProjection GetPhoneNumbers (string phoneCountry = null, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetPhoneNumbersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new PhoneControllerApi(config); + var phoneCountry = "US"; // string | Optional phone country (optional) + var page = 0; // int? | Optional page index for list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size for list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + PagePhoneNumberProjection result = apiInstance.GetPhoneNumbers(phoneCountry, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PhoneControllerApi.GetPhoneNumbers: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetPhoneNumbersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetPhoneNumbersWithHttpInfo(phoneCountry, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PhoneControllerApi.GetPhoneNumbersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **phoneCountry** | **string** | Optional phone country | [optional] | +| **page** | **int?** | Optional page index for list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size for list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PagePhoneNumberProjection**](PagePhoneNumberProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetPhonePlans** +> List<PhonePlanDto> GetPhonePlans () + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetPhonePlansExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new PhoneControllerApi(config); + + try + { + List result = apiInstance.GetPhonePlans(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PhoneControllerApi.GetPhonePlans: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetPhonePlansWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse> response = apiInstance.GetPhonePlansWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PhoneControllerApi.GetPhonePlansWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**List<PhonePlanDto>**](PhonePlanDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **TestPhoneNumberSendSms** +> void TestPhoneNumberSendSms (Guid phoneNumberId, TestPhoneNumberOptions testPhoneNumberOptions, string xTestId = null) + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class TestPhoneNumberSendSmsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new PhoneControllerApi(config); + var phoneNumberId = "phoneNumberId_example"; // Guid | + var testPhoneNumberOptions = new TestPhoneNumberOptions(); // TestPhoneNumberOptions | + var xTestId = "xTestId_example"; // string | (optional) + + try + { + apiInstance.TestPhoneNumberSendSms(phoneNumberId, testPhoneNumberOptions, xTestId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PhoneControllerApi.TestPhoneNumberSendSms: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the TestPhoneNumberSendSmsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + apiInstance.TestPhoneNumberSendSmsWithHttpInfo(phoneNumberId, testPhoneNumberOptions, xTestId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PhoneControllerApi.TestPhoneNumberSendSmsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **phoneNumberId** | **Guid** | | | +| **testPhoneNumberOptions** | [**TestPhoneNumberOptions**](TestPhoneNumberOptions) | | | +| **xTestId** | **string** | | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/PhoneNumberDto.md b/docs/PhoneNumberDto.md new file mode 100644 index 00000000..b1a6fd21 --- /dev/null +++ b/docs/PhoneNumberDto.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.PhoneNumberDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**ComplianceAddress** | **Guid** | | [optional] +**EmergencyAddress** | **Guid** | | [optional] +**PhoneNumber** | **string** | | +**PhoneCountry** | **string** | | +**PhonePlan** | **Guid** | | +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PhoneNumberProjection.md b/docs/PhoneNumberProjection.md new file mode 100644 index 00000000..0a090f0f --- /dev/null +++ b/docs/PhoneNumberProjection.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.PhoneNumberProjection +Phone number projection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **Guid** | | +**PhoneNumber** | **string** | | +**PhoneCountry** | **string** | | +**CreatedAt** | **DateTime** | | +**Id** | **Guid** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/PhonePlanDto.md b/docs/PhonePlanDto.md new file mode 100644 index 00000000..1596d9b9 --- /dev/null +++ b/docs/PhonePlanDto.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.PhonePlanDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**PhoneCountry** | **string** | | +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/RawEmailJson.md b/docs/RawEmailJson.md new file mode 100644 index 00000000..6fdc95c9 --- /dev/null +++ b/docs/RawEmailJson.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.RawEmailJson +Content in raw format + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/Recipient.md b/docs/Recipient.md new file mode 100644 index 00000000..d1926902 --- /dev/null +++ b/docs/Recipient.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.Recipient +Email recipient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RawValue** | **string** | | +**EmailAddress** | **string** | | +**Name** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ReplyForSms.md b/docs/ReplyForSms.md new file mode 100644 index 00000000..5f65f9cd --- /dev/null +++ b/docs/ReplyForSms.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.ReplyForSms + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reply** | [**SentSmsDto**](SentSmsDto) | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ReplyToAliasEmailOptions.md b/docs/ReplyToAliasEmailOptions.md new file mode 100644 index 00000000..23a4a836 --- /dev/null +++ b/docs/ReplyToAliasEmailOptions.md @@ -0,0 +1,20 @@ +# mailslurp_netstandard_2x.Model.ReplyToAliasEmailOptions +Options for replying to an alias email using the alias inbox + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Body** | **string** | Body of the reply email you want to send | +**IsHTML** | **bool** | Is the reply HTML | +**Charset** | **string** | The charset that your message should be sent with. Optional. Default is UTF-8 | [optional] +**Attachments** | **List<string>** | List of uploaded attachments to send with the reply. Optional. | [optional] +**TemplateVariables** | **Dictionary<string, Object>** | Template variables if using a template | [optional] +**Template** | **Guid?** | Template ID to use instead of body. Will use template variable map to fill defined variable slots. | [optional] +**SendStrategy** | **string** | How an email should be sent based on its recipients | [optional] +**CustomHeaders** | **Dictionary<string, string>** | Optional custom headers | [optional] +**UseInboxName** | **bool?** | Optionally use inbox name as display name for sender email address | [optional] +**Html** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ReplyToEmailOptions.md b/docs/ReplyToEmailOptions.md new file mode 100644 index 00000000..2c55892d --- /dev/null +++ b/docs/ReplyToEmailOptions.md @@ -0,0 +1,22 @@ +# mailslurp_netstandard_2x.Model.ReplyToEmailOptions +Options for replying to email with API + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Body** | **string** | Body of the reply email you want to send | +**IsHTML** | **bool** | Is the reply HTML | +**From** | **string** | The from header that should be used. Optional | [optional] +**ReplyTo** | **string** | The replyTo header that should be used. Optional | [optional] +**CustomHeaders** | **Dictionary<string, string>** | Optional custom headers | [optional] +**Charset** | **string** | The charset that your message should be sent with. Optional. Default is UTF-8 | [optional] +**Attachments** | **List<string>** | List of uploaded attachments to send with the reply. Optional. | [optional] +**TemplateVariables** | **Dictionary<string, Object>** | Template variables if using a template | [optional] +**Template** | **Guid?** | Template ID to use instead of body. Will use template variable map to fill defined variable slots. | [optional] +**SendStrategy** | **string** | How an email should be sent based on its recipients | [optional] +**UseInboxName** | **bool?** | Optionally use inbox name as display name for sender email address | [optional] +**Html** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ScheduledJob.md b/docs/ScheduledJob.md new file mode 100644 index 00000000..4ffe448d --- /dev/null +++ b/docs/ScheduledJob.md @@ -0,0 +1,19 @@ +# mailslurp_netstandard_2x.Model.ScheduledJob + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**InboxId** | **Guid** | | +**JobId** | **string** | | +**GroupId** | **string** | | +**TriggerId** | **string** | | +**Status** | **string** | | +**SendAtTimestamp** | **DateTime** | | +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ScheduledJobDto.md b/docs/ScheduledJobDto.md new file mode 100644 index 00000000..329d22bb --- /dev/null +++ b/docs/ScheduledJobDto.md @@ -0,0 +1,19 @@ +# mailslurp_netstandard_2x.Model.ScheduledJobDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**InboxId** | **Guid** | | +**JobId** | **string** | | +**GroupId** | **string** | | +**TriggerId** | **string** | | +**Status** | **string** | | +**SendAtTimestamp** | **DateTime** | | +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SearchEmailsOptions.md b/docs/SearchEmailsOptions.md new file mode 100644 index 00000000..6f70e16f --- /dev/null +++ b/docs/SearchEmailsOptions.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.SearchEmailsOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxIds** | **List<Guid>** | Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. | [optional] +**PageIndex** | **int** | Optional page index in email list pagination | [optional] +**PageSize** | **int** | Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results | [optional] +**SortDirection** | **string** | Optional createdAt sort direction ASC or DESC | [optional] +**UnreadOnly** | **bool** | Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly | [optional] +**SearchFilter** | **string** | Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body | [optional] +**Since** | **DateTime** | Optional filter emails received after given date time | [optional] +**Before** | **DateTime** | Optional filter emails received before given date time | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SearchInboxesOptions.md b/docs/SearchInboxesOptions.md new file mode 100644 index 00000000..cb967721 --- /dev/null +++ b/docs/SearchInboxesOptions.md @@ -0,0 +1,20 @@ +# mailslurp_netstandard_2x.Model.SearchInboxesOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PageIndex** | **int?** | Optional page index in list pagination | [optional] +**PageSize** | **int?** | Optional page size in list pagination | [optional] +**SortDirection** | **string** | Optional createdAt sort direction ASC or DESC | [optional] +**Favourite** | **bool?** | Optionally filter results for favourites only | [optional] +**Search** | **string** | Optionally filter by search words partial matching ID, tags, name, and email address | [optional] +**Tag** | **string** | Optionally filter by tags. Will return inboxes that include given tags | [optional] +**Since** | **DateTime?** | Optional filter by created after given date time | [optional] +**Before** | **DateTime?** | Optional filter by created before given date time | [optional] +**InboxType** | **string** | Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). | [optional] +**InboxFunction** | **string** | Optional filter by inbox function | [optional] +**DomainId** | **Guid?** | Optional domain ID filter | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SendEmailBodyPart.md b/docs/SendEmailBodyPart.md new file mode 100644 index 00000000..2b9c29d5 --- /dev/null +++ b/docs/SendEmailBodyPart.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.SendEmailBodyPart +Email body content parts for multipart mime message. Will override body. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContentType** | **string** | | +**ContentBody** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SendEmailOptions.md b/docs/SendEmailOptions.md new file mode 100644 index 00000000..5ce451b4 --- /dev/null +++ b/docs/SendEmailOptions.md @@ -0,0 +1,34 @@ +# mailslurp_netstandard_2x.Model.SendEmailOptions +Options for the email to be sent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ToContacts** | **List<Guid?>** | Optional list of contact IDs to send email to. Manage your contacts via the API or dashboard. When contacts are used the email is sent to each contact separately so they will not see other recipients. | [optional] +**ToGroup** | **Guid?** | Optional contact group ID to send email to. You can create contacts and contact groups in the API or dashboard and use them for email campaigns. When contact groups are used the email is sent to each contact separately so they will not see other recipients | [optional] +**To** | **List<string>** | List of destination email addresses. Each email address must be RFC 5322 format. Even single recipients must be in array form. Maximum recipients per email depends on your plan. If you need to send many emails try using contacts or contact groups or use a non standard sendStrategy to ensure that spam filters are not triggered (many recipients in one email can affect your spam rating). Be cautious when sending emails that your recipients exist. High bounce rates (meaning a high percentage of emails cannot be delivered because an address does not exist) can result in account freezing. | [optional] +**From** | **string** | Optional from address. Email address is RFC 5322 format and may include a display name and email in angle brackets (`my@address.com` or `My inbox <my@address.com>`). If no sender is set the source inbox address will be used for this field. If you set `useInboxName` to `true` the from field will include the inbox name as a display name: `inbox_name <inbox@address.com>`. For this to work use the name field when creating an inbox. Beware of potential spam penalties when setting the from field to an address not used by the inbox. Your emails may get blocked by services if you impersonate another address. To use a custom email addresses use a custom domain. You can create domains with the DomainController. The domain must be verified in the dashboard before it can be used. | [optional] +**Cc** | **List<string>** | Optional list of cc destination email addresses | [optional] +**Bcc** | **List<string>** | Optional list of bcc destination email addresses | [optional] +**Subject** | **string** | Optional email subject line | [optional] +**ReplyTo** | **string** | Optional replyTo header | [optional] +**CustomHeaders** | **Dictionary<string, string>** | Optional custom headers | [optional] +**Body** | **string** | Optional contents of email. If body contains HTML then set `isHTML` to true to ensure that email clients render it correctly. You can use moustache template syntax in the email body in conjunction with `toGroup` contact variables or `templateVariables` data. If you need more templating control consider creating a template and using the `template` property instead of the body. | [optional] +**Html** | **bool?** | Optional HTML flag to indicate that contents is HTML. Set's a `content-type: text/html` for email. (Deprecated: use `isHTML` instead.) | [optional] +**IsHTML** | **bool?** | Optional HTML flag. If true the `content-type` of the email will be `text/html`. Set to true when sending HTML to ensure proper rending on email clients | [optional] +**Charset** | **string** | Optional charset | [optional] +**Attachments** | **List<string>** | Optional list of attachment IDs to send with this email. You must first upload each attachment separately via method call or dashboard in order to obtain attachment IDs. This way you can reuse attachments with different emails once uploaded. There are several ways to upload that support `multi-part form`, `base64 file encoding`, and octet stream binary uploads. See the `UploadController` for available methods. | [optional] +**TemplateVariables** | **Dictionary<string, Object>** | Optional map of template variables. Will replace moustache syntax variables in subject and body or template with the associated values if found. | [optional] +**Template** | **Guid?** | Optional template ID to use for body. Will override body if provided. When using a template make sure you pass the corresponding map of `templateVariables`. You can find which variables are needed by fetching the template itself or viewing it in the dashboard. | [optional] +**SendStrategy** | **string** | How an email should be sent based on its recipients | [optional] +**UseInboxName** | **bool?** | Use name of inbox as sender email address name. Will construct RFC 5322 email address with `Inbox name <inbox@address.com>` if the inbox has a name. | [optional] +**AddTrackingPixel** | **bool?** | Add tracking pixel to email | [optional] +**FilterBouncedRecipients** | **bool?** | Filter recipients to remove any bounced recipients from to, bcc, and cc before sending | [optional] +**ValidateEmailAddresses** | **string** | Validate recipient email addresses before sending | [optional] +**IgnoreEmptyRecipients** | **bool?** | Ignore empty recipients after validation removes all recipients as invalid and fail silently | [optional] +**IsXAmpHtml** | **bool?** | Is content AMP4EMAIL compatible. If set will send as x-amp-html part. | [optional] +**BodyParts** | [**List<SendEmailBodyPart>**](SendEmailBodyPart) | Email body content parts for multipart mime message. Will override body. | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SendSMTPEnvelopeOptions.md b/docs/SendSMTPEnvelopeOptions.md new file mode 100644 index 00000000..4a7916c0 --- /dev/null +++ b/docs/SendSMTPEnvelopeOptions.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.SendSMTPEnvelopeOptions +Options for the email envelope + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RcptTo** | **List<string>** | | +**MailFrom** | **string** | | +**Data** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SendWithQueueResult.md b/docs/SendWithQueueResult.md new file mode 100644 index 00000000..e757d6a7 --- /dev/null +++ b/docs/SendWithQueueResult.md @@ -0,0 +1,19 @@ +# mailslurp_netstandard_2x.Model.SendWithQueueResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**Subject** | **string** | | [optional] +**InboxId** | **Guid** | | [optional] +**HeaderId** | **string** | | +**Delivered** | **bool** | | +**ExceptionName** | **string** | | [optional] +**Message** | **string** | | [optional] +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/Sender.md b/docs/Sender.md new file mode 100644 index 00000000..5200f600 --- /dev/null +++ b/docs/Sender.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.Sender +Sender object containing from email address and from personal name if provided in address + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RawValue** | **string** | | +**EmailAddress** | **string** | | +**Name** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SentEmailDto.md b/docs/SentEmailDto.md new file mode 100644 index 00000000..a4569e22 --- /dev/null +++ b/docs/SentEmailDto.md @@ -0,0 +1,36 @@ +# mailslurp_netstandard_2x.Model.SentEmailDto +Sent email details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | ID of sent email | +**UserId** | **Guid** | User ID | +**InboxId** | **Guid** | Inbox ID email was sent from | +**DomainId** | **Guid?** | Domain ID | [optional] +**To** | **List<string>** | Recipients email was sent to | [optional] +**From** | **string** | Sent from address | [optional] +**ReplyTo** | **string** | | [optional] +**Cc** | **List<string>** | | [optional] +**Bcc** | **List<string>** | | [optional] +**Attachments** | **List<string>** | Array of IDs of attachments that were sent with this email | [optional] +**Subject** | **string** | | [optional] +**BodyMD5Hash** | **string** | MD5 Hash | [optional] +**Body** | **string** | Sent email body | [optional] +**ToContacts** | **List<Guid?>** | | [optional] +**ToGroup** | **Guid?** | | [optional] +**Charset** | **string** | | [optional] +**IsHTML** | **bool?** | | [optional] +**SentAt** | **DateTime** | | +**PixelIds** | **List<Guid?>** | | [optional] +**MessageId** | **string** | | [optional] +**MessageIds** | **List<string>** | | [optional] +**VirtualSend** | **bool?** | | [optional] +**TemplateId** | **Guid?** | | [optional] +**TemplateVariables** | **Dictionary<string, Object>** | | [optional] +**Headers** | **Dictionary<string, string>** | | [optional] +**Html** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SentEmailProjection.md b/docs/SentEmailProjection.md new file mode 100644 index 00000000..6b3e28a8 --- /dev/null +++ b/docs/SentEmailProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.SentEmailProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**From** | **string** | | [optional] +**Subject** | **string** | | [optional] +**Attachments** | **List<string>** | | +**InboxId** | **Guid** | | +**UserId** | **Guid** | | +**To** | **List<string>** | | +**Bcc** | **List<string>** | | +**Cc** | **List<string>** | | +**CreatedAt** | **DateTime** | | +**BodyMD5Hash** | **string** | | [optional] +**VirtualSend** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SentEmailsControllerApi.md b/docs/SentEmailsControllerApi.md new file mode 100644 index 00000000..0ff6fbea --- /dev/null +++ b/docs/SentEmailsControllerApi.md @@ -0,0 +1,1598 @@ +# mailslurp_netstandard_2x.Api.SentEmailsControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**DeleteAllSentEmails**](SentEmailsControllerApi#deleteallsentemails) | **DELETE** /sent | Delete all sent email receipts | +| [**DeleteSentEmail**](SentEmailsControllerApi#deletesentemail) | **DELETE** /sent/{id} | Delete sent email receipt | +| [**GetAllSentTrackingPixels**](SentEmailsControllerApi#getallsenttrackingpixels) | **GET** /sent/tracking-pixels | | +| [**GetRawSentEmailContents**](SentEmailsControllerApi#getrawsentemailcontents) | **GET** /sent/{emailId}/raw | Get raw sent email string. Returns unparsed raw SMTP message with headers and body. | +| [**GetRawSentEmailJson**](SentEmailsControllerApi#getrawsentemailjson) | **GET** /sent/{emailId}/raw/json | Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. | +| [**GetSentDeliveryStatus**](SentEmailsControllerApi#getsentdeliverystatus) | **GET** /sent/delivery-status/{deliveryId} | | +| [**GetSentDeliveryStatuses**](SentEmailsControllerApi#getsentdeliverystatuses) | **GET** /sent/delivery-status | | +| [**GetSentDeliveryStatusesBySentId**](SentEmailsControllerApi#getsentdeliverystatusesbysentid) | **GET** /sent/{sentId}/delivery-status | | +| [**GetSentEmail**](SentEmailsControllerApi#getsentemail) | **GET** /sent/{id} | Get sent email receipt | +| [**GetSentEmailHTMLContent**](SentEmailsControllerApi#getsentemailhtmlcontent) | **GET** /sent/{id}/html | Get sent email HTML content | +| [**GetSentEmailPreviewURLs**](SentEmailsControllerApi#getsentemailpreviewurls) | **GET** /sent/{id}/urls | Get sent email URL for viewing in browser or downloading | +| [**GetSentEmailTrackingPixels**](SentEmailsControllerApi#getsentemailtrackingpixels) | **GET** /sent/{id}/tracking-pixels | | +| [**GetSentEmails**](SentEmailsControllerApi#getsentemails) | **GET** /sent | Get all sent emails in paginated form | +| [**GetSentEmailsWithQueueResults**](SentEmailsControllerApi#getsentemailswithqueueresults) | **GET** /sent/queue-results | Get results of email sent with queues in paginated form | +| [**GetSentOrganizationEmails**](SentEmailsControllerApi#getsentorganizationemails) | **GET** /sent/organization | | +| [**WaitForDeliveryStatuses**](SentEmailsControllerApi#waitfordeliverystatuses) | **GET** /sent/delivery-status/wait-for | | + + +# **DeleteAllSentEmails** +> void DeleteAllSentEmails () + +Delete all sent email receipts + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAllSentEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + + try + { + // Delete all sent email receipts + apiInstance.DeleteAllSentEmails(); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.DeleteAllSentEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAllSentEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete all sent email receipts + apiInstance.DeleteAllSentEmailsWithHttpInfo(); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.DeleteAllSentEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteSentEmail** +> void DeleteSentEmail (Guid id) + +Delete sent email receipt + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteSentEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Delete sent email receipt + apiInstance.DeleteSentEmail(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.DeleteSentEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteSentEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete sent email receipt + apiInstance.DeleteSentEmailWithHttpInfo(id); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.DeleteSentEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllSentTrackingPixels** +> PageTrackingPixelProjection GetAllSentTrackingPixels (int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + + + +Get all sent email tracking pixels in paginated form + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllSentTrackingPixelsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var page = 0; // int? | Optional page index in sent email tracking pixel list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in sent email tracking pixel list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + PageTrackingPixelProjection result = apiInstance.GetAllSentTrackingPixels(page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetAllSentTrackingPixels: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllSentTrackingPixelsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetAllSentTrackingPixelsWithHttpInfo(page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetAllSentTrackingPixelsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in sent email tracking pixel list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in sent email tracking pixel list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageTrackingPixelProjection**](PageTrackingPixelProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetRawSentEmailContents** +> void GetRawSentEmailContents (Guid emailId) + +Get raw sent email string. Returns unparsed raw SMTP message with headers and body. + +Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetRawSentEmailContentsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + + try + { + // Get raw sent email string. Returns unparsed raw SMTP message with headers and body. + apiInstance.GetRawSentEmailContents(emailId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetRawSentEmailContents: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetRawSentEmailContentsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get raw sent email string. Returns unparsed raw SMTP message with headers and body. + apiInstance.GetRawSentEmailContentsWithHttpInfo(emailId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetRawSentEmailContentsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetRawSentEmailJson** +> RawEmailJson GetRawSentEmailJson (Guid emailId) + +Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. + +Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetRawSentEmailJsonExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var emailId = "emailId_example"; // Guid | ID of email + + try + { + // Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. + RawEmailJson result = apiInstance.GetRawSentEmailJson(emailId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetRawSentEmailJson: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetRawSentEmailJsonWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. + ApiResponse response = apiInstance.GetRawSentEmailJsonWithHttpInfo(emailId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetRawSentEmailJsonWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailId** | **Guid** | ID of email | | + +### Return type + +[**RawEmailJson**](RawEmailJson) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSentDeliveryStatus** +> DeliveryStatusDto GetSentDeliveryStatus (Guid deliveryId) + + + +Get a sent email delivery status + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSentDeliveryStatusExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var deliveryId = "deliveryId_example"; // Guid | + + try + { + DeliveryStatusDto result = apiInstance.GetSentDeliveryStatus(deliveryId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentDeliveryStatus: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSentDeliveryStatusWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetSentDeliveryStatusWithHttpInfo(deliveryId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentDeliveryStatusWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **deliveryId** | **Guid** | | | + +### Return type + +[**DeliveryStatusDto**](DeliveryStatusDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSentDeliveryStatuses** +> PageDeliveryStatus GetSentDeliveryStatuses (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + + + +Get all sent email delivery statuses + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSentDeliveryStatusesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var page = 0; // int? | Optional page index in delivery status list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in delivery status list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + PageDeliveryStatus result = apiInstance.GetSentDeliveryStatuses(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentDeliveryStatuses: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSentDeliveryStatusesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetSentDeliveryStatusesWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentDeliveryStatusesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in delivery status list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in delivery status list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageDeliveryStatus**](PageDeliveryStatus) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSentDeliveryStatusesBySentId** +> PageDeliveryStatus GetSentDeliveryStatusesBySentId (Guid sentId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + + + +Get all sent email delivery statuses + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSentDeliveryStatusesBySentIdExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var sentId = "sentId_example"; // Guid | ID of the sent email that you want to get the delivery status of. Sent email object is returned when sending an email + var page = 0; // int? | Optional page index in delivery status list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in delivery status list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + PageDeliveryStatus result = apiInstance.GetSentDeliveryStatusesBySentId(sentId, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentDeliveryStatusesBySentId: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSentDeliveryStatusesBySentIdWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetSentDeliveryStatusesBySentIdWithHttpInfo(sentId, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentDeliveryStatusesBySentIdWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **sentId** | **Guid** | ID of the sent email that you want to get the delivery status of. Sent email object is returned when sending an email | | +| **page** | **int?** | Optional page index in delivery status list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in delivery status list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageDeliveryStatus**](PageDeliveryStatus) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSentEmail** +> SentEmailDto GetSentEmail (Guid id) + +Get sent email receipt + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSentEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Get sent email receipt + SentEmailDto result = apiInstance.GetSentEmail(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSentEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get sent email receipt + ApiResponse response = apiInstance.GetSentEmailWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +[**SentEmailDto**](SentEmailDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSentEmailHTMLContent** +> string GetSentEmailHTMLContent (Guid id) + +Get sent email HTML content + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSentEmailHTMLContentExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Get sent email HTML content + string result = apiInstance.GetSentEmailHTMLContent(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmailHTMLContent: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSentEmailHTMLContentWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get sent email HTML content + ApiResponse response = apiInstance.GetSentEmailHTMLContentWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmailHTMLContentWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +**string** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/html + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSentEmailPreviewURLs** +> EmailPreviewUrls GetSentEmailPreviewURLs (Guid id) + +Get sent email URL for viewing in browser or downloading + +Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSentEmailPreviewURLsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Get sent email URL for viewing in browser or downloading + EmailPreviewUrls result = apiInstance.GetSentEmailPreviewURLs(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmailPreviewURLs: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSentEmailPreviewURLsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get sent email URL for viewing in browser or downloading + ApiResponse response = apiInstance.GetSentEmailPreviewURLsWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmailPreviewURLsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +[**EmailPreviewUrls**](EmailPreviewUrls) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSentEmailTrackingPixels** +> PageTrackingPixelProjection GetSentEmailTrackingPixels (Guid id, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + + + +Get all tracking pixels for a sent email in paginated form + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSentEmailTrackingPixelsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var id = "id_example"; // Guid | + var page = 0; // int? | Optional page index in sent email tracking pixel list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in sent email tracking pixel list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + PageTrackingPixelProjection result = apiInstance.GetSentEmailTrackingPixels(id, page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmailTrackingPixels: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSentEmailTrackingPixelsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetSentEmailTrackingPixelsWithHttpInfo(id, page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmailTrackingPixelsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | +| **page** | **int?** | Optional page index in sent email tracking pixel list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in sent email tracking pixel list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageTrackingPixelProjection**](PageTrackingPixelProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSentEmails** +> PageSentEmailProjection GetSentEmails (Guid? inboxId = null, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +Get all sent emails in paginated form + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSentEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Optional inboxId to filter sender of sent emails by (optional) + var page = 0; // int? | Optional page index in inbox sent email list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox sent email list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get all sent emails in paginated form + PageSentEmailProjection result = apiInstance.GetSentEmails(inboxId, page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSentEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all sent emails in paginated form + ApiResponse response = apiInstance.GetSentEmailsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Optional inboxId to filter sender of sent emails by | [optional] | +| **page** | **int?** | Optional page index in inbox sent email list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox sent email list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageSentEmailProjection**](PageSentEmailProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSentEmailsWithQueueResults** +> PageSentEmailWithQueueProjection GetSentEmailsWithQueueResults (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get results of email sent with queues in paginated form + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSentEmailsWithQueueResultsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var page = 0; // int? | Optional page index in inbox sent email list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in inbox sent email list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get results of email sent with queues in paginated form + PageSentEmailWithQueueProjection result = apiInstance.GetSentEmailsWithQueueResults(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmailsWithQueueResults: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSentEmailsWithQueueResultsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get results of email sent with queues in paginated form + ApiResponse response = apiInstance.GetSentEmailsWithQueueResultsWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentEmailsWithQueueResultsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in inbox sent email list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in inbox sent email list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageSentEmailWithQueueProjection**](PageSentEmailWithQueueProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSentOrganizationEmails** +> PageSentEmailProjection GetSentOrganizationEmails (Guid? inboxId = null, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + + + +Get all sent organization emails in paginated form + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSentOrganizationEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Optional inboxId to filter sender of sent emails by (optional) + var page = 0; // int? | Optional page index in sent email list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in sent email list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + PageSentEmailProjection result = apiInstance.GetSentOrganizationEmails(inboxId, page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentOrganizationEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSentOrganizationEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetSentOrganizationEmailsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.GetSentOrganizationEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Optional inboxId to filter sender of sent emails by | [optional] | +| **page** | **int?** | Optional page index in sent email list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in sent email list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageSentEmailProjection**](PageSentEmailProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **WaitForDeliveryStatuses** +> DeliveryStatusDto WaitForDeliveryStatuses (Guid? sentId = null, Guid? inboxId = null, long? timeout = null, int? index = null, DateTime? since = null, DateTime? before = null) + + + +Wait for delivery statuses + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class WaitForDeliveryStatusesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SentEmailsControllerApi(config); + var sentId = "sentId_example"; // Guid? | Optional sent email ID filter (optional) + var inboxId = "inboxId_example"; // Guid? | Optional inbox ID filter (optional) + var timeout = 789L; // long? | Optional timeout milliseconds (optional) + var index = 56; // int? | Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index=1 (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + DeliveryStatusDto result = apiInstance.WaitForDeliveryStatuses(sentId, inboxId, timeout, index, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SentEmailsControllerApi.WaitForDeliveryStatuses: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the WaitForDeliveryStatusesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.WaitForDeliveryStatusesWithHttpInfo(sentId, inboxId, timeout, index, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SentEmailsControllerApi.WaitForDeliveryStatusesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **sentId** | **Guid?** | Optional sent email ID filter | [optional] | +| **inboxId** | **Guid?** | Optional inbox ID filter | [optional] | +| **timeout** | **long?** | Optional timeout milliseconds | [optional] | +| **index** | **int?** | Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index=1 | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**DeliveryStatusDto**](DeliveryStatusDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/SentSmsDto.md b/docs/SentSmsDto.md new file mode 100644 index 00000000..dafcde00 --- /dev/null +++ b/docs/SentSmsDto.md @@ -0,0 +1,20 @@ +# mailslurp_netstandard_2x.Model.SentSmsDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**PhoneNumber** | **Guid** | | +**FromNumber** | **string** | | +**ToNumber** | **string** | | +**Body** | **string** | | +**Sid** | **string** | | +**ReplyToSid** | **string** | | +**ReplyToId** | **Guid** | | +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ServerEndpoints.md b/docs/ServerEndpoints.md new file mode 100644 index 00000000..3ecc94e9 --- /dev/null +++ b/docs/ServerEndpoints.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.ServerEndpoints + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | **string** | | +**Port** | **int** | | +**Tls** | **bool** | | +**AltPorts** | **List<int>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SetInboxFavouritedOptions.md b/docs/SetInboxFavouritedOptions.md new file mode 100644 index 00000000..b82f02a0 --- /dev/null +++ b/docs/SetInboxFavouritedOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.SetInboxFavouritedOptions +Options for setting inbox favourite state + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**State** | **bool** | Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SimpleSendEmailOptions.md b/docs/SimpleSendEmailOptions.md new file mode 100644 index 00000000..c73b4040 --- /dev/null +++ b/docs/SimpleSendEmailOptions.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.SimpleSendEmailOptions +Simplified send email options + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SenderId** | **Guid?** | ID of inbox to send from. If null an inbox will be created for sending | [optional] +**To** | **string** | Email address to send to | +**Body** | **string** | Body of the email message. Supports HTML | [optional] +**Subject** | **string** | Subject line of the email | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SmsControllerApi.md b/docs/SmsControllerApi.md new file mode 100644 index 00000000..48d6e44a --- /dev/null +++ b/docs/SmsControllerApi.md @@ -0,0 +1,779 @@ +# mailslurp_netstandard_2x.Api.SmsControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**DeleteSmsMessage**](SmsControllerApi#deletesmsmessage) | **DELETE** /sms/{smsId} | Delete SMS message. | +| [**DeleteSmsMessages**](SmsControllerApi#deletesmsmessages) | **DELETE** /sms | Delete all SMS messages | +| [**GetReplyForSmsMessage**](SmsControllerApi#getreplyforsmsmessage) | **GET** /sms/{smsId}/reply | Get reply for an SMS message | +| [**GetSmsCount**](SmsControllerApi#getsmscount) | **GET** /sms/count | Get SMS count | +| [**GetSmsMessage**](SmsControllerApi#getsmsmessage) | **GET** /sms/{smsId} | Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. | +| [**GetSmsMessagesPaginated**](SmsControllerApi#getsmsmessagespaginated) | **GET** /sms | Get all SMS messages in all phone numbers in paginated form. . | +| [**GetUnreadSmsCount**](SmsControllerApi#getunreadsmscount) | **GET** /sms/unreadCount | Get unread SMS count | +| [**ReplyToSmsMessage**](SmsControllerApi#replytosmsmessage) | **POST** /sms/{smsId}/reply | Send a reply to a received SMS message. Replies are sent from the receiving number. | + + +# **DeleteSmsMessage** +> void DeleteSmsMessage (Guid smsId) + +Delete SMS message. + +Delete an SMS message + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteSmsMessageExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SmsControllerApi(config); + var smsId = "smsId_example"; // Guid | + + try + { + // Delete SMS message. + apiInstance.DeleteSmsMessage(smsId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SmsControllerApi.DeleteSmsMessage: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteSmsMessageWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete SMS message. + apiInstance.DeleteSmsMessageWithHttpInfo(smsId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SmsControllerApi.DeleteSmsMessageWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **smsId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteSmsMessages** +> void DeleteSmsMessages (Guid? phoneNumberId = null) + +Delete all SMS messages + +Delete all SMS messages or all messages for a given phone number + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteSmsMessagesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SmsControllerApi(config); + var phoneNumberId = "phoneNumberId_example"; // Guid? | (optional) + + try + { + // Delete all SMS messages + apiInstance.DeleteSmsMessages(phoneNumberId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SmsControllerApi.DeleteSmsMessages: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteSmsMessagesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete all SMS messages + apiInstance.DeleteSmsMessagesWithHttpInfo(phoneNumberId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SmsControllerApi.DeleteSmsMessagesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **phoneNumberId** | **Guid?** | | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetReplyForSmsMessage** +> ReplyForSms GetReplyForSmsMessage (Guid smsId) + +Get reply for an SMS message + +Get reply for an SMS message. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetReplyForSmsMessageExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SmsControllerApi(config); + var smsId = "smsId_example"; // Guid | + + try + { + // Get reply for an SMS message + ReplyForSms result = apiInstance.GetReplyForSmsMessage(smsId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SmsControllerApi.GetReplyForSmsMessage: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetReplyForSmsMessageWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get reply for an SMS message + ApiResponse response = apiInstance.GetReplyForSmsMessageWithHttpInfo(smsId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SmsControllerApi.GetReplyForSmsMessageWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **smsId** | **Guid** | | | + +### Return type + +[**ReplyForSms**](ReplyForSms) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSmsCount** +> CountDto GetSmsCount () + +Get SMS count + +Get number of SMS + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSmsCountExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SmsControllerApi(config); + + try + { + // Get SMS count + CountDto result = apiInstance.GetSmsCount(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SmsControllerApi.GetSmsCount: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSmsCountWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get SMS count + ApiResponse response = apiInstance.GetSmsCountWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SmsControllerApi.GetSmsCountWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**CountDto**](CountDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSmsMessage** +> SmsDto GetSmsMessage (Guid smsId) + +Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. + +Returns a SMS summary object with content. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSmsMessageExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SmsControllerApi(config); + var smsId = "smsId_example"; // Guid | + + try + { + // Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. + SmsDto result = apiInstance.GetSmsMessage(smsId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SmsControllerApi.GetSmsMessage: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSmsMessageWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. + ApiResponse response = apiInstance.GetSmsMessageWithHttpInfo(smsId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SmsControllerApi.GetSmsMessageWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **smsId** | **Guid** | | | + +### Return type + +[**SmsDto**](SmsDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetSmsMessagesPaginated** +> PageSmsProjection GetSmsMessagesPaginated (Guid? phoneNumber = null, int? page = null, int? size = null, string sort = null, bool? unreadOnly = null, DateTime? since = null, DateTime? before = null) + +Get all SMS messages in all phone numbers in paginated form. . + +By default returns all SMS messages across all phone numbers sorted by ascending created at date. Responses are paginated. You can restrict results to a list of phone number IDs. You can also filter out read messages + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetSmsMessagesPaginatedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SmsControllerApi(config); + var phoneNumber = "phoneNumber_example"; // Guid? | Optional receiving phone number to filter SMS messages for (optional) + var page = 0; // int? | Optional page index in SMS list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var unreadOnly = false; // bool? | Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly (optional) (default to false) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter SMSs received after given date time (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Optional filter SMSs received before given date time (optional) + + try + { + // Get all SMS messages in all phone numbers in paginated form. . + PageSmsProjection result = apiInstance.GetSmsMessagesPaginated(phoneNumber, page, size, sort, unreadOnly, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SmsControllerApi.GetSmsMessagesPaginated: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetSmsMessagesPaginatedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all SMS messages in all phone numbers in paginated form. . + ApiResponse response = apiInstance.GetSmsMessagesPaginatedWithHttpInfo(phoneNumber, page, size, sort, unreadOnly, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SmsControllerApi.GetSmsMessagesPaginatedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **phoneNumber** | **Guid?** | Optional receiving phone number to filter SMS messages for | [optional] | +| **page** | **int?** | Optional page index in SMS list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **unreadOnly** | **bool?** | Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly | [optional] [default to false] | +| **since** | **DateTime?** | Optional filter SMSs received after given date time | [optional] | +| **before** | **DateTime?** | Optional filter SMSs received before given date time | [optional] | + +### Return type + +[**PageSmsProjection**](PageSmsProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetUnreadSmsCount** +> UnreadCount GetUnreadSmsCount () + +Get unread SMS count + +Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetUnreadSmsCountExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SmsControllerApi(config); + + try + { + // Get unread SMS count + UnreadCount result = apiInstance.GetUnreadSmsCount(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SmsControllerApi.GetUnreadSmsCount: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetUnreadSmsCountWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get unread SMS count + ApiResponse response = apiInstance.GetUnreadSmsCountWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SmsControllerApi.GetUnreadSmsCountWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**UnreadCount**](UnreadCount) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **ReplyToSmsMessage** +> SentSmsDto ReplyToSmsMessage (Guid smsId, SmsReplyOptions smsReplyOptions) + +Send a reply to a received SMS message. Replies are sent from the receiving number. + +Reply to an SMS message. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class ReplyToSmsMessageExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new SmsControllerApi(config); + var smsId = "smsId_example"; // Guid | + var smsReplyOptions = new SmsReplyOptions(); // SmsReplyOptions | + + try + { + // Send a reply to a received SMS message. Replies are sent from the receiving number. + SentSmsDto result = apiInstance.ReplyToSmsMessage(smsId, smsReplyOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SmsControllerApi.ReplyToSmsMessage: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ReplyToSmsMessageWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send a reply to a received SMS message. Replies are sent from the receiving number. + ApiResponse response = apiInstance.ReplyToSmsMessageWithHttpInfo(smsId, smsReplyOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SmsControllerApi.ReplyToSmsMessageWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **smsId** | **Guid** | | | +| **smsReplyOptions** | [**SmsReplyOptions**](SmsReplyOptions) | | | + +### Return type + +[**SentSmsDto**](SentSmsDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/SmsDto.md b/docs/SmsDto.md new file mode 100644 index 00000000..e46d16e7 --- /dev/null +++ b/docs/SmsDto.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.SmsDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**PhoneNumber** | **Guid** | | +**FromNumber** | **string** | | +**Body** | **string** | | +**Read** | **bool** | | +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SmsMatchOption.md b/docs/SmsMatchOption.md new file mode 100644 index 00000000..26200961 --- /dev/null +++ b/docs/SmsMatchOption.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.SmsMatchOption +Options for matching SMS messages in a phone number. Each match option object contains a `field`, `should` and `value` property. Together they form logical conditions such as `BODY` should `CONTAIN` value. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Field** | **string** | Fields of an SMS object that can be used to filter results | +**Should** | **string** | How the value of the email field specified should be compared to the value given in the match options. | +**Value** | **string** | The value you wish to compare with the value of the field specified using the `should` value passed. For example `BODY` should `CONTAIN` a value passed. | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SmsPreview.md b/docs/SmsPreview.md new file mode 100644 index 00000000..02c97592 --- /dev/null +++ b/docs/SmsPreview.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.SmsPreview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**UserId** | **Guid** | | +**Body** | **string** | | +**PhoneNumber** | **Guid** | | +**FromNumber** | **string** | | +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SmsProjection.md b/docs/SmsProjection.md new file mode 100644 index 00000000..6758bdef --- /dev/null +++ b/docs/SmsProjection.md @@ -0,0 +1,17 @@ +# mailslurp_netstandard_2x.Model.SmsProjection +SMS projection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **Guid** | | +**PhoneNumber** | **Guid** | | +**FromNumber** | **string** | | +**Read** | **bool** | | +**Body** | **string** | | +**CreatedAt** | **DateTime** | | +**Id** | **Guid** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SmsReplyOptions.md b/docs/SmsReplyOptions.md new file mode 100644 index 00000000..5e91f482 --- /dev/null +++ b/docs/SmsReplyOptions.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.SmsReplyOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Body** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SmtpAccessDetails.md b/docs/SmtpAccessDetails.md new file mode 100644 index 00000000..fecd6ea7 --- /dev/null +++ b/docs/SmtpAccessDetails.md @@ -0,0 +1,19 @@ +# mailslurp_netstandard_2x.Model.SmtpAccessDetails +Access details for inbox using SMTP + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SecureSmtpServerHost** | **string** | Secure TLS SMTP server host domain | +**SecureSmtpServerPort** | **int** | Secure TLS SMTP server host port | +**SecureSmtpUsername** | **string** | Secure TLS SMTP username for login | +**SecureSmtpPassword** | **string** | Secure TLS SMTP password for login | +**SmtpServerHost** | **string** | SMTP server host domain | +**SmtpServerPort** | **int** | SMTP server host port | +**SmtpUsername** | **string** | SMTP username for login | +**SmtpPassword** | **string** | SMTP password for login | +**MailFromDomain** | **string** | Mail from domain or SMTP HELO value | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SortObject.md b/docs/SortObject.md new file mode 100644 index 00000000..e2f76e61 --- /dev/null +++ b/docs/SortObject.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.SortObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sorted** | **bool** | | [optional] +**Unsorted** | **bool** | | [optional] +**Empty** | **bool** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/SpellingIssue.md b/docs/SpellingIssue.md new file mode 100644 index 00000000..e2a7a424 --- /dev/null +++ b/docs/SpellingIssue.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.SpellingIssue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | **string** | | +**Suggestion** | **string** | | +**Severity** | **string** | | +**Message** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TemplateControllerApi.md b/docs/TemplateControllerApi.md new file mode 100644 index 00000000..67af2a90 --- /dev/null +++ b/docs/TemplateControllerApi.md @@ -0,0 +1,784 @@ +# mailslurp_netstandard_2x.Api.TemplateControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateTemplate**](TemplateControllerApi#createtemplate) | **POST** /templates | Create a Template | +| [**DeleteTemplate**](TemplateControllerApi#deletetemplate) | **DELETE** /templates/{templateId} | Delete email template | +| [**GetAllTemplates**](TemplateControllerApi#getalltemplates) | **GET** /templates/paginated | List templates | +| [**GetTemplate**](TemplateControllerApi#gettemplate) | **GET** /templates/{templateId} | Get template | +| [**GetTemplatePreviewHtml**](TemplateControllerApi#gettemplatepreviewhtml) | **GET** /templates/{templateId}/preview/html | Get template preview HTML | +| [**GetTemplatePreviewJson**](TemplateControllerApi#gettemplatepreviewjson) | **GET** /templates/{templateId}/preview/json | Get template preview Json | +| [**GetTemplates**](TemplateControllerApi#gettemplates) | **GET** /templates | List templates | +| [**UpdateTemplate**](TemplateControllerApi#updatetemplate) | **PUT** /templates/{templateId} | Update template | + + +# **CreateTemplate** +> TemplateDto CreateTemplate (CreateTemplateOptions createTemplateOptions) + +Create a Template + +Create an email template with variables for use with templated transactional emails. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateTemplateExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new TemplateControllerApi(config); + var createTemplateOptions = new CreateTemplateOptions(); // CreateTemplateOptions | + + try + { + // Create a Template + TemplateDto result = apiInstance.CreateTemplate(createTemplateOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplateControllerApi.CreateTemplate: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateTemplateWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a Template + ApiResponse response = apiInstance.CreateTemplateWithHttpInfo(createTemplateOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TemplateControllerApi.CreateTemplateWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createTemplateOptions** | [**CreateTemplateOptions**](CreateTemplateOptions) | | | + +### Return type + +[**TemplateDto**](TemplateDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteTemplate** +> void DeleteTemplate (Guid templateId) + +Delete email template + +Delete template + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteTemplateExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new TemplateControllerApi(config); + var templateId = "templateId_example"; // Guid | Template ID + + try + { + // Delete email template + apiInstance.DeleteTemplate(templateId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplateControllerApi.DeleteTemplate: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteTemplateWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete email template + apiInstance.DeleteTemplateWithHttpInfo(templateId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TemplateControllerApi.DeleteTemplateWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **templateId** | **Guid** | Template ID | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllTemplates** +> PageTemplateProjection GetAllTemplates (int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +List templates + +Get all templates in paginated format + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllTemplatesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new TemplateControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // List templates + PageTemplateProjection result = apiInstance.GetAllTemplates(page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplateControllerApi.GetAllTemplates: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllTemplatesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List templates + ApiResponse response = apiInstance.GetAllTemplatesWithHttpInfo(page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TemplateControllerApi.GetAllTemplatesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageTemplateProjection**](PageTemplateProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTemplate** +> TemplateDto GetTemplate (Guid templateId) + +Get template + +Get email template + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTemplateExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new TemplateControllerApi(config); + var templateId = "templateId_example"; // Guid | Template ID + + try + { + // Get template + TemplateDto result = apiInstance.GetTemplate(templateId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplateControllerApi.GetTemplate: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTemplateWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get template + ApiResponse response = apiInstance.GetTemplateWithHttpInfo(templateId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TemplateControllerApi.GetTemplateWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **templateId** | **Guid** | Template ID | | + +### Return type + +[**TemplateDto**](TemplateDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTemplatePreviewHtml** +> string GetTemplatePreviewHtml (Guid templateId) + +Get template preview HTML + +Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTemplatePreviewHtmlExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new TemplateControllerApi(config); + var templateId = "templateId_example"; // Guid | Template ID + + try + { + // Get template preview HTML + string result = apiInstance.GetTemplatePreviewHtml(templateId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplateControllerApi.GetTemplatePreviewHtml: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTemplatePreviewHtmlWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get template preview HTML + ApiResponse response = apiInstance.GetTemplatePreviewHtmlWithHttpInfo(templateId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TemplateControllerApi.GetTemplatePreviewHtmlWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **templateId** | **Guid** | Template ID | | + +### Return type + +**string** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/html;charset=utf-8, text/html + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTemplatePreviewJson** +> TemplatePreview GetTemplatePreviewJson (Guid templateId) + +Get template preview Json + +Get email template preview with passed template variables in JSON format. Pass template variables as query params. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTemplatePreviewJsonExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new TemplateControllerApi(config); + var templateId = "templateId_example"; // Guid | Template ID + + try + { + // Get template preview Json + TemplatePreview result = apiInstance.GetTemplatePreviewJson(templateId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplateControllerApi.GetTemplatePreviewJson: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTemplatePreviewJsonWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get template preview Json + ApiResponse response = apiInstance.GetTemplatePreviewJsonWithHttpInfo(templateId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TemplateControllerApi.GetTemplatePreviewJsonWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **templateId** | **Guid** | Template ID | | + +### Return type + +[**TemplatePreview**](TemplatePreview) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTemplates** +> List<TemplateProjection> GetTemplates () + +List templates + +Get all templates + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTemplatesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new TemplateControllerApi(config); + + try + { + // List templates + List result = apiInstance.GetTemplates(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplateControllerApi.GetTemplates: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTemplatesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List templates + ApiResponse> response = apiInstance.GetTemplatesWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TemplateControllerApi.GetTemplatesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**List<TemplateProjection>**](TemplateProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UpdateTemplate** +> TemplateDto UpdateTemplate (Guid templateId, CreateTemplateOptions createTemplateOptions) + +Update template + +Update email template + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UpdateTemplateExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new TemplateControllerApi(config); + var templateId = "templateId_example"; // Guid | Template ID + var createTemplateOptions = new CreateTemplateOptions(); // CreateTemplateOptions | + + try + { + // Update template + TemplateDto result = apiInstance.UpdateTemplate(templateId, createTemplateOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplateControllerApi.UpdateTemplate: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UpdateTemplateWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Update template + ApiResponse response = apiInstance.UpdateTemplateWithHttpInfo(templateId, createTemplateOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TemplateControllerApi.UpdateTemplateWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **templateId** | **Guid** | Template ID | | +| **createTemplateOptions** | [**CreateTemplateOptions**](CreateTemplateOptions) | | | + +### Return type + +[**TemplateDto**](TemplateDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/TemplateDto.md b/docs/TemplateDto.md new file mode 100644 index 00000000..663a355a --- /dev/null +++ b/docs/TemplateDto.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.TemplateDto +Email template + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | ID of template | +**Name** | **string** | Template name | +**Variables** | [**List<TemplateVariable>**](TemplateVariable) | Variables available in template that can be replaced with values | +**Content** | **string** | Content of the template | +**CreatedAt** | **DateTime** | Created at time | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TemplatePreview.md b/docs/TemplatePreview.md new file mode 100644 index 00000000..5cca6741 --- /dev/null +++ b/docs/TemplatePreview.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.TemplatePreview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Preview** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TemplateProjection.md b/docs/TemplateProjection.md new file mode 100644 index 00000000..4b67f591 --- /dev/null +++ b/docs/TemplateProjection.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.TemplateProjection +Email template data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Variables** | **List<string>** | | +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | +**Name** | **string** | | +**Id** | **Guid** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TemplateVariable.md b/docs/TemplateVariable.md new file mode 100644 index 00000000..672e1464 --- /dev/null +++ b/docs/TemplateVariable.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.TemplateVariable +Variable for use with email template + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of variable. This can be used in a template as {{name}} | +**VariableType** | **string** | The type of variable | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TestInboxRulesetReceivingOptions.md b/docs/TestInboxRulesetReceivingOptions.md new file mode 100644 index 00000000..d81f81d2 --- /dev/null +++ b/docs/TestInboxRulesetReceivingOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.TestInboxRulesetReceivingOptions +Test options for inbox ruleset receiving test + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxId** | **Guid** | | +**FromSender** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TestInboxRulesetReceivingResult.md b/docs/TestInboxRulesetReceivingResult.md new file mode 100644 index 00000000..a43f9e0b --- /dev/null +++ b/docs/TestInboxRulesetReceivingResult.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.TestInboxRulesetReceivingResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CanReceive** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TestInboxRulesetSendingOptions.md b/docs/TestInboxRulesetSendingOptions.md new file mode 100644 index 00000000..e8ae0b19 --- /dev/null +++ b/docs/TestInboxRulesetSendingOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.TestInboxRulesetSendingOptions +Test options for inbox ruleset sending test + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxId** | **Guid** | | +**Recipient** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TestInboxRulesetSendingResult.md b/docs/TestInboxRulesetSendingResult.md new file mode 100644 index 00000000..4db20504 --- /dev/null +++ b/docs/TestInboxRulesetSendingResult.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.TestInboxRulesetSendingResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CanSend** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TestNewInboxForwarderOptions.md b/docs/TestNewInboxForwarderOptions.md new file mode 100644 index 00000000..3b606bed --- /dev/null +++ b/docs/TestNewInboxForwarderOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.TestNewInboxForwarderOptions +Options for testing new inbox forwarder rules + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxForwarderTestOptions** | [**InboxForwarderTestOptions**](InboxForwarderTestOptions) | | +**CreateInboxForwarderOptions** | [**CreateInboxForwarderOptions**](CreateInboxForwarderOptions) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TestNewInboxRulesetOptions.md b/docs/TestNewInboxRulesetOptions.md new file mode 100644 index 00000000..b14fcb08 --- /dev/null +++ b/docs/TestNewInboxRulesetOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.TestNewInboxRulesetOptions +Test inbox ruleset options + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxRulesetTestOptions** | [**InboxRulesetTestOptions**](InboxRulesetTestOptions) | | +**CreateInboxRulesetOptions** | [**CreateInboxRulesetOptions**](CreateInboxRulesetOptions) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TestPhoneNumberOptions.md b/docs/TestPhoneNumberOptions.md new file mode 100644 index 00000000..f0253df6 --- /dev/null +++ b/docs/TestPhoneNumberOptions.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.TestPhoneNumberOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ThreadProjection.md b/docs/ThreadProjection.md new file mode 100644 index 00000000..13540ab4 --- /dev/null +++ b/docs/ThreadProjection.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.ThreadProjection +A thread is a message thread created for a message received by an alias + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxId** | **Guid** | Inbox ID | +**UserId** | **Guid** | User ID | +**To** | **List<string>** | To recipients | +**Bcc** | **List<string>** | BCC recipients | [optional] +**Cc** | **List<string>** | CC recipients | [optional] +**AliasId** | **Guid** | Alias ID | +**CreatedAt** | **DateTime** | Created at DateTime | +**UpdatedAt** | **DateTime** | Updated at DateTime | +**Subject** | **string** | Thread subject | [optional] +**Name** | **string** | Name of thread | [optional] +**Id** | **Guid** | ID of email thread | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ToolsControllerApi.md b/docs/ToolsControllerApi.md new file mode 100644 index 00000000..058ccacb --- /dev/null +++ b/docs/ToolsControllerApi.md @@ -0,0 +1,1140 @@ +# mailslurp_netstandard_2x.Api.ToolsControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CheckEmailFeaturesClientSupport**](ToolsControllerApi#checkemailfeaturesclientsupport) | **POST** /tools/check-email-features-client-support | Check email client support for email HTML and CSS features | +| [**CreateNewFakeEmailAddress**](ToolsControllerApi#createnewfakeemailaddress) | **POST** /tools/fake-email | Create a new email address using the fake email domains | +| [**GenerateBimiRecord**](ToolsControllerApi#generatebimirecord) | **POST** /tools/generate-bimi-record | Create a BIMI record policy | +| [**GenerateDmarcRecord**](ToolsControllerApi#generatedmarcrecord) | **POST** /tools/generate-dmarc-record | Create a DMARC record policy | +| [**GenerateMtaStsRecord**](ToolsControllerApi#generatemtastsrecord) | **POST** /tools/generate-mta-sts-record | Create a TLS reporting record policy | +| [**GenerateTlsReportingRecord**](ToolsControllerApi#generatetlsreportingrecord) | **POST** /tools/generate-tls-reporting-record | Create a TLS reporting record policy | +| [**GetFakeEmailById**](ToolsControllerApi#getfakeemailbyid) | **GET** /tools/fake-email | | +| [**GetFakeEmailsForAddress**](ToolsControllerApi#getfakeemailsforaddress) | **GET** /tools/fake-emails | | +| [**LookupBimiDomain**](ToolsControllerApi#lookupbimidomain) | **POST** /tools/lookup-bimi-domain | Lookup a BIMI record policy | +| [**LookupDmarcDomain**](ToolsControllerApi#lookupdmarcdomain) | **POST** /tools/lookup-dmarc-domain | Lookup a DMARC record policy | +| [**LookupMtaStsDomain**](ToolsControllerApi#lookupmtastsdomain) | **POST** /tools/lookup-mta-sts-domain | Lookup a MTA-STS domain policy | +| [**LookupTlsReportingDomain**](ToolsControllerApi#lookuptlsreportingdomain) | **POST** /tools/lookup-tls-reporting-domain | Lookup a TLS reporting domain policy | + + +# **CheckEmailFeaturesClientSupport** +> CheckEmailFeaturesClientSupportResults CheckEmailFeaturesClientSupport (CheckEmailFeaturesClientSupportOptions checkEmailFeaturesClientSupportOptions) + +Check email client support for email HTML and CSS features + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CheckEmailFeaturesClientSupportExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + var checkEmailFeaturesClientSupportOptions = new CheckEmailFeaturesClientSupportOptions(); // CheckEmailFeaturesClientSupportOptions | + + try + { + // Check email client support for email HTML and CSS features + CheckEmailFeaturesClientSupportResults result = apiInstance.CheckEmailFeaturesClientSupport(checkEmailFeaturesClientSupportOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.CheckEmailFeaturesClientSupport: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CheckEmailFeaturesClientSupportWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Check email client support for email HTML and CSS features + ApiResponse response = apiInstance.CheckEmailFeaturesClientSupportWithHttpInfo(checkEmailFeaturesClientSupportOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.CheckEmailFeaturesClientSupportWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **checkEmailFeaturesClientSupportOptions** | [**CheckEmailFeaturesClientSupportOptions**](CheckEmailFeaturesClientSupportOptions) | | | + +### Return type + +[**CheckEmailFeaturesClientSupportResults**](CheckEmailFeaturesClientSupportResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateNewFakeEmailAddress** +> NewFakeEmailAddressResult CreateNewFakeEmailAddress () + +Create a new email address using the fake email domains + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateNewFakeEmailAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + + try + { + // Create a new email address using the fake email domains + NewFakeEmailAddressResult result = apiInstance.CreateNewFakeEmailAddress(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.CreateNewFakeEmailAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateNewFakeEmailAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a new email address using the fake email domains + ApiResponse response = apiInstance.CreateNewFakeEmailAddressWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.CreateNewFakeEmailAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**NewFakeEmailAddressResult**](NewFakeEmailAddressResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GenerateBimiRecord** +> GenerateBimiRecordResults GenerateBimiRecord (GenerateBimiRecordOptions generateBimiRecordOptions) + +Create a BIMI record policy + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GenerateBimiRecordExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + var generateBimiRecordOptions = new GenerateBimiRecordOptions(); // GenerateBimiRecordOptions | + + try + { + // Create a BIMI record policy + GenerateBimiRecordResults result = apiInstance.GenerateBimiRecord(generateBimiRecordOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.GenerateBimiRecord: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GenerateBimiRecordWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a BIMI record policy + ApiResponse response = apiInstance.GenerateBimiRecordWithHttpInfo(generateBimiRecordOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.GenerateBimiRecordWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **generateBimiRecordOptions** | [**GenerateBimiRecordOptions**](GenerateBimiRecordOptions) | | | + +### Return type + +[**GenerateBimiRecordResults**](GenerateBimiRecordResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GenerateDmarcRecord** +> GenerateDmarcRecordResults GenerateDmarcRecord (GenerateDmarcRecordOptions generateDmarcRecordOptions) + +Create a DMARC record policy + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GenerateDmarcRecordExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + var generateDmarcRecordOptions = new GenerateDmarcRecordOptions(); // GenerateDmarcRecordOptions | + + try + { + // Create a DMARC record policy + GenerateDmarcRecordResults result = apiInstance.GenerateDmarcRecord(generateDmarcRecordOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.GenerateDmarcRecord: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GenerateDmarcRecordWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a DMARC record policy + ApiResponse response = apiInstance.GenerateDmarcRecordWithHttpInfo(generateDmarcRecordOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.GenerateDmarcRecordWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **generateDmarcRecordOptions** | [**GenerateDmarcRecordOptions**](GenerateDmarcRecordOptions) | | | + +### Return type + +[**GenerateDmarcRecordResults**](GenerateDmarcRecordResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GenerateMtaStsRecord** +> GenerateMtaStsRecordResults GenerateMtaStsRecord (GenerateMtaStsRecordOptions generateMtaStsRecordOptions) + +Create a TLS reporting record policy + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GenerateMtaStsRecordExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + var generateMtaStsRecordOptions = new GenerateMtaStsRecordOptions(); // GenerateMtaStsRecordOptions | + + try + { + // Create a TLS reporting record policy + GenerateMtaStsRecordResults result = apiInstance.GenerateMtaStsRecord(generateMtaStsRecordOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.GenerateMtaStsRecord: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GenerateMtaStsRecordWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a TLS reporting record policy + ApiResponse response = apiInstance.GenerateMtaStsRecordWithHttpInfo(generateMtaStsRecordOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.GenerateMtaStsRecordWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **generateMtaStsRecordOptions** | [**GenerateMtaStsRecordOptions**](GenerateMtaStsRecordOptions) | | | + +### Return type + +[**GenerateMtaStsRecordResults**](GenerateMtaStsRecordResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GenerateTlsReportingRecord** +> GenerateTlsReportingRecordResults GenerateTlsReportingRecord (GenerateTlsReportingRecordOptions generateTlsReportingRecordOptions) + +Create a TLS reporting record policy + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GenerateTlsReportingRecordExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + var generateTlsReportingRecordOptions = new GenerateTlsReportingRecordOptions(); // GenerateTlsReportingRecordOptions | + + try + { + // Create a TLS reporting record policy + GenerateTlsReportingRecordResults result = apiInstance.GenerateTlsReportingRecord(generateTlsReportingRecordOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.GenerateTlsReportingRecord: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GenerateTlsReportingRecordWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a TLS reporting record policy + ApiResponse response = apiInstance.GenerateTlsReportingRecordWithHttpInfo(generateTlsReportingRecordOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.GenerateTlsReportingRecordWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **generateTlsReportingRecordOptions** | [**GenerateTlsReportingRecordOptions**](GenerateTlsReportingRecordOptions) | | | + +### Return type + +[**GenerateTlsReportingRecordResults**](GenerateTlsReportingRecordResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetFakeEmailById** +> FakeEmailResult GetFakeEmailById (Guid id) + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetFakeEmailByIdExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + var id = "id_example"; // Guid | + + try + { + FakeEmailResult result = apiInstance.GetFakeEmailById(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.GetFakeEmailById: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetFakeEmailByIdWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetFakeEmailByIdWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.GetFakeEmailByIdWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +[**FakeEmailResult**](FakeEmailResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetFakeEmailsForAddress** +> List<FakeEmailPreview> GetFakeEmailsForAddress (string emailAddress, int? page = null) + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetFakeEmailsForAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + var emailAddress = "emailAddress_example"; // string | + var page = 56; // int? | (optional) + + try + { + List result = apiInstance.GetFakeEmailsForAddress(emailAddress, page); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.GetFakeEmailsForAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetFakeEmailsForAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse> response = apiInstance.GetFakeEmailsForAddressWithHttpInfo(emailAddress, page); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.GetFakeEmailsForAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **emailAddress** | **string** | | | +| **page** | **int?** | | [optional] | + +### Return type + +[**List<FakeEmailPreview>**](FakeEmailPreview) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **LookupBimiDomain** +> LookupBimiDomainResults LookupBimiDomain (LookupBimiDomainOptions lookupBimiDomainOptions) + +Lookup a BIMI record policy + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class LookupBimiDomainExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + var lookupBimiDomainOptions = new LookupBimiDomainOptions(); // LookupBimiDomainOptions | + + try + { + // Lookup a BIMI record policy + LookupBimiDomainResults result = apiInstance.LookupBimiDomain(lookupBimiDomainOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.LookupBimiDomain: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the LookupBimiDomainWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Lookup a BIMI record policy + ApiResponse response = apiInstance.LookupBimiDomainWithHttpInfo(lookupBimiDomainOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.LookupBimiDomainWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **lookupBimiDomainOptions** | [**LookupBimiDomainOptions**](LookupBimiDomainOptions) | | | + +### Return type + +[**LookupBimiDomainResults**](LookupBimiDomainResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **LookupDmarcDomain** +> LookupDmarcDomainResults LookupDmarcDomain (LookupDmarcDomainOptions lookupDmarcDomainOptions) + +Lookup a DMARC record policy + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class LookupDmarcDomainExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + var lookupDmarcDomainOptions = new LookupDmarcDomainOptions(); // LookupDmarcDomainOptions | + + try + { + // Lookup a DMARC record policy + LookupDmarcDomainResults result = apiInstance.LookupDmarcDomain(lookupDmarcDomainOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.LookupDmarcDomain: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the LookupDmarcDomainWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Lookup a DMARC record policy + ApiResponse response = apiInstance.LookupDmarcDomainWithHttpInfo(lookupDmarcDomainOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.LookupDmarcDomainWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **lookupDmarcDomainOptions** | [**LookupDmarcDomainOptions**](LookupDmarcDomainOptions) | | | + +### Return type + +[**LookupDmarcDomainResults**](LookupDmarcDomainResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **LookupMtaStsDomain** +> LookupMtaStsDomainResults LookupMtaStsDomain (LookupMtaStsDomainOptions lookupMtaStsDomainOptions) + +Lookup a MTA-STS domain policy + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class LookupMtaStsDomainExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + var lookupMtaStsDomainOptions = new LookupMtaStsDomainOptions(); // LookupMtaStsDomainOptions | + + try + { + // Lookup a MTA-STS domain policy + LookupMtaStsDomainResults result = apiInstance.LookupMtaStsDomain(lookupMtaStsDomainOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.LookupMtaStsDomain: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the LookupMtaStsDomainWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Lookup a MTA-STS domain policy + ApiResponse response = apiInstance.LookupMtaStsDomainWithHttpInfo(lookupMtaStsDomainOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.LookupMtaStsDomainWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **lookupMtaStsDomainOptions** | [**LookupMtaStsDomainOptions**](LookupMtaStsDomainOptions) | | | + +### Return type + +[**LookupMtaStsDomainResults**](LookupMtaStsDomainResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **LookupTlsReportingDomain** +> LookupTlsReportingDomainResults LookupTlsReportingDomain (LookupTlsReportingDomainOptions lookupTlsReportingDomainOptions) + +Lookup a TLS reporting domain policy + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class LookupTlsReportingDomainExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new ToolsControllerApi(config); + var lookupTlsReportingDomainOptions = new LookupTlsReportingDomainOptions(); // LookupTlsReportingDomainOptions | + + try + { + // Lookup a TLS reporting domain policy + LookupTlsReportingDomainResults result = apiInstance.LookupTlsReportingDomain(lookupTlsReportingDomainOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ToolsControllerApi.LookupTlsReportingDomain: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the LookupTlsReportingDomainWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Lookup a TLS reporting domain policy + ApiResponse response = apiInstance.LookupTlsReportingDomainWithHttpInfo(lookupTlsReportingDomainOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ToolsControllerApi.LookupTlsReportingDomainWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **lookupTlsReportingDomainOptions** | [**LookupTlsReportingDomainOptions**](LookupTlsReportingDomainOptions) | | | + +### Return type + +[**LookupTlsReportingDomainResults**](LookupTlsReportingDomainResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/TrackingControllerApi.md b/docs/TrackingControllerApi.md new file mode 100644 index 00000000..c92e5504 --- /dev/null +++ b/docs/TrackingControllerApi.md @@ -0,0 +1,306 @@ +# mailslurp_netstandard_2x.Api.TrackingControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateTrackingPixel**](TrackingControllerApi#createtrackingpixel) | **POST** /tracking/pixels | Create tracking pixel | +| [**GetAllTrackingPixels**](TrackingControllerApi#getalltrackingpixels) | **GET** /tracking/pixels | Get tracking pixels | +| [**GetTrackingPixel**](TrackingControllerApi#gettrackingpixel) | **GET** /tracking/pixels/{id} | Get pixel | + + +# **CreateTrackingPixel** +> TrackingPixelDto CreateTrackingPixel (CreateTrackingPixelOptions createTrackingPixelOptions) + +Create tracking pixel + +Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateTrackingPixelExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new TrackingControllerApi(config); + var createTrackingPixelOptions = new CreateTrackingPixelOptions(); // CreateTrackingPixelOptions | + + try + { + // Create tracking pixel + TrackingPixelDto result = apiInstance.CreateTrackingPixel(createTrackingPixelOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TrackingControllerApi.CreateTrackingPixel: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateTrackingPixelWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create tracking pixel + ApiResponse response = apiInstance.CreateTrackingPixelWithHttpInfo(createTrackingPixelOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TrackingControllerApi.CreateTrackingPixelWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createTrackingPixelOptions** | [**CreateTrackingPixelOptions**](CreateTrackingPixelOptions) | | | + +### Return type + +[**TrackingPixelDto**](TrackingPixelDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllTrackingPixels** +> PageTrackingPixelProjection GetAllTrackingPixels (int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +Get tracking pixels + +List tracking pixels in paginated form + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllTrackingPixelsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new TrackingControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get tracking pixels + PageTrackingPixelProjection result = apiInstance.GetAllTrackingPixels(page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TrackingControllerApi.GetAllTrackingPixels: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllTrackingPixelsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get tracking pixels + ApiResponse response = apiInstance.GetAllTrackingPixelsWithHttpInfo(page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TrackingControllerApi.GetAllTrackingPixelsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageTrackingPixelProjection**](PageTrackingPixelProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTrackingPixel** +> TrackingPixelDto GetTrackingPixel (Guid id) + +Get pixel + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTrackingPixelExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new TrackingControllerApi(config); + var id = "id_example"; // Guid | + + try + { + // Get pixel + TrackingPixelDto result = apiInstance.GetTrackingPixel(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TrackingControllerApi.GetTrackingPixel: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTrackingPixelWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get pixel + ApiResponse response = apiInstance.GetTrackingPixelWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TrackingControllerApi.GetTrackingPixelWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | | | + +### Return type + +[**TrackingPixelDto**](TrackingPixelDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/TrackingPixelDto.md b/docs/TrackingPixelDto.md new file mode 100644 index 00000000..6a87f11c --- /dev/null +++ b/docs/TrackingPixelDto.md @@ -0,0 +1,19 @@ +# mailslurp_netstandard_2x.Model.TrackingPixelDto +Tracking pixel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**Seen** | **bool** | | +**Recipient** | **string** | | [optional] +**Html** | **string** | | +**Url** | **string** | | +**InboxId** | **Guid?** | | [optional] +**SentEmailId** | **Guid?** | | [optional] +**SeenAt** | **DateTime?** | | [optional] +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/TrackingPixelProjection.md b/docs/TrackingPixelProjection.md new file mode 100644 index 00000000..fc4e1c20 --- /dev/null +++ b/docs/TrackingPixelProjection.md @@ -0,0 +1,19 @@ +# mailslurp_netstandard_2x.Model.TrackingPixelProjection +Tracking pixel data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxId** | **Guid** | | [optional] +**UserId** | **Guid** | | +**SentEmailId** | **Guid** | | [optional] +**Recipient** | **string** | | [optional] +**Seen** | **bool** | | +**SeenAt** | **DateTime** | | [optional] +**CreatedAt** | **DateTime** | | +**Name** | **string** | | [optional] +**Id** | **Guid** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UnknownMissedEmailProjection.md b/docs/UnknownMissedEmailProjection.md new file mode 100644 index 00000000..3edd3b04 --- /dev/null +++ b/docs/UnknownMissedEmailProjection.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.UnknownMissedEmailProjection +Unknown missed email projection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | **List<string>** | | [optional] +**CreatedAt** | **DateTime** | | +**Subject** | **string** | | [optional] +**Id** | **Guid** | | +**From** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UnreadCount.md b/docs/UnreadCount.md new file mode 100644 index 00000000..1500454c --- /dev/null +++ b/docs/UnreadCount.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.UnreadCount +Number of unread entities + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **long** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UnseenErrorCountDto.md b/docs/UnseenErrorCountDto.md new file mode 100644 index 00000000..d42839a1 --- /dev/null +++ b/docs/UnseenErrorCountDto.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.UnseenErrorCountDto +Number of unseen errors + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **long** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UpdateAliasOptions.md b/docs/UpdateAliasOptions.md new file mode 100644 index 00000000..faa7b6a9 --- /dev/null +++ b/docs/UpdateAliasOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.UpdateAliasOptions +Update an email alias + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Optional name for alias | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UpdateDomainOptions.md b/docs/UpdateDomainOptions.md new file mode 100644 index 00000000..99888343 --- /dev/null +++ b/docs/UpdateDomainOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.UpdateDomainOptions +Options for creating a domain to use with MailSlurp. You must have ownership access to this domain in order to verify it. Domains will not functionally currently until the domain has been verified. See https://www.mailslurp.com/guides/custom-domains for help. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatchAllInboxId** | **Guid?** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UpdateGroupContacts.md b/docs/UpdateGroupContacts.md new file mode 100644 index 00000000..2c1162bd --- /dev/null +++ b/docs/UpdateGroupContacts.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.UpdateGroupContacts +Update group contacts options. Pass a list of contact ids to replace existing group contacts. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContactIds** | **List<Guid>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UpdateImapAccessOptions.md b/docs/UpdateImapAccessOptions.md new file mode 100644 index 00000000..c1a0b1e2 --- /dev/null +++ b/docs/UpdateImapAccessOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.UpdateImapAccessOptions +Edit access details for inbox using IMAP + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImapUsername** | **string** | IMAP username for login | [optional] +**ImapPassword** | **string** | IMAP password for login | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UpdateInboxOptions.md b/docs/UpdateInboxOptions.md new file mode 100644 index 00000000..4168d228 --- /dev/null +++ b/docs/UpdateInboxOptions.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.UpdateInboxOptions +Options for updating inbox properties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search | [optional] +**Description** | **string** | Description of an inbox for labelling and searching purposes | [optional] +**Tags** | **List<string>** | Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. | [optional] +**ExpiresAt** | **DateTime?** | Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email. | [optional] +**Favourite** | **bool?** | Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UpdateInboxReplierOptions.md b/docs/UpdateInboxReplierOptions.md new file mode 100644 index 00000000..f98bdcc9 --- /dev/null +++ b/docs/UpdateInboxReplierOptions.md @@ -0,0 +1,23 @@ +# mailslurp_netstandard_2x.Model.UpdateInboxReplierOptions +Options for updating an inbox replier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxId** | **Guid** | Inbox ID to attach replier to | +**Name** | **string** | Name for replier | [optional] +**Field** | **string** | Field to match against to trigger inbox replier for inbound email | +**Match** | **string** | String or wildcard style match for field specified when evaluating reply rules | +**ReplyTo** | **string** | Reply-to email address when sending replying | [optional] +**Subject** | **string** | Subject override when replying to email | [optional] +**From** | **string** | Send email from address | [optional] +**Charset** | **string** | Email reply charset | [optional] +**IsHTML** | **bool?** | Send HTML email | [optional] +**IgnoreReplyTo** | **bool?** | Ignore sender replyTo when responding. Send directly to the sender if enabled. | [optional] +**Body** | **string** | Email body for reply | [optional] +**TemplateId** | **Guid?** | ID of template to use when sending a reply | [optional] +**TemplateVariables** | **Dictionary<string, Object>** | Template variable values | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UpdateSmtpAccessOptions.md b/docs/UpdateSmtpAccessOptions.md new file mode 100644 index 00000000..5b31ccaf --- /dev/null +++ b/docs/UpdateSmtpAccessOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.UpdateSmtpAccessOptions +Edit access details for inbox using SMTP + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SmtpUsername** | **string** | SMTP username for login | [optional] +**SmtpPassword** | **string** | SMTP password for login | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UploadAttachmentOptions.md b/docs/UploadAttachmentOptions.md new file mode 100644 index 00000000..da09c869 --- /dev/null +++ b/docs/UploadAttachmentOptions.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.UploadAttachmentOptions +Options for uploading files for attachments. When sending emails with the API that require attachments first upload each attachment. Then use the returned attachment ID in your `SendEmailOptions` when sending an email. This way you can use attachments multiple times once they have been uploaded. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContentId** | **string** | Optional contentId for file. | [optional] +**ContentType** | **string** | Optional contentType for file. For instance `application/pdf` | [optional] +**Filename** | **string** | Optional filename to save upload with. Will be the name that is shown in email clients | [optional] +**Base64Contents** | **string** | Base64 encoded string of file contents. Typically this means reading the bytes or string content of a file and then converting that to a base64 encoded string. For examples of how to do this see https://www.mailslurp.com/guides/base64-file-uploads/ | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UploadMultipartFormRequest.md b/docs/UploadMultipartFormRequest.md new file mode 100644 index 00000000..be3d4c97 --- /dev/null +++ b/docs/UploadMultipartFormRequest.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.UploadMultipartFormRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContentTypeHeader** | **string** | Optional content type header of attachment | [optional] +**File** | **System.IO.Stream** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/UserControllerApi.md b/docs/UserControllerApi.md new file mode 100644 index 00000000..c5287cd4 --- /dev/null +++ b/docs/UserControllerApi.md @@ -0,0 +1,194 @@ +# mailslurp_netstandard_2x.Api.UserControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetJsonPropertyAsString**](UserControllerApi#getjsonpropertyasstring) | **POST** /user/json/pluck | | +| [**GetUserInfo**](UserControllerApi#getuserinfo) | **GET** /user/info | | + + +# **GetJsonPropertyAsString** +> string GetJsonPropertyAsString (string property, Object body) + + + +Utility function to extract properties from JSON objects in language where this is cumbersome. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetJsonPropertyAsStringExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new UserControllerApi(config); + var property = "property_example"; // string | JSON property name or dot separated path selector such as `a.b.c` + var body = null; // Object | + + try + { + string result = apiInstance.GetJsonPropertyAsString(property, body); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling UserControllerApi.GetJsonPropertyAsString: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetJsonPropertyAsStringWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetJsonPropertyAsStringWithHttpInfo(property, body); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling UserControllerApi.GetJsonPropertyAsStringWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **property** | **string** | JSON property name or dot separated path selector such as `a.b.c` | | +| **body** | **Object** | | | + +### Return type + +**string** + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetUserInfo** +> UserInfoDto GetUserInfo () + + + +Get account information for your user + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetUserInfoExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new UserControllerApi(config); + + try + { + UserInfoDto result = apiInstance.GetUserInfo(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling UserControllerApi.GetUserInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetUserInfoWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetUserInfoWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling UserControllerApi.GetUserInfoWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**UserInfoDto**](UserInfoDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/UserInfoDto.md b/docs/UserInfoDto.md new file mode 100644 index 00000000..13343493 --- /dev/null +++ b/docs/UserInfoDto.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.UserInfoDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | +**EmailAddress** | **string** | | +**AccountState** | **string** | | +**SubscriptionType** | **string** | | [optional] +**AccountType** | **string** | | +**CreatedAt** | **DateTime** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ValidateEmailAddressListOptions.md b/docs/ValidateEmailAddressListOptions.md new file mode 100644 index 00000000..c646e084 --- /dev/null +++ b/docs/ValidateEmailAddressListOptions.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.ValidateEmailAddressListOptions +Options for validating a list of email addresses + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailAddressList** | **List<string>** | | +**IgnoreOldResults** | **bool?** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ValidateEmailAddressListResult.md b/docs/ValidateEmailAddressListResult.md new file mode 100644 index 00000000..d32adbff --- /dev/null +++ b/docs/ValidateEmailAddressListResult.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.ValidateEmailAddressListResult +Result of validating a list of email addresses + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ValidEmailAddresses** | **List<string>** | | +**InvalidEmailAddresses** | **List<string>** | | +**ResultMapEmailAddressIsValid** | **Dictionary<string, bool>** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ValidationDto.md b/docs/ValidationDto.md new file mode 100644 index 00000000..2a2aece6 --- /dev/null +++ b/docs/ValidationDto.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.ValidationDto +Response object for email validation operation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailId** | **Guid** | ID of the email validated | +**Html** | [**HTMLValidationResult**](HTMLValidationResult) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/ValidationMessage.md b/docs/ValidationMessage.md new file mode 100644 index 00000000..9582c960 --- /dev/null +++ b/docs/ValidationMessage.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.ValidationMessage +Optional warnings resulting from HTML validation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LineNumber** | **int** | | +**Message** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/VerifyEmailAddressOptions.md b/docs/VerifyEmailAddressOptions.md new file mode 100644 index 00000000..74694380 --- /dev/null +++ b/docs/VerifyEmailAddressOptions.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.VerifyEmailAddressOptions +Options for verifying that an email address exists at a remote mail server. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MailServerDomain** | **string** | | [optional] +**EmailAddress** | **string** | | +**SenderEmailAddress** | **string** | | [optional] +**Port** | **int?** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/VerifyWebhookSignatureOptions.md b/docs/VerifyWebhookSignatureOptions.md new file mode 100644 index 00000000..881312fc --- /dev/null +++ b/docs/VerifyWebhookSignatureOptions.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.VerifyWebhookSignatureOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageId** | **string** | | +**Signature** | **string** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/VerifyWebhookSignatureResults.md b/docs/VerifyWebhookSignatureResults.md new file mode 100644 index 00000000..f31563dd --- /dev/null +++ b/docs/VerifyWebhookSignatureResults.md @@ -0,0 +1,10 @@ +# mailslurp_netstandard_2x.Model.VerifyWebhookSignatureResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsValid** | **bool** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WaitForConditions.md b/docs/WaitForConditions.md new file mode 100644 index 00000000..55af7a92 --- /dev/null +++ b/docs/WaitForConditions.md @@ -0,0 +1,20 @@ +# mailslurp_netstandard_2x.Model.WaitForConditions +Conditions to apply to emails that you are waiting for + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InboxId** | **Guid** | ID of inbox to search within and apply conditions to. Essentially filtering the emails found to give a count. | +**Count** | **int?** | Number of results that should match conditions. Either exactly or at least this amount based on the `countType`. If count condition is not met and the timeout has not been reached the `waitFor` method will retry the operation. | [optional] +**DelayTimeout** | **long?** | Max time in milliseconds to wait between retries if a `timeout` is specified. | [optional] +**Timeout** | **long** | Max time in milliseconds to retry the `waitFor` operation until conditions are met. | +**UnreadOnly** | **bool?** | Apply conditions only to **unread** emails. All emails begin with `read=false`. An email is marked `read=true` when an `EmailDto` representation of it has been returned to the user at least once. For example you have called `getEmail` or `waitForLatestEmail` etc., or you have viewed the email in the dashboard. | [optional] +**CountType** | **string** | How result size should be compared with the expected size. Exactly or at-least matching result? | [optional] +**Matches** | [**List<MatchOption>**](MatchOption) | Conditions that should be matched for an email to qualify for results. Each condition will be applied in order to each email within an inbox to filter a result list of matching emails you are waiting for. | [optional] +**SortDirection** | **string** | Direction to sort matching emails by created time | [optional] +**Since** | **DateTime?** | ISO Date Time earliest time of email to consider. Filter for matching emails that were received after this date | [optional] +**Before** | **DateTime?** | ISO Date Time latest time of email to consider. Filter for matching emails that were received before this date | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WaitForControllerApi.md b/docs/WaitForControllerApi.md new file mode 100644 index 00000000..45f23db7 --- /dev/null +++ b/docs/WaitForControllerApi.md @@ -0,0 +1,853 @@ +# mailslurp_netstandard_2x.Api.WaitForControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**WaitFor**](WaitForControllerApi#waitfor) | **POST** /waitFor | Wait for an email to match the provided filter conditions such as subject contains keyword. | +| [**WaitForEmailCount**](WaitForControllerApi#waitforemailcount) | **GET** /waitForEmailCount | Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs | +| [**WaitForLatestEmail**](WaitForControllerApi#waitforlatestemail) | **GET** /waitForLatestEmail | Fetch inbox's latest email or if empty wait for an email to arrive | +| [**WaitForLatestSms**](WaitForControllerApi#waitforlatestsms) | **POST** /waitForLatestSms | Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. | +| [**WaitForMatchingEmails**](WaitForControllerApi#waitformatchingemails) | **POST** /waitForMatchingEmails | Wait or return list of emails that match simple matching patterns | +| [**WaitForMatchingFirstEmail**](WaitForControllerApi#waitformatchingfirstemail) | **POST** /waitForMatchingFirstEmail | Wait for or return the first email that matches provided MatchOptions array | +| [**WaitForNthEmail**](WaitForControllerApi#waitfornthemail) | **GET** /waitForNthEmail | Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. | +| [**WaitForSms**](WaitForControllerApi#waitforsms) | **POST** /waitForSms | Wait for an SMS message to match the provided filter conditions such as body contains keyword. | + + +# **WaitFor** +> List<EmailPreview> WaitFor (WaitForConditions waitForConditions) + +Wait for an email to match the provided filter conditions such as subject contains keyword. + +Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class WaitForExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WaitForControllerApi(config); + var waitForConditions = new WaitForConditions(); // WaitForConditions | + + try + { + // Wait for an email to match the provided filter conditions such as subject contains keyword. + List result = apiInstance.WaitFor(waitForConditions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WaitForControllerApi.WaitFor: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the WaitForWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Wait for an email to match the provided filter conditions such as subject contains keyword. + ApiResponse> response = apiInstance.WaitForWithHttpInfo(waitForConditions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WaitForControllerApi.WaitForWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **waitForConditions** | [**WaitForConditions**](WaitForConditions) | | | + +### Return type + +[**List<EmailPreview>**](EmailPreview) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **WaitForEmailCount** +> List<EmailPreview> WaitForEmailCount (Guid inboxId, int count, long? timeout = null, bool? unreadOnly = null, DateTime? before = null, DateTime? since = null, string sort = null, long? delay = null) + +Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs + +If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class WaitForEmailCountExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WaitForControllerApi(config); + var inboxId = "inboxId_example"; // Guid | Id of the inbox we are fetching emails from + var count = 56; // int | Number of emails to wait for. Must be greater that 1 + var timeout = 789L; // long? | Max milliseconds to wait (optional) + var unreadOnly = false; // bool? | Optional filter for unread only (optional) (default to false) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter for emails that were received before the given timestamp (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter for emails that were received after the given timestamp (optional) + var sort = "ASC"; // string | Sort direction (optional) + var delay = 789L; // long? | Max milliseconds delay between calls (optional) + + try + { + // Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs + List result = apiInstance.WaitForEmailCount(inboxId, count, timeout, unreadOnly, before, since, sort, delay); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WaitForControllerApi.WaitForEmailCount: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the WaitForEmailCountWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs + ApiResponse> response = apiInstance.WaitForEmailCountWithHttpInfo(inboxId, count, timeout, unreadOnly, before, since, sort, delay); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WaitForControllerApi.WaitForEmailCountWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | Id of the inbox we are fetching emails from | | +| **count** | **int** | Number of emails to wait for. Must be greater that 1 | | +| **timeout** | **long?** | Max milliseconds to wait | [optional] | +| **unreadOnly** | **bool?** | Optional filter for unread only | [optional] [default to false] | +| **before** | **DateTime?** | Filter for emails that were received before the given timestamp | [optional] | +| **since** | **DateTime?** | Filter for emails that were received after the given timestamp | [optional] | +| **sort** | **string** | Sort direction | [optional] | +| **delay** | **long?** | Max milliseconds delay between calls | [optional] | + +### Return type + +[**List<EmailPreview>**](EmailPreview) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **WaitForLatestEmail** +> Email WaitForLatestEmail (Guid? inboxId = null, long? timeout = null, bool? unreadOnly = null, DateTime? before = null, DateTime? since = null, string sort = null, long? delay = null) + +Fetch inbox's latest email or if empty wait for an email to arrive + +Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class WaitForLatestEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WaitForControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Id of the inbox we are fetching emails from (optional) + var timeout = 789L; // long? | Max milliseconds to wait (optional) + var unreadOnly = false; // bool? | Optional filter for unread only. (optional) (default to false) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter for emails that were before after the given timestamp (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter for emails that were received after the given timestamp (optional) + var sort = "ASC"; // string | Sort direction (optional) + var delay = 789L; // long? | Max milliseconds delay between calls (optional) + + try + { + // Fetch inbox's latest email or if empty wait for an email to arrive + Email result = apiInstance.WaitForLatestEmail(inboxId, timeout, unreadOnly, before, since, sort, delay); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WaitForControllerApi.WaitForLatestEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the WaitForLatestEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Fetch inbox's latest email or if empty wait for an email to arrive + ApiResponse response = apiInstance.WaitForLatestEmailWithHttpInfo(inboxId, timeout, unreadOnly, before, since, sort, delay); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WaitForControllerApi.WaitForLatestEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Id of the inbox we are fetching emails from | [optional] | +| **timeout** | **long?** | Max milliseconds to wait | [optional] | +| **unreadOnly** | **bool?** | Optional filter for unread only. | [optional] [default to false] | +| **before** | **DateTime?** | Filter for emails that were before after the given timestamp | [optional] | +| **since** | **DateTime?** | Filter for emails that were received after the given timestamp | [optional] | +| **sort** | **string** | Sort direction | [optional] | +| **delay** | **long?** | Max milliseconds delay between calls | [optional] | + +### Return type + +[**Email**](Email) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **WaitForLatestSms** +> SmsDto WaitForLatestSms (WaitForSingleSmsOptions waitForSingleSmsOptions) + +Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. + +Wait until a phone number meets given conditions or return immediately if already met + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class WaitForLatestSmsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WaitForControllerApi(config); + var waitForSingleSmsOptions = new WaitForSingleSmsOptions(); // WaitForSingleSmsOptions | + + try + { + // Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. + SmsDto result = apiInstance.WaitForLatestSms(waitForSingleSmsOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WaitForControllerApi.WaitForLatestSms: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the WaitForLatestSmsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. + ApiResponse response = apiInstance.WaitForLatestSmsWithHttpInfo(waitForSingleSmsOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WaitForControllerApi.WaitForLatestSmsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **waitForSingleSmsOptions** | [**WaitForSingleSmsOptions**](WaitForSingleSmsOptions) | | | + +### Return type + +[**SmsDto**](SmsDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **WaitForMatchingEmails** +> List<EmailPreview> WaitForMatchingEmails (Guid inboxId, int count, MatchOptions matchOptions, DateTime? before = null, DateTime? since = null, string sort = null, long? delay = null, long? timeout = null, bool? unreadOnly = null) + +Wait or return list of emails that match simple matching patterns + +Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class WaitForMatchingEmailsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WaitForControllerApi(config); + var inboxId = "inboxId_example"; // Guid | Id of the inbox we are fetching emails from + var count = 56; // int | Number of emails to wait for. Must be greater or equal to 1 + var matchOptions = new MatchOptions(); // MatchOptions | + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter for emails that were received before the given timestamp (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter for emails that were received after the given timestamp (optional) + var sort = "ASC"; // string | Sort direction (optional) + var delay = 789L; // long? | Max milliseconds delay between calls (optional) + var timeout = 789L; // long? | Max milliseconds to wait (optional) + var unreadOnly = false; // bool? | Optional filter for unread only (optional) (default to false) + + try + { + // Wait or return list of emails that match simple matching patterns + List result = apiInstance.WaitForMatchingEmails(inboxId, count, matchOptions, before, since, sort, delay, timeout, unreadOnly); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WaitForControllerApi.WaitForMatchingEmails: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the WaitForMatchingEmailsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Wait or return list of emails that match simple matching patterns + ApiResponse> response = apiInstance.WaitForMatchingEmailsWithHttpInfo(inboxId, count, matchOptions, before, since, sort, delay, timeout, unreadOnly); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WaitForControllerApi.WaitForMatchingEmailsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | Id of the inbox we are fetching emails from | | +| **count** | **int** | Number of emails to wait for. Must be greater or equal to 1 | | +| **matchOptions** | [**MatchOptions**](MatchOptions) | | | +| **before** | **DateTime?** | Filter for emails that were received before the given timestamp | [optional] | +| **since** | **DateTime?** | Filter for emails that were received after the given timestamp | [optional] | +| **sort** | **string** | Sort direction | [optional] | +| **delay** | **long?** | Max milliseconds delay between calls | [optional] | +| **timeout** | **long?** | Max milliseconds to wait | [optional] | +| **unreadOnly** | **bool?** | Optional filter for unread only | [optional] [default to false] | + +### Return type + +[**List<EmailPreview>**](EmailPreview) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **WaitForMatchingFirstEmail** +> Email WaitForMatchingFirstEmail (Guid inboxId, MatchOptions matchOptions, long? timeout = null, bool? unreadOnly = null, DateTime? since = null, DateTime? before = null, string sort = null, long? delay = null) + +Wait for or return the first email that matches provided MatchOptions array + +Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class WaitForMatchingFirstEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WaitForControllerApi(config); + var inboxId = "inboxId_example"; // Guid | Id of the inbox we are matching an email for + var matchOptions = new MatchOptions(); // MatchOptions | + var timeout = 789L; // long? | Max milliseconds to wait (optional) + var unreadOnly = false; // bool? | Optional filter for unread only (optional) (default to false) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter for emails that were received after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter for emails that were received before the given timestamp (optional) + var sort = "ASC"; // string | Sort direction (optional) + var delay = 789L; // long? | Max milliseconds delay between calls (optional) + + try + { + // Wait for or return the first email that matches provided MatchOptions array + Email result = apiInstance.WaitForMatchingFirstEmail(inboxId, matchOptions, timeout, unreadOnly, since, before, sort, delay); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WaitForControllerApi.WaitForMatchingFirstEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the WaitForMatchingFirstEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Wait for or return the first email that matches provided MatchOptions array + ApiResponse response = apiInstance.WaitForMatchingFirstEmailWithHttpInfo(inboxId, matchOptions, timeout, unreadOnly, since, before, sort, delay); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WaitForControllerApi.WaitForMatchingFirstEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | Id of the inbox we are matching an email for | | +| **matchOptions** | [**MatchOptions**](MatchOptions) | | | +| **timeout** | **long?** | Max milliseconds to wait | [optional] | +| **unreadOnly** | **bool?** | Optional filter for unread only | [optional] [default to false] | +| **since** | **DateTime?** | Filter for emails that were received after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter for emails that were received before the given timestamp | [optional] | +| **sort** | **string** | Sort direction | [optional] | +| **delay** | **long?** | Max milliseconds delay between calls | [optional] | + +### Return type + +[**Email**](Email) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **WaitForNthEmail** +> Email WaitForNthEmail (Guid? inboxId = null, int? index = null, long? timeout = null, bool? unreadOnly = null, DateTime? since = null, DateTime? before = null, string sort = null, long? delay = null) + +Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. + +If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class WaitForNthEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WaitForControllerApi(config); + var inboxId = "inboxId_example"; // Guid? | Id of the inbox you are fetching emails from (optional) + var index = 0; // int? | Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional) (default to 0) + var timeout = 789L; // long? | Max milliseconds to wait for the nth email if not already present (optional) + var unreadOnly = false; // bool? | Optional filter for unread only (optional) (default to false) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter for emails that were received after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter for emails that were received before the given timestamp (optional) + var sort = "ASC"; // string | Sort direction (optional) + var delay = 789L; // long? | Max milliseconds delay between calls (optional) + + try + { + // Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. + Email result = apiInstance.WaitForNthEmail(inboxId, index, timeout, unreadOnly, since, before, sort, delay); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WaitForControllerApi.WaitForNthEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the WaitForNthEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. + ApiResponse response = apiInstance.WaitForNthEmailWithHttpInfo(inboxId, index, timeout, unreadOnly, since, before, sort, delay); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WaitForControllerApi.WaitForNthEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid?** | Id of the inbox you are fetching emails from | [optional] | +| **index** | **int?** | Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 | [optional] [default to 0] | +| **timeout** | **long?** | Max milliseconds to wait for the nth email if not already present | [optional] | +| **unreadOnly** | **bool?** | Optional filter for unread only | [optional] [default to false] | +| **since** | **DateTime?** | Filter for emails that were received after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter for emails that were received before the given timestamp | [optional] | +| **sort** | **string** | Sort direction | [optional] | +| **delay** | **long?** | Max milliseconds delay between calls | [optional] | + +### Return type + +[**Email**](Email) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **WaitForSms** +> List<SmsPreview> WaitForSms (WaitForSmsConditions waitForSmsConditions) + +Wait for an SMS message to match the provided filter conditions such as body contains keyword. + +Generic waitFor method that will wait until a phone number meets given conditions or return immediately if already met + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class WaitForSmsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WaitForControllerApi(config); + var waitForSmsConditions = new WaitForSmsConditions(); // WaitForSmsConditions | + + try + { + // Wait for an SMS message to match the provided filter conditions such as body contains keyword. + List result = apiInstance.WaitForSms(waitForSmsConditions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WaitForControllerApi.WaitForSms: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the WaitForSmsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Wait for an SMS message to match the provided filter conditions such as body contains keyword. + ApiResponse> response = apiInstance.WaitForSmsWithHttpInfo(waitForSmsConditions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WaitForControllerApi.WaitForSmsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **waitForSmsConditions** | [**WaitForSmsConditions**](WaitForSmsConditions) | | | + +### Return type + +[**List<SmsPreview>**](SmsPreview) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/WaitForSingleSmsOptions.md b/docs/WaitForSingleSmsOptions.md new file mode 100644 index 00000000..98fff9f7 --- /dev/null +++ b/docs/WaitForSingleSmsOptions.md @@ -0,0 +1,16 @@ +# mailslurp_netstandard_2x.Model.WaitForSingleSmsOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumberId** | **Guid** | | +**Timeout** | **long** | | +**UnreadOnly** | **bool** | | [optional] +**Before** | **DateTime** | | [optional] +**Since** | **DateTime** | | [optional] +**SortDirection** | **string** | | [optional] +**Delay** | **long** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WaitForSmsConditions.md b/docs/WaitForSmsConditions.md new file mode 100644 index 00000000..c0483c29 --- /dev/null +++ b/docs/WaitForSmsConditions.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.WaitForSmsConditions +Conditions to apply to emails that you are waiting for + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumberId** | **Guid** | ID of phone number to search within and apply conditions to. Essentially filtering the SMS found to give a count. | +**Limit** | **int?** | Limit results | [optional] +**Count** | **long** | Number of results that should match conditions. Either exactly or at least this amount based on the `countType`. If count condition is not met and the timeout has not been reached the `waitFor` method will retry the operation. | +**DelayTimeout** | **long?** | Max time in milliseconds to wait between retries if a `timeout` is specified. | [optional] +**Timeout** | **long** | Max time in milliseconds to retry the `waitFor` operation until conditions are met. | +**UnreadOnly** | **bool?** | Apply conditions only to **unread** SMS. All SMS messages begin with `read=false`. An SMS is marked `read=true` when an `SMS` has been returned to the user at least once. For example you have called `getSms` or `waitForSms` etc., or you have viewed the SMS in the dashboard. | [optional] +**CountType** | **string** | How result size should be compared with the expected size. Exactly or at-least matching result? | [optional] +**Matches** | [**List<SmsMatchOption>**](SmsMatchOption) | Conditions that should be matched for an SMS to qualify for results. Each condition will be applied in order to each SMS within a phone number to filter a result list of matching SMSs you are waiting for. | [optional] +**SortDirection** | **string** | Direction to sort matching SMSs by created time | [optional] +**Since** | **DateTime?** | ISO Date Time earliest time of SMS to consider. Filter for matching SMSs that were received after this date | [optional] +**Before** | **DateTime?** | ISO Date Time latest time of SMS to consider. Filter for matching SMSs that were received before this date | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookBouncePayload.md b/docs/WebhookBouncePayload.md new file mode 100644 index 00000000..0101e2ac --- /dev/null +++ b/docs/WebhookBouncePayload.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.WebhookBouncePayload +BOUNCE webhook payload. Sent to your webhook url endpoint via HTTP POST when an email bounced or was rejected by a recipient. Save the recipients to a ban list on your server and avoid emailing them again. It is recommended you also listen to the BOUNCE_RECIPIENT payload. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageId** | **string** | Idempotent message ID. Store this ID locally or in a database to prevent message duplication. | +**WebhookId** | **Guid** | ID of webhook entity being triggered | +**EventName** | **string** | Name of the event type webhook is being triggered for. | +**WebhookName** | **string** | Name of the webhook being triggered | [optional] +**BounceId** | **Guid** | ID of the bounce email record. Use the ID with the bounce controller to view more information | +**SentToRecipients** | **List<string>** | Email sent to recipients | [optional] +**Sender** | **string** | Sender causing bounce | +**BounceRecipients** | **List<string>** | Email addresses that resulted in a bounce or email being rejected. Please save these recipients and avoid emailing them in the future to maintain your reputation. | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookBounceRecipientPayload.md b/docs/WebhookBounceRecipientPayload.md new file mode 100644 index 00000000..4125269c --- /dev/null +++ b/docs/WebhookBounceRecipientPayload.md @@ -0,0 +1,15 @@ +# mailslurp_netstandard_2x.Model.WebhookBounceRecipientPayload +BOUNCE_RECIPIENT webhook payload. Sent to your webhook url endpoint via HTTP POST when an email caused a bounce to occur for a recipient. Save the recipient to a ban list of your server and avoid email them again. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageId** | **string** | Idempotent message ID. Store this ID locally or in a database to prevent message duplication. | +**WebhookId** | **Guid** | ID of webhook entity being triggered | +**EventName** | **string** | Name of the event type webhook is being triggered for. | +**WebhookName** | **string** | Name of the webhook being triggered | [optional] +**Recipient** | **string** | Email address that caused a bounce. Make note of the address and try not to message it again to preserve your reputation. | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookControllerApi.md b/docs/WebhookControllerApi.md new file mode 100644 index 00000000..b564ebcb --- /dev/null +++ b/docs/WebhookControllerApi.md @@ -0,0 +1,3496 @@ +# mailslurp_netstandard_2x.Api.WebhookControllerApi + +All URIs are relative to *https://csharp.api.mailslurp.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateAccountWebhook**](WebhookControllerApi#createaccountwebhook) | **POST** /webhooks | Attach a WebHook URL to an inbox | +| [**CreateWebhook**](WebhookControllerApi#createwebhook) | **POST** /inboxes/{inboxId}/webhooks | Attach a WebHook URL to an inbox | +| [**CreateWebhookForPhoneNumber**](WebhookControllerApi#createwebhookforphonenumber) | **POST** /phone/numbers/{phoneNumberId}/webhooks | Attach a WebHook URL to a phone number | +| [**DeleteAllWebhooks**](WebhookControllerApi#deleteallwebhooks) | **DELETE** /webhooks | Delete all webhooks | +| [**DeleteWebhook**](WebhookControllerApi#deletewebhook) | **DELETE** /inboxes/{inboxId}/webhooks/{webhookId} | Delete and disable a Webhook for an Inbox | +| [**DeleteWebhookById**](WebhookControllerApi#deletewebhookbyid) | **DELETE** /webhooks/{webhookId} | Delete a webhook | +| [**GetAllAccountWebhooks**](WebhookControllerApi#getallaccountwebhooks) | **GET** /webhooks/account/paginated | List account webhooks Paginated | +| [**GetAllWebhookResults**](WebhookControllerApi#getallwebhookresults) | **GET** /webhooks/results | Get results for all webhooks | +| [**GetAllWebhooks**](WebhookControllerApi#getallwebhooks) | **GET** /webhooks/paginated | List Webhooks Paginated | +| [**GetInboxWebhooksPaginated**](WebhookControllerApi#getinboxwebhookspaginated) | **GET** /inboxes/{inboxId}/webhooks/paginated | Get paginated webhooks for an Inbox | +| [**GetJsonSchemaForWebhookEvent**](WebhookControllerApi#getjsonschemaforwebhookevent) | **POST** /webhooks/schema | | +| [**GetJsonSchemaForWebhookPayload**](WebhookControllerApi#getjsonschemaforwebhookpayload) | **POST** /webhooks/{webhookId}/schema | | +| [**GetPhoneNumberWebhooksPaginated**](WebhookControllerApi#getphonenumberwebhookspaginated) | **GET** /phone/numbers/{phoneId}/webhooks/paginated | Get paginated webhooks for a phone number | +| [**GetTestWebhookPayload**](WebhookControllerApi#gettestwebhookpayload) | **GET** /webhooks/test | | +| [**GetTestWebhookPayloadBounce**](WebhookControllerApi#gettestwebhookpayloadbounce) | **GET** /webhooks/test/email-bounce-payload | | +| [**GetTestWebhookPayloadBounceRecipient**](WebhookControllerApi#gettestwebhookpayloadbouncerecipient) | **GET** /webhooks/test/email-bounce-recipient-payload | | +| [**GetTestWebhookPayloadDeliveryStatus**](WebhookControllerApi#gettestwebhookpayloaddeliverystatus) | **GET** /webhooks/test/delivery-status-payload | Get webhook test payload for delivery status event | +| [**GetTestWebhookPayloadEmailOpened**](WebhookControllerApi#gettestwebhookpayloademailopened) | **GET** /webhooks/test/email-opened-payload | | +| [**GetTestWebhookPayloadEmailRead**](WebhookControllerApi#gettestwebhookpayloademailread) | **GET** /webhooks/test/email-read-payload | | +| [**GetTestWebhookPayloadForWebhook**](WebhookControllerApi#gettestwebhookpayloadforwebhook) | **POST** /webhooks/{webhookId}/example | | +| [**GetTestWebhookPayloadNewAttachment**](WebhookControllerApi#gettestwebhookpayloadnewattachment) | **GET** /webhooks/test/new-attachment-payload | Get webhook test payload for new attachment event | +| [**GetTestWebhookPayloadNewContact**](WebhookControllerApi#gettestwebhookpayloadnewcontact) | **GET** /webhooks/test/new-contact-payload | Get webhook test payload for new contact event | +| [**GetTestWebhookPayloadNewEmail**](WebhookControllerApi#gettestwebhookpayloadnewemail) | **GET** /webhooks/test/new-email-payload | Get webhook test payload for new email event | +| [**GetTestWebhookPayloadNewSms**](WebhookControllerApi#gettestwebhookpayloadnewsms) | **GET** /webhooks/test/new-sms-payload | Get webhook test payload for new sms event | +| [**GetWebhook**](WebhookControllerApi#getwebhook) | **GET** /webhooks/{webhookId} | Get a webhook | +| [**GetWebhookResult**](WebhookControllerApi#getwebhookresult) | **GET** /webhooks/results/{webhookResultId} | Get a webhook result for a webhook | +| [**GetWebhookResults**](WebhookControllerApi#getwebhookresults) | **GET** /webhooks/{webhookId}/results | Get a webhook results for a webhook | +| [**GetWebhookResultsCount**](WebhookControllerApi#getwebhookresultscount) | **GET** /webhooks/{webhookId}/results/count | Get a webhook results count for a webhook | +| [**GetWebhookResultsUnseenErrorCount**](WebhookControllerApi#getwebhookresultsunseenerrorcount) | **GET** /webhooks/results/unseen-count | Get count of unseen webhook results with error status | +| [**GetWebhooks**](WebhookControllerApi#getwebhooks) | **GET** /inboxes/{inboxId}/webhooks | Get all webhooks for an Inbox | +| [**RedriveAllWebhookResults**](WebhookControllerApi#redriveallwebhookresults) | **POST** /webhooks/results/redrive | Redrive all webhook results that have failed status | +| [**RedriveWebhookResult**](WebhookControllerApi#redrivewebhookresult) | **POST** /webhooks/results/{webhookResultId}/redrive | Get a webhook result and try to resend the original webhook payload | +| [**SendTestData**](WebhookControllerApi#sendtestdata) | **POST** /webhooks/{webhookId}/test | Send webhook test data | +| [**UpdateWebhookHeaders**](WebhookControllerApi#updatewebhookheaders) | **PUT** /webhooks/{webhookId}/headers | Update a webhook request headers | +| [**VerifyWebhookSignature**](WebhookControllerApi#verifywebhooksignature) | **POST** /webhooks/verify | Verify a webhook payload signature | +| [**WaitForWebhookResults**](WebhookControllerApi#waitforwebhookresults) | **GET** /webhooks/{webhookId}/wait | Wait for webhook results for a webhook | + + +# **CreateAccountWebhook** +> WebhookDto CreateAccountWebhook (CreateWebhookOptions createWebhookOptions) + +Attach a WebHook URL to an inbox + +Get notified of account level events such as bounce and bounce recipient. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateAccountWebhookExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var createWebhookOptions = new CreateWebhookOptions(); // CreateWebhookOptions | + + try + { + // Attach a WebHook URL to an inbox + WebhookDto result = apiInstance.CreateAccountWebhook(createWebhookOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.CreateAccountWebhook: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateAccountWebhookWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Attach a WebHook URL to an inbox + ApiResponse response = apiInstance.CreateAccountWebhookWithHttpInfo(createWebhookOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.CreateAccountWebhookWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **createWebhookOptions** | [**CreateWebhookOptions**](CreateWebhookOptions) | | | + +### Return type + +[**WebhookDto**](WebhookDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateWebhook** +> WebhookDto CreateWebhook (Guid inboxId, CreateWebhookOptions createWebhookOptions) + +Attach a WebHook URL to an inbox + +Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateWebhookExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + var createWebhookOptions = new CreateWebhookOptions(); // CreateWebhookOptions | + + try + { + // Attach a WebHook URL to an inbox + WebhookDto result = apiInstance.CreateWebhook(inboxId, createWebhookOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.CreateWebhook: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateWebhookWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Attach a WebHook URL to an inbox + ApiResponse response = apiInstance.CreateWebhookWithHttpInfo(inboxId, createWebhookOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.CreateWebhookWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | +| **createWebhookOptions** | [**CreateWebhookOptions**](CreateWebhookOptions) | | | + +### Return type + +[**WebhookDto**](WebhookDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **CreateWebhookForPhoneNumber** +> WebhookDto CreateWebhookForPhoneNumber (Guid phoneNumberId, CreateWebhookOptions createWebhookOptions) + +Attach a WebHook URL to a phone number + +Get notified whenever a phone number receives an SMS via a WebHook URL. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class CreateWebhookForPhoneNumberExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var phoneNumberId = "phoneNumberId_example"; // Guid | + var createWebhookOptions = new CreateWebhookOptions(); // CreateWebhookOptions | + + try + { + // Attach a WebHook URL to a phone number + WebhookDto result = apiInstance.CreateWebhookForPhoneNumber(phoneNumberId, createWebhookOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.CreateWebhookForPhoneNumber: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateWebhookForPhoneNumberWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Attach a WebHook URL to a phone number + ApiResponse response = apiInstance.CreateWebhookForPhoneNumberWithHttpInfo(phoneNumberId, createWebhookOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.CreateWebhookForPhoneNumberWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **phoneNumberId** | **Guid** | | | +| **createWebhookOptions** | [**CreateWebhookOptions**](CreateWebhookOptions) | | | + +### Return type + +[**WebhookDto**](WebhookDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteAllWebhooks** +> void DeleteAllWebhooks (DateTime? before = null) + +Delete all webhooks + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteAllWebhooksExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | before (optional) + + try + { + // Delete all webhooks + apiInstance.DeleteAllWebhooks(before); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.DeleteAllWebhooks: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteAllWebhooksWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete all webhooks + apiInstance.DeleteAllWebhooksWithHttpInfo(before); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.DeleteAllWebhooksWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **before** | **DateTime?** | before | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteWebhook** +> void DeleteWebhook (Guid inboxId, Guid webhookId) + +Delete and disable a Webhook for an Inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteWebhookExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + var webhookId = "webhookId_example"; // Guid | + + try + { + // Delete and disable a Webhook for an Inbox + apiInstance.DeleteWebhook(inboxId, webhookId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.DeleteWebhook: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteWebhookWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete and disable a Webhook for an Inbox + apiInstance.DeleteWebhookWithHttpInfo(inboxId, webhookId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.DeleteWebhookWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | +| **webhookId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **DeleteWebhookById** +> void DeleteWebhookById (Guid webhookId) + +Delete a webhook + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class DeleteWebhookByIdExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var webhookId = "webhookId_example"; // Guid | + + try + { + // Delete a webhook + apiInstance.DeleteWebhookById(webhookId); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.DeleteWebhookById: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the DeleteWebhookByIdWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Delete a webhook + apiInstance.DeleteWebhookByIdWithHttpInfo(webhookId); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.DeleteWebhookByIdWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **webhookId** | **Guid** | | | + +### Return type + +void (empty response body) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllAccountWebhooks** +> PageWebhookProjection GetAllAccountWebhooks (int? page = null, int? size = null, string sort = null, string eventType = null, DateTime? since = null, DateTime? before = null) + +List account webhooks Paginated + +List account webhooks in paginated form. Allows for page index, page size, and sort direction. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllAccountWebhooksExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size for paginated result list. (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to DESC) + var eventType = "EMAIL_RECEIVED"; // string | Optional event type (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // List account webhooks Paginated + PageWebhookProjection result = apiInstance.GetAllAccountWebhooks(page, size, sort, eventType, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetAllAccountWebhooks: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllAccountWebhooksWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List account webhooks Paginated + ApiResponse response = apiInstance.GetAllAccountWebhooksWithHttpInfo(page, size, sort, eventType, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetAllAccountWebhooksWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size for paginated result list. | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to DESC] | +| **eventType** | **string** | Optional event type | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageWebhookProjection**](PageWebhookProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllWebhookResults** +> PageWebhookResult GetAllWebhookResults (int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, bool? unseenOnly = null, string resultType = null, string eventName = null, int? minStatusCode = null, int? maxStatusCode = null, Guid? inboxId = null, Guid? smsId = null, Guid? attachmentId = null, Guid? emailId = null, Guid? phoneId = null) + +Get results for all webhooks + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllWebhookResultsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + var unseenOnly = true; // bool? | Filter for unseen exceptions only (optional) + var resultType = "BAD_RESPONSE"; // string | Filter by result type (optional) + var eventName = "EMAIL_RECEIVED"; // string | Filter by event name (optional) + var minStatusCode = 56; // int? | Minimum response status (optional) + var maxStatusCode = 56; // int? | Maximum response status (optional) + var inboxId = "inboxId_example"; // Guid? | Inbox ID (optional) + var smsId = "smsId_example"; // Guid? | Sms ID (optional) + var attachmentId = "attachmentId_example"; // Guid? | Attachment ID (optional) + var emailId = "emailId_example"; // Guid? | Email ID (optional) + var phoneId = "phoneId_example"; // Guid? | Phone ID (optional) + + try + { + // Get results for all webhooks + PageWebhookResult result = apiInstance.GetAllWebhookResults(page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetAllWebhookResults: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllWebhookResultsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get results for all webhooks + ApiResponse response = apiInstance.GetAllWebhookResultsWithHttpInfo(page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetAllWebhookResultsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | +| **unseenOnly** | **bool?** | Filter for unseen exceptions only | [optional] | +| **resultType** | **string** | Filter by result type | [optional] | +| **eventName** | **string** | Filter by event name | [optional] | +| **minStatusCode** | **int?** | Minimum response status | [optional] | +| **maxStatusCode** | **int?** | Maximum response status | [optional] | +| **inboxId** | **Guid?** | Inbox ID | [optional] | +| **smsId** | **Guid?** | Sms ID | [optional] | +| **attachmentId** | **Guid?** | Attachment ID | [optional] | +| **emailId** | **Guid?** | Email ID | [optional] | +| **phoneId** | **Guid?** | Phone ID | [optional] | + +### Return type + +[**PageWebhookResult**](PageWebhookResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetAllWebhooks** +> PageWebhookProjection GetAllWebhooks (int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, Guid? inboxId = null, Guid? phoneId = null, DateTime? before = null) + +List Webhooks Paginated + +List webhooks in paginated form. Allows for page index, page size, and sort direction. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetAllWebhooksExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size for paginated result list. (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to DESC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var inboxId = "inboxId_example"; // Guid? | Filter by inboxId (optional) + var phoneId = "phoneId_example"; // Guid? | Filter by phoneId (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // List Webhooks Paginated + PageWebhookProjection result = apiInstance.GetAllWebhooks(page, size, sort, searchFilter, since, inboxId, phoneId, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetAllWebhooks: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllWebhooksWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List Webhooks Paginated + ApiResponse response = apiInstance.GetAllWebhooksWithHttpInfo(page, size, sort, searchFilter, since, inboxId, phoneId, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetAllWebhooksWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size for paginated result list. | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to DESC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **inboxId** | **Guid?** | Filter by inboxId | [optional] | +| **phoneId** | **Guid?** | Filter by phoneId | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageWebhookProjection**](PageWebhookProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetInboxWebhooksPaginated** +> PageWebhookProjection GetInboxWebhooksPaginated (Guid inboxId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null) + +Get paginated webhooks for an Inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetInboxWebhooksPaginatedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get paginated webhooks for an Inbox + PageWebhookProjection result = apiInstance.GetInboxWebhooksPaginated(inboxId, page, size, sort, searchFilter, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetInboxWebhooksPaginated: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetInboxWebhooksPaginatedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get paginated webhooks for an Inbox + ApiResponse response = apiInstance.GetInboxWebhooksPaginatedWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetInboxWebhooksPaginatedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageWebhookProjection**](PageWebhookProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetJsonSchemaForWebhookEvent** +> JSONSchemaDto GetJsonSchemaForWebhookEvent (string _event) + + + +Get JSON Schema definition for webhook payload by event + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetJsonSchemaForWebhookEventExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var _event = "EMAIL_RECEIVED"; // string | + + try + { + JSONSchemaDto result = apiInstance.GetJsonSchemaForWebhookEvent(_event); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetJsonSchemaForWebhookEvent: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetJsonSchemaForWebhookEventWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetJsonSchemaForWebhookEventWithHttpInfo(_event); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetJsonSchemaForWebhookEventWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **_event** | **string** | | | + +### Return type + +[**JSONSchemaDto**](JSONSchemaDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetJsonSchemaForWebhookPayload** +> JSONSchemaDto GetJsonSchemaForWebhookPayload (Guid webhookId) + + + +Get JSON Schema definition for webhook payload + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetJsonSchemaForWebhookPayloadExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var webhookId = "webhookId_example"; // Guid | + + try + { + JSONSchemaDto result = apiInstance.GetJsonSchemaForWebhookPayload(webhookId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetJsonSchemaForWebhookPayload: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetJsonSchemaForWebhookPayloadWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetJsonSchemaForWebhookPayloadWithHttpInfo(webhookId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetJsonSchemaForWebhookPayloadWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **webhookId** | **Guid** | | | + +### Return type + +[**JSONSchemaDto**](JSONSchemaDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetPhoneNumberWebhooksPaginated** +> PageWebhookProjection GetPhoneNumberWebhooksPaginated (Guid phoneId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null) + +Get paginated webhooks for a phone number + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetPhoneNumberWebhooksPaginatedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var phoneId = "phoneId_example"; // Guid | + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + + try + { + // Get paginated webhooks for a phone number + PageWebhookProjection result = apiInstance.GetPhoneNumberWebhooksPaginated(phoneId, page, size, sort, since, before); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetPhoneNumberWebhooksPaginated: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetPhoneNumberWebhooksPaginatedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get paginated webhooks for a phone number + ApiResponse response = apiInstance.GetPhoneNumberWebhooksPaginatedWithHttpInfo(phoneId, page, size, sort, since, before); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetPhoneNumberWebhooksPaginatedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **phoneId** | **Guid** | | | +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | + +### Return type + +[**PageWebhookProjection**](PageWebhookProjection) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTestWebhookPayload** +> AbstractWebhookPayload GetTestWebhookPayload (string eventName = null) + + + +Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTestWebhookPayloadExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var eventName = "EMAIL_RECEIVED"; // string | (optional) + + try + { + AbstractWebhookPayload result = apiInstance.GetTestWebhookPayload(eventName); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayload: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTestWebhookPayloadWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetTestWebhookPayloadWithHttpInfo(eventName); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **eventName** | **string** | | [optional] | + +### Return type + +[**AbstractWebhookPayload**](AbstractWebhookPayload) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTestWebhookPayloadBounce** +> WebhookBouncePayload GetTestWebhookPayloadBounce () + + + +Get webhook test payload for bounce + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTestWebhookPayloadBounceExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + + try + { + WebhookBouncePayload result = apiInstance.GetTestWebhookPayloadBounce(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadBounce: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTestWebhookPayloadBounceWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetTestWebhookPayloadBounceWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadBounceWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**WebhookBouncePayload**](WebhookBouncePayload) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTestWebhookPayloadBounceRecipient** +> WebhookBounceRecipientPayload GetTestWebhookPayloadBounceRecipient () + + + +Get webhook test payload for bounce recipient + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTestWebhookPayloadBounceRecipientExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + + try + { + WebhookBounceRecipientPayload result = apiInstance.GetTestWebhookPayloadBounceRecipient(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadBounceRecipient: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTestWebhookPayloadBounceRecipientWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetTestWebhookPayloadBounceRecipientWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadBounceRecipientWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**WebhookBounceRecipientPayload**](WebhookBounceRecipientPayload) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTestWebhookPayloadDeliveryStatus** +> WebhookDeliveryStatusPayload GetTestWebhookPayloadDeliveryStatus () + +Get webhook test payload for delivery status event + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTestWebhookPayloadDeliveryStatusExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + + try + { + // Get webhook test payload for delivery status event + WebhookDeliveryStatusPayload result = apiInstance.GetTestWebhookPayloadDeliveryStatus(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadDeliveryStatus: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTestWebhookPayloadDeliveryStatusWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get webhook test payload for delivery status event + ApiResponse response = apiInstance.GetTestWebhookPayloadDeliveryStatusWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadDeliveryStatusWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**WebhookDeliveryStatusPayload**](WebhookDeliveryStatusPayload) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTestWebhookPayloadEmailOpened** +> WebhookEmailOpenedPayload GetTestWebhookPayloadEmailOpened () + + + +Get webhook test payload for email opened event + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTestWebhookPayloadEmailOpenedExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + + try + { + WebhookEmailOpenedPayload result = apiInstance.GetTestWebhookPayloadEmailOpened(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadEmailOpened: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTestWebhookPayloadEmailOpenedWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetTestWebhookPayloadEmailOpenedWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadEmailOpenedWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**WebhookEmailOpenedPayload**](WebhookEmailOpenedPayload) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTestWebhookPayloadEmailRead** +> WebhookEmailReadPayload GetTestWebhookPayloadEmailRead () + + + +Get webhook test payload for email opened event + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTestWebhookPayloadEmailReadExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + + try + { + WebhookEmailReadPayload result = apiInstance.GetTestWebhookPayloadEmailRead(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadEmailRead: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTestWebhookPayloadEmailReadWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetTestWebhookPayloadEmailReadWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadEmailReadWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**WebhookEmailReadPayload**](WebhookEmailReadPayload) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTestWebhookPayloadForWebhook** +> AbstractWebhookPayload GetTestWebhookPayloadForWebhook (Guid webhookId) + + + +Get example payload for webhook + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTestWebhookPayloadForWebhookExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var webhookId = "webhookId_example"; // Guid | + + try + { + AbstractWebhookPayload result = apiInstance.GetTestWebhookPayloadForWebhook(webhookId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadForWebhook: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTestWebhookPayloadForWebhookWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetTestWebhookPayloadForWebhookWithHttpInfo(webhookId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadForWebhookWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **webhookId** | **Guid** | | | + +### Return type + +[**AbstractWebhookPayload**](AbstractWebhookPayload) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTestWebhookPayloadNewAttachment** +> WebhookNewAttachmentPayload GetTestWebhookPayloadNewAttachment () + +Get webhook test payload for new attachment event + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTestWebhookPayloadNewAttachmentExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + + try + { + // Get webhook test payload for new attachment event + WebhookNewAttachmentPayload result = apiInstance.GetTestWebhookPayloadNewAttachment(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadNewAttachment: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTestWebhookPayloadNewAttachmentWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get webhook test payload for new attachment event + ApiResponse response = apiInstance.GetTestWebhookPayloadNewAttachmentWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadNewAttachmentWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**WebhookNewAttachmentPayload**](WebhookNewAttachmentPayload) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTestWebhookPayloadNewContact** +> WebhookNewContactPayload GetTestWebhookPayloadNewContact () + +Get webhook test payload for new contact event + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTestWebhookPayloadNewContactExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + + try + { + // Get webhook test payload for new contact event + WebhookNewContactPayload result = apiInstance.GetTestWebhookPayloadNewContact(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadNewContact: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTestWebhookPayloadNewContactWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get webhook test payload for new contact event + ApiResponse response = apiInstance.GetTestWebhookPayloadNewContactWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadNewContactWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**WebhookNewContactPayload**](WebhookNewContactPayload) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTestWebhookPayloadNewEmail** +> WebhookNewEmailPayload GetTestWebhookPayloadNewEmail () + +Get webhook test payload for new email event + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTestWebhookPayloadNewEmailExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + + try + { + // Get webhook test payload for new email event + WebhookNewEmailPayload result = apiInstance.GetTestWebhookPayloadNewEmail(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadNewEmail: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTestWebhookPayloadNewEmailWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get webhook test payload for new email event + ApiResponse response = apiInstance.GetTestWebhookPayloadNewEmailWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadNewEmailWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**WebhookNewEmailPayload**](WebhookNewEmailPayload) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetTestWebhookPayloadNewSms** +> WebhookNewSmsPayload GetTestWebhookPayloadNewSms () + +Get webhook test payload for new sms event + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetTestWebhookPayloadNewSmsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + + try + { + // Get webhook test payload for new sms event + WebhookNewSmsPayload result = apiInstance.GetTestWebhookPayloadNewSms(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadNewSms: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTestWebhookPayloadNewSmsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get webhook test payload for new sms event + ApiResponse response = apiInstance.GetTestWebhookPayloadNewSmsWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetTestWebhookPayloadNewSmsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**WebhookNewSmsPayload**](WebhookNewSmsPayload) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetWebhook** +> WebhookDto GetWebhook (Guid webhookId) + +Get a webhook + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetWebhookExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var webhookId = "webhookId_example"; // Guid | + + try + { + // Get a webhook + WebhookDto result = apiInstance.GetWebhook(webhookId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetWebhook: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetWebhookWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a webhook + ApiResponse response = apiInstance.GetWebhookWithHttpInfo(webhookId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetWebhookWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **webhookId** | **Guid** | | | + +### Return type + +[**WebhookDto**](WebhookDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetWebhookResult** +> WebhookResultDto GetWebhookResult (Guid webhookResultId) + +Get a webhook result for a webhook + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetWebhookResultExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var webhookResultId = "webhookResultId_example"; // Guid | Webhook Result ID + + try + { + // Get a webhook result for a webhook + WebhookResultDto result = apiInstance.GetWebhookResult(webhookResultId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetWebhookResult: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetWebhookResultWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a webhook result for a webhook + ApiResponse response = apiInstance.GetWebhookResultWithHttpInfo(webhookResultId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetWebhookResultWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **webhookResultId** | **Guid** | Webhook Result ID | | + +### Return type + +[**WebhookResultDto**](WebhookResultDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetWebhookResults** +> PageWebhookResult GetWebhookResults (Guid webhookId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, bool? unseenOnly = null, string resultType = null, string eventName = null, int? minStatusCode = null, int? maxStatusCode = null, Guid? inboxId = null, Guid? smsId = null, Guid? attachmentId = null, Guid? emailId = null, Guid? phoneId = null) + +Get a webhook results for a webhook + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetWebhookResultsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var webhookId = "webhookId_example"; // Guid | ID of webhook to get results for + var page = 0; // int? | Optional page index in list pagination (optional) (default to 0) + var size = 20; // int? | Optional page size in list pagination (optional) (default to 20) + var sort = "ASC"; // string | Optional createdAt sort direction ASC or DESC (optional) (default to ASC) + var searchFilter = "searchFilter_example"; // string | Optional search filter (optional) + var since = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at after the given timestamp (optional) + var before = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | Filter by created at before the given timestamp (optional) + var unseenOnly = true; // bool? | Filter for unseen exceptions only (optional) + var resultType = "BAD_RESPONSE"; // string | Filter by result type (optional) + var eventName = "EMAIL_RECEIVED"; // string | Filter by event name (optional) + var minStatusCode = 56; // int? | Minimum response status (optional) + var maxStatusCode = 56; // int? | Maximum response status (optional) + var inboxId = "inboxId_example"; // Guid? | Inbox ID (optional) + var smsId = "smsId_example"; // Guid? | Sms ID (optional) + var attachmentId = "attachmentId_example"; // Guid? | Attachment ID (optional) + var emailId = "emailId_example"; // Guid? | Email ID (optional) + var phoneId = "phoneId_example"; // Guid? | Phone ID (optional) + + try + { + // Get a webhook results for a webhook + PageWebhookResult result = apiInstance.GetWebhookResults(webhookId, page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetWebhookResults: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetWebhookResultsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a webhook results for a webhook + ApiResponse response = apiInstance.GetWebhookResultsWithHttpInfo(webhookId, page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetWebhookResultsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **webhookId** | **Guid** | ID of webhook to get results for | | +| **page** | **int?** | Optional page index in list pagination | [optional] [default to 0] | +| **size** | **int?** | Optional page size in list pagination | [optional] [default to 20] | +| **sort** | **string** | Optional createdAt sort direction ASC or DESC | [optional] [default to ASC] | +| **searchFilter** | **string** | Optional search filter | [optional] | +| **since** | **DateTime?** | Filter by created at after the given timestamp | [optional] | +| **before** | **DateTime?** | Filter by created at before the given timestamp | [optional] | +| **unseenOnly** | **bool?** | Filter for unseen exceptions only | [optional] | +| **resultType** | **string** | Filter by result type | [optional] | +| **eventName** | **string** | Filter by event name | [optional] | +| **minStatusCode** | **int?** | Minimum response status | [optional] | +| **maxStatusCode** | **int?** | Maximum response status | [optional] | +| **inboxId** | **Guid?** | Inbox ID | [optional] | +| **smsId** | **Guid?** | Sms ID | [optional] | +| **attachmentId** | **Guid?** | Attachment ID | [optional] | +| **emailId** | **Guid?** | Email ID | [optional] | +| **phoneId** | **Guid?** | Phone ID | [optional] | + +### Return type + +[**PageWebhookResult**](PageWebhookResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetWebhookResultsCount** +> CountDto GetWebhookResultsCount (Guid webhookId) + +Get a webhook results count for a webhook + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetWebhookResultsCountExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var webhookId = "webhookId_example"; // Guid | ID of webhook to get results for + + try + { + // Get a webhook results count for a webhook + CountDto result = apiInstance.GetWebhookResultsCount(webhookId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetWebhookResultsCount: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetWebhookResultsCountWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a webhook results count for a webhook + ApiResponse response = apiInstance.GetWebhookResultsCountWithHttpInfo(webhookId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetWebhookResultsCountWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **webhookId** | **Guid** | ID of webhook to get results for | | + +### Return type + +[**CountDto**](CountDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetWebhookResultsUnseenErrorCount** +> UnseenErrorCountDto GetWebhookResultsUnseenErrorCount () + +Get count of unseen webhook results with error status + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetWebhookResultsUnseenErrorCountExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + + try + { + // Get count of unseen webhook results with error status + UnseenErrorCountDto result = apiInstance.GetWebhookResultsUnseenErrorCount(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetWebhookResultsUnseenErrorCount: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetWebhookResultsUnseenErrorCountWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get count of unseen webhook results with error status + ApiResponse response = apiInstance.GetWebhookResultsUnseenErrorCountWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetWebhookResultsUnseenErrorCountWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**UnseenErrorCountDto**](UnseenErrorCountDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **GetWebhooks** +> List<WebhookDto> GetWebhooks (Guid inboxId) + +Get all webhooks for an Inbox + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class GetWebhooksExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var inboxId = "inboxId_example"; // Guid | + + try + { + // Get all webhooks for an Inbox + List result = apiInstance.GetWebhooks(inboxId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.GetWebhooks: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetWebhooksWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all webhooks for an Inbox + ApiResponse> response = apiInstance.GetWebhooksWithHttpInfo(inboxId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.GetWebhooksWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **inboxId** | **Guid** | | | + +### Return type + +[**List<WebhookDto>**](WebhookDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **RedriveAllWebhookResults** +> WebhookRedriveAllResult RedriveAllWebhookResults () + +Redrive all webhook results that have failed status + +Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class RedriveAllWebhookResultsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + + try + { + // Redrive all webhook results that have failed status + WebhookRedriveAllResult result = apiInstance.RedriveAllWebhookResults(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.RedriveAllWebhookResults: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the RedriveAllWebhookResultsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Redrive all webhook results that have failed status + ApiResponse response = apiInstance.RedriveAllWebhookResultsWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.RedriveAllWebhookResultsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**WebhookRedriveAllResult**](WebhookRedriveAllResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **RedriveWebhookResult** +> WebhookRedriveResult RedriveWebhookResult (Guid webhookResultId) + +Get a webhook result and try to resend the original webhook payload + +Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class RedriveWebhookResultExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var webhookResultId = "webhookResultId_example"; // Guid | Webhook Result ID + + try + { + // Get a webhook result and try to resend the original webhook payload + WebhookRedriveResult result = apiInstance.RedriveWebhookResult(webhookResultId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.RedriveWebhookResult: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the RedriveWebhookResultWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a webhook result and try to resend the original webhook payload + ApiResponse response = apiInstance.RedriveWebhookResultWithHttpInfo(webhookResultId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.RedriveWebhookResultWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **webhookResultId** | **Guid** | Webhook Result ID | | + +### Return type + +[**WebhookRedriveResult**](WebhookRedriveResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **SendTestData** +> WebhookTestResult SendTestData (Guid webhookId) + +Send webhook test data + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class SendTestDataExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var webhookId = "webhookId_example"; // Guid | + + try + { + // Send webhook test data + WebhookTestResult result = apiInstance.SendTestData(webhookId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.SendTestData: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SendTestDataWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Send webhook test data + ApiResponse response = apiInstance.SendTestDataWithHttpInfo(webhookId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.SendTestDataWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **webhookId** | **Guid** | | | + +### Return type + +[**WebhookTestResult**](WebhookTestResult) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **UpdateWebhookHeaders** +> WebhookDto UpdateWebhookHeaders (Guid webhookId, WebhookHeaders webhookHeaders) + +Update a webhook request headers + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class UpdateWebhookHeadersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var webhookId = "webhookId_example"; // Guid | + var webhookHeaders = new WebhookHeaders(); // WebhookHeaders | + + try + { + // Update a webhook request headers + WebhookDto result = apiInstance.UpdateWebhookHeaders(webhookId, webhookHeaders); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.UpdateWebhookHeaders: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the UpdateWebhookHeadersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Update a webhook request headers + ApiResponse response = apiInstance.UpdateWebhookHeadersWithHttpInfo(webhookId, webhookHeaders); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.UpdateWebhookHeadersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **webhookId** | **Guid** | | | +| **webhookHeaders** | [**WebhookHeaders**](WebhookHeaders) | | | + +### Return type + +[**WebhookDto**](WebhookDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **VerifyWebhookSignature** +> VerifyWebhookSignatureResults VerifyWebhookSignature (VerifyWebhookSignatureOptions verifyWebhookSignatureOptions) + +Verify a webhook payload signature + +Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class VerifyWebhookSignatureExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var verifyWebhookSignatureOptions = new VerifyWebhookSignatureOptions(); // VerifyWebhookSignatureOptions | + + try + { + // Verify a webhook payload signature + VerifyWebhookSignatureResults result = apiInstance.VerifyWebhookSignature(verifyWebhookSignatureOptions); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.VerifyWebhookSignature: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the VerifyWebhookSignatureWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Verify a webhook payload signature + ApiResponse response = apiInstance.VerifyWebhookSignatureWithHttpInfo(verifyWebhookSignatureOptions); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.VerifyWebhookSignatureWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **verifyWebhookSignatureOptions** | [**VerifyWebhookSignatureOptions**](VerifyWebhookSignatureOptions) | | | + +### Return type + +[**VerifyWebhookSignatureResults**](VerifyWebhookSignatureResults) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + + +# **WaitForWebhookResults** +> List<WebhookResultDto> WaitForWebhookResults (Guid webhookId, int expectedCount, int timeout) + +Wait for webhook results for a webhook + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace Example +{ + public class WaitForWebhookResultsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://csharp.api.mailslurp.com"; + // Configure API key authorization: API_KEY + config.AddApiKey("x-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-api-key", "Bearer"); + + var apiInstance = new WebhookControllerApi(config); + var webhookId = "webhookId_example"; // Guid | ID of webhook to get results for + var expectedCount = 56; // int | Expected result count + var timeout = 56; // int | Max time to wait in milliseconds + + try + { + // Wait for webhook results for a webhook + List result = apiInstance.WaitForWebhookResults(webhookId, expectedCount, timeout); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WebhookControllerApi.WaitForWebhookResults: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the WaitForWebhookResultsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Wait for webhook results for a webhook + ApiResponse> response = apiInstance.WaitForWebhookResultsWithHttpInfo(webhookId, expectedCount, timeout); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WebhookControllerApi.WaitForWebhookResultsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **webhookId** | **Guid** | ID of webhook to get results for | | +| **expectedCount** | **int** | Expected result count | | +| **timeout** | **int** | Max time to wait in milliseconds | | + +### Return type + +[**List<WebhookResultDto>**](WebhookResultDto) + +### Authorization + +[API_KEY](../README#API_KEY) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to Model list]](../README#documentation-for-models) [[Back to README]](../README) + diff --git a/docs/WebhookDeliveryStatusPayload.md b/docs/WebhookDeliveryStatusPayload.md new file mode 100644 index 00000000..71662733 --- /dev/null +++ b/docs/WebhookDeliveryStatusPayload.md @@ -0,0 +1,26 @@ +# mailslurp_netstandard_2x.Model.WebhookDeliveryStatusPayload +DELIVERY_STATUS webhook payload. Sent to your webhook url endpoint via HTTP POST when an email delivery status is created. This could be a successful delivery or a delivery failure. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageId** | **string** | Idempotent message ID. Store this ID locally or in a database to prevent message duplication. | +**WebhookId** | **Guid** | ID of webhook entity being triggered | +**EventName** | **string** | Name of the event type webhook is being triggered for. | +**WebhookName** | **string** | Name of the webhook being triggered | [optional] +**Id** | **Guid** | ID of delivery status | +**UserId** | **Guid** | User ID of event | +**SentId** | **Guid?** | ID of sent email | [optional] +**RemoteMtaIp** | **string** | IP address of the remote Mail Transfer Agent | [optional] +**InboxId** | **Guid?** | Id of the inbox | [optional] +**ReportingMta** | **string** | Mail Transfer Agent reporting delivery status | [optional] +**Recipients** | **List<string>** | Recipients for delivery | [optional] +**SmtpResponse** | **string** | SMTP server response message | [optional] +**SmtpStatusCode** | **int?** | SMTP server status | [optional] +**ProcessingTimeMillis** | **long?** | Time in milliseconds for delivery processing | [optional] +**Received** | **DateTime?** | Time event was received | [optional] +**Subject** | **string** | Email subject | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookDto.md b/docs/WebhookDto.md new file mode 100644 index 00000000..0d3134e1 --- /dev/null +++ b/docs/WebhookDto.md @@ -0,0 +1,26 @@ +# mailslurp_netstandard_2x.Model.WebhookDto +Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox. A webhook entity should have a URL that points to your server. Your server should accept HTTP/S POST requests and return a success 200. MailSlurp will retry your webhooks if they fail. See https://csharp.api.mailslurp.com/schemas/webhook-payload for the payload schema. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | ID of the Webhook | +**UserId** | **Guid** | User ID of the Webhook | +**BasicAuth** | **bool** | Does webhook expect basic authentication? If true it means you created this webhook with a username and password. MailSlurp will use these in the URL to authenticate itself. | +**Name** | **string** | Name of the webhook | [optional] +**PhoneId** | **Guid?** | The phoneNumberId that the Webhook will be triggered by. If null then webhook triggered at account level or inbox level if inboxId set | [optional] +**InboxId** | **Guid?** | The inbox that the Webhook will be triggered by. If null then webhook triggered at account level or phone level if phoneId set | [optional] +**RequestBodyTemplate** | **string** | Request body template for HTTP request that will be sent for the webhook. Use Moustache style template variables to insert values from the original event payload. | [optional] +**Url** | **string** | URL of your server that the webhook will be sent to. The schema of the JSON that is sent is described by the payloadJsonSchema. | +**Method** | **string** | HTTP method that your server endpoint must listen for | +**PayloadJsonSchema** | **string** | Deprecated. Fetch JSON Schema for webhook using the getJsonSchemaForWebhookPayload method | +**CreatedAt** | **DateTime?** | When the webhook was created | +**UpdatedAt** | **DateTime** | | +**EventName** | **string** | Webhook trigger event name | [optional] +**RequestHeaders** | [**WebhookHeaders**](WebhookHeaders) | | [optional] +**IgnoreInsecureSslCertificates** | **bool?** | Should notifier ignore insecure SSL certificates | [optional] +**UseStaticIpRange** | **bool?** | Should notifier use static IP range when sending webhook payload | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookEmailOpenedPayload.md b/docs/WebhookEmailOpenedPayload.md new file mode 100644 index 00000000..e3a9a283 --- /dev/null +++ b/docs/WebhookEmailOpenedPayload.md @@ -0,0 +1,19 @@ +# mailslurp_netstandard_2x.Model.WebhookEmailOpenedPayload +EMAIL_OPENED webhook payload. Sent to your webhook url endpoint via HTTP POST when an email containing a tracking pixel is opened and the pixel image is loaded by a reader. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageId** | **string** | Idempotent message ID. Store this ID locally or in a database to prevent message duplication. | +**WebhookId** | **Guid** | ID of webhook entity being triggered | +**EventName** | **string** | Name of the event type webhook is being triggered for. | +**WebhookName** | **string** | Name of the webhook being triggered | [optional] +**InboxId** | **Guid** | Id of the inbox | +**PixelId** | **Guid** | ID of the tracking pixel | +**SentEmailId** | **Guid** | ID of sent email | +**Recipient** | **string** | Email address for the recipient of the tracking pixel | +**CreatedAt** | **DateTime** | Date time of event creation | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookEmailReadPayload.md b/docs/WebhookEmailReadPayload.md new file mode 100644 index 00000000..10eaeabc --- /dev/null +++ b/docs/WebhookEmailReadPayload.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.WebhookEmailReadPayload +EMAIL_READ webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is read. This happens when an email is requested in full from the API or a user views the email in the dashboard. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageId** | **string** | Idempotent message ID. Store this ID locally or in a database to prevent message duplication. | +**WebhookId** | **Guid** | ID of webhook entity being triggered | +**EventName** | **string** | Name of the event type webhook is being triggered for. | +**WebhookName** | **string** | Name of the webhook being triggered | [optional] +**EmailId** | **Guid** | ID of the email that was received. Use this ID for fetching the email with the `EmailController`. | +**InboxId** | **Guid** | Id of the inbox | +**EmailIsRead** | **bool** | Is the email read | +**CreatedAt** | **DateTime** | Date time of event creation | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookHeaderNameValue.md b/docs/WebhookHeaderNameValue.md new file mode 100644 index 00000000..1dcd3730 --- /dev/null +++ b/docs/WebhookHeaderNameValue.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.WebhookHeaderNameValue +Name value pair for webhook header + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of header | +**Value** | **string** | Value of header | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookHeaders.md b/docs/WebhookHeaders.md new file mode 100644 index 00000000..b708a72a --- /dev/null +++ b/docs/WebhookHeaders.md @@ -0,0 +1,11 @@ +# mailslurp_netstandard_2x.Model.WebhookHeaders +Webhook HTTP headers to include with each request from MailSlurp to your server + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Headers** | [**List<WebhookHeaderNameValue>**](WebhookHeaderNameValue) | List of header name value pairs to include with webhook requests | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookNewAttachmentPayload.md b/docs/WebhookNewAttachmentPayload.md new file mode 100644 index 00000000..61a1201a --- /dev/null +++ b/docs/WebhookNewAttachmentPayload.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.WebhookNewAttachmentPayload +NEW_ATTACHMENT webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to that contains an attachment. You can use the attachmentId to download the attachment. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageId** | **string** | Idempotent message ID. Store this ID locally or in a database to prevent message duplication. | +**WebhookId** | **Guid** | ID of webhook entity being triggered | +**WebhookName** | **string** | Name of the webhook being triggered | [optional] +**EventName** | **string** | Name of the event type webhook is being triggered for. | +**AttachmentId** | **string** | ID of attachment. Use the `AttachmentController` to | +**Name** | **string** | Filename of the attachment if present | +**ContentType** | **string** | Content type of attachment such as 'image/png' or 'application/pdf | +**ContentLength** | **long** | Size of attachment in bytes | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookNewContactPayload.md b/docs/WebhookNewContactPayload.md new file mode 100644 index 00000000..c81bdcda --- /dev/null +++ b/docs/WebhookNewContactPayload.md @@ -0,0 +1,25 @@ +# mailslurp_netstandard_2x.Model.WebhookNewContactPayload +NEW_CONTACT webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to that contains a recipient that has not been saved as a contact. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageId** | **string** | Idempotent message ID. Store this ID locally or in a database to prevent message duplication. | +**WebhookId** | **Guid** | ID of webhook entity being triggered | +**WebhookName** | **string** | Name of the webhook being triggered | [optional] +**EventName** | **string** | Name of the event type webhook is being triggered for. | +**ContactId** | **Guid** | Contact ID | +**GroupId** | **Guid?** | Contact group ID | [optional] +**FirstName** | **string** | Contact first name | [optional] +**LastName** | **string** | Contact last name | [optional] +**Company** | **string** | Contact company name | [optional] +**PrimaryEmailAddress** | **string** | Primary email address for contact | [optional] +**EmailAddresses** | **List<string>** | Email addresses for contact | +**Tags** | **List<string>** | Tags for contact | +**MetaData** | **Object** | | [optional] +**OptOut** | **bool** | Has contact opted out of emails | +**CreatedAt** | **DateTime** | Date time of event creation | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookNewEmailPayload.md b/docs/WebhookNewEmailPayload.md new file mode 100644 index 00000000..a25aa48a --- /dev/null +++ b/docs/WebhookNewEmailPayload.md @@ -0,0 +1,24 @@ +# mailslurp_netstandard_2x.Model.WebhookNewEmailPayload +NEW_EMAIL webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to. Use the email ID to fetch the full email body or attachments. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageId** | **string** | Idempotent message ID. Store this ID locally or in a database to prevent message duplication. | +**WebhookId** | **Guid** | ID of webhook entity being triggered | +**EventName** | **string** | Name of the event type webhook is being triggered for. | +**WebhookName** | **string** | Name of the webhook being triggered | [optional] +**InboxId** | **Guid** | Id of the inbox | +**DomainId** | **Guid?** | Id of the domain that received an email | [optional] +**EmailId** | **Guid** | ID of the email that was received. Use this ID for fetching the email with the `EmailController`. | +**CreatedAt** | **DateTime** | Date time of event creation | +**To** | **List<string>** | List of `To` recipient email addresses that the email was addressed to. See recipients object for names. | +**From** | **string** | Who the email was sent from. An email address - see fromName for the sender name. | +**Cc** | **List<string>** | List of `CC` recipients email addresses that the email was addressed to. See recipients object for names. | +**Bcc** | **List<string>** | List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names. | +**Subject** | **string** | The subject line of the email message as specified by SMTP subject header | [optional] +**AttachmentMetaDatas** | [**List<AttachmentMetaData>**](AttachmentMetaData) | List of attachment meta data objects if attachments present | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookNewSmsPayload.md b/docs/WebhookNewSmsPayload.md new file mode 100644 index 00000000..51962354 --- /dev/null +++ b/docs/WebhookNewSmsPayload.md @@ -0,0 +1,21 @@ +# mailslurp_netstandard_2x.Model.WebhookNewSmsPayload +NEW_SMS webhook payload. Sent to your webhook url endpoint via HTTP POST when an sms is received by the phone number that your webhook is attached to. Use the SMS ID to fetch the full SMS details. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageId** | **string** | Idempotent message ID. Store this ID locally or in a database to prevent message duplication. | +**WebhookId** | **Guid** | ID of webhook entity being triggered | +**EventName** | **string** | Name of the event type webhook is being triggered for. | +**WebhookName** | **string** | Name of the webhook being triggered | [optional] +**SmsId** | **Guid** | ID of SMS message | +**UserId** | **Guid** | User ID of event | +**PhoneNumber** | **Guid** | ID of phone number receiving SMS | +**ToNumber** | **string** | Recipient phone number | +**FromNumber** | **string** | Sender phone number | +**Body** | **string** | SMS message body | +**Read** | **bool** | SMS has been read | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookProjection.md b/docs/WebhookProjection.md new file mode 100644 index 00000000..34a6ee45 --- /dev/null +++ b/docs/WebhookProjection.md @@ -0,0 +1,18 @@ +# mailslurp_netstandard_2x.Model.WebhookProjection +Representation of a webhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | +**InboxId** | **Guid** | | [optional] +**EventName** | **string** | | [optional] +**PhoneNumberId** | **Guid** | | [optional] +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | +**Name** | **string** | | [optional] +**Id** | **Guid** | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookRedriveAllResult.md b/docs/WebhookRedriveAllResult.md new file mode 100644 index 00000000..d640db0f --- /dev/null +++ b/docs/WebhookRedriveAllResult.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.WebhookRedriveAllResult +Result of retrying all failed webhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | | +**Message** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookRedriveResult.md b/docs/WebhookRedriveResult.md new file mode 100644 index 00000000..72b9166d --- /dev/null +++ b/docs/WebhookRedriveResult.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.WebhookRedriveResult +Result of retrying webhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WebhookResultId** | **Guid** | | +**Success** | **bool** | | +**Message** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookResultDto.md b/docs/WebhookResultDto.md new file mode 100644 index 00000000..51d25314 --- /dev/null +++ b/docs/WebhookResultDto.md @@ -0,0 +1,30 @@ +# mailslurp_netstandard_2x.Model.WebhookResultDto +Result of a webhook notification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid?** | | [optional] +**UserId** | **Guid** | | +**WebhookId** | **Guid** | | +**WebhookUrl** | **string** | | +**MessageId** | **string** | | +**RedriveId** | **Guid?** | | [optional] +**HttpMethod** | **string** | | +**WebhookEvent** | **string** | | +**ResponseStatus** | **int?** | | [optional] +**ResponseTimeMillis** | **long** | | +**ResponseBodyExtract** | **string** | | [optional] +**ResultType** | **string** | | [optional] +**CreatedAt** | **DateTime** | | +**UpdatedAt** | **DateTime** | | +**Seen** | **bool** | | +**InboxId** | **Guid?** | | [optional] +**EmailId** | **Guid?** | | [optional] +**AttachmentId** | **Guid?** | | [optional] +**PhoneId** | **Guid?** | | [optional] +**SmsId** | **Guid?** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookTestRequest.md b/docs/WebhookTestRequest.md new file mode 100644 index 00000000..1a465ecb --- /dev/null +++ b/docs/WebhookTestRequest.md @@ -0,0 +1,14 @@ +# mailslurp_netstandard_2x.Model.WebhookTestRequest +Result of webhook test request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | +**Method** | **string** | | +**Headers** | **Dictionary<string, string>** | | +**Payload** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookTestResponse.md b/docs/WebhookTestResponse.md new file mode 100644 index 00000000..2db35a14 --- /dev/null +++ b/docs/WebhookTestResponse.md @@ -0,0 +1,12 @@ +# mailslurp_netstandard_2x.Model.WebhookTestResponse +Response from webhook test request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StatusCode** | **int?** | | [optional] +**Message** | **string** | | [optional] + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/docs/WebhookTestResult.md b/docs/WebhookTestResult.md new file mode 100644 index 00000000..2e364132 --- /dev/null +++ b/docs/WebhookTestResult.md @@ -0,0 +1,13 @@ +# mailslurp_netstandard_2x.Model.WebhookTestResult +Results of testing a webhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | | [optional] +**Response** | [**WebhookTestResponse**](WebhookTestResponse) | | +**Request** | [**WebhookTestRequest**](WebhookTestRequest) | | + +[[Back to Model list]](../README#documentation-for-models) [[Back to API list]](../README#documentation-for-api-endpoints) [[Back to README]](../README) + diff --git a/git_push.sh b/git_push.sh new file mode 100644 index 00000000..f53a75d4 --- /dev/null +++ b/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/mailslurp_netstandard_2x.sln b/mailslurp_netstandard_2x.sln new file mode 100644 index 00000000..8c5daa77 --- /dev/null +++ b/mailslurp_netstandard_2x.sln @@ -0,0 +1,27 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mailslurp_netstandard_2x", "src\mailslurp_netstandard_2x\mailslurp_netstandard_2x.csproj", "{3D195A55-746D-4D2C-9EDB-C0B754A9490B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mailslurp_netstandard_2x.Test", "src\mailslurp_netstandard_2x.Test\mailslurp_netstandard_2x.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3D195A55-746D-4D2C-9EDB-C0B754A9490B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3D195A55-746D-4D2C-9EDB-C0B754A9490B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3D195A55-746D-4D2C-9EDB-C0B754A9490B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3D195A55-746D-4D2C-9EDB-C0B754A9490B}.Release|Any CPU.Build.0 = Release|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal \ No newline at end of file diff --git a/src/mailslurp_netstandard_2x.Test/Api/AliasControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/AliasControllerApiTests.cs new file mode 100644 index 00000000..4b832a06 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/AliasControllerApiTests.cs @@ -0,0 +1,212 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing AliasControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class AliasControllerApiTests : IDisposable + { + private AliasControllerApi instance; + + public AliasControllerApiTests() + { + instance = new AliasControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AliasControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' AliasControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CreateAlias + /// + [Fact] + public void CreateAliasTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateAliasOptions createAliasOptions = null; + //var response = instance.CreateAlias(createAliasOptions); + //Assert.IsType(response); + } + + /// + /// Test DeleteAlias + /// + [Fact] + public void DeleteAliasTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid aliasId = null; + //instance.DeleteAlias(aliasId); + } + + /// + /// Test GetAlias + /// + [Fact] + public void GetAliasTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid aliasId = null; + //var response = instance.GetAlias(aliasId); + //Assert.IsType(response); + } + + /// + /// Test GetAliasEmails + /// + [Fact] + public void GetAliasEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid aliasId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetAliasEmails(aliasId, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetAliasThreads + /// + [Fact] + public void GetAliasThreadsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid aliasId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetAliasThreads(aliasId, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetAliases + /// + [Fact] + public void GetAliasesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string search = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetAliases(search, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetThread + /// + [Fact] + public void GetThreadTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid threadId = null; + //var response = instance.GetThread(threadId); + //Assert.IsType(response); + } + + /// + /// Test GetThreadsPaginated + /// + [Fact] + public void GetThreadsPaginatedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetThreadsPaginated(page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test ReplyToAliasEmail + /// + [Fact] + public void ReplyToAliasEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid aliasId = null; + //Guid emailId = null; + //ReplyToAliasEmailOptions replyToAliasEmailOptions = null; + //var response = instance.ReplyToAliasEmail(aliasId, emailId, replyToAliasEmailOptions); + //Assert.IsType(response); + } + + /// + /// Test SendAliasEmail + /// + [Fact] + public void SendAliasEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid aliasId = null; + //SendEmailOptions sendEmailOptions = null; + //var response = instance.SendAliasEmail(aliasId, sendEmailOptions); + //Assert.IsType(response); + } + + /// + /// Test UpdateAlias + /// + [Fact] + public void UpdateAliasTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid aliasId = null; + //UpdateAliasOptions updateAliasOptions = null; + //var response = instance.UpdateAlias(aliasId, updateAliasOptions); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/AttachmentControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/AttachmentControllerApiTests.cs new file mode 100644 index 00000000..53d40c6e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/AttachmentControllerApiTests.cs @@ -0,0 +1,189 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing AttachmentControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class AttachmentControllerApiTests : IDisposable + { + private AttachmentControllerApi instance; + + public AttachmentControllerApiTests() + { + instance = new AttachmentControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AttachmentControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' AttachmentControllerApi + //Assert.IsType(instance); + } + + /// + /// Test DeleteAllAttachments + /// + [Fact] + public void DeleteAllAttachmentsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //instance.DeleteAllAttachments(); + } + + /// + /// Test DeleteAttachment + /// + [Fact] + public void DeleteAttachmentTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string attachmentId = null; + //instance.DeleteAttachment(attachmentId); + } + + /// + /// Test DownloadAttachmentAsBase64Encoded + /// + [Fact] + public void DownloadAttachmentAsBase64EncodedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string attachmentId = null; + //var response = instance.DownloadAttachmentAsBase64Encoded(attachmentId); + //Assert.IsType(response); + } + + /// + /// Test DownloadAttachmentAsBytes + /// + [Fact] + public void DownloadAttachmentAsBytesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string attachmentId = null; + //var response = instance.DownloadAttachmentAsBytes(attachmentId); + //Assert.IsType(response); + } + + /// + /// Test GetAttachment + /// + [Fact] + public void GetAttachmentTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string attachmentId = null; + //var response = instance.GetAttachment(attachmentId); + //Assert.IsType(response); + } + + /// + /// Test GetAttachmentInfo + /// + [Fact] + public void GetAttachmentInfoTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string attachmentId = null; + //var response = instance.GetAttachmentInfo(attachmentId); + //Assert.IsType(response); + } + + /// + /// Test GetAttachments + /// + [Fact] + public void GetAttachmentsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //string fileNameFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //Guid? inboxId = null; + //var response = instance.GetAttachments(page, size, sort, fileNameFilter, since, before, inboxId); + //Assert.IsType(response); + } + + /// + /// Test UploadAttachment + /// + [Fact] + public void UploadAttachmentTest() + { + // TODO uncomment below to test the method and replace null with proper value + //UploadAttachmentOptions uploadAttachmentOptions = null; + //var response = instance.UploadAttachment(uploadAttachmentOptions); + //Assert.IsType>(response); + } + + /// + /// Test UploadAttachmentBytes + /// + [Fact] + public void UploadAttachmentBytesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string contentType = null; + //string contentType2 = null; + //string contentId = null; + //string filename = null; + //string filename2 = null; + //var response = instance.UploadAttachmentBytes(contentType, contentType2, contentId, filename, filename2); + //Assert.IsType>(response); + } + + /// + /// Test UploadMultipartForm + /// + [Fact] + public void UploadMultipartFormTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string contentId = null; + //string contentType = null; + //string filename = null; + //string xFilename = null; + //UploadMultipartFormRequest uploadMultipartFormRequest = null; + //var response = instance.UploadMultipartForm(contentId, contentType, filename, xFilename, uploadMultipartFormRequest); + //Assert.IsType>(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/BounceControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/BounceControllerApiTests.cs new file mode 100644 index 00000000..509b9e49 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/BounceControllerApiTests.cs @@ -0,0 +1,180 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing BounceControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class BounceControllerApiTests : IDisposable + { + private BounceControllerApi instance; + + public BounceControllerApiTests() + { + instance = new BounceControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BounceControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' BounceControllerApi + //Assert.IsType(instance); + } + + /// + /// Test FilterBouncedRecipient + /// + [Fact] + public void FilterBouncedRecipientTest() + { + // TODO uncomment below to test the method and replace null with proper value + //FilterBouncedRecipientsOptions filterBouncedRecipientsOptions = null; + //var response = instance.FilterBouncedRecipient(filterBouncedRecipientsOptions); + //Assert.IsType(response); + } + + /// + /// Test GetAccountBounceBlockStatus + /// + [Fact] + public void GetAccountBounceBlockStatusTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetAccountBounceBlockStatus(); + //Assert.IsType(response); + } + + /// + /// Test GetBouncedEmail + /// + [Fact] + public void GetBouncedEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetBouncedEmail(id); + //Assert.IsType(response); + } + + /// + /// Test GetBouncedEmails + /// + [Fact] + public void GetBouncedEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetBouncedEmails(page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetBouncedRecipient + /// + [Fact] + public void GetBouncedRecipientTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetBouncedRecipient(id); + //Assert.IsType(response); + } + + /// + /// Test GetBouncedRecipients + /// + [Fact] + public void GetBouncedRecipientsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetBouncedRecipients(page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetComplaint + /// + [Fact] + public void GetComplaintTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetComplaint(id); + //Assert.IsType(response); + } + + /// + /// Test GetComplaints + /// + [Fact] + public void GetComplaintsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetComplaints(page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetListUnsubscribeRecipients + /// + [Fact] + public void GetListUnsubscribeRecipientsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //Guid? domainId = null; + //var response = instance.GetListUnsubscribeRecipients(page, size, sort, domainId); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/BulkActionsControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/BulkActionsControllerApiTests.cs new file mode 100644 index 00000000..0875fc2f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/BulkActionsControllerApiTests.cs @@ -0,0 +1,92 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing BulkActionsControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class BulkActionsControllerApiTests : IDisposable + { + private BulkActionsControllerApi instance; + + public BulkActionsControllerApiTests() + { + instance = new BulkActionsControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BulkActionsControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' BulkActionsControllerApi + //Assert.IsType(instance); + } + + /// + /// Test BulkCreateInboxes + /// + [Fact] + public void BulkCreateInboxesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int count = null; + //var response = instance.BulkCreateInboxes(count); + //Assert.IsType>(response); + } + + /// + /// Test BulkDeleteInboxes + /// + [Fact] + public void BulkDeleteInboxesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //List requestBody = null; + //instance.BulkDeleteInboxes(requestBody); + } + + /// + /// Test BulkSendEmails + /// + [Fact] + public void BulkSendEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //BulkSendEmailOptions bulkSendEmailOptions = null; + //instance.BulkSendEmails(bulkSendEmailOptions); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/CommonActionsControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/CommonActionsControllerApiTests.cs new file mode 100644 index 00000000..7f80e6c1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/CommonActionsControllerApiTests.cs @@ -0,0 +1,157 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing CommonActionsControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class CommonActionsControllerApiTests : IDisposable + { + private CommonActionsControllerApi instance; + + public CommonActionsControllerApiTests() + { + instance = new CommonActionsControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CommonActionsControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' CommonActionsControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CreateNewEmailAddress + /// + [Fact] + public void CreateNewEmailAddressTest() + { + // TODO uncomment below to test the method and replace null with proper value + //bool? allowTeamAccess = null; + //bool? useDomainPool = null; + //DateTime? expiresAt = null; + //long? expiresIn = null; + //string emailAddress = null; + //string inboxType = null; + //string description = null; + //string name = null; + //List tags = null; + //bool? favourite = null; + //bool? virtualInbox = null; + //bool? useShortAddress = null; + //string domainName = null; + //Guid? domainId = null; + //string prefix = null; + //var response = instance.CreateNewEmailAddress(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix); + //Assert.IsType(response); + } + + /// + /// Test CreateRandomInbox + /// + [Fact] + public void CreateRandomInboxTest() + { + // TODO uncomment below to test the method and replace null with proper value + //bool? allowTeamAccess = null; + //bool? useDomainPool = null; + //DateTime? expiresAt = null; + //long? expiresIn = null; + //string emailAddress = null; + //string inboxType = null; + //string description = null; + //string name = null; + //List tags = null; + //bool? favourite = null; + //bool? virtualInbox = null; + //bool? useShortAddress = null; + //string domainName = null; + //Guid? domainId = null; + //string prefix = null; + //var response = instance.CreateRandomInbox(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix); + //Assert.IsType(response); + } + + /// + /// Test DeleteEmailAddress + /// + [Fact] + public void DeleteEmailAddressTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //instance.DeleteEmailAddress(inboxId); + } + + /// + /// Test EmptyInbox + /// + [Fact] + public void EmptyInboxTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //instance.EmptyInbox(inboxId); + } + + /// + /// Test SendEmailQuery + /// + [Fact] + public void SendEmailQueryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string to = null; + //Guid? senderId = null; + //string body = null; + //string subject = null; + //instance.SendEmailQuery(to, senderId, body, subject); + } + + /// + /// Test SendEmailSimple + /// + [Fact] + public void SendEmailSimpleTest() + { + // TODO uncomment below to test the method and replace null with proper value + //SimpleSendEmailOptions simpleSendEmailOptions = null; + //instance.SendEmailSimple(simpleSendEmailOptions); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/ConnectorControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/ConnectorControllerApiTests.cs new file mode 100644 index 00000000..334b91f9 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/ConnectorControllerApiTests.cs @@ -0,0 +1,237 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing ConnectorControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class ConnectorControllerApiTests : IDisposable + { + private ConnectorControllerApi instance; + + public ConnectorControllerApiTests() + { + instance = new ConnectorControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' ConnectorControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CreateConnector + /// + [Fact] + public void CreateConnectorTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateConnectorOptions createConnectorOptions = null; + //var response = instance.CreateConnector(createConnectorOptions); + //Assert.IsType(response); + } + + /// + /// Test CreateConnectorImapConnection + /// + [Fact] + public void CreateConnectorImapConnectionTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions = null; + //var response = instance.CreateConnectorImapConnection(id, createConnectorImapConnectionOptions); + //Assert.IsType(response); + } + + /// + /// Test CreateConnectorSmtpConnection + /// + [Fact] + public void CreateConnectorSmtpConnectionTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions = null; + //var response = instance.CreateConnectorSmtpConnection(id, createConnectorSmtpConnectionOptions); + //Assert.IsType(response); + } + + /// + /// Test DeleteAllConnector + /// + [Fact] + public void DeleteAllConnectorTest() + { + // TODO uncomment below to test the method and replace null with proper value + //instance.DeleteAllConnector(); + } + + /// + /// Test DeleteConnector + /// + [Fact] + public void DeleteConnectorTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //instance.DeleteConnector(id); + } + + /// + /// Test DeleteConnectorImapConnection + /// + [Fact] + public void DeleteConnectorImapConnectionTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //instance.DeleteConnectorImapConnection(id); + } + + /// + /// Test DeleteConnectorSmtpConnection + /// + [Fact] + public void DeleteConnectorSmtpConnectionTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //instance.DeleteConnectorSmtpConnection(id); + } + + /// + /// Test GetAllConnectorSyncEvents + /// + [Fact] + public void GetAllConnectorSyncEventsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetAllConnectorSyncEvents(page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetConnector + /// + [Fact] + public void GetConnectorTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetConnector(id); + //Assert.IsType(response); + } + + /// + /// Test GetConnectorSyncEvent + /// + [Fact] + public void GetConnectorSyncEventTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetConnectorSyncEvent(id); + //Assert.IsType(response); + } + + /// + /// Test GetConnectorSyncEvents + /// + [Fact] + public void GetConnectorSyncEventsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetConnectorSyncEvents(id, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetConnectors + /// + [Fact] + public void GetConnectorsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetConnectors(page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test SyncConnector + /// + [Fact] + public void SyncConnectorTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.SyncConnector(id); + //Assert.IsType(response); + } + + /// + /// Test UpdateConnector + /// + [Fact] + public void UpdateConnectorTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //CreateConnectorOptions createConnectorOptions = null; + //var response = instance.UpdateConnector(id, createConnectorOptions); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/ContactControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/ContactControllerApiTests.cs new file mode 100644 index 00000000..e72cd828 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/ContactControllerApiTests.cs @@ -0,0 +1,132 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing ContactControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class ContactControllerApiTests : IDisposable + { + private ContactControllerApi instance; + + public ContactControllerApiTests() + { + instance = new ContactControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ContactControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' ContactControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CreateContact + /// + [Fact] + public void CreateContactTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateContactOptions createContactOptions = null; + //var response = instance.CreateContact(createContactOptions); + //Assert.IsType(response); + } + + /// + /// Test DeleteContact + /// + [Fact] + public void DeleteContactTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid contactId = null; + //instance.DeleteContact(contactId); + } + + /// + /// Test GetAllContacts + /// + [Fact] + public void GetAllContactsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //string search = null; + //var response = instance.GetAllContacts(page, size, sort, since, before, search); + //Assert.IsType(response); + } + + /// + /// Test GetContact + /// + [Fact] + public void GetContactTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid contactId = null; + //var response = instance.GetContact(contactId); + //Assert.IsType(response); + } + + /// + /// Test GetContactVCard + /// + [Fact] + public void GetContactVCardTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid contactId = null; + //instance.GetContactVCard(contactId); + } + + /// + /// Test GetContacts + /// + [Fact] + public void GetContactsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetContacts(); + //Assert.IsType>(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/DomainControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/DomainControllerApiTests.cs new file mode 100644 index 00000000..89ca2f0c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/DomainControllerApiTests.cs @@ -0,0 +1,178 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing DomainControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class DomainControllerApiTests : IDisposable + { + private DomainControllerApi instance; + + public DomainControllerApiTests() + { + instance = new DomainControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DomainControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' DomainControllerApi + //Assert.IsType(instance); + } + + /// + /// Test AddDomainWildcardCatchAll + /// + [Fact] + public void AddDomainWildcardCatchAllTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.AddDomainWildcardCatchAll(id); + //Assert.IsType(response); + } + + /// + /// Test CreateDomain + /// + [Fact] + public void CreateDomainTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateDomainOptions createDomainOptions = null; + //var response = instance.CreateDomain(createDomainOptions); + //Assert.IsType(response); + } + + /// + /// Test DeleteDomain + /// + [Fact] + public void DeleteDomainTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.DeleteDomain(id); + //Assert.IsType>(response); + } + + /// + /// Test GetAvailableDomains + /// + [Fact] + public void GetAvailableDomainsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string inboxType = null; + //var response = instance.GetAvailableDomains(inboxType); + //Assert.IsType(response); + } + + /// + /// Test GetDomain + /// + [Fact] + public void GetDomainTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //bool? checkForErrors = null; + //var response = instance.GetDomain(id, checkForErrors); + //Assert.IsType(response); + } + + /// + /// Test GetDomainIssues + /// + [Fact] + public void GetDomainIssuesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetDomainIssues(); + //Assert.IsType(response); + } + + /// + /// Test GetDomainWildcardCatchAllInbox + /// + [Fact] + public void GetDomainWildcardCatchAllInboxTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetDomainWildcardCatchAllInbox(id); + //Assert.IsType(response); + } + + /// + /// Test GetDomains + /// + [Fact] + public void GetDomainsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetDomains(); + //Assert.IsType>(response); + } + + /// + /// Test GetMailSlurpDomains + /// + [Fact] + public void GetMailSlurpDomainsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string inboxType = null; + //var response = instance.GetMailSlurpDomains(inboxType); + //Assert.IsType(response); + } + + /// + /// Test UpdateDomain + /// + [Fact] + public void UpdateDomainTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //UpdateDomainOptions updateDomainOptions = null; + //var response = instance.UpdateDomain(id, updateDomainOptions); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/EmailControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/EmailControllerApiTests.cs new file mode 100644 index 00000000..71da5ea1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/EmailControllerApiTests.cs @@ -0,0 +1,590 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing EmailControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class EmailControllerApiTests : IDisposable + { + private EmailControllerApi instance; + + public EmailControllerApiTests() + { + instance = new EmailControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' EmailControllerApi + //Assert.IsType(instance); + } + + /// + /// Test ApplyImapFlagOperation + /// + [Fact] + public void ApplyImapFlagOperationTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //ImapFlagOperationOptions imapFlagOperationOptions = null; + //var response = instance.ApplyImapFlagOperation(emailId, imapFlagOperationOptions); + //Assert.IsType(response); + } + + /// + /// Test CanSend + /// + [Fact] + public void CanSendTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //SendEmailOptions sendEmailOptions = null; + //var response = instance.CanSend(inboxId, sendEmailOptions); + //Assert.IsType(response); + } + + /// + /// Test CheckEmailBody + /// + [Fact] + public void CheckEmailBodyTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //var response = instance.CheckEmailBody(emailId); + //Assert.IsType(response); + } + + /// + /// Test CheckEmailBodyFeatureSupport + /// + [Fact] + public void CheckEmailBodyFeatureSupportTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //var response = instance.CheckEmailBodyFeatureSupport(emailId); + //Assert.IsType(response); + } + + /// + /// Test CheckEmailClientSupport + /// + [Fact] + public void CheckEmailClientSupportTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CheckEmailClientSupportOptions checkEmailClientSupportOptions = null; + //var response = instance.CheckEmailClientSupport(checkEmailClientSupportOptions); + //Assert.IsType(response); + } + + /// + /// Test DeleteAllEmails + /// + [Fact] + public void DeleteAllEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //instance.DeleteAllEmails(); + } + + /// + /// Test DeleteEmail + /// + [Fact] + public void DeleteEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //instance.DeleteEmail(emailId); + } + + /// + /// Test DownloadAttachment + /// + [Fact] + public void DownloadAttachmentTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //string attachmentId = null; + //string apiKey = null; + //var response = instance.DownloadAttachment(emailId, attachmentId, apiKey); + //Assert.IsType(response); + } + + /// + /// Test DownloadAttachmentBase64 + /// + [Fact] + public void DownloadAttachmentBase64Test() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //string attachmentId = null; + //var response = instance.DownloadAttachmentBase64(emailId, attachmentId); + //Assert.IsType(response); + } + + /// + /// Test DownloadBody + /// + [Fact] + public void DownloadBodyTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //var response = instance.DownloadBody(emailId); + //Assert.IsType(response); + } + + /// + /// Test DownloadBodyBytes + /// + [Fact] + public void DownloadBodyBytesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //var response = instance.DownloadBodyBytes(emailId); + //Assert.IsType(response); + } + + /// + /// Test ForwardEmail + /// + [Fact] + public void ForwardEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //ForwardEmailOptions forwardEmailOptions = null; + //var response = instance.ForwardEmail(emailId, forwardEmailOptions); + //Assert.IsType(response); + } + + /// + /// Test GetAttachmentMetaData + /// + [Fact] + public void GetAttachmentMetaDataTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //string attachmentId = null; + //var response = instance.GetAttachmentMetaData(emailId, attachmentId); + //Assert.IsType(response); + } + + /// + /// Test GetEmail + /// + [Fact] + public void GetEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //bool? decode = null; + //var response = instance.GetEmail(emailId, decode); + //Assert.IsType(response); + } + + /// + /// Test GetEmailAttachments + /// + [Fact] + public void GetEmailAttachmentsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //var response = instance.GetEmailAttachments(emailId); + //Assert.IsType>(response); + } + + /// + /// Test GetEmailContentMatch + /// + [Fact] + public void GetEmailContentMatchTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //ContentMatchOptions contentMatchOptions = null; + //var response = instance.GetEmailContentMatch(emailId, contentMatchOptions); + //Assert.IsType(response); + } + + /// + /// Test GetEmailContentPart + /// + [Fact] + public void GetEmailContentPartTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //string contentType = null; + //var response = instance.GetEmailContentPart(emailId, contentType); + //Assert.IsType(response); + } + + /// + /// Test GetEmailCount + /// + [Fact] + public void GetEmailCountTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //var response = instance.GetEmailCount(inboxId); + //Assert.IsType(response); + } + + /// + /// Test GetEmailHTML + /// + [Fact] + public void GetEmailHTMLTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //bool? decode = null; + //bool? replaceCidImages = null; + //var response = instance.GetEmailHTML(emailId, decode, replaceCidImages); + //Assert.IsType(response); + } + + /// + /// Test GetEmailHTMLJson + /// + [Fact] + public void GetEmailHTMLJsonTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //bool? decode = null; + //bool? replaceCidImages = null; + //var response = instance.GetEmailHTMLJson(emailId, decode, replaceCidImages); + //Assert.IsType(response); + } + + /// + /// Test GetEmailHTMLQuery + /// + [Fact] + public void GetEmailHTMLQueryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //string htmlSelector = null; + //var response = instance.GetEmailHTMLQuery(emailId, htmlSelector); + //Assert.IsType(response); + } + + /// + /// Test GetEmailLinks + /// + [Fact] + public void GetEmailLinksTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //var response = instance.GetEmailLinks(emailId); + //Assert.IsType(response); + } + + /// + /// Test GetEmailPreviewURLs + /// + [Fact] + public void GetEmailPreviewURLsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //var response = instance.GetEmailPreviewURLs(emailId); + //Assert.IsType(response); + } + + /// + /// Test GetEmailScreenshotAsBase64 + /// + [Fact] + public void GetEmailScreenshotAsBase64Test() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //GetEmailScreenshotOptions getEmailScreenshotOptions = null; + //var response = instance.GetEmailScreenshotAsBase64(emailId, getEmailScreenshotOptions); + //Assert.IsType(response); + } + + /// + /// Test GetEmailScreenshotAsBinary + /// + [Fact] + public void GetEmailScreenshotAsBinaryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //GetEmailScreenshotOptions getEmailScreenshotOptions = null; + //instance.GetEmailScreenshotAsBinary(emailId, getEmailScreenshotOptions); + } + + /// + /// Test GetEmailTextLines + /// + [Fact] + public void GetEmailTextLinesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //bool? decodeHtmlEntities = null; + //string lineSeparator = null; + //var response = instance.GetEmailTextLines(emailId, decodeHtmlEntities, lineSeparator); + //Assert.IsType(response); + } + + /// + /// Test GetEmailsOffsetPaginated + /// + [Fact] + public void GetEmailsOffsetPaginatedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //List inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //bool? unreadOnly = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetEmailsOffsetPaginated(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetEmailsPaginated + /// + [Fact] + public void GetEmailsPaginatedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //List inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //bool? unreadOnly = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetEmailsPaginated(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetGravatarUrlForEmailAddress + /// + [Fact] + public void GetGravatarUrlForEmailAddressTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string emailAddress = null; + //string size = null; + //var response = instance.GetGravatarUrlForEmailAddress(emailAddress, size); + //Assert.IsType(response); + } + + /// + /// Test GetLatestEmail + /// + [Fact] + public void GetLatestEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //List inboxIds = null; + //var response = instance.GetLatestEmail(inboxIds); + //Assert.IsType(response); + } + + /// + /// Test GetLatestEmailInInbox1 + /// + [Fact] + public void GetLatestEmailInInbox1Test() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //var response = instance.GetLatestEmailInInbox1(inboxId); + //Assert.IsType(response); + } + + /// + /// Test GetOrganizationEmailsPaginated + /// + [Fact] + public void GetOrganizationEmailsPaginatedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //List inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //bool? unreadOnly = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetOrganizationEmailsPaginated(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetRawEmailContents + /// + [Fact] + public void GetRawEmailContentsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //instance.GetRawEmailContents(emailId); + } + + /// + /// Test GetRawEmailJson + /// + [Fact] + public void GetRawEmailJsonTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //var response = instance.GetRawEmailJson(emailId); + //Assert.IsType(response); + } + + /// + /// Test GetUnreadEmailCount + /// + [Fact] + public void GetUnreadEmailCountTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //var response = instance.GetUnreadEmailCount(inboxId); + //Assert.IsType(response); + } + + /// + /// Test MarkAllAsRead + /// + [Fact] + public void MarkAllAsReadTest() + { + // TODO uncomment below to test the method and replace null with proper value + //bool? read = null; + //Guid? inboxId = null; + //instance.MarkAllAsRead(read, inboxId); + } + + /// + /// Test MarkAsRead + /// + [Fact] + public void MarkAsReadTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //bool? read = null; + //var response = instance.MarkAsRead(emailId, read); + //Assert.IsType(response); + } + + /// + /// Test ReplyToEmail + /// + [Fact] + public void ReplyToEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //ReplyToEmailOptions replyToEmailOptions = null; + //var response = instance.ReplyToEmail(emailId, replyToEmailOptions); + //Assert.IsType(response); + } + + /// + /// Test SearchEmails + /// + [Fact] + public void SearchEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //SearchEmailsOptions searchEmailsOptions = null; + //var response = instance.SearchEmails(searchEmailsOptions); + //Assert.IsType(response); + } + + /// + /// Test SendEmailSourceOptional + /// + [Fact] + public void SendEmailSourceOptionalTest() + { + // TODO uncomment below to test the method and replace null with proper value + //SendEmailOptions sendEmailOptions = null; + //Guid? inboxId = null; + //bool? useDomainPool = null; + //bool? virtualSend = null; + //instance.SendEmailSourceOptional(sendEmailOptions, inboxId, useDomainPool, virtualSend); + } + + /// + /// Test ValidateEmail + /// + [Fact] + public void ValidateEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //var response = instance.ValidateEmail(emailId); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/EmailVerificationControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/EmailVerificationControllerApiTests.cs new file mode 100644 index 00000000..14c36b2c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/EmailVerificationControllerApiTests.cs @@ -0,0 +1,109 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing EmailVerificationControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class EmailVerificationControllerApiTests : IDisposable + { + private EmailVerificationControllerApi instance; + + public EmailVerificationControllerApiTests() + { + instance = new EmailVerificationControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailVerificationControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' EmailVerificationControllerApi + //Assert.IsType(instance); + } + + /// + /// Test DeleteAllValidationRequests + /// + [Fact] + public void DeleteAllValidationRequestsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //instance.DeleteAllValidationRequests(); + } + + /// + /// Test DeleteValidationRequest + /// + [Fact] + public void DeleteValidationRequestTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //instance.DeleteValidationRequest(id); + } + + /// + /// Test GetValidationRequests + /// + [Fact] + public void GetValidationRequestsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //bool? isValid = null; + //var response = instance.GetValidationRequests(page, size, sort, searchFilter, since, before, isValid); + //Assert.IsType(response); + } + + /// + /// Test ValidateEmailAddressList + /// + [Fact] + public void ValidateEmailAddressListTest() + { + // TODO uncomment below to test the method and replace null with proper value + //ValidateEmailAddressListOptions validateEmailAddressListOptions = null; + //var response = instance.ValidateEmailAddressList(validateEmailAddressListOptions); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/ExpiredControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/ExpiredControllerApiTests.cs new file mode 100644 index 00000000..257be2c9 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/ExpiredControllerApiTests.cs @@ -0,0 +1,109 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing ExpiredControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class ExpiredControllerApiTests : IDisposable + { + private ExpiredControllerApi instance; + + public ExpiredControllerApiTests() + { + instance = new ExpiredControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ExpiredControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' ExpiredControllerApi + //Assert.IsType(instance); + } + + /// + /// Test GetExpirationDefaults + /// + [Fact] + public void GetExpirationDefaultsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetExpirationDefaults(); + //Assert.IsType(response); + } + + /// + /// Test GetExpiredInboxByInboxId + /// + [Fact] + public void GetExpiredInboxByInboxIdTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //var response = instance.GetExpiredInboxByInboxId(inboxId); + //Assert.IsType(response); + } + + /// + /// Test GetExpiredInboxRecord + /// + [Fact] + public void GetExpiredInboxRecordTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid expiredId = null; + //var response = instance.GetExpiredInboxRecord(expiredId); + //Assert.IsType(response); + } + + /// + /// Test GetExpiredInboxes + /// + [Fact] + public void GetExpiredInboxesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetExpiredInboxes(page, size, sort, since, before); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/ExportControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/ExportControllerApiTests.cs new file mode 100644 index 00000000..0d7f5be5 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/ExportControllerApiTests.cs @@ -0,0 +1,91 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing ExportControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class ExportControllerApiTests : IDisposable + { + private ExportControllerApi instance; + + public ExportControllerApiTests() + { + instance = new ExportControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ExportControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' ExportControllerApi + //Assert.IsType(instance); + } + + /// + /// Test ExportEntities + /// + [Fact] + public void ExportEntitiesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string exportType = null; + //string apiKey = null; + //string outputFormat = null; + //string filter = null; + //string listSeparatorToken = null; + //bool? excludePreviouslyExported = null; + //DateTime? createdEarliestTime = null; + //DateTime? createdOldestTime = null; + //var response = instance.ExportEntities(exportType, apiKey, outputFormat, filter, listSeparatorToken, excludePreviouslyExported, createdEarliestTime, createdOldestTime); + //Assert.IsType(response); + } + + /// + /// Test GetExportLink + /// + [Fact] + public void GetExportLinkTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string exportType = null; + //ExportOptions exportOptions = null; + //string apiKey = null; + //var response = instance.GetExportLink(exportType, exportOptions, apiKey); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/FormControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/FormControllerApiTests.cs new file mode 100644 index 00000000..a5fda2ec --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/FormControllerApiTests.cs @@ -0,0 +1,74 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing FormControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class FormControllerApiTests : IDisposable + { + private FormControllerApi instance; + + public FormControllerApiTests() + { + instance = new FormControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of FormControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' FormControllerApi + //Assert.IsType(instance); + } + + /// + /// Test SubmitForm + /// + [Fact] + public void SubmitFormTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string to = null; + //string subject = null; + //string redirectTo = null; + //string emailAddress = null; + //string successMessage = null; + //string spamCheck = null; + //string otherParameters = null; + //var response = instance.SubmitForm(to, subject, redirectTo, emailAddress, successMessage, spamCheck, otherParameters); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/GroupControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/GroupControllerApiTests.cs new file mode 100644 index 00000000..65f84ea3 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/GroupControllerApiTests.cs @@ -0,0 +1,175 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing GroupControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class GroupControllerApiTests : IDisposable + { + private GroupControllerApi instance; + + public GroupControllerApiTests() + { + instance = new GroupControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GroupControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' GroupControllerApi + //Assert.IsType(instance); + } + + /// + /// Test AddContactsToGroup + /// + [Fact] + public void AddContactsToGroupTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid groupId = null; + //UpdateGroupContacts updateGroupContacts = null; + //var response = instance.AddContactsToGroup(groupId, updateGroupContacts); + //Assert.IsType(response); + } + + /// + /// Test CreateGroup + /// + [Fact] + public void CreateGroupTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateGroupOptions createGroupOptions = null; + //var response = instance.CreateGroup(createGroupOptions); + //Assert.IsType(response); + } + + /// + /// Test DeleteGroup + /// + [Fact] + public void DeleteGroupTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid groupId = null; + //instance.DeleteGroup(groupId); + } + + /// + /// Test GetAllGroups + /// + [Fact] + public void GetAllGroupsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetAllGroups(page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetGroup + /// + [Fact] + public void GetGroupTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid groupId = null; + //var response = instance.GetGroup(groupId); + //Assert.IsType(response); + } + + /// + /// Test GetGroupWithContacts + /// + [Fact] + public void GetGroupWithContactsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid groupId = null; + //var response = instance.GetGroupWithContacts(groupId); + //Assert.IsType(response); + } + + /// + /// Test GetGroupWithContactsPaginated + /// + [Fact] + public void GetGroupWithContactsPaginatedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid groupId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetGroupWithContactsPaginated(groupId, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetGroups + /// + [Fact] + public void GetGroupsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetGroups(); + //Assert.IsType>(response); + } + + /// + /// Test RemoveContactsFromGroup + /// + [Fact] + public void RemoveContactsFromGroupTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid groupId = null; + //UpdateGroupContacts updateGroupContacts = null; + //var response = instance.RemoveContactsFromGroup(groupId, updateGroupContacts); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/ImapControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/ImapControllerApiTests.cs new file mode 100644 index 00000000..c16708ce --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/ImapControllerApiTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing ImapControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class ImapControllerApiTests : IDisposable + { + private ImapControllerApi instance; + + public ImapControllerApiTests() + { + instance = new ImapControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' ImapControllerApi + //Assert.IsType(instance); + } + + /// + /// Test ImapServerFetch + /// + [Fact] + public void ImapServerFetchTest() + { + // TODO uncomment below to test the method and replace null with proper value + //long seqNum = null; + //Guid? inboxId = null; + //var response = instance.ImapServerFetch(seqNum, inboxId); + //Assert.IsType(response); + } + + /// + /// Test ImapServerGet + /// + [Fact] + public void ImapServerGetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //Guid? inboxId = null; + //var response = instance.ImapServerGet(emailId, inboxId); + //Assert.IsType(response); + } + + /// + /// Test ImapServerList + /// + [Fact] + public void ImapServerListTest() + { + // TODO uncomment below to test the method and replace null with proper value + //ImapServerListOptions imapServerListOptions = null; + //Guid? inboxId = null; + //var response = instance.ImapServerList(imapServerListOptions, inboxId); + //Assert.IsType(response); + } + + /// + /// Test ImapServerSearch + /// + [Fact] + public void ImapServerSearchTest() + { + // TODO uncomment below to test the method and replace null with proper value + //ImapServerSearchOptions imapServerSearchOptions = null; + //Guid? inboxId = null; + //var response = instance.ImapServerSearch(imapServerSearchOptions, inboxId); + //Assert.IsType(response); + } + + /// + /// Test ImapServerStatus + /// + [Fact] + public void ImapServerStatusTest() + { + // TODO uncomment below to test the method and replace null with proper value + //ImapServerStatusOptions imapServerStatusOptions = null; + //Guid? inboxId = null; + //var response = instance.ImapServerStatus(imapServerStatusOptions, inboxId); + //Assert.IsType(response); + } + + /// + /// Test ImapServerUpdateFlags + /// + [Fact] + public void ImapServerUpdateFlagsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //ImapUpdateFlagsOptions imapUpdateFlagsOptions = null; + //Guid? inboxId = null; + //instance.ImapServerUpdateFlags(imapUpdateFlagsOptions, inboxId); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/InboxControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/InboxControllerApiTests.cs new file mode 100644 index 00000000..a1f9b412 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/InboxControllerApiTests.cs @@ -0,0 +1,748 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing InboxControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class InboxControllerApiTests : IDisposable + { + private InboxControllerApi instance; + + public InboxControllerApiTests() + { + instance = new InboxControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' InboxControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CancelScheduledJob + /// + [Fact] + public void CancelScheduledJobTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid jobId = null; + //var response = instance.CancelScheduledJob(jobId); + //Assert.IsType(response); + } + + /// + /// Test CreateInbox + /// + [Fact] + public void CreateInboxTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string emailAddress = null; + //List tags = null; + //string name = null; + //string description = null; + //bool? useDomainPool = null; + //bool? favourite = null; + //DateTime? expiresAt = null; + //long? expiresIn = null; + //bool? allowTeamAccess = null; + //string inboxType = null; + //bool? virtualInbox = null; + //bool? useShortAddress = null; + //Guid? domainId = null; + //string domainName = null; + //string prefix = null; + //var response = instance.CreateInbox(emailAddress, tags, name, description, useDomainPool, favourite, expiresAt, expiresIn, allowTeamAccess, inboxType, virtualInbox, useShortAddress, domainId, domainName, prefix); + //Assert.IsType(response); + } + + /// + /// Test CreateInboxRuleset + /// + [Fact] + public void CreateInboxRulesetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //CreateInboxRulesetOptions createInboxRulesetOptions = null; + //var response = instance.CreateInboxRuleset(inboxId, createInboxRulesetOptions); + //Assert.IsType(response); + } + + /// + /// Test CreateInboxWithDefaults + /// + [Fact] + public void CreateInboxWithDefaultsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.CreateInboxWithDefaults(); + //Assert.IsType(response); + } + + /// + /// Test CreateInboxWithOptions + /// + [Fact] + public void CreateInboxWithOptionsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateInboxDto createInboxDto = null; + //var response = instance.CreateInboxWithOptions(createInboxDto); + //Assert.IsType(response); + } + + /// + /// Test DeleteAllInboxEmails + /// + [Fact] + public void DeleteAllInboxEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //instance.DeleteAllInboxEmails(inboxId); + } + + /// + /// Test DeleteAllInboxes + /// + [Fact] + public void DeleteAllInboxesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //instance.DeleteAllInboxes(); + } + + /// + /// Test DeleteAllInboxesByDescription + /// + [Fact] + public void DeleteAllInboxesByDescriptionTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string description = null; + //instance.DeleteAllInboxesByDescription(description); + } + + /// + /// Test DeleteAllInboxesByName + /// + [Fact] + public void DeleteAllInboxesByNameTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string name = null; + //instance.DeleteAllInboxesByName(name); + } + + /// + /// Test DeleteAllInboxesByTag + /// + [Fact] + public void DeleteAllInboxesByTagTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string tag = null; + //instance.DeleteAllInboxesByTag(tag); + } + + /// + /// Test DeleteInbox + /// + [Fact] + public void DeleteInboxTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //instance.DeleteInbox(inboxId); + } + + /// + /// Test DoesInboxExist + /// + [Fact] + public void DoesInboxExistTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string emailAddress = null; + //bool? allowCatchAll = null; + //var response = instance.DoesInboxExist(emailAddress, allowCatchAll); + //Assert.IsType(response); + } + + /// + /// Test FlushExpired + /// + [Fact] + public void FlushExpiredTest() + { + // TODO uncomment below to test the method and replace null with proper value + //DateTime? before = null; + //var response = instance.FlushExpired(before); + //Assert.IsType(response); + } + + /// + /// Test GetAllInboxes + /// + [Fact] + public void GetAllInboxesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //bool? favourite = null; + //string search = null; + //string tag = null; + //bool? teamAccess = null; + //DateTime? since = null; + //DateTime? before = null; + //string inboxType = null; + //string inboxFunction = null; + //Guid? domainId = null; + //var response = instance.GetAllInboxes(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId); + //Assert.IsType(response); + } + + /// + /// Test GetAllInboxesOffsetPaginated + /// + [Fact] + public void GetAllInboxesOffsetPaginatedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //bool? favourite = null; + //string search = null; + //string tag = null; + //bool? teamAccess = null; + //DateTime? since = null; + //DateTime? before = null; + //string inboxType = null; + //string inboxFunction = null; + //Guid? domainId = null; + //var response = instance.GetAllInboxesOffsetPaginated(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId); + //Assert.IsType(response); + } + + /// + /// Test GetAllScheduledJobs + /// + [Fact] + public void GetAllScheduledJobsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetAllScheduledJobs(page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetDeliveryStatusesByInboxId + /// + [Fact] + public void GetDeliveryStatusesByInboxIdTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetDeliveryStatusesByInboxId(inboxId, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetEmails + /// + [Fact] + public void GetEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //int? size = null; + //int? limit = null; + //string sort = null; + //long? retryTimeout = null; + //long? delayTimeout = null; + //long? minCount = null; + //bool? unreadOnly = null; + //DateTime? before = null; + //DateTime? since = null; + //var response = instance.GetEmails(inboxId, size, limit, sort, retryTimeout, delayTimeout, minCount, unreadOnly, before, since); + //Assert.IsType>(response); + } + + /// + /// Test GetImapAccess + /// + [Fact] + public void GetImapAccessTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //var response = instance.GetImapAccess(inboxId); + //Assert.IsType(response); + } + + /// + /// Test GetImapSmtpAccess + /// + [Fact] + public void GetImapSmtpAccessTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //var response = instance.GetImapSmtpAccess(inboxId); + //Assert.IsType(response); + } + + /// + /// Test GetImapSmtpAccessEnv + /// + [Fact] + public void GetImapSmtpAccessEnvTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //var response = instance.GetImapSmtpAccessEnv(inboxId); + //Assert.IsType(response); + } + + /// + /// Test GetImapSmtpAccessServers + /// + [Fact] + public void GetImapSmtpAccessServersTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetImapSmtpAccessServers(); + //Assert.IsType(response); + } + + /// + /// Test GetInbox + /// + [Fact] + public void GetInboxTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //var response = instance.GetInbox(inboxId); + //Assert.IsType(response); + } + + /// + /// Test GetInboxByEmailAddress + /// + [Fact] + public void GetInboxByEmailAddressTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string emailAddress = null; + //var response = instance.GetInboxByEmailAddress(emailAddress); + //Assert.IsType(response); + } + + /// + /// Test GetInboxByName + /// + [Fact] + public void GetInboxByNameTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string name = null; + //var response = instance.GetInboxByName(name); + //Assert.IsType(response); + } + + /// + /// Test GetInboxCount + /// + [Fact] + public void GetInboxCountTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetInboxCount(); + //Assert.IsType(response); + } + + /// + /// Test GetInboxEmailCount + /// + [Fact] + public void GetInboxEmailCountTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //var response = instance.GetInboxEmailCount(inboxId); + //Assert.IsType(response); + } + + /// + /// Test GetInboxEmailsPaginated + /// + [Fact] + public void GetInboxEmailsPaginatedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetInboxEmailsPaginated(inboxId, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetInboxIds + /// + [Fact] + public void GetInboxIdsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetInboxIds(); + //Assert.IsType(response); + } + + /// + /// Test GetInboxSentEmails + /// + [Fact] + public void GetInboxSentEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetInboxSentEmails(inboxId, page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetInboxTags + /// + [Fact] + public void GetInboxTagsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetInboxTags(); + //Assert.IsType>(response); + } + + /// + /// Test GetInboxes + /// + [Fact] + public void GetInboxesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? size = null; + //string sort = null; + //DateTime? since = null; + //bool? excludeCatchAllInboxes = null; + //DateTime? before = null; + //var response = instance.GetInboxes(size, sort, since, excludeCatchAllInboxes, before); + //Assert.IsType>(response); + } + + /// + /// Test GetLatestEmailInInbox + /// + [Fact] + public void GetLatestEmailInInboxTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //long timeoutMillis = null; + //var response = instance.GetLatestEmailInInbox(inboxId, timeoutMillis); + //Assert.IsType(response); + } + + /// + /// Test GetOrganizationInboxes + /// + [Fact] + public void GetOrganizationInboxesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetOrganizationInboxes(page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetScheduledJob + /// + [Fact] + public void GetScheduledJobTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid jobId = null; + //var response = instance.GetScheduledJob(jobId); + //Assert.IsType(response); + } + + /// + /// Test GetScheduledJobsByInboxId + /// + [Fact] + public void GetScheduledJobsByInboxIdTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetScheduledJobsByInboxId(inboxId, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetSmtpAccess + /// + [Fact] + public void GetSmtpAccessTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //var response = instance.GetSmtpAccess(inboxId); + //Assert.IsType(response); + } + + /// + /// Test ListInboxRulesets + /// + [Fact] + public void ListInboxRulesetsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.ListInboxRulesets(inboxId, page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test ListInboxTrackingPixels + /// + [Fact] + public void ListInboxTrackingPixelsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.ListInboxTrackingPixels(inboxId, page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test SearchInboxes + /// + [Fact] + public void SearchInboxesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //SearchInboxesOptions searchInboxesOptions = null; + //var response = instance.SearchInboxes(searchInboxesOptions); + //Assert.IsType(response); + } + + /// + /// Test SendEmail + /// + [Fact] + public void SendEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //SendEmailOptions sendEmailOptions = null; + //instance.SendEmail(inboxId, sendEmailOptions); + } + + /// + /// Test SendEmailAndConfirm + /// + [Fact] + public void SendEmailAndConfirmTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //SendEmailOptions sendEmailOptions = null; + //var response = instance.SendEmailAndConfirm(inboxId, sendEmailOptions); + //Assert.IsType(response); + } + + /// + /// Test SendEmailWithQueue + /// + [Fact] + public void SendEmailWithQueueTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //bool validateBeforeEnqueue = null; + //SendEmailOptions sendEmailOptions = null; + //instance.SendEmailWithQueue(inboxId, validateBeforeEnqueue, sendEmailOptions); + } + + /// + /// Test SendSmtpEnvelope + /// + [Fact] + public void SendSmtpEnvelopeTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions = null; + //var response = instance.SendSmtpEnvelope(inboxId, sendSMTPEnvelopeOptions); + //Assert.IsType(response); + } + + /// + /// Test SendTestEmail + /// + [Fact] + public void SendTestEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //instance.SendTestEmail(inboxId); + } + + /// + /// Test SendWithSchedule + /// + [Fact] + public void SendWithScheduleTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //SendEmailOptions sendEmailOptions = null; + //DateTime? sendAtTimestamp = null; + //long? sendAtNowPlusSeconds = null; + //bool? validateBeforeEnqueue = null; + //var response = instance.SendWithSchedule(inboxId, sendEmailOptions, sendAtTimestamp, sendAtNowPlusSeconds, validateBeforeEnqueue); + //Assert.IsType(response); + } + + /// + /// Test SetInboxFavourited + /// + [Fact] + public void SetInboxFavouritedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //SetInboxFavouritedOptions setInboxFavouritedOptions = null; + //var response = instance.SetInboxFavourited(inboxId, setInboxFavouritedOptions); + //Assert.IsType(response); + } + + /// + /// Test UpdateImapAccess + /// + [Fact] + public void UpdateImapAccessTest() + { + // TODO uncomment below to test the method and replace null with proper value + //UpdateImapAccessOptions updateImapAccessOptions = null; + //Guid? inboxId = null; + //instance.UpdateImapAccess(updateImapAccessOptions, inboxId); + } + + /// + /// Test UpdateInbox + /// + [Fact] + public void UpdateInboxTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //UpdateInboxOptions updateInboxOptions = null; + //var response = instance.UpdateInbox(inboxId, updateInboxOptions); + //Assert.IsType(response); + } + + /// + /// Test UpdateSmtpAccess + /// + [Fact] + public void UpdateSmtpAccessTest() + { + // TODO uncomment below to test the method and replace null with proper value + //UpdateSmtpAccessOptions updateSmtpAccessOptions = null; + //Guid? inboxId = null; + //instance.UpdateSmtpAccess(updateSmtpAccessOptions, inboxId); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/InboxForwarderControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/InboxForwarderControllerApiTests.cs new file mode 100644 index 00000000..01cb32b9 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/InboxForwarderControllerApiTests.cs @@ -0,0 +1,229 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing InboxForwarderControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class InboxForwarderControllerApiTests : IDisposable + { + private InboxForwarderControllerApi instance; + + public InboxForwarderControllerApiTests() + { + instance = new InboxForwarderControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxForwarderControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' InboxForwarderControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CreateNewInboxForwarder + /// + [Fact] + public void CreateNewInboxForwarderTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //CreateInboxForwarderOptions createInboxForwarderOptions = null; + //var response = instance.CreateNewInboxForwarder(inboxId, createInboxForwarderOptions); + //Assert.IsType(response); + } + + /// + /// Test DeleteInboxForwarder + /// + [Fact] + public void DeleteInboxForwarderTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //instance.DeleteInboxForwarder(id); + } + + /// + /// Test DeleteInboxForwarders + /// + [Fact] + public void DeleteInboxForwardersTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //instance.DeleteInboxForwarders(inboxId); + } + + /// + /// Test GetAllInboxForwarderEvents + /// + [Fact] + public void GetAllInboxForwarderEventsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //Guid? inboxId = null; + //string sort = null; + //var response = instance.GetAllInboxForwarderEvents(page, size, inboxId, sort); + //Assert.IsType(response); + } + + /// + /// Test GetForwarderEvent + /// + [Fact] + public void GetForwarderEventTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid eventId = null; + //var response = instance.GetForwarderEvent(eventId); + //Assert.IsType(response); + } + + /// + /// Test GetInboxForwarder + /// + [Fact] + public void GetInboxForwarderTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetInboxForwarder(id); + //Assert.IsType(response); + } + + /// + /// Test GetInboxForwarderEvent + /// + [Fact] + public void GetInboxForwarderEventTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //Guid eventId = null; + //var response = instance.GetInboxForwarderEvent(id, eventId); + //Assert.IsType(response); + } + + /// + /// Test GetInboxForwarderEvents + /// + [Fact] + public void GetInboxForwarderEventsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //int? page = null; + //int? size = null; + //string sort = null; + //var response = instance.GetInboxForwarderEvents(id, page, size, sort); + //Assert.IsType(response); + } + + /// + /// Test GetInboxForwarders + /// + [Fact] + public void GetInboxForwardersTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetInboxForwarders(inboxId, page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test TestInboxForwarder + /// + [Fact] + public void TestInboxForwarderTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //InboxForwarderTestOptions inboxForwarderTestOptions = null; + //var response = instance.TestInboxForwarder(id, inboxForwarderTestOptions); + //Assert.IsType(response); + } + + /// + /// Test TestInboxForwardersForInbox + /// + [Fact] + public void TestInboxForwardersForInboxTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //InboxForwarderTestOptions inboxForwarderTestOptions = null; + //var response = instance.TestInboxForwardersForInbox(inboxId, inboxForwarderTestOptions); + //Assert.IsType(response); + } + + /// + /// Test TestNewInboxForwarder + /// + [Fact] + public void TestNewInboxForwarderTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestNewInboxForwarderOptions testNewInboxForwarderOptions = null; + //var response = instance.TestNewInboxForwarder(testNewInboxForwarderOptions); + //Assert.IsType(response); + } + + /// + /// Test UpdateInboxForwarder + /// + [Fact] + public void UpdateInboxForwarderTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //CreateInboxForwarderOptions createInboxForwarderOptions = null; + //var response = instance.UpdateInboxForwarder(id, createInboxForwarderOptions); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/InboxReplierControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/InboxReplierControllerApiTests.cs new file mode 100644 index 00000000..c62f11f3 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/InboxReplierControllerApiTests.cs @@ -0,0 +1,149 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing InboxReplierControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class InboxReplierControllerApiTests : IDisposable + { + private InboxReplierControllerApi instance; + + public InboxReplierControllerApiTests() + { + instance = new InboxReplierControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxReplierControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' InboxReplierControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CreateNewInboxReplier + /// + [Fact] + public void CreateNewInboxReplierTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateInboxReplierOptions createInboxReplierOptions = null; + //var response = instance.CreateNewInboxReplier(createInboxReplierOptions); + //Assert.IsType(response); + } + + /// + /// Test DeleteInboxReplier + /// + [Fact] + public void DeleteInboxReplierTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //instance.DeleteInboxReplier(id); + } + + /// + /// Test DeleteInboxRepliers + /// + [Fact] + public void DeleteInboxRepliersTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //instance.DeleteInboxRepliers(inboxId); + } + + /// + /// Test GetInboxReplier + /// + [Fact] + public void GetInboxReplierTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetInboxReplier(id); + //Assert.IsType(response); + } + + /// + /// Test GetInboxReplierEvents + /// + [Fact] + public void GetInboxReplierEventsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //int? page = null; + //int? size = null; + //string sort = null; + //var response = instance.GetInboxReplierEvents(id, page, size, sort); + //Assert.IsType(response); + } + + /// + /// Test GetInboxRepliers + /// + [Fact] + public void GetInboxRepliersTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetInboxRepliers(inboxId, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test UpdateInboxReplier + /// + [Fact] + public void UpdateInboxReplierTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //UpdateInboxReplierOptions updateInboxReplierOptions = null; + //var response = instance.UpdateInboxReplier(id, updateInboxReplierOptions); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/InboxRulesetControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/InboxRulesetControllerApiTests.cs new file mode 100644 index 00000000..962a6679 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/InboxRulesetControllerApiTests.cs @@ -0,0 +1,185 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing InboxRulesetControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class InboxRulesetControllerApiTests : IDisposable + { + private InboxRulesetControllerApi instance; + + public InboxRulesetControllerApiTests() + { + instance = new InboxRulesetControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxRulesetControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' InboxRulesetControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CreateNewInboxRuleset + /// + [Fact] + public void CreateNewInboxRulesetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateInboxRulesetOptions createInboxRulesetOptions = null; + //Guid? inboxId = null; + //var response = instance.CreateNewInboxRuleset(createInboxRulesetOptions, inboxId); + //Assert.IsType(response); + } + + /// + /// Test DeleteInboxRuleset + /// + [Fact] + public void DeleteInboxRulesetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //instance.DeleteInboxRuleset(id); + } + + /// + /// Test DeleteInboxRulesets + /// + [Fact] + public void DeleteInboxRulesetsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //instance.DeleteInboxRulesets(inboxId); + } + + /// + /// Test GetInboxRuleset + /// + [Fact] + public void GetInboxRulesetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetInboxRuleset(id); + //Assert.IsType(response); + } + + /// + /// Test GetInboxRulesets + /// + [Fact] + public void GetInboxRulesetsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetInboxRulesets(inboxId, page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test TestInboxRuleset + /// + [Fact] + public void TestInboxRulesetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //InboxRulesetTestOptions inboxRulesetTestOptions = null; + //var response = instance.TestInboxRuleset(id, inboxRulesetTestOptions); + //Assert.IsType(response); + } + + /// + /// Test TestInboxRulesetReceiving + /// + [Fact] + public void TestInboxRulesetReceivingTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestInboxRulesetReceivingOptions testInboxRulesetReceivingOptions = null; + //var response = instance.TestInboxRulesetReceiving(testInboxRulesetReceivingOptions); + //Assert.IsType(response); + } + + /// + /// Test TestInboxRulesetSending + /// + [Fact] + public void TestInboxRulesetSendingTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestInboxRulesetSendingOptions testInboxRulesetSendingOptions = null; + //var response = instance.TestInboxRulesetSending(testInboxRulesetSendingOptions); + //Assert.IsType(response); + } + + /// + /// Test TestInboxRulesetsForInbox + /// + [Fact] + public void TestInboxRulesetsForInboxTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //InboxRulesetTestOptions inboxRulesetTestOptions = null; + //var response = instance.TestInboxRulesetsForInbox(inboxId, inboxRulesetTestOptions); + //Assert.IsType(response); + } + + /// + /// Test TestNewInboxRuleset + /// + [Fact] + public void TestNewInboxRulesetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestNewInboxRulesetOptions testNewInboxRulesetOptions = null; + //var response = instance.TestNewInboxRuleset(testNewInboxRulesetOptions); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/MailServerControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/MailServerControllerApiTests.cs new file mode 100644 index 00000000..133979c4 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/MailServerControllerApiTests.cs @@ -0,0 +1,118 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing MailServerControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class MailServerControllerApiTests : IDisposable + { + private MailServerControllerApi instance; + + public MailServerControllerApiTests() + { + instance = new MailServerControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of MailServerControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' MailServerControllerApi + //Assert.IsType(instance); + } + + /// + /// Test DescribeMailServerDomain + /// + [Fact] + public void DescribeMailServerDomainTest() + { + // TODO uncomment below to test the method and replace null with proper value + //DescribeDomainOptions describeDomainOptions = null; + //var response = instance.DescribeMailServerDomain(describeDomainOptions); + //Assert.IsType(response); + } + + /// + /// Test GetDnsLookup + /// + [Fact] + public void GetDnsLookupTest() + { + // TODO uncomment below to test the method and replace null with proper value + //DNSLookupOptions dNSLookupOptions = null; + //var response = instance.GetDnsLookup(dNSLookupOptions); + //Assert.IsType(response); + } + + /// + /// Test GetDnsLookups + /// + [Fact] + public void GetDnsLookupsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //DNSLookupsOptions dNSLookupsOptions = null; + //var response = instance.GetDnsLookups(dNSLookupsOptions); + //Assert.IsType(response); + } + + /// + /// Test GetIpAddress + /// + [Fact] + public void GetIpAddressTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string name = null; + //var response = instance.GetIpAddress(name); + //Assert.IsType(response); + } + + /// + /// Test VerifyEmailAddress + /// + [Fact] + public void VerifyEmailAddressTest() + { + // TODO uncomment below to test the method and replace null with proper value + //VerifyEmailAddressOptions verifyEmailAddressOptions = null; + //var response = instance.VerifyEmailAddress(verifyEmailAddressOptions); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/MissedEmailControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/MissedEmailControllerApiTests.cs new file mode 100644 index 00000000..31c94121 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/MissedEmailControllerApiTests.cs @@ -0,0 +1,132 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing MissedEmailControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class MissedEmailControllerApiTests : IDisposable + { + private MissedEmailControllerApi instance; + + public MissedEmailControllerApiTests() + { + instance = new MissedEmailControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of MissedEmailControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' MissedEmailControllerApi + //Assert.IsType(instance); + } + + /// + /// Test GetAllMissedEmails + /// + [Fact] + public void GetAllMissedEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //Guid? inboxId = null; + //var response = instance.GetAllMissedEmails(page, size, sort, searchFilter, since, before, inboxId); + //Assert.IsType(response); + } + + /// + /// Test GetAllUnknownMissedEmails + /// + [Fact] + public void GetAllUnknownMissedEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //Guid? inboxId = null; + //var response = instance.GetAllUnknownMissedEmails(page, size, sort, searchFilter, since, before, inboxId); + //Assert.IsType(response); + } + + /// + /// Test GetMissedEmail + /// + [Fact] + public void GetMissedEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid missedEmailId = null; + //var response = instance.GetMissedEmail(missedEmailId); + //Assert.IsType(response); + } + + /// + /// Test RestoreMissedEmails + /// + [Fact] + public void RestoreMissedEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //instance.RestoreMissedEmails(); + } + + /// + /// Test WaitForNthMissedEmail + /// + [Fact] + public void WaitForNthMissedEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int index = null; + //Guid? inboxId = null; + //long? timeout = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.WaitForNthMissedEmail(index, inboxId, timeout, since, before); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/PhoneControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/PhoneControllerApiTests.cs new file mode 100644 index 00000000..e5907ade --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/PhoneControllerApiTests.cs @@ -0,0 +1,169 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing PhoneControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class PhoneControllerApiTests : IDisposable + { + private PhoneControllerApi instance; + + public PhoneControllerApiTests() + { + instance = new PhoneControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PhoneControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' PhoneControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CreateEmergencyAddress + /// + [Fact] + public void CreateEmergencyAddressTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateEmergencyAddressOptions createEmergencyAddressOptions = null; + //var response = instance.CreateEmergencyAddress(createEmergencyAddressOptions); + //Assert.IsType(response); + } + + /// + /// Test DeleteEmergencyAddress + /// + [Fact] + public void DeleteEmergencyAddressTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid addressId = null; + //var response = instance.DeleteEmergencyAddress(addressId); + //Assert.IsType(response); + } + + /// + /// Test DeletePhoneNumber + /// + [Fact] + public void DeletePhoneNumberTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid phoneNumberId = null; + //instance.DeletePhoneNumber(phoneNumberId); + } + + /// + /// Test GetEmergencyAddress + /// + [Fact] + public void GetEmergencyAddressTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid addressId = null; + //var response = instance.GetEmergencyAddress(addressId); + //Assert.IsType(response); + } + + /// + /// Test GetEmergencyAddresses + /// + [Fact] + public void GetEmergencyAddressesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetEmergencyAddresses(); + //Assert.IsType>(response); + } + + /// + /// Test GetPhoneNumber + /// + [Fact] + public void GetPhoneNumberTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid phoneNumberId = null; + //var response = instance.GetPhoneNumber(phoneNumberId); + //Assert.IsType(response); + } + + /// + /// Test GetPhoneNumbers + /// + [Fact] + public void GetPhoneNumbersTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string phoneCountry = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetPhoneNumbers(phoneCountry, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetPhonePlans + /// + [Fact] + public void GetPhonePlansTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetPhonePlans(); + //Assert.IsType>(response); + } + + /// + /// Test TestPhoneNumberSendSms + /// + [Fact] + public void TestPhoneNumberSendSmsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid phoneNumberId = null; + //TestPhoneNumberOptions testPhoneNumberOptions = null; + //string xTestId = null; + //instance.TestPhoneNumberSendSms(phoneNumberId, testPhoneNumberOptions, xTestId); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/SentEmailsControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/SentEmailsControllerApiTests.cs new file mode 100644 index 00000000..33498ea3 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/SentEmailsControllerApiTests.cs @@ -0,0 +1,287 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing SentEmailsControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class SentEmailsControllerApiTests : IDisposable + { + private SentEmailsControllerApi instance; + + public SentEmailsControllerApiTests() + { + instance = new SentEmailsControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SentEmailsControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' SentEmailsControllerApi + //Assert.IsType(instance); + } + + /// + /// Test DeleteAllSentEmails + /// + [Fact] + public void DeleteAllSentEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //instance.DeleteAllSentEmails(); + } + + /// + /// Test DeleteSentEmail + /// + [Fact] + public void DeleteSentEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //instance.DeleteSentEmail(id); + } + + /// + /// Test GetAllSentTrackingPixels + /// + [Fact] + public void GetAllSentTrackingPixelsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetAllSentTrackingPixels(page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetRawSentEmailContents + /// + [Fact] + public void GetRawSentEmailContentsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //instance.GetRawSentEmailContents(emailId); + } + + /// + /// Test GetRawSentEmailJson + /// + [Fact] + public void GetRawSentEmailJsonTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid emailId = null; + //var response = instance.GetRawSentEmailJson(emailId); + //Assert.IsType(response); + } + + /// + /// Test GetSentDeliveryStatus + /// + [Fact] + public void GetSentDeliveryStatusTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid deliveryId = null; + //var response = instance.GetSentDeliveryStatus(deliveryId); + //Assert.IsType(response); + } + + /// + /// Test GetSentDeliveryStatuses + /// + [Fact] + public void GetSentDeliveryStatusesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetSentDeliveryStatuses(page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetSentDeliveryStatusesBySentId + /// + [Fact] + public void GetSentDeliveryStatusesBySentIdTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid sentId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetSentDeliveryStatusesBySentId(sentId, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetSentEmail + /// + [Fact] + public void GetSentEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetSentEmail(id); + //Assert.IsType(response); + } + + /// + /// Test GetSentEmailHTMLContent + /// + [Fact] + public void GetSentEmailHTMLContentTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetSentEmailHTMLContent(id); + //Assert.IsType(response); + } + + /// + /// Test GetSentEmailPreviewURLs + /// + [Fact] + public void GetSentEmailPreviewURLsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetSentEmailPreviewURLs(id); + //Assert.IsType(response); + } + + /// + /// Test GetSentEmailTrackingPixels + /// + [Fact] + public void GetSentEmailTrackingPixelsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetSentEmailTrackingPixels(id, page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetSentEmails + /// + [Fact] + public void GetSentEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetSentEmails(inboxId, page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetSentEmailsWithQueueResults + /// + [Fact] + public void GetSentEmailsWithQueueResultsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetSentEmailsWithQueueResults(page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetSentOrganizationEmails + /// + [Fact] + public void GetSentOrganizationEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetSentOrganizationEmails(inboxId, page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test WaitForDeliveryStatuses + /// + [Fact] + public void WaitForDeliveryStatusesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? sentId = null; + //Guid? inboxId = null; + //long? timeout = null; + //int? index = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.WaitForDeliveryStatuses(sentId, inboxId, timeout, index, since, before); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/SmsControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/SmsControllerApiTests.cs new file mode 100644 index 00000000..f2b53e56 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/SmsControllerApiTests.cs @@ -0,0 +1,157 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing SmsControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class SmsControllerApiTests : IDisposable + { + private SmsControllerApi instance; + + public SmsControllerApiTests() + { + instance = new SmsControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SmsControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' SmsControllerApi + //Assert.IsType(instance); + } + + /// + /// Test DeleteSmsMessage + /// + [Fact] + public void DeleteSmsMessageTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid smsId = null; + //instance.DeleteSmsMessage(smsId); + } + + /// + /// Test DeleteSmsMessages + /// + [Fact] + public void DeleteSmsMessagesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? phoneNumberId = null; + //instance.DeleteSmsMessages(phoneNumberId); + } + + /// + /// Test GetReplyForSmsMessage + /// + [Fact] + public void GetReplyForSmsMessageTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid smsId = null; + //var response = instance.GetReplyForSmsMessage(smsId); + //Assert.IsType(response); + } + + /// + /// Test GetSmsCount + /// + [Fact] + public void GetSmsCountTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetSmsCount(); + //Assert.IsType(response); + } + + /// + /// Test GetSmsMessage + /// + [Fact] + public void GetSmsMessageTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid smsId = null; + //var response = instance.GetSmsMessage(smsId); + //Assert.IsType(response); + } + + /// + /// Test GetSmsMessagesPaginated + /// + [Fact] + public void GetSmsMessagesPaginatedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? phoneNumber = null; + //int? page = null; + //int? size = null; + //string sort = null; + //bool? unreadOnly = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetSmsMessagesPaginated(phoneNumber, page, size, sort, unreadOnly, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetUnreadSmsCount + /// + [Fact] + public void GetUnreadSmsCountTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetUnreadSmsCount(); + //Assert.IsType(response); + } + + /// + /// Test ReplyToSmsMessage + /// + [Fact] + public void ReplyToSmsMessageTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid smsId = null; + //SmsReplyOptions smsReplyOptions = null; + //var response = instance.ReplyToSmsMessage(smsId, smsReplyOptions); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/TemplateControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/TemplateControllerApiTests.cs new file mode 100644 index 00000000..ff5282c1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/TemplateControllerApiTests.cs @@ -0,0 +1,157 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing TemplateControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class TemplateControllerApiTests : IDisposable + { + private TemplateControllerApi instance; + + public TemplateControllerApiTests() + { + instance = new TemplateControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TemplateControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' TemplateControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CreateTemplate + /// + [Fact] + public void CreateTemplateTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateTemplateOptions createTemplateOptions = null; + //var response = instance.CreateTemplate(createTemplateOptions); + //Assert.IsType(response); + } + + /// + /// Test DeleteTemplate + /// + [Fact] + public void DeleteTemplateTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid templateId = null; + //instance.DeleteTemplate(templateId); + } + + /// + /// Test GetAllTemplates + /// + [Fact] + public void GetAllTemplatesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetAllTemplates(page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetTemplate + /// + [Fact] + public void GetTemplateTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid templateId = null; + //var response = instance.GetTemplate(templateId); + //Assert.IsType(response); + } + + /// + /// Test GetTemplatePreviewHtml + /// + [Fact] + public void GetTemplatePreviewHtmlTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid templateId = null; + //var response = instance.GetTemplatePreviewHtml(templateId); + //Assert.IsType(response); + } + + /// + /// Test GetTemplatePreviewJson + /// + [Fact] + public void GetTemplatePreviewJsonTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid templateId = null; + //var response = instance.GetTemplatePreviewJson(templateId); + //Assert.IsType(response); + } + + /// + /// Test GetTemplates + /// + [Fact] + public void GetTemplatesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetTemplates(); + //Assert.IsType>(response); + } + + /// + /// Test UpdateTemplate + /// + [Fact] + public void UpdateTemplateTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid templateId = null; + //CreateTemplateOptions createTemplateOptions = null; + //var response = instance.UpdateTemplate(templateId, createTemplateOptions); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/ToolsControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/ToolsControllerApiTests.cs new file mode 100644 index 00000000..49507d6b --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/ToolsControllerApiTests.cs @@ -0,0 +1,202 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing ToolsControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class ToolsControllerApiTests : IDisposable + { + private ToolsControllerApi instance; + + public ToolsControllerApiTests() + { + instance = new ToolsControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ToolsControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' ToolsControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CheckEmailFeaturesClientSupport + /// + [Fact] + public void CheckEmailFeaturesClientSupportTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CheckEmailFeaturesClientSupportOptions checkEmailFeaturesClientSupportOptions = null; + //var response = instance.CheckEmailFeaturesClientSupport(checkEmailFeaturesClientSupportOptions); + //Assert.IsType(response); + } + + /// + /// Test CreateNewFakeEmailAddress + /// + [Fact] + public void CreateNewFakeEmailAddressTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.CreateNewFakeEmailAddress(); + //Assert.IsType(response); + } + + /// + /// Test GenerateBimiRecord + /// + [Fact] + public void GenerateBimiRecordTest() + { + // TODO uncomment below to test the method and replace null with proper value + //GenerateBimiRecordOptions generateBimiRecordOptions = null; + //var response = instance.GenerateBimiRecord(generateBimiRecordOptions); + //Assert.IsType(response); + } + + /// + /// Test GenerateDmarcRecord + /// + [Fact] + public void GenerateDmarcRecordTest() + { + // TODO uncomment below to test the method and replace null with proper value + //GenerateDmarcRecordOptions generateDmarcRecordOptions = null; + //var response = instance.GenerateDmarcRecord(generateDmarcRecordOptions); + //Assert.IsType(response); + } + + /// + /// Test GenerateMtaStsRecord + /// + [Fact] + public void GenerateMtaStsRecordTest() + { + // TODO uncomment below to test the method and replace null with proper value + //GenerateMtaStsRecordOptions generateMtaStsRecordOptions = null; + //var response = instance.GenerateMtaStsRecord(generateMtaStsRecordOptions); + //Assert.IsType(response); + } + + /// + /// Test GenerateTlsReportingRecord + /// + [Fact] + public void GenerateTlsReportingRecordTest() + { + // TODO uncomment below to test the method and replace null with proper value + //GenerateTlsReportingRecordOptions generateTlsReportingRecordOptions = null; + //var response = instance.GenerateTlsReportingRecord(generateTlsReportingRecordOptions); + //Assert.IsType(response); + } + + /// + /// Test GetFakeEmailById + /// + [Fact] + public void GetFakeEmailByIdTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetFakeEmailById(id); + //Assert.IsType(response); + } + + /// + /// Test GetFakeEmailsForAddress + /// + [Fact] + public void GetFakeEmailsForAddressTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string emailAddress = null; + //int? page = null; + //var response = instance.GetFakeEmailsForAddress(emailAddress, page); + //Assert.IsType>(response); + } + + /// + /// Test LookupBimiDomain + /// + [Fact] + public void LookupBimiDomainTest() + { + // TODO uncomment below to test the method and replace null with proper value + //LookupBimiDomainOptions lookupBimiDomainOptions = null; + //var response = instance.LookupBimiDomain(lookupBimiDomainOptions); + //Assert.IsType(response); + } + + /// + /// Test LookupDmarcDomain + /// + [Fact] + public void LookupDmarcDomainTest() + { + // TODO uncomment below to test the method and replace null with proper value + //LookupDmarcDomainOptions lookupDmarcDomainOptions = null; + //var response = instance.LookupDmarcDomain(lookupDmarcDomainOptions); + //Assert.IsType(response); + } + + /// + /// Test LookupMtaStsDomain + /// + [Fact] + public void LookupMtaStsDomainTest() + { + // TODO uncomment below to test the method and replace null with proper value + //LookupMtaStsDomainOptions lookupMtaStsDomainOptions = null; + //var response = instance.LookupMtaStsDomain(lookupMtaStsDomainOptions); + //Assert.IsType(response); + } + + /// + /// Test LookupTlsReportingDomain + /// + [Fact] + public void LookupTlsReportingDomainTest() + { + // TODO uncomment below to test the method and replace null with proper value + //LookupTlsReportingDomainOptions lookupTlsReportingDomainOptions = null; + //var response = instance.LookupTlsReportingDomain(lookupTlsReportingDomainOptions); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/TrackingControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/TrackingControllerApiTests.cs new file mode 100644 index 00000000..8d7929c9 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/TrackingControllerApiTests.cs @@ -0,0 +1,99 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing TrackingControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class TrackingControllerApiTests : IDisposable + { + private TrackingControllerApi instance; + + public TrackingControllerApiTests() + { + instance = new TrackingControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TrackingControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' TrackingControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CreateTrackingPixel + /// + [Fact] + public void CreateTrackingPixelTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateTrackingPixelOptions createTrackingPixelOptions = null; + //var response = instance.CreateTrackingPixel(createTrackingPixelOptions); + //Assert.IsType(response); + } + + /// + /// Test GetAllTrackingPixels + /// + [Fact] + public void GetAllTrackingPixelsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetAllTrackingPixels(page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetTrackingPixel + /// + [Fact] + public void GetTrackingPixelTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid id = null; + //var response = instance.GetTrackingPixel(id); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/UserControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/UserControllerApiTests.cs new file mode 100644 index 00000000..e629a80f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/UserControllerApiTests.cs @@ -0,0 +1,82 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing UserControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class UserControllerApiTests : IDisposable + { + private UserControllerApi instance; + + public UserControllerApiTests() + { + instance = new UserControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UserControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' UserControllerApi + //Assert.IsType(instance); + } + + /// + /// Test GetJsonPropertyAsString + /// + [Fact] + public void GetJsonPropertyAsStringTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string property = null; + //Object body = null; + //var response = instance.GetJsonPropertyAsString(property, body); + //Assert.IsType(response); + } + + /// + /// Test GetUserInfo + /// + [Fact] + public void GetUserInfoTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetUserInfo(); + //Assert.IsType(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/WaitForControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/WaitForControllerApiTests.cs new file mode 100644 index 00000000..734ba5de --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/WaitForControllerApiTests.cs @@ -0,0 +1,189 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing WaitForControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class WaitForControllerApiTests : IDisposable + { + private WaitForControllerApi instance; + + public WaitForControllerApiTests() + { + instance = new WaitForControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WaitForControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' WaitForControllerApi + //Assert.IsType(instance); + } + + /// + /// Test WaitFor + /// + [Fact] + public void WaitForTest() + { + // TODO uncomment below to test the method and replace null with proper value + //WaitForConditions waitForConditions = null; + //var response = instance.WaitFor(waitForConditions); + //Assert.IsType>(response); + } + + /// + /// Test WaitForEmailCount + /// + [Fact] + public void WaitForEmailCountTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //int count = null; + //long? timeout = null; + //bool? unreadOnly = null; + //DateTime? before = null; + //DateTime? since = null; + //string sort = null; + //long? delay = null; + //var response = instance.WaitForEmailCount(inboxId, count, timeout, unreadOnly, before, since, sort, delay); + //Assert.IsType>(response); + } + + /// + /// Test WaitForLatestEmail + /// + [Fact] + public void WaitForLatestEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //long? timeout = null; + //bool? unreadOnly = null; + //DateTime? before = null; + //DateTime? since = null; + //string sort = null; + //long? delay = null; + //var response = instance.WaitForLatestEmail(inboxId, timeout, unreadOnly, before, since, sort, delay); + //Assert.IsType(response); + } + + /// + /// Test WaitForLatestSms + /// + [Fact] + public void WaitForLatestSmsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //WaitForSingleSmsOptions waitForSingleSmsOptions = null; + //var response = instance.WaitForLatestSms(waitForSingleSmsOptions); + //Assert.IsType(response); + } + + /// + /// Test WaitForMatchingEmails + /// + [Fact] + public void WaitForMatchingEmailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //int count = null; + //MatchOptions matchOptions = null; + //DateTime? before = null; + //DateTime? since = null; + //string sort = null; + //long? delay = null; + //long? timeout = null; + //bool? unreadOnly = null; + //var response = instance.WaitForMatchingEmails(inboxId, count, matchOptions, before, since, sort, delay, timeout, unreadOnly); + //Assert.IsType>(response); + } + + /// + /// Test WaitForMatchingFirstEmail + /// + [Fact] + public void WaitForMatchingFirstEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //MatchOptions matchOptions = null; + //long? timeout = null; + //bool? unreadOnly = null; + //DateTime? since = null; + //DateTime? before = null; + //string sort = null; + //long? delay = null; + //var response = instance.WaitForMatchingFirstEmail(inboxId, matchOptions, timeout, unreadOnly, since, before, sort, delay); + //Assert.IsType(response); + } + + /// + /// Test WaitForNthEmail + /// + [Fact] + public void WaitForNthEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid? inboxId = null; + //int? index = null; + //long? timeout = null; + //bool? unreadOnly = null; + //DateTime? since = null; + //DateTime? before = null; + //string sort = null; + //long? delay = null; + //var response = instance.WaitForNthEmail(inboxId, index, timeout, unreadOnly, since, before, sort, delay); + //Assert.IsType(response); + } + + /// + /// Test WaitForSms + /// + [Fact] + public void WaitForSmsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //WaitForSmsConditions waitForSmsConditions = null; + //var response = instance.WaitForSms(waitForSmsConditions); + //Assert.IsType>(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Api/WebhookControllerApiTests.cs b/src/mailslurp_netstandard_2x.Test/Api/WebhookControllerApiTests.cs new file mode 100644 index 00000000..5aee9a17 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Api/WebhookControllerApiTests.cs @@ -0,0 +1,536 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Api; +// uncomment below to import models +//using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Test.Api +{ + /// + /// Class for testing WebhookControllerApi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// + public class WebhookControllerApiTests : IDisposable + { + private WebhookControllerApi instance; + + public WebhookControllerApiTests() + { + instance = new WebhookControllerApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookControllerApi + /// + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' WebhookControllerApi + //Assert.IsType(instance); + } + + /// + /// Test CreateAccountWebhook + /// + [Fact] + public void CreateAccountWebhookTest() + { + // TODO uncomment below to test the method and replace null with proper value + //CreateWebhookOptions createWebhookOptions = null; + //var response = instance.CreateAccountWebhook(createWebhookOptions); + //Assert.IsType(response); + } + + /// + /// Test CreateWebhook + /// + [Fact] + public void CreateWebhookTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //CreateWebhookOptions createWebhookOptions = null; + //var response = instance.CreateWebhook(inboxId, createWebhookOptions); + //Assert.IsType(response); + } + + /// + /// Test CreateWebhookForPhoneNumber + /// + [Fact] + public void CreateWebhookForPhoneNumberTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid phoneNumberId = null; + //CreateWebhookOptions createWebhookOptions = null; + //var response = instance.CreateWebhookForPhoneNumber(phoneNumberId, createWebhookOptions); + //Assert.IsType(response); + } + + /// + /// Test DeleteAllWebhooks + /// + [Fact] + public void DeleteAllWebhooksTest() + { + // TODO uncomment below to test the method and replace null with proper value + //DateTime? before = null; + //instance.DeleteAllWebhooks(before); + } + + /// + /// Test DeleteWebhook + /// + [Fact] + public void DeleteWebhookTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //Guid webhookId = null; + //instance.DeleteWebhook(inboxId, webhookId); + } + + /// + /// Test DeleteWebhookById + /// + [Fact] + public void DeleteWebhookByIdTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid webhookId = null; + //instance.DeleteWebhookById(webhookId); + } + + /// + /// Test GetAllAccountWebhooks + /// + [Fact] + public void GetAllAccountWebhooksTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //string eventType = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetAllAccountWebhooks(page, size, sort, eventType, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetAllWebhookResults + /// + [Fact] + public void GetAllWebhookResultsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //bool? unseenOnly = null; + //string resultType = null; + //string eventName = null; + //int? minStatusCode = null; + //int? maxStatusCode = null; + //Guid? inboxId = null; + //Guid? smsId = null; + //Guid? attachmentId = null; + //Guid? emailId = null; + //Guid? phoneId = null; + //var response = instance.GetAllWebhookResults(page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId); + //Assert.IsType(response); + } + + /// + /// Test GetAllWebhooks + /// + [Fact] + public void GetAllWebhooksTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //Guid? inboxId = null; + //Guid? phoneId = null; + //DateTime? before = null; + //var response = instance.GetAllWebhooks(page, size, sort, searchFilter, since, inboxId, phoneId, before); + //Assert.IsType(response); + } + + /// + /// Test GetInboxWebhooksPaginated + /// + [Fact] + public void GetInboxWebhooksPaginatedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetInboxWebhooksPaginated(inboxId, page, size, sort, searchFilter, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetJsonSchemaForWebhookEvent + /// + [Fact] + public void GetJsonSchemaForWebhookEventTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string _event = null; + //var response = instance.GetJsonSchemaForWebhookEvent(_event); + //Assert.IsType(response); + } + + /// + /// Test GetJsonSchemaForWebhookPayload + /// + [Fact] + public void GetJsonSchemaForWebhookPayloadTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid webhookId = null; + //var response = instance.GetJsonSchemaForWebhookPayload(webhookId); + //Assert.IsType(response); + } + + /// + /// Test GetPhoneNumberWebhooksPaginated + /// + [Fact] + public void GetPhoneNumberWebhooksPaginatedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid phoneId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //DateTime? since = null; + //DateTime? before = null; + //var response = instance.GetPhoneNumberWebhooksPaginated(phoneId, page, size, sort, since, before); + //Assert.IsType(response); + } + + /// + /// Test GetTestWebhookPayload + /// + [Fact] + public void GetTestWebhookPayloadTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string eventName = null; + //var response = instance.GetTestWebhookPayload(eventName); + //Assert.IsType(response); + } + + /// + /// Test GetTestWebhookPayloadBounce + /// + [Fact] + public void GetTestWebhookPayloadBounceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetTestWebhookPayloadBounce(); + //Assert.IsType(response); + } + + /// + /// Test GetTestWebhookPayloadBounceRecipient + /// + [Fact] + public void GetTestWebhookPayloadBounceRecipientTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetTestWebhookPayloadBounceRecipient(); + //Assert.IsType(response); + } + + /// + /// Test GetTestWebhookPayloadDeliveryStatus + /// + [Fact] + public void GetTestWebhookPayloadDeliveryStatusTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetTestWebhookPayloadDeliveryStatus(); + //Assert.IsType(response); + } + + /// + /// Test GetTestWebhookPayloadEmailOpened + /// + [Fact] + public void GetTestWebhookPayloadEmailOpenedTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetTestWebhookPayloadEmailOpened(); + //Assert.IsType(response); + } + + /// + /// Test GetTestWebhookPayloadEmailRead + /// + [Fact] + public void GetTestWebhookPayloadEmailReadTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetTestWebhookPayloadEmailRead(); + //Assert.IsType(response); + } + + /// + /// Test GetTestWebhookPayloadForWebhook + /// + [Fact] + public void GetTestWebhookPayloadForWebhookTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid webhookId = null; + //var response = instance.GetTestWebhookPayloadForWebhook(webhookId); + //Assert.IsType(response); + } + + /// + /// Test GetTestWebhookPayloadNewAttachment + /// + [Fact] + public void GetTestWebhookPayloadNewAttachmentTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetTestWebhookPayloadNewAttachment(); + //Assert.IsType(response); + } + + /// + /// Test GetTestWebhookPayloadNewContact + /// + [Fact] + public void GetTestWebhookPayloadNewContactTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetTestWebhookPayloadNewContact(); + //Assert.IsType(response); + } + + /// + /// Test GetTestWebhookPayloadNewEmail + /// + [Fact] + public void GetTestWebhookPayloadNewEmailTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetTestWebhookPayloadNewEmail(); + //Assert.IsType(response); + } + + /// + /// Test GetTestWebhookPayloadNewSms + /// + [Fact] + public void GetTestWebhookPayloadNewSmsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetTestWebhookPayloadNewSms(); + //Assert.IsType(response); + } + + /// + /// Test GetWebhook + /// + [Fact] + public void GetWebhookTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid webhookId = null; + //var response = instance.GetWebhook(webhookId); + //Assert.IsType(response); + } + + /// + /// Test GetWebhookResult + /// + [Fact] + public void GetWebhookResultTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid webhookResultId = null; + //var response = instance.GetWebhookResult(webhookResultId); + //Assert.IsType(response); + } + + /// + /// Test GetWebhookResults + /// + [Fact] + public void GetWebhookResultsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid webhookId = null; + //int? page = null; + //int? size = null; + //string sort = null; + //string searchFilter = null; + //DateTime? since = null; + //DateTime? before = null; + //bool? unseenOnly = null; + //string resultType = null; + //string eventName = null; + //int? minStatusCode = null; + //int? maxStatusCode = null; + //Guid? inboxId = null; + //Guid? smsId = null; + //Guid? attachmentId = null; + //Guid? emailId = null; + //Guid? phoneId = null; + //var response = instance.GetWebhookResults(webhookId, page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId); + //Assert.IsType(response); + } + + /// + /// Test GetWebhookResultsCount + /// + [Fact] + public void GetWebhookResultsCountTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid webhookId = null; + //var response = instance.GetWebhookResultsCount(webhookId); + //Assert.IsType(response); + } + + /// + /// Test GetWebhookResultsUnseenErrorCount + /// + [Fact] + public void GetWebhookResultsUnseenErrorCountTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetWebhookResultsUnseenErrorCount(); + //Assert.IsType(response); + } + + /// + /// Test GetWebhooks + /// + [Fact] + public void GetWebhooksTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid inboxId = null; + //var response = instance.GetWebhooks(inboxId); + //Assert.IsType>(response); + } + + /// + /// Test RedriveAllWebhookResults + /// + [Fact] + public void RedriveAllWebhookResultsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.RedriveAllWebhookResults(); + //Assert.IsType(response); + } + + /// + /// Test RedriveWebhookResult + /// + [Fact] + public void RedriveWebhookResultTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid webhookResultId = null; + //var response = instance.RedriveWebhookResult(webhookResultId); + //Assert.IsType(response); + } + + /// + /// Test SendTestData + /// + [Fact] + public void SendTestDataTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid webhookId = null; + //var response = instance.SendTestData(webhookId); + //Assert.IsType(response); + } + + /// + /// Test UpdateWebhookHeaders + /// + [Fact] + public void UpdateWebhookHeadersTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid webhookId = null; + //WebhookHeaders webhookHeaders = null; + //var response = instance.UpdateWebhookHeaders(webhookId, webhookHeaders); + //Assert.IsType(response); + } + + /// + /// Test VerifyWebhookSignature + /// + [Fact] + public void VerifyWebhookSignatureTest() + { + // TODO uncomment below to test the method and replace null with proper value + //VerifyWebhookSignatureOptions verifyWebhookSignatureOptions = null; + //var response = instance.VerifyWebhookSignature(verifyWebhookSignatureOptions); + //Assert.IsType(response); + } + + /// + /// Test WaitForWebhookResults + /// + [Fact] + public void WaitForWebhookResultsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Guid webhookId = null; + //int expectedCount = null; + //int timeout = null; + //var response = instance.WaitForWebhookResults(webhookId, expectedCount, timeout); + //Assert.IsType>(response); + } + } +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/AbstractWebhookPayloadTests.cs b/src/mailslurp_netstandard_2x.Test/Model/AbstractWebhookPayloadTests.cs new file mode 100644 index 00000000..d8b06f6b --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/AbstractWebhookPayloadTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing AbstractWebhookPayload + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class AbstractWebhookPayloadTests : IDisposable + { + // TODO uncomment below to declare an instance variable for AbstractWebhookPayload + //private AbstractWebhookPayload instance; + + public AbstractWebhookPayloadTests() + { + // TODO uncomment below to create an instance of AbstractWebhookPayload + //instance = new AbstractWebhookPayload(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AbstractWebhookPayload + /// + [Fact] + public void AbstractWebhookPayloadInstanceTest() + { + // TODO uncomment below to test "IsType" AbstractWebhookPayload + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'WebhookId' + /// + [Fact] + public void WebhookIdTest() + { + // TODO unit test for the property 'WebhookId' + } + /// + /// Test the property 'WebhookName' + /// + [Fact] + public void WebhookNameTest() + { + // TODO unit test for the property 'WebhookName' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/AccountBounceBlockDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/AccountBounceBlockDtoTests.cs new file mode 100644 index 00000000..6b45c378 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/AccountBounceBlockDtoTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing AccountBounceBlockDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class AccountBounceBlockDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for AccountBounceBlockDto + //private AccountBounceBlockDto instance; + + public AccountBounceBlockDtoTests() + { + // TODO uncomment below to create an instance of AccountBounceBlockDto + //instance = new AccountBounceBlockDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AccountBounceBlockDto + /// + [Fact] + public void AccountBounceBlockDtoInstanceTest() + { + // TODO uncomment below to test "IsType" AccountBounceBlockDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'IsSendingBlocked' + /// + [Fact] + public void IsSendingBlockedTest() + { + // TODO unit test for the property 'IsSendingBlocked' + } + /// + /// Test the property 'BounceCount' + /// + [Fact] + public void BounceCountTest() + { + // TODO unit test for the property 'BounceCount' + } + /// + /// Test the property 'BounceCountToday' + /// + [Fact] + public void BounceCountTodayTest() + { + // TODO unit test for the property 'BounceCountToday' + } + /// + /// Test the property 'MaximumDailyBounces' + /// + [Fact] + public void MaximumDailyBouncesTest() + { + // TODO unit test for the property 'MaximumDailyBounces' + } + /// + /// Test the property 'MaximumAccountBounces' + /// + [Fact] + public void MaximumAccountBouncesTest() + { + // TODO unit test for the property 'MaximumAccountBounces' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/AliasDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/AliasDtoTests.cs new file mode 100644 index 00000000..704b9690 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/AliasDtoTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing AliasDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class AliasDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for AliasDto + //private AliasDto instance; + + public AliasDtoTests() + { + // TODO uncomment below to create an instance of AliasDto + //instance = new AliasDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AliasDto + /// + [Fact] + public void AliasDtoInstanceTest() + { + // TODO uncomment below to test "IsType" AliasDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'MaskedEmailAddress' + /// + [Fact] + public void MaskedEmailAddressTest() + { + // TODO unit test for the property 'MaskedEmailAddress' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'UseThreads' + /// + [Fact] + public void UseThreadsTest() + { + // TODO unit test for the property 'UseThreads' + } + /// + /// Test the property 'IsVerified' + /// + [Fact] + public void IsVerifiedTest() + { + // TODO unit test for the property 'IsVerified' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/AliasProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/AliasProjectionTests.cs new file mode 100644 index 00000000..ab3b0ca9 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/AliasProjectionTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing AliasProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class AliasProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for AliasProjection + //private AliasProjection instance; + + public AliasProjectionTests() + { + // TODO uncomment below to create an instance of AliasProjection + //instance = new AliasProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AliasProjection + /// + [Fact] + public void AliasProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" AliasProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'UseThreads' + /// + [Fact] + public void UseThreadsTest() + { + // TODO unit test for the property 'UseThreads' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/AttachmentEntityTests.cs b/src/mailslurp_netstandard_2x.Test/Model/AttachmentEntityTests.cs new file mode 100644 index 00000000..8f277aef --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/AttachmentEntityTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing AttachmentEntity + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class AttachmentEntityTests : IDisposable + { + // TODO uncomment below to declare an instance variable for AttachmentEntity + //private AttachmentEntity instance; + + public AttachmentEntityTests() + { + // TODO uncomment below to create an instance of AttachmentEntity + //instance = new AttachmentEntity(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AttachmentEntity + /// + [Fact] + public void AttachmentEntityInstanceTest() + { + // TODO uncomment below to test "IsType" AttachmentEntity + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'AttachmentId' + /// + [Fact] + public void AttachmentIdTest() + { + // TODO unit test for the property 'AttachmentId' + } + /// + /// Test the property 'Bucket' + /// + [Fact] + public void BucketTest() + { + // TODO unit test for the property 'Bucket' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'ContentType' + /// + [Fact] + public void ContentTypeTest() + { + // TODO unit test for the property 'ContentType' + } + /// + /// Test the property 'ContentLength' + /// + [Fact] + public void ContentLengthTest() + { + // TODO unit test for the property 'ContentLength' + } + /// + /// Test the property 'ContentId' + /// + [Fact] + public void ContentIdTest() + { + // TODO unit test for the property 'ContentId' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/AttachmentMetaDataTests.cs b/src/mailslurp_netstandard_2x.Test/Model/AttachmentMetaDataTests.cs new file mode 100644 index 00000000..845fbc65 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/AttachmentMetaDataTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing AttachmentMetaData + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class AttachmentMetaDataTests : IDisposable + { + // TODO uncomment below to declare an instance variable for AttachmentMetaData + //private AttachmentMetaData instance; + + public AttachmentMetaDataTests() + { + // TODO uncomment below to create an instance of AttachmentMetaData + //instance = new AttachmentMetaData(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AttachmentMetaData + /// + [Fact] + public void AttachmentMetaDataInstanceTest() + { + // TODO uncomment below to test "IsType" AttachmentMetaData + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'ContentType' + /// + [Fact] + public void ContentTypeTest() + { + // TODO unit test for the property 'ContentType' + } + /// + /// Test the property 'ContentLength' + /// + [Fact] + public void ContentLengthTest() + { + // TODO unit test for the property 'ContentLength' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'ContentId' + /// + [Fact] + public void ContentIdTest() + { + // TODO unit test for the property 'ContentId' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/AttachmentProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/AttachmentProjectionTests.cs new file mode 100644 index 00000000..e23c410a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/AttachmentProjectionTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing AttachmentProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class AttachmentProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for AttachmentProjection + //private AttachmentProjection instance; + + public AttachmentProjectionTests() + { + // TODO uncomment below to create an instance of AttachmentProjection + //instance = new AttachmentProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AttachmentProjection + /// + [Fact] + public void AttachmentProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" AttachmentProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'ContentId' + /// + [Fact] + public void ContentIdTest() + { + // TODO unit test for the property 'ContentId' + } + /// + /// Test the property 'AttachmentId' + /// + [Fact] + public void AttachmentIdTest() + { + // TODO unit test for the property 'AttachmentId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'ContentLength' + /// + [Fact] + public void ContentLengthTest() + { + // TODO unit test for the property 'ContentLength' + } + /// + /// Test the property 'ContentType' + /// + [Fact] + public void ContentTypeTest() + { + // TODO unit test for the property 'ContentType' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/BasicAuthOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/BasicAuthOptionsTests.cs new file mode 100644 index 00000000..f81d0323 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/BasicAuthOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing BasicAuthOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class BasicAuthOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for BasicAuthOptions + //private BasicAuthOptions instance; + + public BasicAuthOptionsTests() + { + // TODO uncomment below to create an instance of BasicAuthOptions + //instance = new BasicAuthOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BasicAuthOptions + /// + [Fact] + public void BasicAuthOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" BasicAuthOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Username' + /// + [Fact] + public void UsernameTest() + { + // TODO unit test for the property 'Username' + } + /// + /// Test the property 'Password' + /// + [Fact] + public void PasswordTest() + { + // TODO unit test for the property 'Password' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/BounceProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/BounceProjectionTests.cs new file mode 100644 index 00000000..c56067eb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/BounceProjectionTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing BounceProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class BounceProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for BounceProjection + //private BounceProjection instance; + + public BounceProjectionTests() + { + // TODO uncomment below to create an instance of BounceProjection + //instance = new BounceProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BounceProjection + /// + [Fact] + public void BounceProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" BounceProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Sender' + /// + [Fact] + public void SenderTest() + { + // TODO unit test for the property 'Sender' + } + /// + /// Test the property 'BounceMta' + /// + [Fact] + public void BounceMtaTest() + { + // TODO unit test for the property 'BounceMta' + } + /// + /// Test the property 'BounceType' + /// + [Fact] + public void BounceTypeTest() + { + // TODO unit test for the property 'BounceType' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/BounceRecipientProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/BounceRecipientProjectionTests.cs new file mode 100644 index 00000000..3e860b1f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/BounceRecipientProjectionTests.cs @@ -0,0 +1,119 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing BounceRecipientProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class BounceRecipientProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for BounceRecipientProjection + //private BounceRecipientProjection instance; + + public BounceRecipientProjectionTests() + { + // TODO uncomment below to create an instance of BounceRecipientProjection + //instance = new BounceRecipientProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BounceRecipientProjection + /// + [Fact] + public void BounceRecipientProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" BounceRecipientProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'SentEmailId' + /// + [Fact] + public void SentEmailIdTest() + { + // TODO unit test for the property 'SentEmailId' + } + /// + /// Test the property 'Recipient' + /// + [Fact] + public void RecipientTest() + { + // TODO unit test for the property 'Recipient' + } + /// + /// Test the property 'Action' + /// + [Fact] + public void ActionTest() + { + // TODO unit test for the property 'Action' + } + /// + /// Test the property 'BounceType' + /// + [Fact] + public void BounceTypeTest() + { + // TODO unit test for the property 'BounceType' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/BouncedEmailDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/BouncedEmailDtoTests.cs new file mode 100644 index 00000000..27f1dddb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/BouncedEmailDtoTests.cs @@ -0,0 +1,159 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing BouncedEmailDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class BouncedEmailDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for BouncedEmailDto + //private BouncedEmailDto instance; + + public BouncedEmailDtoTests() + { + // TODO uncomment below to create an instance of BouncedEmailDto + //instance = new BouncedEmailDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BouncedEmailDto + /// + [Fact] + public void BouncedEmailDtoInstanceTest() + { + // TODO uncomment below to test "IsType" BouncedEmailDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'NotificationType' + /// + [Fact] + public void NotificationTypeTest() + { + // TODO unit test for the property 'NotificationType' + } + /// + /// Test the property 'SentToRecipients' + /// + [Fact] + public void SentToRecipientsTest() + { + // TODO unit test for the property 'SentToRecipients' + } + /// + /// Test the property 'Sender' + /// + [Fact] + public void SenderTest() + { + // TODO unit test for the property 'Sender' + } + /// + /// Test the property 'BounceMta' + /// + [Fact] + public void BounceMtaTest() + { + // TODO unit test for the property 'BounceMta' + } + /// + /// Test the property 'BounceType' + /// + [Fact] + public void BounceTypeTest() + { + // TODO unit test for the property 'BounceType' + } + /// + /// Test the property 'BounceRecipients' + /// + [Fact] + public void BounceRecipientsTest() + { + // TODO unit test for the property 'BounceRecipients' + } + /// + /// Test the property 'BounceSubType' + /// + [Fact] + public void BounceSubTypeTest() + { + // TODO unit test for the property 'BounceSubType' + } + /// + /// Test the property 'SentEmailId' + /// + [Fact] + public void SentEmailIdTest() + { + // TODO unit test for the property 'SentEmailId' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/BouncedRecipientDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/BouncedRecipientDtoTests.cs new file mode 100644 index 00000000..5c47d529 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/BouncedRecipientDtoTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing BouncedRecipientDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class BouncedRecipientDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for BouncedRecipientDto + //private BouncedRecipientDto instance; + + public BouncedRecipientDtoTests() + { + // TODO uncomment below to create an instance of BouncedRecipientDto + //instance = new BouncedRecipientDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BouncedRecipientDto + /// + [Fact] + public void BouncedRecipientDtoInstanceTest() + { + // TODO uncomment below to test "IsType" BouncedRecipientDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'SentEmailId' + /// + [Fact] + public void SentEmailIdTest() + { + // TODO unit test for the property 'SentEmailId' + } + /// + /// Test the property 'Recipient' + /// + [Fact] + public void RecipientTest() + { + // TODO unit test for the property 'Recipient' + } + /// + /// Test the property 'DiagnosticCode' + /// + [Fact] + public void DiagnosticCodeTest() + { + // TODO unit test for the property 'DiagnosticCode' + } + /// + /// Test the property 'Action' + /// + [Fact] + public void ActionTest() + { + // TODO unit test for the property 'Action' + } + /// + /// Test the property 'BounceType' + /// + [Fact] + public void BounceTypeTest() + { + // TODO unit test for the property 'BounceType' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/BulkSendEmailOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/BulkSendEmailOptionsTests.cs new file mode 100644 index 00000000..f1548bb6 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/BulkSendEmailOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing BulkSendEmailOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class BulkSendEmailOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for BulkSendEmailOptions + //private BulkSendEmailOptions instance; + + public BulkSendEmailOptionsTests() + { + // TODO uncomment below to create an instance of BulkSendEmailOptions + //instance = new BulkSendEmailOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BulkSendEmailOptions + /// + [Fact] + public void BulkSendEmailOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" BulkSendEmailOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxIds' + /// + [Fact] + public void InboxIdsTest() + { + // TODO unit test for the property 'InboxIds' + } + /// + /// Test the property 'SendEmailOptions' + /// + [Fact] + public void SendEmailOptionsTest() + { + // TODO unit test for the property 'SendEmailOptions' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CanSendEmailResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CanSendEmailResultsTests.cs new file mode 100644 index 00000000..9c714a03 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CanSendEmailResultsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CanSendEmailResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CanSendEmailResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CanSendEmailResults + //private CanSendEmailResults instance; + + public CanSendEmailResultsTests() + { + // TODO uncomment below to create an instance of CanSendEmailResults + //instance = new CanSendEmailResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CanSendEmailResults + /// + [Fact] + public void CanSendEmailResultsInstanceTest() + { + // TODO uncomment below to test "IsType" CanSendEmailResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'IsSendingPermitted' + /// + [Fact] + public void IsSendingPermittedTest() + { + // TODO unit test for the property 'IsSendingPermitted' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CheckEmailBodyFeatureSupportResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailBodyFeatureSupportResultsTests.cs new file mode 100644 index 00000000..f9a4c606 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailBodyFeatureSupportResultsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CheckEmailBodyFeatureSupportResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CheckEmailBodyFeatureSupportResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CheckEmailBodyFeatureSupportResults + //private CheckEmailBodyFeatureSupportResults instance; + + public CheckEmailBodyFeatureSupportResultsTests() + { + // TODO uncomment below to create an instance of CheckEmailBodyFeatureSupportResults + //instance = new CheckEmailBodyFeatureSupportResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CheckEmailBodyFeatureSupportResults + /// + [Fact] + public void CheckEmailBodyFeatureSupportResultsInstanceTest() + { + // TODO uncomment below to test "IsType" CheckEmailBodyFeatureSupportResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Result' + /// + [Fact] + public void ResultTest() + { + // TODO unit test for the property 'Result' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CheckEmailBodyResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailBodyResultsTests.cs new file mode 100644 index 00000000..c4238fc6 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailBodyResultsTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CheckEmailBodyResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CheckEmailBodyResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CheckEmailBodyResults + //private CheckEmailBodyResults instance; + + public CheckEmailBodyResultsTests() + { + // TODO uncomment below to create an instance of CheckEmailBodyResults + //instance = new CheckEmailBodyResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CheckEmailBodyResults + /// + [Fact] + public void CheckEmailBodyResultsInstanceTest() + { + // TODO uncomment below to test "IsType" CheckEmailBodyResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'HasIssues' + /// + [Fact] + public void HasIssuesTest() + { + // TODO unit test for the property 'HasIssues' + } + /// + /// Test the property 'LinkIssues' + /// + [Fact] + public void LinkIssuesTest() + { + // TODO unit test for the property 'LinkIssues' + } + /// + /// Test the property 'ImageIssues' + /// + [Fact] + public void ImageIssuesTest() + { + // TODO unit test for the property 'ImageIssues' + } + /// + /// Test the property 'SpellingIssues' + /// + [Fact] + public void SpellingIssuesTest() + { + // TODO unit test for the property 'SpellingIssues' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CheckEmailClientSupportOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailClientSupportOptionsTests.cs new file mode 100644 index 00000000..e2d47334 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailClientSupportOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CheckEmailClientSupportOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CheckEmailClientSupportOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CheckEmailClientSupportOptions + //private CheckEmailClientSupportOptions instance; + + public CheckEmailClientSupportOptionsTests() + { + // TODO uncomment below to create an instance of CheckEmailClientSupportOptions + //instance = new CheckEmailClientSupportOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CheckEmailClientSupportOptions + /// + [Fact] + public void CheckEmailClientSupportOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CheckEmailClientSupportOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailBody' + /// + [Fact] + public void EmailBodyTest() + { + // TODO unit test for the property 'EmailBody' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CheckEmailClientSupportResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailClientSupportResultsTests.cs new file mode 100644 index 00000000..2ce699c2 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailClientSupportResultsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CheckEmailClientSupportResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CheckEmailClientSupportResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CheckEmailClientSupportResults + //private CheckEmailClientSupportResults instance; + + public CheckEmailClientSupportResultsTests() + { + // TODO uncomment below to create an instance of CheckEmailClientSupportResults + //instance = new CheckEmailClientSupportResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CheckEmailClientSupportResults + /// + [Fact] + public void CheckEmailClientSupportResultsInstanceTest() + { + // TODO uncomment below to test "IsType" CheckEmailClientSupportResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Result' + /// + [Fact] + public void ResultTest() + { + // TODO unit test for the property 'Result' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CheckEmailFeaturesClientSupportOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailFeaturesClientSupportOptionsTests.cs new file mode 100644 index 00000000..745ffcf6 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailFeaturesClientSupportOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CheckEmailFeaturesClientSupportOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CheckEmailFeaturesClientSupportOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CheckEmailFeaturesClientSupportOptions + //private CheckEmailFeaturesClientSupportOptions instance; + + public CheckEmailFeaturesClientSupportOptionsTests() + { + // TODO uncomment below to create an instance of CheckEmailFeaturesClientSupportOptions + //instance = new CheckEmailFeaturesClientSupportOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CheckEmailFeaturesClientSupportOptions + /// + [Fact] + public void CheckEmailFeaturesClientSupportOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CheckEmailFeaturesClientSupportOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailBody' + /// + [Fact] + public void EmailBodyTest() + { + // TODO unit test for the property 'EmailBody' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CheckEmailFeaturesClientSupportResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailFeaturesClientSupportResultsTests.cs new file mode 100644 index 00000000..7e921362 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CheckEmailFeaturesClientSupportResultsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CheckEmailFeaturesClientSupportResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CheckEmailFeaturesClientSupportResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CheckEmailFeaturesClientSupportResults + //private CheckEmailFeaturesClientSupportResults instance; + + public CheckEmailFeaturesClientSupportResultsTests() + { + // TODO uncomment below to create an instance of CheckEmailFeaturesClientSupportResults + //instance = new CheckEmailFeaturesClientSupportResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CheckEmailFeaturesClientSupportResults + /// + [Fact] + public void CheckEmailFeaturesClientSupportResultsInstanceTest() + { + // TODO uncomment below to test "IsType" CheckEmailFeaturesClientSupportResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Result' + /// + [Fact] + public void ResultTest() + { + // TODO unit test for the property 'Result' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ComplaintTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ComplaintTests.cs new file mode 100644 index 00000000..768814f4 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ComplaintTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing Complaint + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ComplaintTests : IDisposable + { + // TODO uncomment below to declare an instance variable for Complaint + //private Complaint instance; + + public ComplaintTests() + { + // TODO uncomment below to create an instance of Complaint + //instance = new Complaint(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of Complaint + /// + [Fact] + public void ComplaintInstanceTest() + { + // TODO uncomment below to test "IsType" Complaint + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'EventType' + /// + [Fact] + public void EventTypeTest() + { + // TODO unit test for the property 'EventType' + } + /// + /// Test the property 'MailSource' + /// + [Fact] + public void MailSourceTest() + { + // TODO unit test for the property 'MailSource' + } + /// + /// Test the property 'MailMessageId' + /// + [Fact] + public void MailMessageIdTest() + { + // TODO unit test for the property 'MailMessageId' + } + /// + /// Test the property 'ComplaintRecipient' + /// + [Fact] + public void ComplaintRecipientTest() + { + // TODO unit test for the property 'ComplaintRecipient' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConditionOptionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConditionOptionTests.cs new file mode 100644 index 00000000..20dd232a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConditionOptionTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConditionOption + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConditionOptionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConditionOption + //private ConditionOption instance; + + public ConditionOptionTests() + { + // TODO uncomment below to create an instance of ConditionOption + //instance = new ConditionOption(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConditionOption + /// + [Fact] + public void ConditionOptionInstanceTest() + { + // TODO uncomment below to test "IsType" ConditionOption + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Condition' + /// + [Fact] + public void ConditionTest() + { + // TODO unit test for the property 'Condition' + } + /// + /// Test the property 'Value' + /// + [Fact] + public void ValueTest() + { + // TODO unit test for the property 'Value' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConnectorDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConnectorDtoTests.cs new file mode 100644 index 00000000..301d6eee --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConnectorDtoTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConnectorDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConnectorDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConnectorDto + //private ConnectorDto instance; + + public ConnectorDtoTests() + { + // TODO uncomment below to create an instance of ConnectorDto + //instance = new ConnectorDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorDto + /// + [Fact] + public void ConnectorDtoInstanceTest() + { + // TODO uncomment below to test "IsType" ConnectorDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Enabled' + /// + [Fact] + public void EnabledTest() + { + // TODO unit test for the property 'Enabled' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'SyncEnabled' + /// + [Fact] + public void SyncEnabledTest() + { + // TODO unit test for the property 'SyncEnabled' + } + /// + /// Test the property 'SyncScheduleType' + /// + [Fact] + public void SyncScheduleTypeTest() + { + // TODO unit test for the property 'SyncScheduleType' + } + /// + /// Test the property 'SyncInterval' + /// + [Fact] + public void SyncIntervalTest() + { + // TODO unit test for the property 'SyncInterval' + } + /// + /// Test the property 'HasImapConnection' + /// + [Fact] + public void HasImapConnectionTest() + { + // TODO unit test for the property 'HasImapConnection' + } + /// + /// Test the property 'HasSmtpConnection' + /// + [Fact] + public void HasSmtpConnectionTest() + { + // TODO unit test for the property 'HasSmtpConnection' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConnectorImapConnectionDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConnectorImapConnectionDtoTests.cs new file mode 100644 index 00000000..9ba831a3 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConnectorImapConnectionDtoTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConnectorImapConnectionDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConnectorImapConnectionDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConnectorImapConnectionDto + //private ConnectorImapConnectionDto instance; + + public ConnectorImapConnectionDtoTests() + { + // TODO uncomment below to create an instance of ConnectorImapConnectionDto + //instance = new ConnectorImapConnectionDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorImapConnectionDto + /// + [Fact] + public void ConnectorImapConnectionDtoInstanceTest() + { + // TODO uncomment below to test "IsType" ConnectorImapConnectionDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ConnectorId' + /// + [Fact] + public void ConnectorIdTest() + { + // TODO unit test for the property 'ConnectorId' + } + /// + /// Test the property 'ImapHost' + /// + [Fact] + public void ImapHostTest() + { + // TODO unit test for the property 'ImapHost' + } + /// + /// Test the property 'ImapPort' + /// + [Fact] + public void ImapPortTest() + { + // TODO unit test for the property 'ImapPort' + } + /// + /// Test the property 'ImapUsername' + /// + [Fact] + public void ImapUsernameTest() + { + // TODO unit test for the property 'ImapUsername' + } + /// + /// Test the property 'ImapPassword' + /// + [Fact] + public void ImapPasswordTest() + { + // TODO unit test for the property 'ImapPassword' + } + /// + /// Test the property 'ImapSsl' + /// + [Fact] + public void ImapSslTest() + { + // TODO unit test for the property 'ImapSsl' + } + /// + /// Test the property 'SelectFolder' + /// + [Fact] + public void SelectFolderTest() + { + // TODO unit test for the property 'SelectFolder' + } + /// + /// Test the property 'SearchTerms' + /// + [Fact] + public void SearchTermsTest() + { + // TODO unit test for the property 'SearchTerms' + } + /// + /// Test the property 'Enabled' + /// + [Fact] + public void EnabledTest() + { + // TODO unit test for the property 'Enabled' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConnectorProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConnectorProjectionTests.cs new file mode 100644 index 00000000..52f3a4e8 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConnectorProjectionTests.cs @@ -0,0 +1,143 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConnectorProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConnectorProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConnectorProjection + //private ConnectorProjection instance; + + public ConnectorProjectionTests() + { + // TODO uncomment below to create an instance of ConnectorProjection + //instance = new ConnectorProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorProjection + /// + [Fact] + public void ConnectorProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" ConnectorProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Enabled' + /// + [Fact] + public void EnabledTest() + { + // TODO unit test for the property 'Enabled' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'SyncEnabled' + /// + [Fact] + public void SyncEnabledTest() + { + // TODO unit test for the property 'SyncEnabled' + } + /// + /// Test the property 'SyncScheduleType' + /// + [Fact] + public void SyncScheduleTypeTest() + { + // TODO unit test for the property 'SyncScheduleType' + } + /// + /// Test the property 'SyncInterval' + /// + [Fact] + public void SyncIntervalTest() + { + // TODO unit test for the property 'SyncInterval' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConnectorSmtpConnectionDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSmtpConnectionDtoTests.cs new file mode 100644 index 00000000..1ebc8d7c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSmtpConnectionDtoTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConnectorSmtpConnectionDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConnectorSmtpConnectionDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConnectorSmtpConnectionDto + //private ConnectorSmtpConnectionDto instance; + + public ConnectorSmtpConnectionDtoTests() + { + // TODO uncomment below to create an instance of ConnectorSmtpConnectionDto + //instance = new ConnectorSmtpConnectionDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorSmtpConnectionDto + /// + [Fact] + public void ConnectorSmtpConnectionDtoInstanceTest() + { + // TODO uncomment below to test "IsType" ConnectorSmtpConnectionDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ConnectorId' + /// + [Fact] + public void ConnectorIdTest() + { + // TODO unit test for the property 'ConnectorId' + } + /// + /// Test the property 'SmtpHost' + /// + [Fact] + public void SmtpHostTest() + { + // TODO unit test for the property 'SmtpHost' + } + /// + /// Test the property 'SmtpPort' + /// + [Fact] + public void SmtpPortTest() + { + // TODO unit test for the property 'SmtpPort' + } + /// + /// Test the property 'SmtpUsername' + /// + [Fact] + public void SmtpUsernameTest() + { + // TODO unit test for the property 'SmtpUsername' + } + /// + /// Test the property 'SmtpPassword' + /// + [Fact] + public void SmtpPasswordTest() + { + // TODO unit test for the property 'SmtpPassword' + } + /// + /// Test the property 'SmtpSsl' + /// + [Fact] + public void SmtpSslTest() + { + // TODO unit test for the property 'SmtpSsl' + } + /// + /// Test the property 'Enabled' + /// + [Fact] + public void EnabledTest() + { + // TODO unit test for the property 'Enabled' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncEventDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncEventDtoTests.cs new file mode 100644 index 00000000..ce6a2407 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncEventDtoTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConnectorSyncEventDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConnectorSyncEventDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConnectorSyncEventDto + //private ConnectorSyncEventDto instance; + + public ConnectorSyncEventDtoTests() + { + // TODO uncomment below to create an instance of ConnectorSyncEventDto + //instance = new ConnectorSyncEventDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorSyncEventDto + /// + [Fact] + public void ConnectorSyncEventDtoInstanceTest() + { + // TODO uncomment below to test "IsType" ConnectorSyncEventDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'ConnectorId' + /// + [Fact] + public void ConnectorIdTest() + { + // TODO unit test for the property 'ConnectorId' + } + /// + /// Test the property 'SyncStatus' + /// + [Fact] + public void SyncStatusTest() + { + // TODO unit test for the property 'SyncStatus' + } + /// + /// Test the property 'SyncCount' + /// + [Fact] + public void SyncCountTest() + { + // TODO unit test for the property 'SyncCount' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncEventProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncEventProjectionTests.cs new file mode 100644 index 00000000..d006fa01 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncEventProjectionTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConnectorSyncEventProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConnectorSyncEventProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConnectorSyncEventProjection + //private ConnectorSyncEventProjection instance; + + public ConnectorSyncEventProjectionTests() + { + // TODO uncomment below to create an instance of ConnectorSyncEventProjection + //instance = new ConnectorSyncEventProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorSyncEventProjection + /// + [Fact] + public void ConnectorSyncEventProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" ConnectorSyncEventProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ConnectorId' + /// + [Fact] + public void ConnectorIdTest() + { + // TODO unit test for the property 'ConnectorId' + } + /// + /// Test the property 'SyncCount' + /// + [Fact] + public void SyncCountTest() + { + // TODO unit test for the property 'SyncCount' + } + /// + /// Test the property 'SyncStatus' + /// + [Fact] + public void SyncStatusTest() + { + // TODO unit test for the property 'SyncStatus' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionCauseStackTraceInnerTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionCauseStackTraceInnerTests.cs new file mode 100644 index 00000000..79dc408e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionCauseStackTraceInnerTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConnectorSyncRequestResultExceptionCauseStackTraceInner + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConnectorSyncRequestResultExceptionCauseStackTraceInnerTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConnectorSyncRequestResultExceptionCauseStackTraceInner + //private ConnectorSyncRequestResultExceptionCauseStackTraceInner instance; + + public ConnectorSyncRequestResultExceptionCauseStackTraceInnerTests() + { + // TODO uncomment below to create an instance of ConnectorSyncRequestResultExceptionCauseStackTraceInner + //instance = new ConnectorSyncRequestResultExceptionCauseStackTraceInner(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorSyncRequestResultExceptionCauseStackTraceInner + /// + [Fact] + public void ConnectorSyncRequestResultExceptionCauseStackTraceInnerInstanceTest() + { + // TODO uncomment below to test "IsType" ConnectorSyncRequestResultExceptionCauseStackTraceInner + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ClassLoaderName' + /// + [Fact] + public void ClassLoaderNameTest() + { + // TODO unit test for the property 'ClassLoaderName' + } + /// + /// Test the property 'ModuleName' + /// + [Fact] + public void ModuleNameTest() + { + // TODO unit test for the property 'ModuleName' + } + /// + /// Test the property 'ModuleVersion' + /// + [Fact] + public void ModuleVersionTest() + { + // TODO unit test for the property 'ModuleVersion' + } + /// + /// Test the property 'MethodName' + /// + [Fact] + public void MethodNameTest() + { + // TODO unit test for the property 'MethodName' + } + /// + /// Test the property 'FileName' + /// + [Fact] + public void FileNameTest() + { + // TODO unit test for the property 'FileName' + } + /// + /// Test the property 'LineNumber' + /// + [Fact] + public void LineNumberTest() + { + // TODO unit test for the property 'LineNumber' + } + /// + /// Test the property 'ClassName' + /// + [Fact] + public void ClassNameTest() + { + // TODO unit test for the property 'ClassName' + } + /// + /// Test the property 'NativeMethod' + /// + [Fact] + public void NativeMethodTest() + { + // TODO unit test for the property 'NativeMethod' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionCauseTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionCauseTests.cs new file mode 100644 index 00000000..2faa2c46 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionCauseTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConnectorSyncRequestResultExceptionCause + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConnectorSyncRequestResultExceptionCauseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConnectorSyncRequestResultExceptionCause + //private ConnectorSyncRequestResultExceptionCause instance; + + public ConnectorSyncRequestResultExceptionCauseTests() + { + // TODO uncomment below to create an instance of ConnectorSyncRequestResultExceptionCause + //instance = new ConnectorSyncRequestResultExceptionCause(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorSyncRequestResultExceptionCause + /// + [Fact] + public void ConnectorSyncRequestResultExceptionCauseInstanceTest() + { + // TODO uncomment below to test "IsType" ConnectorSyncRequestResultExceptionCause + //Assert.IsType(instance); + } + + + /// + /// Test the property 'StackTrace' + /// + [Fact] + public void StackTraceTest() + { + // TODO unit test for the property 'StackTrace' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + /// + /// Test the property 'LocalizedMessage' + /// + [Fact] + public void LocalizedMessageTest() + { + // TODO unit test for the property 'LocalizedMessage' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionTests.cs new file mode 100644 index 00000000..c41b7fd6 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultExceptionTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConnectorSyncRequestResultException + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConnectorSyncRequestResultExceptionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConnectorSyncRequestResultException + //private ConnectorSyncRequestResultException instance; + + public ConnectorSyncRequestResultExceptionTests() + { + // TODO uncomment below to create an instance of ConnectorSyncRequestResultException + //instance = new ConnectorSyncRequestResultException(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorSyncRequestResultException + /// + [Fact] + public void ConnectorSyncRequestResultExceptionInstanceTest() + { + // TODO uncomment below to test "IsType" ConnectorSyncRequestResultException + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Cause' + /// + [Fact] + public void CauseTest() + { + // TODO unit test for the property 'Cause' + } + /// + /// Test the property 'StackTrace' + /// + [Fact] + public void StackTraceTest() + { + // TODO unit test for the property 'StackTrace' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + /// + /// Test the property 'Suppressed' + /// + [Fact] + public void SuppressedTest() + { + // TODO unit test for the property 'Suppressed' + } + /// + /// Test the property 'LocalizedMessage' + /// + [Fact] + public void LocalizedMessageTest() + { + // TODO unit test for the property 'LocalizedMessage' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultTests.cs new file mode 100644 index 00000000..81c1c896 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncRequestResultTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConnectorSyncRequestResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConnectorSyncRequestResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConnectorSyncRequestResult + //private ConnectorSyncRequestResult instance; + + public ConnectorSyncRequestResultTests() + { + // TODO uncomment below to create an instance of ConnectorSyncRequestResult + //instance = new ConnectorSyncRequestResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorSyncRequestResult + /// + [Fact] + public void ConnectorSyncRequestResultInstanceTest() + { + // TODO uncomment below to test "IsType" ConnectorSyncRequestResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'SyncResult' + /// + [Fact] + public void SyncResultTest() + { + // TODO unit test for the property 'SyncResult' + } + /// + /// Test the property 'Exception' + /// + [Fact] + public void ExceptionTest() + { + // TODO unit test for the property 'Exception' + } + /// + /// Test the property 'EventId' + /// + [Fact] + public void EventIdTest() + { + // TODO unit test for the property 'EventId' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncResultTests.cs new file mode 100644 index 00000000..b854a7cf --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ConnectorSyncResultTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ConnectorSyncResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ConnectorSyncResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ConnectorSyncResult + //private ConnectorSyncResult instance; + + public ConnectorSyncResultTests() + { + // TODO uncomment below to create an instance of ConnectorSyncResult + //instance = new ConnectorSyncResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ConnectorSyncResult + /// + [Fact] + public void ConnectorSyncResultInstanceTest() + { + // TODO uncomment below to test "IsType" ConnectorSyncResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailSyncCount' + /// + [Fact] + public void EmailSyncCountTest() + { + // TODO unit test for the property 'EmailSyncCount' + } + /// + /// Test the property 'LogLines' + /// + [Fact] + public void LogLinesTest() + { + // TODO unit test for the property 'LogLines' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ContactDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ContactDtoTests.cs new file mode 100644 index 00000000..92642f08 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ContactDtoTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ContactDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ContactDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ContactDto + //private ContactDto instance; + + public ContactDtoTests() + { + // TODO uncomment below to create an instance of ContactDto + //instance = new ContactDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ContactDto + /// + [Fact] + public void ContactDtoInstanceTest() + { + // TODO uncomment below to test "IsType" ContactDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'GroupId' + /// + [Fact] + public void GroupIdTest() + { + // TODO unit test for the property 'GroupId' + } + /// + /// Test the property 'FirstName' + /// + [Fact] + public void FirstNameTest() + { + // TODO unit test for the property 'FirstName' + } + /// + /// Test the property 'LastName' + /// + [Fact] + public void LastNameTest() + { + // TODO unit test for the property 'LastName' + } + /// + /// Test the property 'Company' + /// + [Fact] + public void CompanyTest() + { + // TODO unit test for the property 'Company' + } + /// + /// Test the property 'EmailAddresses' + /// + [Fact] + public void EmailAddressesTest() + { + // TODO unit test for the property 'EmailAddresses' + } + /// + /// Test the property 'PrimaryEmailAddress' + /// + [Fact] + public void PrimaryEmailAddressTest() + { + // TODO unit test for the property 'PrimaryEmailAddress' + } + /// + /// Test the property 'Tags' + /// + [Fact] + public void TagsTest() + { + // TODO unit test for the property 'Tags' + } + /// + /// Test the property 'MetaData' + /// + [Fact] + public void MetaDataTest() + { + // TODO unit test for the property 'MetaData' + } + /// + /// Test the property 'OptOut' + /// + [Fact] + public void OptOutTest() + { + // TODO unit test for the property 'OptOut' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ContactProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ContactProjectionTests.cs new file mode 100644 index 00000000..0c096bd7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ContactProjectionTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ContactProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ContactProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ContactProjection + //private ContactProjection instance; + + public ContactProjectionTests() + { + // TODO uncomment below to create an instance of ContactProjection + //instance = new ContactProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ContactProjection + /// + [Fact] + public void ContactProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" ContactProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'EmailAddresses' + /// + [Fact] + public void EmailAddressesTest() + { + // TODO unit test for the property 'EmailAddresses' + } + /// + /// Test the property 'FirstName' + /// + [Fact] + public void FirstNameTest() + { + // TODO unit test for the property 'FirstName' + } + /// + /// Test the property 'LastName' + /// + [Fact] + public void LastNameTest() + { + // TODO unit test for the property 'LastName' + } + /// + /// Test the property 'Company' + /// + [Fact] + public void CompanyTest() + { + // TODO unit test for the property 'Company' + } + /// + /// Test the property 'OptOut' + /// + [Fact] + public void OptOutTest() + { + // TODO unit test for the property 'OptOut' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'GroupId' + /// + [Fact] + public void GroupIdTest() + { + // TODO unit test for the property 'GroupId' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ContentMatchOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ContentMatchOptionsTests.cs new file mode 100644 index 00000000..f71b9222 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ContentMatchOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ContentMatchOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ContentMatchOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ContentMatchOptions + //private ContentMatchOptions instance; + + public ContentMatchOptionsTests() + { + // TODO uncomment below to create an instance of ContentMatchOptions + //instance = new ContentMatchOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ContentMatchOptions + /// + [Fact] + public void ContentMatchOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ContentMatchOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Pattern' + /// + [Fact] + public void PatternTest() + { + // TODO unit test for the property 'Pattern' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CountDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CountDtoTests.cs new file mode 100644 index 00000000..b987fabe --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CountDtoTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CountDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CountDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CountDto + //private CountDto instance; + + public CountDtoTests() + { + // TODO uncomment below to create an instance of CountDto + //instance = new CountDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CountDto + /// + [Fact] + public void CountDtoInstanceTest() + { + // TODO uncomment below to test "IsType" CountDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateAliasOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateAliasOptionsTests.cs new file mode 100644 index 00000000..0175d3af --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateAliasOptionsTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateAliasOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateAliasOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateAliasOptions + //private CreateAliasOptions instance; + + public CreateAliasOptionsTests() + { + // TODO uncomment below to create an instance of CreateAliasOptions + //instance = new CreateAliasOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateAliasOptions + /// + [Fact] + public void CreateAliasOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateAliasOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'UseThreads' + /// + [Fact] + public void UseThreadsTest() + { + // TODO unit test for the property 'UseThreads' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'VerifyEmailAddress' + /// + [Fact] + public void VerifyEmailAddressTest() + { + // TODO unit test for the property 'VerifyEmailAddress' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateConnectorImapConnectionOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateConnectorImapConnectionOptionsTests.cs new file mode 100644 index 00000000..3d85ff86 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateConnectorImapConnectionOptionsTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateConnectorImapConnectionOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateConnectorImapConnectionOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateConnectorImapConnectionOptions + //private CreateConnectorImapConnectionOptions instance; + + public CreateConnectorImapConnectionOptionsTests() + { + // TODO uncomment below to create an instance of CreateConnectorImapConnectionOptions + //instance = new CreateConnectorImapConnectionOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateConnectorImapConnectionOptions + /// + [Fact] + public void CreateConnectorImapConnectionOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateConnectorImapConnectionOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ImapSsl' + /// + [Fact] + public void ImapSslTest() + { + // TODO unit test for the property 'ImapSsl' + } + /// + /// Test the property 'ImapUsername' + /// + [Fact] + public void ImapUsernameTest() + { + // TODO unit test for the property 'ImapUsername' + } + /// + /// Test the property 'ImapPassword' + /// + [Fact] + public void ImapPasswordTest() + { + // TODO unit test for the property 'ImapPassword' + } + /// + /// Test the property 'SelectFolder' + /// + [Fact] + public void SelectFolderTest() + { + // TODO unit test for the property 'SelectFolder' + } + /// + /// Test the property 'SearchTerms' + /// + [Fact] + public void SearchTermsTest() + { + // TODO unit test for the property 'SearchTerms' + } + /// + /// Test the property 'ImapPort' + /// + [Fact] + public void ImapPortTest() + { + // TODO unit test for the property 'ImapPort' + } + /// + /// Test the property 'ImapHost' + /// + [Fact] + public void ImapHostTest() + { + // TODO unit test for the property 'ImapHost' + } + /// + /// Test the property 'Enabled' + /// + [Fact] + public void EnabledTest() + { + // TODO unit test for the property 'Enabled' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateConnectorOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateConnectorOptionsTests.cs new file mode 100644 index 00000000..24513cfb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateConnectorOptionsTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateConnectorOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateConnectorOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateConnectorOptions + //private CreateConnectorOptions instance; + + public CreateConnectorOptionsTests() + { + // TODO uncomment below to create an instance of CreateConnectorOptions + //instance = new CreateConnectorOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateConnectorOptions + /// + [Fact] + public void CreateConnectorOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateConnectorOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'SyncEnabled' + /// + [Fact] + public void SyncEnabledTest() + { + // TODO unit test for the property 'SyncEnabled' + } + /// + /// Test the property 'SyncScheduleType' + /// + [Fact] + public void SyncScheduleTypeTest() + { + // TODO unit test for the property 'SyncScheduleType' + } + /// + /// Test the property 'SyncInterval' + /// + [Fact] + public void SyncIntervalTest() + { + // TODO unit test for the property 'SyncInterval' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'Enabled' + /// + [Fact] + public void EnabledTest() + { + // TODO unit test for the property 'Enabled' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateConnectorSmtpConnectionOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateConnectorSmtpConnectionOptionsTests.cs new file mode 100644 index 00000000..f14d31ea --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateConnectorSmtpConnectionOptionsTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateConnectorSmtpConnectionOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateConnectorSmtpConnectionOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateConnectorSmtpConnectionOptions + //private CreateConnectorSmtpConnectionOptions instance; + + public CreateConnectorSmtpConnectionOptionsTests() + { + // TODO uncomment below to create an instance of CreateConnectorSmtpConnectionOptions + //instance = new CreateConnectorSmtpConnectionOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateConnectorSmtpConnectionOptions + /// + [Fact] + public void CreateConnectorSmtpConnectionOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateConnectorSmtpConnectionOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Enabled' + /// + [Fact] + public void EnabledTest() + { + // TODO unit test for the property 'Enabled' + } + /// + /// Test the property 'SmtpHost' + /// + [Fact] + public void SmtpHostTest() + { + // TODO unit test for the property 'SmtpHost' + } + /// + /// Test the property 'SmtpPort' + /// + [Fact] + public void SmtpPortTest() + { + // TODO unit test for the property 'SmtpPort' + } + /// + /// Test the property 'SmtpSsl' + /// + [Fact] + public void SmtpSslTest() + { + // TODO unit test for the property 'SmtpSsl' + } + /// + /// Test the property 'SmtpUsername' + /// + [Fact] + public void SmtpUsernameTest() + { + // TODO unit test for the property 'SmtpUsername' + } + /// + /// Test the property 'SmtpPassword' + /// + [Fact] + public void SmtpPasswordTest() + { + // TODO unit test for the property 'SmtpPassword' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateContactOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateContactOptionsTests.cs new file mode 100644 index 00000000..7b724cb1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateContactOptionsTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateContactOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateContactOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateContactOptions + //private CreateContactOptions instance; + + public CreateContactOptionsTests() + { + // TODO uncomment below to create an instance of CreateContactOptions + //instance = new CreateContactOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateContactOptions + /// + [Fact] + public void CreateContactOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateContactOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'FirstName' + /// + [Fact] + public void FirstNameTest() + { + // TODO unit test for the property 'FirstName' + } + /// + /// Test the property 'LastName' + /// + [Fact] + public void LastNameTest() + { + // TODO unit test for the property 'LastName' + } + /// + /// Test the property 'Company' + /// + [Fact] + public void CompanyTest() + { + // TODO unit test for the property 'Company' + } + /// + /// Test the property 'EmailAddresses' + /// + [Fact] + public void EmailAddressesTest() + { + // TODO unit test for the property 'EmailAddresses' + } + /// + /// Test the property 'Tags' + /// + [Fact] + public void TagsTest() + { + // TODO unit test for the property 'Tags' + } + /// + /// Test the property 'MetaData' + /// + [Fact] + public void MetaDataTest() + { + // TODO unit test for the property 'MetaData' + } + /// + /// Test the property 'OptOut' + /// + [Fact] + public void OptOutTest() + { + // TODO unit test for the property 'OptOut' + } + /// + /// Test the property 'GroupId' + /// + [Fact] + public void GroupIdTest() + { + // TODO unit test for the property 'GroupId' + } + /// + /// Test the property 'VerifyEmailAddresses' + /// + [Fact] + public void VerifyEmailAddressesTest() + { + // TODO unit test for the property 'VerifyEmailAddresses' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateDomainOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateDomainOptionsTests.cs new file mode 100644 index 00000000..8747a23e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateDomainOptionsTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateDomainOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateDomainOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateDomainOptions + //private CreateDomainOptions instance; + + public CreateDomainOptionsTests() + { + // TODO uncomment below to create an instance of CreateDomainOptions + //instance = new CreateDomainOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateDomainOptions + /// + [Fact] + public void CreateDomainOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateDomainOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Domain' + /// + [Fact] + public void DomainTest() + { + // TODO unit test for the property 'Domain' + } + /// + /// Test the property 'Description' + /// + [Fact] + public void DescriptionTest() + { + // TODO unit test for the property 'Description' + } + /// + /// Test the property 'CreatedCatchAllInbox' + /// + [Fact] + public void CreatedCatchAllInboxTest() + { + // TODO unit test for the property 'CreatedCatchAllInbox' + } + /// + /// Test the property 'DomainType' + /// + [Fact] + public void DomainTypeTest() + { + // TODO unit test for the property 'DomainType' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateEmergencyAddressOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateEmergencyAddressOptionsTests.cs new file mode 100644 index 00000000..1da29005 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateEmergencyAddressOptionsTests.cs @@ -0,0 +1,119 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateEmergencyAddressOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateEmergencyAddressOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateEmergencyAddressOptions + //private CreateEmergencyAddressOptions instance; + + public CreateEmergencyAddressOptionsTests() + { + // TODO uncomment below to create an instance of CreateEmergencyAddressOptions + //instance = new CreateEmergencyAddressOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateEmergencyAddressOptions + /// + [Fact] + public void CreateEmergencyAddressOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateEmergencyAddressOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'CustomerName' + /// + [Fact] + public void CustomerNameTest() + { + // TODO unit test for the property 'CustomerName' + } + /// + /// Test the property 'Address1' + /// + [Fact] + public void Address1Test() + { + // TODO unit test for the property 'Address1' + } + /// + /// Test the property 'City' + /// + [Fact] + public void CityTest() + { + // TODO unit test for the property 'City' + } + /// + /// Test the property 'Region' + /// + [Fact] + public void RegionTest() + { + // TODO unit test for the property 'Region' + } + /// + /// Test the property 'PostalCode' + /// + [Fact] + public void PostalCodeTest() + { + // TODO unit test for the property 'PostalCode' + } + /// + /// Test the property 'IsoCountryCode' + /// + [Fact] + public void IsoCountryCodeTest() + { + // TODO unit test for the property 'IsoCountryCode' + } + /// + /// Test the property 'DisplayName' + /// + [Fact] + public void DisplayNameTest() + { + // TODO unit test for the property 'DisplayName' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateGroupOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateGroupOptionsTests.cs new file mode 100644 index 00000000..7f7ddab5 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateGroupOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateGroupOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateGroupOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateGroupOptions + //private CreateGroupOptions instance; + + public CreateGroupOptionsTests() + { + // TODO uncomment below to create an instance of CreateGroupOptions + //instance = new CreateGroupOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateGroupOptions + /// + [Fact] + public void CreateGroupOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateGroupOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Description' + /// + [Fact] + public void DescriptionTest() + { + // TODO unit test for the property 'Description' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateInboxDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateInboxDtoTests.cs new file mode 100644 index 00000000..a5af99a8 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateInboxDtoTests.cs @@ -0,0 +1,183 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateInboxDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateInboxDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateInboxDto + //private CreateInboxDto instance; + + public CreateInboxDtoTests() + { + // TODO uncomment below to create an instance of CreateInboxDto + //instance = new CreateInboxDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateInboxDto + /// + [Fact] + public void CreateInboxDtoInstanceTest() + { + // TODO uncomment below to test "IsType" CreateInboxDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'DomainName' + /// + [Fact] + public void DomainNameTest() + { + // TODO unit test for the property 'DomainName' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Description' + /// + [Fact] + public void DescriptionTest() + { + // TODO unit test for the property 'Description' + } + /// + /// Test the property 'UseDomainPool' + /// + [Fact] + public void UseDomainPoolTest() + { + // TODO unit test for the property 'UseDomainPool' + } + /// + /// Test the property 'Tags' + /// + [Fact] + public void TagsTest() + { + // TODO unit test for the property 'Tags' + } + /// + /// Test the property 'ExpiresAt' + /// + [Fact] + public void ExpiresAtTest() + { + // TODO unit test for the property 'ExpiresAt' + } + /// + /// Test the property 'Favourite' + /// + [Fact] + public void FavouriteTest() + { + // TODO unit test for the property 'Favourite' + } + /// + /// Test the property 'ExpiresIn' + /// + [Fact] + public void ExpiresInTest() + { + // TODO unit test for the property 'ExpiresIn' + } + /// + /// Test the property 'AllowTeamAccess' + /// + [Fact] + public void AllowTeamAccessTest() + { + // TODO unit test for the property 'AllowTeamAccess' + } + /// + /// Test the property 'InboxType' + /// + [Fact] + public void InboxTypeTest() + { + // TODO unit test for the property 'InboxType' + } + /// + /// Test the property 'VirtualInbox' + /// + [Fact] + public void VirtualInboxTest() + { + // TODO unit test for the property 'VirtualInbox' + } + /// + /// Test the property 'UseShortAddress' + /// + [Fact] + public void UseShortAddressTest() + { + // TODO unit test for the property 'UseShortAddress' + } + /// + /// Test the property 'Prefix' + /// + [Fact] + public void PrefixTest() + { + // TODO unit test for the property 'Prefix' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateInboxForwarderOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateInboxForwarderOptionsTests.cs new file mode 100644 index 00000000..a54bc256 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateInboxForwarderOptionsTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateInboxForwarderOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateInboxForwarderOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateInboxForwarderOptions + //private CreateInboxForwarderOptions instance; + + public CreateInboxForwarderOptionsTests() + { + // TODO uncomment below to create an instance of CreateInboxForwarderOptions + //instance = new CreateInboxForwarderOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateInboxForwarderOptions + /// + [Fact] + public void CreateInboxForwarderOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateInboxForwarderOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Field' + /// + [Fact] + public void FieldTest() + { + // TODO unit test for the property 'Field' + } + /// + /// Test the property 'Match' + /// + [Fact] + public void MatchTest() + { + // TODO unit test for the property 'Match' + } + /// + /// Test the property 'ForwardToRecipients' + /// + [Fact] + public void ForwardToRecipientsTest() + { + // TODO unit test for the property 'ForwardToRecipients' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateInboxReplierOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateInboxReplierOptionsTests.cs new file mode 100644 index 00000000..0fde1c70 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateInboxReplierOptionsTests.cs @@ -0,0 +1,167 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateInboxReplierOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateInboxReplierOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateInboxReplierOptions + //private CreateInboxReplierOptions instance; + + public CreateInboxReplierOptionsTests() + { + // TODO uncomment below to create an instance of CreateInboxReplierOptions + //instance = new CreateInboxReplierOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateInboxReplierOptions + /// + [Fact] + public void CreateInboxReplierOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateInboxReplierOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Field' + /// + [Fact] + public void FieldTest() + { + // TODO unit test for the property 'Field' + } + /// + /// Test the property 'Match' + /// + [Fact] + public void MatchTest() + { + // TODO unit test for the property 'Match' + } + /// + /// Test the property 'ReplyTo' + /// + [Fact] + public void ReplyToTest() + { + // TODO unit test for the property 'ReplyTo' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'Charset' + /// + [Fact] + public void CharsetTest() + { + // TODO unit test for the property 'Charset' + } + /// + /// Test the property 'IgnoreReplyTo' + /// + [Fact] + public void IgnoreReplyToTest() + { + // TODO unit test for the property 'IgnoreReplyTo' + } + /// + /// Test the property 'IsHTML' + /// + [Fact] + public void IsHTMLTest() + { + // TODO unit test for the property 'IsHTML' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'TemplateId' + /// + [Fact] + public void TemplateIdTest() + { + // TODO unit test for the property 'TemplateId' + } + /// + /// Test the property 'TemplateVariables' + /// + [Fact] + public void TemplateVariablesTest() + { + // TODO unit test for the property 'TemplateVariables' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateInboxRulesetOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateInboxRulesetOptionsTests.cs new file mode 100644 index 00000000..6568c196 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateInboxRulesetOptionsTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateInboxRulesetOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateInboxRulesetOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateInboxRulesetOptions + //private CreateInboxRulesetOptions instance; + + public CreateInboxRulesetOptionsTests() + { + // TODO uncomment below to create an instance of CreateInboxRulesetOptions + //instance = new CreateInboxRulesetOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateInboxRulesetOptions + /// + [Fact] + public void CreateInboxRulesetOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateInboxRulesetOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Scope' + /// + [Fact] + public void ScopeTest() + { + // TODO unit test for the property 'Scope' + } + /// + /// Test the property 'Action' + /// + [Fact] + public void ActionTest() + { + // TODO unit test for the property 'Action' + } + /// + /// Test the property 'Target' + /// + [Fact] + public void TargetTest() + { + // TODO unit test for the property 'Target' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateTemplateOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateTemplateOptionsTests.cs new file mode 100644 index 00000000..84f5581a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateTemplateOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateTemplateOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateTemplateOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateTemplateOptions + //private CreateTemplateOptions instance; + + public CreateTemplateOptionsTests() + { + // TODO uncomment below to create an instance of CreateTemplateOptions + //instance = new CreateTemplateOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateTemplateOptions + /// + [Fact] + public void CreateTemplateOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateTemplateOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateTrackingPixelOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateTrackingPixelOptionsTests.cs new file mode 100644 index 00000000..e8d79d0e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateTrackingPixelOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateTrackingPixelOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateTrackingPixelOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateTrackingPixelOptions + //private CreateTrackingPixelOptions instance; + + public CreateTrackingPixelOptionsTests() + { + // TODO uncomment below to create an instance of CreateTrackingPixelOptions + //instance = new CreateTrackingPixelOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateTrackingPixelOptions + /// + [Fact] + public void CreateTrackingPixelOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateTrackingPixelOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Recipient' + /// + [Fact] + public void RecipientTest() + { + // TODO unit test for the property 'Recipient' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/CreateWebhookOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/CreateWebhookOptionsTests.cs new file mode 100644 index 00000000..d4871f27 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/CreateWebhookOptionsTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing CreateWebhookOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CreateWebhookOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CreateWebhookOptions + //private CreateWebhookOptions instance; + + public CreateWebhookOptionsTests() + { + // TODO uncomment below to create an instance of CreateWebhookOptions + //instance = new CreateWebhookOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CreateWebhookOptions + /// + [Fact] + public void CreateWebhookOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" CreateWebhookOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Url' + /// + [Fact] + public void UrlTest() + { + // TODO unit test for the property 'Url' + } + /// + /// Test the property 'BasicAuth' + /// + [Fact] + public void BasicAuthTest() + { + // TODO unit test for the property 'BasicAuth' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'IncludeHeaders' + /// + [Fact] + public void IncludeHeadersTest() + { + // TODO unit test for the property 'IncludeHeaders' + } + /// + /// Test the property 'RequestBodyTemplate' + /// + [Fact] + public void RequestBodyTemplateTest() + { + // TODO unit test for the property 'RequestBodyTemplate' + } + /// + /// Test the property 'UseStaticIpRange' + /// + [Fact] + public void UseStaticIpRangeTest() + { + // TODO unit test for the property 'UseStaticIpRange' + } + /// + /// Test the property 'IgnoreInsecureSslCertificates' + /// + [Fact] + public void IgnoreInsecureSslCertificatesTest() + { + // TODO unit test for the property 'IgnoreInsecureSslCertificates' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DNSLookupOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DNSLookupOptionsTests.cs new file mode 100644 index 00000000..6b80d774 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DNSLookupOptionsTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DNSLookupOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DNSLookupOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DNSLookupOptions + //private DNSLookupOptions instance; + + public DNSLookupOptionsTests() + { + // TODO uncomment below to create an instance of DNSLookupOptions + //instance = new DNSLookupOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DNSLookupOptions + /// + [Fact] + public void DNSLookupOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" DNSLookupOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Hostname' + /// + [Fact] + public void HostnameTest() + { + // TODO unit test for the property 'Hostname' + } + /// + /// Test the property 'RecordTypes' + /// + [Fact] + public void RecordTypesTest() + { + // TODO unit test for the property 'RecordTypes' + } + /// + /// Test the property 'OmitFinalDNSDot' + /// + [Fact] + public void OmitFinalDNSDotTest() + { + // TODO unit test for the property 'OmitFinalDNSDot' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DNSLookupResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DNSLookupResultTests.cs new file mode 100644 index 00000000..ef3528c8 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DNSLookupResultTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DNSLookupResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DNSLookupResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DNSLookupResult + //private DNSLookupResult instance; + + public DNSLookupResultTests() + { + // TODO uncomment below to create an instance of DNSLookupResult + //instance = new DNSLookupResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DNSLookupResult + /// + [Fact] + public void DNSLookupResultInstanceTest() + { + // TODO uncomment below to test "IsType" DNSLookupResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RecordType' + /// + [Fact] + public void RecordTypeTest() + { + // TODO unit test for the property 'RecordType' + } + /// + /// Test the property 'Ttl' + /// + [Fact] + public void TtlTest() + { + // TODO unit test for the property 'Ttl' + } + /// + /// Test the property 'RecordEntries' + /// + [Fact] + public void RecordEntriesTest() + { + // TODO unit test for the property 'RecordEntries' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DNSLookupResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DNSLookupResultsTests.cs new file mode 100644 index 00000000..d13478fd --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DNSLookupResultsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DNSLookupResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DNSLookupResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DNSLookupResults + //private DNSLookupResults instance; + + public DNSLookupResultsTests() + { + // TODO uncomment below to create an instance of DNSLookupResults + //instance = new DNSLookupResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DNSLookupResults + /// + [Fact] + public void DNSLookupResultsInstanceTest() + { + // TODO uncomment below to test "IsType" DNSLookupResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Results' + /// + [Fact] + public void ResultsTest() + { + // TODO unit test for the property 'Results' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DNSLookupsOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DNSLookupsOptionsTests.cs new file mode 100644 index 00000000..498a65fb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DNSLookupsOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DNSLookupsOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DNSLookupsOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DNSLookupsOptions + //private DNSLookupsOptions instance; + + public DNSLookupsOptionsTests() + { + // TODO uncomment below to create an instance of DNSLookupsOptions + //instance = new DNSLookupsOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DNSLookupsOptions + /// + [Fact] + public void DNSLookupsOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" DNSLookupsOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Lookups' + /// + [Fact] + public void LookupsTest() + { + // TODO unit test for the property 'Lookups' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DeliveryStatusDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DeliveryStatusDtoTests.cs new file mode 100644 index 00000000..44d17115 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DeliveryStatusDtoTests.cs @@ -0,0 +1,175 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DeliveryStatusDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DeliveryStatusDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DeliveryStatusDto + //private DeliveryStatusDto instance; + + public DeliveryStatusDtoTests() + { + // TODO uncomment below to create an instance of DeliveryStatusDto + //instance = new DeliveryStatusDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DeliveryStatusDto + /// + [Fact] + public void DeliveryStatusDtoInstanceTest() + { + // TODO uncomment below to test "IsType" DeliveryStatusDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'SentId' + /// + [Fact] + public void SentIdTest() + { + // TODO unit test for the property 'SentId' + } + /// + /// Test the property 'RemoteMtaIp' + /// + [Fact] + public void RemoteMtaIpTest() + { + // TODO unit test for the property 'RemoteMtaIp' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'ReportingMta' + /// + [Fact] + public void ReportingMtaTest() + { + // TODO unit test for the property 'ReportingMta' + } + /// + /// Test the property 'Recipients' + /// + [Fact] + public void RecipientsTest() + { + // TODO unit test for the property 'Recipients' + } + /// + /// Test the property 'SmtpResponse' + /// + [Fact] + public void SmtpResponseTest() + { + // TODO unit test for the property 'SmtpResponse' + } + /// + /// Test the property 'SmtpStatusCode' + /// + [Fact] + public void SmtpStatusCodeTest() + { + // TODO unit test for the property 'SmtpStatusCode' + } + /// + /// Test the property 'ProcessingTimeMillis' + /// + [Fact] + public void ProcessingTimeMillisTest() + { + // TODO unit test for the property 'ProcessingTimeMillis' + } + /// + /// Test the property 'Received' + /// + [Fact] + public void ReceivedTest() + { + // TODO unit test for the property 'Received' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DescribeDomainOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DescribeDomainOptionsTests.cs new file mode 100644 index 00000000..fc9eae48 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DescribeDomainOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DescribeDomainOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DescribeDomainOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DescribeDomainOptions + //private DescribeDomainOptions instance; + + public DescribeDomainOptionsTests() + { + // TODO uncomment below to create an instance of DescribeDomainOptions + //instance = new DescribeDomainOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DescribeDomainOptions + /// + [Fact] + public void DescribeDomainOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" DescribeDomainOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Domain' + /// + [Fact] + public void DomainTest() + { + // TODO unit test for the property 'Domain' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DescribeMailServerDomainResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DescribeMailServerDomainResultTests.cs new file mode 100644 index 00000000..fb14d758 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DescribeMailServerDomainResultTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DescribeMailServerDomainResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DescribeMailServerDomainResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DescribeMailServerDomainResult + //private DescribeMailServerDomainResult instance; + + public DescribeMailServerDomainResultTests() + { + // TODO uncomment below to create an instance of DescribeMailServerDomainResult + //instance = new DescribeMailServerDomainResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DescribeMailServerDomainResult + /// + [Fact] + public void DescribeMailServerDomainResultInstanceTest() + { + // TODO uncomment below to test "IsType" DescribeMailServerDomainResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MxRecords' + /// + [Fact] + public void MxRecordsTest() + { + // TODO unit test for the property 'MxRecords' + } + /// + /// Test the property 'Domain' + /// + [Fact] + public void DomainTest() + { + // TODO unit test for the property 'Domain' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DomainDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DomainDtoTests.cs new file mode 100644 index 00000000..97c6612e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DomainDtoTests.cs @@ -0,0 +1,167 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DomainDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DomainDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DomainDto + //private DomainDto instance; + + public DomainDtoTests() + { + // TODO uncomment below to create an instance of DomainDto + //instance = new DomainDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DomainDto + /// + [Fact] + public void DomainDtoInstanceTest() + { + // TODO uncomment below to test "IsType" DomainDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'Domain' + /// + [Fact] + public void DomainTest() + { + // TODO unit test for the property 'Domain' + } + /// + /// Test the property 'VerificationToken' + /// + [Fact] + public void VerificationTokenTest() + { + // TODO unit test for the property 'VerificationToken' + } + /// + /// Test the property 'DkimTokens' + /// + [Fact] + public void DkimTokensTest() + { + // TODO unit test for the property 'DkimTokens' + } + /// + /// Test the property 'MissingRecordsMessage' + /// + [Fact] + public void MissingRecordsMessageTest() + { + // TODO unit test for the property 'MissingRecordsMessage' + } + /// + /// Test the property 'HasMissingRecords' + /// + [Fact] + public void HasMissingRecordsTest() + { + // TODO unit test for the property 'HasMissingRecords' + } + /// + /// Test the property 'IsVerified' + /// + [Fact] + public void IsVerifiedTest() + { + // TODO unit test for the property 'IsVerified' + } + /// + /// Test the property 'DomainNameRecords' + /// + [Fact] + public void DomainNameRecordsTest() + { + // TODO unit test for the property 'DomainNameRecords' + } + /// + /// Test the property 'CatchAllInboxId' + /// + [Fact] + public void CatchAllInboxIdTest() + { + // TODO unit test for the property 'CatchAllInboxId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + /// + /// Test the property 'DomainType' + /// + [Fact] + public void DomainTypeTest() + { + // TODO unit test for the property 'DomainType' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DomainGroupTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DomainGroupTests.cs new file mode 100644 index 00000000..08f24dbd --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DomainGroupTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DomainGroup + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DomainGroupTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DomainGroup + //private DomainGroup instance; + + public DomainGroupTests() + { + // TODO uncomment below to create an instance of DomainGroup + //instance = new DomainGroup(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DomainGroup + /// + [Fact] + public void DomainGroupInstanceTest() + { + // TODO uncomment below to test "IsType" DomainGroup + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Label' + /// + [Fact] + public void LabelTest() + { + // TODO unit test for the property 'Label' + } + /// + /// Test the property 'Domains' + /// + [Fact] + public void DomainsTest() + { + // TODO unit test for the property 'Domains' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DomainGroupsDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DomainGroupsDtoTests.cs new file mode 100644 index 00000000..b45a831c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DomainGroupsDtoTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DomainGroupsDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DomainGroupsDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DomainGroupsDto + //private DomainGroupsDto instance; + + public DomainGroupsDtoTests() + { + // TODO uncomment below to create an instance of DomainGroupsDto + //instance = new DomainGroupsDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DomainGroupsDto + /// + [Fact] + public void DomainGroupsDtoInstanceTest() + { + // TODO uncomment below to test "IsType" DomainGroupsDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'DomainGroups' + /// + [Fact] + public void DomainGroupsTest() + { + // TODO unit test for the property 'DomainGroups' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DomainInformationTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DomainInformationTests.cs new file mode 100644 index 00000000..9ce8a527 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DomainInformationTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DomainInformation + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DomainInformationTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DomainInformation + //private DomainInformation instance; + + public DomainInformationTests() + { + // TODO uncomment below to create an instance of DomainInformation + //instance = new DomainInformation(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DomainInformation + /// + [Fact] + public void DomainInformationInstanceTest() + { + // TODO uncomment below to test "IsType" DomainInformation + //Assert.IsType(instance); + } + + + /// + /// Test the property 'DomainName' + /// + [Fact] + public void DomainNameTest() + { + // TODO unit test for the property 'DomainName' + } + /// + /// Test the property 'Verified' + /// + [Fact] + public void VerifiedTest() + { + // TODO unit test for the property 'Verified' + } + /// + /// Test the property 'DomainType' + /// + [Fact] + public void DomainTypeTest() + { + // TODO unit test for the property 'DomainType' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DomainIssuesDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DomainIssuesDtoTests.cs new file mode 100644 index 00000000..37e79a24 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DomainIssuesDtoTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DomainIssuesDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DomainIssuesDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DomainIssuesDto + //private DomainIssuesDto instance; + + public DomainIssuesDtoTests() + { + // TODO uncomment below to create an instance of DomainIssuesDto + //instance = new DomainIssuesDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DomainIssuesDto + /// + [Fact] + public void DomainIssuesDtoInstanceTest() + { + // TODO uncomment below to test "IsType" DomainIssuesDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'HasIssues' + /// + [Fact] + public void HasIssuesTest() + { + // TODO unit test for the property 'HasIssues' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DomainNameRecordTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DomainNameRecordTests.cs new file mode 100644 index 00000000..e24341ae --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DomainNameRecordTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DomainNameRecord + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DomainNameRecordTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DomainNameRecord + //private DomainNameRecord instance; + + public DomainNameRecordTests() + { + // TODO uncomment below to create an instance of DomainNameRecord + //instance = new DomainNameRecord(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DomainNameRecord + /// + [Fact] + public void DomainNameRecordInstanceTest() + { + // TODO uncomment below to test "IsType" DomainNameRecord + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Label' + /// + [Fact] + public void LabelTest() + { + // TODO unit test for the property 'Label' + } + /// + /// Test the property 'Required' + /// + [Fact] + public void RequiredTest() + { + // TODO unit test for the property 'Required' + } + /// + /// Test the property 'RecordType' + /// + [Fact] + public void RecordTypeTest() + { + // TODO unit test for the property 'RecordType' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'RecordEntries' + /// + [Fact] + public void RecordEntriesTest() + { + // TODO unit test for the property 'RecordEntries' + } + /// + /// Test the property 'Ttl' + /// + [Fact] + public void TtlTest() + { + // TODO unit test for the property 'Ttl' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DomainPreviewTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DomainPreviewTests.cs new file mode 100644 index 00000000..35013144 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DomainPreviewTests.cs @@ -0,0 +1,119 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DomainPreview + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DomainPreviewTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DomainPreview + //private DomainPreview instance; + + public DomainPreviewTests() + { + // TODO uncomment below to create an instance of DomainPreview + //instance = new DomainPreview(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DomainPreview + /// + [Fact] + public void DomainPreviewInstanceTest() + { + // TODO uncomment below to test "IsType" DomainPreview + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Domain' + /// + [Fact] + public void DomainTest() + { + // TODO unit test for the property 'Domain' + } + /// + /// Test the property 'CatchAllInboxId' + /// + [Fact] + public void CatchAllInboxIdTest() + { + // TODO unit test for the property 'CatchAllInboxId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'DomainType' + /// + [Fact] + public void DomainTypeTest() + { + // TODO unit test for the property 'DomainType' + } + /// + /// Test the property 'IsVerified' + /// + [Fact] + public void IsVerifiedTest() + { + // TODO unit test for the property 'IsVerified' + } + /// + /// Test the property 'HasMissingRecords' + /// + [Fact] + public void HasMissingRecordsTest() + { + // TODO unit test for the property 'HasMissingRecords' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/DownloadAttachmentDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/DownloadAttachmentDtoTests.cs new file mode 100644 index 00000000..2d748eb1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/DownloadAttachmentDtoTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing DownloadAttachmentDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DownloadAttachmentDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DownloadAttachmentDto + //private DownloadAttachmentDto instance; + + public DownloadAttachmentDtoTests() + { + // TODO uncomment below to create an instance of DownloadAttachmentDto + //instance = new DownloadAttachmentDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DownloadAttachmentDto + /// + [Fact] + public void DownloadAttachmentDtoInstanceTest() + { + // TODO uncomment below to test "IsType" DownloadAttachmentDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Base64FileContents' + /// + [Fact] + public void Base64FileContentsTest() + { + // TODO unit test for the property 'Base64FileContents' + } + /// + /// Test the property 'ContentType' + /// + [Fact] + public void ContentTypeTest() + { + // TODO unit test for the property 'ContentType' + } + /// + /// Test the property 'SizeBytes' + /// + [Fact] + public void SizeBytesTest() + { + // TODO unit test for the property 'SizeBytes' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailAnalysisTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailAnalysisTests.cs new file mode 100644 index 00000000..9bc4e7bc --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailAnalysisTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailAnalysis + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailAnalysisTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailAnalysis + //private EmailAnalysis instance; + + public EmailAnalysisTests() + { + // TODO uncomment below to create an instance of EmailAnalysis + //instance = new EmailAnalysis(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailAnalysis + /// + [Fact] + public void EmailAnalysisInstanceTest() + { + // TODO uncomment below to test "IsType" EmailAnalysis + //Assert.IsType(instance); + } + + + /// + /// Test the property 'SpamVerdict' + /// + [Fact] + public void SpamVerdictTest() + { + // TODO unit test for the property 'SpamVerdict' + } + /// + /// Test the property 'VirusVerdict' + /// + [Fact] + public void VirusVerdictTest() + { + // TODO unit test for the property 'VirusVerdict' + } + /// + /// Test the property 'SpfVerdict' + /// + [Fact] + public void SpfVerdictTest() + { + // TODO unit test for the property 'SpfVerdict' + } + /// + /// Test the property 'DkimVerdict' + /// + [Fact] + public void DkimVerdictTest() + { + // TODO unit test for the property 'DkimVerdict' + } + /// + /// Test the property 'DmarcVerdict' + /// + [Fact] + public void DmarcVerdictTest() + { + // TODO unit test for the property 'DmarcVerdict' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailContentMatchResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailContentMatchResultTests.cs new file mode 100644 index 00000000..03daf6b9 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailContentMatchResultTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailContentMatchResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailContentMatchResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailContentMatchResult + //private EmailContentMatchResult instance; + + public EmailContentMatchResultTests() + { + // TODO uncomment below to create an instance of EmailContentMatchResult + //instance = new EmailContentMatchResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailContentMatchResult + /// + [Fact] + public void EmailContentMatchResultInstanceTest() + { + // TODO uncomment below to test "IsType" EmailContentMatchResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Pattern' + /// + [Fact] + public void PatternTest() + { + // TODO unit test for the property 'Pattern' + } + /// + /// Test the property 'Matches' + /// + [Fact] + public void MatchesTest() + { + // TODO unit test for the property 'Matches' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailContentPartResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailContentPartResultTests.cs new file mode 100644 index 00000000..16bcfc50 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailContentPartResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailContentPartResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailContentPartResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailContentPartResult + //private EmailContentPartResult instance; + + public EmailContentPartResultTests() + { + // TODO uncomment below to create an instance of EmailContentPartResult + //instance = new EmailContentPartResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailContentPartResult + /// + [Fact] + public void EmailContentPartResultInstanceTest() + { + // TODO uncomment below to test "IsType" EmailContentPartResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureCategoryNameTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureCategoryNameTests.cs new file mode 100644 index 00000000..49218531 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureCategoryNameTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailFeatureCategoryName + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailFeatureCategoryNameTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailFeatureCategoryName + //private EmailFeatureCategoryName instance; + + public EmailFeatureCategoryNameTests() + { + // TODO uncomment below to create an instance of EmailFeatureCategoryName + //instance = new EmailFeatureCategoryName(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailFeatureCategoryName + /// + [Fact] + public void EmailFeatureCategoryNameInstanceTest() + { + // TODO uncomment below to test "IsType" EmailFeatureCategoryName + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Slug' + /// + [Fact] + public void SlugTest() + { + // TODO unit test for the property 'Slug' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureFamilyNameTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureFamilyNameTests.cs new file mode 100644 index 00000000..ae590551 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureFamilyNameTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailFeatureFamilyName + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailFeatureFamilyNameTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailFeatureFamilyName + //private EmailFeatureFamilyName instance; + + public EmailFeatureFamilyNameTests() + { + // TODO uncomment below to create an instance of EmailFeatureFamilyName + //instance = new EmailFeatureFamilyName(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailFeatureFamilyName + /// + [Fact] + public void EmailFeatureFamilyNameInstanceTest() + { + // TODO uncomment below to test "IsType" EmailFeatureFamilyName + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Slug' + /// + [Fact] + public void SlugTest() + { + // TODO unit test for the property 'Slug' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureFamilyStatisticsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureFamilyStatisticsTests.cs new file mode 100644 index 00000000..702e40f4 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureFamilyStatisticsTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailFeatureFamilyStatistics + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailFeatureFamilyStatisticsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailFeatureFamilyStatistics + //private EmailFeatureFamilyStatistics instance; + + public EmailFeatureFamilyStatisticsTests() + { + // TODO uncomment below to create an instance of EmailFeatureFamilyStatistics + //instance = new EmailFeatureFamilyStatistics(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailFeatureFamilyStatistics + /// + [Fact] + public void EmailFeatureFamilyStatisticsInstanceTest() + { + // TODO uncomment below to test "IsType" EmailFeatureFamilyStatistics + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Feature' + /// + [Fact] + public void FeatureTest() + { + // TODO unit test for the property 'Feature' + } + /// + /// Test the property 'Family' + /// + [Fact] + public void FamilyTest() + { + // TODO unit test for the property 'Family' + } + /// + /// Test the property 'Platforms' + /// + [Fact] + public void PlatformsTest() + { + // TODO unit test for the property 'Platforms' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureNamesTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureNamesTests.cs new file mode 100644 index 00000000..9332744a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureNamesTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailFeatureNames + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailFeatureNamesTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailFeatureNames + //private EmailFeatureNames instance; + + public EmailFeatureNamesTests() + { + // TODO uncomment below to create an instance of EmailFeatureNames + //instance = new EmailFeatureNames(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailFeatureNames + /// + [Fact] + public void EmailFeatureNamesInstanceTest() + { + // TODO uncomment below to test "IsType" EmailFeatureNames + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Family' + /// + [Fact] + public void FamilyTest() + { + // TODO unit test for the property 'Family' + } + /// + /// Test the property 'Platform' + /// + [Fact] + public void PlatformTest() + { + // TODO unit test for the property 'Platform' + } + /// + /// Test the property 'Category' + /// + [Fact] + public void CategoryTest() + { + // TODO unit test for the property 'Category' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureOverviewTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureOverviewTests.cs new file mode 100644 index 00000000..40857fa9 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureOverviewTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailFeatureOverview + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailFeatureOverviewTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailFeatureOverview + //private EmailFeatureOverview instance; + + public EmailFeatureOverviewTests() + { + // TODO uncomment below to create an instance of EmailFeatureOverview + //instance = new EmailFeatureOverview(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailFeatureOverview + /// + [Fact] + public void EmailFeatureOverviewInstanceTest() + { + // TODO uncomment below to test "IsType" EmailFeatureOverview + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Feature' + /// + [Fact] + public void FeatureTest() + { + // TODO unit test for the property 'Feature' + } + /// + /// Test the property 'Title' + /// + [Fact] + public void TitleTest() + { + // TODO unit test for the property 'Title' + } + /// + /// Test the property 'Description' + /// + [Fact] + public void DescriptionTest() + { + // TODO unit test for the property 'Description' + } + /// + /// Test the property 'Category' + /// + [Fact] + public void CategoryTest() + { + // TODO unit test for the property 'Category' + } + /// + /// Test the property 'Notes' + /// + [Fact] + public void NotesTest() + { + // TODO unit test for the property 'Notes' + } + /// + /// Test the property 'NotesNumbers' + /// + [Fact] + public void NotesNumbersTest() + { + // TODO unit test for the property 'NotesNumbers' + } + /// + /// Test the property 'FeatureStatistics' + /// + [Fact] + public void FeatureStatisticsTest() + { + // TODO unit test for the property 'FeatureStatistics' + } + /// + /// Test the property 'Statuses' + /// + [Fact] + public void StatusesTest() + { + // TODO unit test for the property 'Statuses' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailFeaturePlatformNameTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailFeaturePlatformNameTests.cs new file mode 100644 index 00000000..bbc7429d --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailFeaturePlatformNameTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailFeaturePlatformName + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailFeaturePlatformNameTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailFeaturePlatformName + //private EmailFeaturePlatformName instance; + + public EmailFeaturePlatformNameTests() + { + // TODO uncomment below to create an instance of EmailFeaturePlatformName + //instance = new EmailFeaturePlatformName(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailFeaturePlatformName + /// + [Fact] + public void EmailFeaturePlatformNameInstanceTest() + { + // TODO uncomment below to test "IsType" EmailFeaturePlatformName + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Slug' + /// + [Fact] + public void SlugTest() + { + // TODO unit test for the property 'Slug' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailFeaturePlatformStatisticsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailFeaturePlatformStatisticsTests.cs new file mode 100644 index 00000000..3c740a36 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailFeaturePlatformStatisticsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailFeaturePlatformStatistics + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailFeaturePlatformStatisticsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailFeaturePlatformStatistics + //private EmailFeaturePlatformStatistics instance; + + public EmailFeaturePlatformStatisticsTests() + { + // TODO uncomment below to create an instance of EmailFeaturePlatformStatistics + //instance = new EmailFeaturePlatformStatistics(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailFeaturePlatformStatistics + /// + [Fact] + public void EmailFeaturePlatformStatisticsInstanceTest() + { + // TODO uncomment below to test "IsType" EmailFeaturePlatformStatistics + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Platform' + /// + [Fact] + public void PlatformTest() + { + // TODO unit test for the property 'Platform' + } + /// + /// Test the property 'Versions' + /// + [Fact] + public void VersionsTest() + { + // TODO unit test for the property 'Versions' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportFlagsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportFlagsTests.cs new file mode 100644 index 00000000..f73fe569 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportFlagsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailFeatureSupportFlags + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailFeatureSupportFlagsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailFeatureSupportFlags + //private EmailFeatureSupportFlags instance; + + public EmailFeatureSupportFlagsTests() + { + // TODO uncomment below to create an instance of EmailFeatureSupportFlags + //instance = new EmailFeatureSupportFlags(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailFeatureSupportFlags + /// + [Fact] + public void EmailFeatureSupportFlagsInstanceTest() + { + // TODO uncomment below to test "IsType" EmailFeatureSupportFlags + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Notes' + /// + [Fact] + public void NotesTest() + { + // TODO unit test for the property 'Notes' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportResultTests.cs new file mode 100644 index 00000000..b013beac --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportResultTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailFeatureSupportResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailFeatureSupportResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailFeatureSupportResult + //private EmailFeatureSupportResult instance; + + public EmailFeatureSupportResultTests() + { + // TODO uncomment below to create an instance of EmailFeatureSupportResult + //instance = new EmailFeatureSupportResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailFeatureSupportResult + /// + [Fact] + public void EmailFeatureSupportResultInstanceTest() + { + // TODO uncomment below to test "IsType" EmailFeatureSupportResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Names' + /// + [Fact] + public void NamesTest() + { + // TODO unit test for the property 'Names' + } + /// + /// Test the property 'DetectedFeatures' + /// + [Fact] + public void DetectedFeaturesTest() + { + // TODO unit test for the property 'DetectedFeatures' + } + /// + /// Test the property 'FeatureOverviews' + /// + [Fact] + public void FeatureOverviewsTest() + { + // TODO unit test for the property 'FeatureOverviews' + } + /// + /// Test the property 'FeaturePercentages' + /// + [Fact] + public void FeaturePercentagesTest() + { + // TODO unit test for the property 'FeaturePercentages' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportStatusPercentageTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportStatusPercentageTests.cs new file mode 100644 index 00000000..3f2d8176 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureSupportStatusPercentageTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailFeatureSupportStatusPercentage + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailFeatureSupportStatusPercentageTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailFeatureSupportStatusPercentage + //private EmailFeatureSupportStatusPercentage instance; + + public EmailFeatureSupportStatusPercentageTests() + { + // TODO uncomment below to create an instance of EmailFeatureSupportStatusPercentage + //instance = new EmailFeatureSupportStatusPercentage(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailFeatureSupportStatusPercentage + /// + [Fact] + public void EmailFeatureSupportStatusPercentageInstanceTest() + { + // TODO uncomment below to test "IsType" EmailFeatureSupportStatusPercentage + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Percentage' + /// + [Fact] + public void PercentageTest() + { + // TODO unit test for the property 'Percentage' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureVersionStatisticsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureVersionStatisticsTests.cs new file mode 100644 index 00000000..f92c7b36 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailFeatureVersionStatisticsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailFeatureVersionStatistics + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailFeatureVersionStatisticsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailFeatureVersionStatistics + //private EmailFeatureVersionStatistics instance; + + public EmailFeatureVersionStatisticsTests() + { + // TODO uncomment below to create an instance of EmailFeatureVersionStatistics + //instance = new EmailFeatureVersionStatistics(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailFeatureVersionStatistics + /// + [Fact] + public void EmailFeatureVersionStatisticsInstanceTest() + { + // TODO uncomment below to test "IsType" EmailFeatureVersionStatistics + //Assert.IsType(instance); + } + + + /// + /// Test the property '_Version' + /// + [Fact] + public void _VersionTest() + { + // TODO unit test for the property '_Version' + } + /// + /// Test the property 'SupportFlags' + /// + [Fact] + public void SupportFlagsTest() + { + // TODO unit test for the property 'SupportFlags' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailHtmlDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailHtmlDtoTests.cs new file mode 100644 index 00000000..e0d7737e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailHtmlDtoTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailHtmlDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailHtmlDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailHtmlDto + //private EmailHtmlDto instance; + + public EmailHtmlDtoTests() + { + // TODO uncomment below to create an instance of EmailHtmlDto + //instance = new EmailHtmlDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailHtmlDto + /// + [Fact] + public void EmailHtmlDtoInstanceTest() + { + // TODO uncomment below to test "IsType" EmailHtmlDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailLinksResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailLinksResultTests.cs new file mode 100644 index 00000000..edbd3cd9 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailLinksResultTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailLinksResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailLinksResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailLinksResult + //private EmailLinksResult instance; + + public EmailLinksResultTests() + { + // TODO uncomment below to create an instance of EmailLinksResult + //instance = new EmailLinksResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailLinksResult + /// + [Fact] + public void EmailLinksResultInstanceTest() + { + // TODO uncomment below to test "IsType" EmailLinksResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Links' + /// + [Fact] + public void LinksTest() + { + // TODO unit test for the property 'Links' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailPreviewTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailPreviewTests.cs new file mode 100644 index 00000000..6fd96739 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailPreviewTests.cs @@ -0,0 +1,143 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailPreview + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailPreviewTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailPreview + //private EmailPreview instance; + + public EmailPreviewTests() + { + // TODO uncomment below to create an instance of EmailPreview + //instance = new EmailPreview(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailPreview + /// + [Fact] + public void EmailPreviewInstanceTest() + { + // TODO uncomment below to test "IsType" EmailPreview + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'Bcc' + /// + [Fact] + public void BccTest() + { + // TODO unit test for the property 'Bcc' + } + /// + /// Test the property 'Cc' + /// + [Fact] + public void CcTest() + { + // TODO unit test for the property 'Cc' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Read' + /// + [Fact] + public void ReadTest() + { + // TODO unit test for the property 'Read' + } + /// + /// Test the property 'Attachments' + /// + [Fact] + public void AttachmentsTest() + { + // TODO unit test for the property 'Attachments' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailPreviewUrlsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailPreviewUrlsTests.cs new file mode 100644 index 00000000..08164938 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailPreviewUrlsTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailPreviewUrls + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailPreviewUrlsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailPreviewUrls + //private EmailPreviewUrls instance; + + public EmailPreviewUrlsTests() + { + // TODO uncomment below to create an instance of EmailPreviewUrls + //instance = new EmailPreviewUrls(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailPreviewUrls + /// + [Fact] + public void EmailPreviewUrlsInstanceTest() + { + // TODO uncomment below to test "IsType" EmailPreviewUrls + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RawSmtpMessageUrl' + /// + [Fact] + public void RawSmtpMessageUrlTest() + { + // TODO unit test for the property 'RawSmtpMessageUrl' + } + /// + /// Test the property 'PlainHtmlBodyUrl' + /// + [Fact] + public void PlainHtmlBodyUrlTest() + { + // TODO unit test for the property 'PlainHtmlBodyUrl' + } + /// + /// Test the property 'Origin' + /// + [Fact] + public void OriginTest() + { + // TODO unit test for the property 'Origin' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailProjectionTests.cs new file mode 100644 index 00000000..25faf482 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailProjectionTests.cs @@ -0,0 +1,183 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailProjection + //private EmailProjection instance; + + public EmailProjectionTests() + { + // TODO uncomment below to create an instance of EmailProjection + //instance = new EmailProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailProjection + /// + [Fact] + public void EmailProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" EmailProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Attachments' + /// + [Fact] + public void AttachmentsTest() + { + // TODO unit test for the property 'Attachments' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'Bcc' + /// + [Fact] + public void BccTest() + { + // TODO unit test for the property 'Bcc' + } + /// + /// Test the property 'Cc' + /// + [Fact] + public void CcTest() + { + // TODO unit test for the property 'Cc' + } + /// + /// Test the property 'Read' + /// + [Fact] + public void ReadTest() + { + // TODO unit test for the property 'Read' + } + /// + /// Test the property 'BodyExcerpt' + /// + [Fact] + public void BodyExcerptTest() + { + // TODO unit test for the property 'BodyExcerpt' + } + /// + /// Test the property 'TeamAccess' + /// + [Fact] + public void TeamAccessTest() + { + // TODO unit test for the property 'TeamAccess' + } + /// + /// Test the property 'BodyMD5Hash' + /// + [Fact] + public void BodyMD5HashTest() + { + // TODO unit test for the property 'BodyMD5Hash' + } + /// + /// Test the property 'TextExcerpt' + /// + [Fact] + public void TextExcerptTest() + { + // TODO unit test for the property 'TextExcerpt' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailRecipientsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailRecipientsTests.cs new file mode 100644 index 00000000..9a50ec71 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailRecipientsTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailRecipients + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailRecipientsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailRecipients + //private EmailRecipients instance; + + public EmailRecipientsTests() + { + // TODO uncomment below to create an instance of EmailRecipients + //instance = new EmailRecipients(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailRecipients + /// + [Fact] + public void EmailRecipientsInstanceTest() + { + // TODO uncomment below to test "IsType" EmailRecipients + //Assert.IsType(instance); + } + + + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'Cc' + /// + [Fact] + public void CcTest() + { + // TODO unit test for the property 'Cc' + } + /// + /// Test the property 'Bcc' + /// + [Fact] + public void BccTest() + { + // TODO unit test for the property 'Bcc' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailScreenshotResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailScreenshotResultTests.cs new file mode 100644 index 00000000..c01cac64 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailScreenshotResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailScreenshotResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailScreenshotResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailScreenshotResult + //private EmailScreenshotResult instance; + + public EmailScreenshotResultTests() + { + // TODO uncomment below to create an instance of EmailScreenshotResult + //instance = new EmailScreenshotResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailScreenshotResult + /// + [Fact] + public void EmailScreenshotResultInstanceTest() + { + // TODO uncomment below to test "IsType" EmailScreenshotResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Base64EncodedImage' + /// + [Fact] + public void Base64EncodedImageTest() + { + // TODO unit test for the property 'Base64EncodedImage' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailTests.cs new file mode 100644 index 00000000..db15923f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailTests.cs @@ -0,0 +1,303 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing Email + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailTests : IDisposable + { + // TODO uncomment below to declare an instance variable for Email + //private Email instance; + + public EmailTests() + { + // TODO uncomment below to create an instance of Email + //instance = new Email(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of Email + /// + [Fact] + public void EmailInstanceTest() + { + // TODO uncomment below to test "IsType" Email + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'Sender' + /// + [Fact] + public void SenderTest() + { + // TODO unit test for the property 'Sender' + } + /// + /// Test the property 'Recipients' + /// + [Fact] + public void RecipientsTest() + { + // TODO unit test for the property 'Recipients' + } + /// + /// Test the property 'ReplyTo' + /// + [Fact] + public void ReplyToTest() + { + // TODO unit test for the property 'ReplyTo' + } + /// + /// Test the property 'Cc' + /// + [Fact] + public void CcTest() + { + // TODO unit test for the property 'Cc' + } + /// + /// Test the property 'Bcc' + /// + [Fact] + public void BccTest() + { + // TODO unit test for the property 'Bcc' + } + /// + /// Test the property 'Headers' + /// + [Fact] + public void HeadersTest() + { + // TODO unit test for the property 'Headers' + } + /// + /// Test the property 'HeadersMap' + /// + [Fact] + public void HeadersMapTest() + { + // TODO unit test for the property 'HeadersMap' + } + /// + /// Test the property 'Attachments' + /// + [Fact] + public void AttachmentsTest() + { + // TODO unit test for the property 'Attachments' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'BodyExcerpt' + /// + [Fact] + public void BodyExcerptTest() + { + // TODO unit test for the property 'BodyExcerpt' + } + /// + /// Test the property 'TextExcerpt' + /// + [Fact] + public void TextExcerptTest() + { + // TODO unit test for the property 'TextExcerpt' + } + /// + /// Test the property 'BodyMD5Hash' + /// + [Fact] + public void BodyMD5HashTest() + { + // TODO unit test for the property 'BodyMD5Hash' + } + /// + /// Test the property 'IsHTML' + /// + [Fact] + public void IsHTMLTest() + { + // TODO unit test for the property 'IsHTML' + } + /// + /// Test the property 'Charset' + /// + [Fact] + public void CharsetTest() + { + // TODO unit test for the property 'Charset' + } + /// + /// Test the property 'Analysis' + /// + [Fact] + public void AnalysisTest() + { + // TODO unit test for the property 'Analysis' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + /// + /// Test the property 'Read' + /// + [Fact] + public void ReadTest() + { + // TODO unit test for the property 'Read' + } + /// + /// Test the property 'TeamAccess' + /// + [Fact] + public void TeamAccessTest() + { + // TODO unit test for the property 'TeamAccess' + } + /// + /// Test the property 'IsXAmpHtml' + /// + [Fact] + public void IsXAmpHtmlTest() + { + // TODO unit test for the property 'IsXAmpHtml' + } + /// + /// Test the property 'BodyPartContentTypes' + /// + [Fact] + public void BodyPartContentTypesTest() + { + // TODO unit test for the property 'BodyPartContentTypes' + } + /// + /// Test the property 'Html' + /// + [Fact] + public void HtmlTest() + { + // TODO unit test for the property 'Html' + } + /// + /// Test the property 'XampHtml' + /// + [Fact] + public void XampHtmlTest() + { + // TODO unit test for the property 'XampHtml' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailTextLinesResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailTextLinesResultTests.cs new file mode 100644 index 00000000..09c4594f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailTextLinesResultTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailTextLinesResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailTextLinesResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailTextLinesResult + //private EmailTextLinesResult instance; + + public EmailTextLinesResultTests() + { + // TODO uncomment below to create an instance of EmailTextLinesResult + //instance = new EmailTextLinesResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailTextLinesResult + /// + [Fact] + public void EmailTextLinesResultInstanceTest() + { + // TODO uncomment below to test "IsType" EmailTextLinesResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Lines' + /// + [Fact] + public void LinesTest() + { + // TODO unit test for the property 'Lines' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailValidationRequestDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailValidationRequestDtoTests.cs new file mode 100644 index 00000000..b97b3ff7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailValidationRequestDtoTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailValidationRequestDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailValidationRequestDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailValidationRequestDto + //private EmailValidationRequestDto instance; + + public EmailValidationRequestDtoTests() + { + // TODO uncomment below to create an instance of EmailValidationRequestDto + //instance = new EmailValidationRequestDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailValidationRequestDto + /// + [Fact] + public void EmailValidationRequestDtoInstanceTest() + { + // TODO uncomment below to test "IsType" EmailValidationRequestDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'IsValid' + /// + [Fact] + public void IsValidTest() + { + // TODO unit test for the property 'IsValid' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmailVerificationResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmailVerificationResultTests.cs new file mode 100644 index 00000000..29e94cf8 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmailVerificationResultTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmailVerificationResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmailVerificationResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmailVerificationResult + //private EmailVerificationResult instance; + + public EmailVerificationResultTests() + { + // TODO uncomment below to create an instance of EmailVerificationResult + //instance = new EmailVerificationResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmailVerificationResult + /// + [Fact] + public void EmailVerificationResultInstanceTest() + { + // TODO uncomment below to test "IsType" EmailVerificationResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'DomainName' + /// + [Fact] + public void DomainNameTest() + { + // TODO unit test for the property 'DomainName' + } + /// + /// Test the property 'Port' + /// + [Fact] + public void PortTest() + { + // TODO unit test for the property 'Port' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'IsValid' + /// + [Fact] + public void IsValidTest() + { + // TODO unit test for the property 'IsValid' + } + /// + /// Test the property 'Error' + /// + [Fact] + public void ErrorTest() + { + // TODO unit test for the property 'Error' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmergencyAddressDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmergencyAddressDtoTests.cs new file mode 100644 index 00000000..55b8de79 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmergencyAddressDtoTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmergencyAddressDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmergencyAddressDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmergencyAddressDto + //private EmergencyAddressDto instance; + + public EmergencyAddressDtoTests() + { + // TODO uncomment below to create an instance of EmergencyAddressDto + //instance = new EmergencyAddressDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmergencyAddressDto + /// + [Fact] + public void EmergencyAddressDtoInstanceTest() + { + // TODO uncomment below to test "IsType" EmergencyAddressDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Address1' + /// + [Fact] + public void Address1Test() + { + // TODO unit test for the property 'Address1' + } + /// + /// Test the property 'PhoneCountry' + /// + [Fact] + public void PhoneCountryTest() + { + // TODO unit test for the property 'PhoneCountry' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmergencyAddressTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmergencyAddressTests.cs new file mode 100644 index 00000000..3b2254f3 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmergencyAddressTests.cs @@ -0,0 +1,167 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmergencyAddress + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmergencyAddressTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmergencyAddress + //private EmergencyAddress instance; + + public EmergencyAddressTests() + { + // TODO uncomment below to create an instance of EmergencyAddress + //instance = new EmergencyAddress(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmergencyAddress + /// + [Fact] + public void EmergencyAddressInstanceTest() + { + // TODO uncomment below to test "IsType" EmergencyAddress + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Sid' + /// + [Fact] + public void SidTest() + { + // TODO unit test for the property 'Sid' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'DisplayName' + /// + [Fact] + public void DisplayNameTest() + { + // TODO unit test for the property 'DisplayName' + } + /// + /// Test the property 'CustomerName' + /// + [Fact] + public void CustomerNameTest() + { + // TODO unit test for the property 'CustomerName' + } + /// + /// Test the property 'Address1' + /// + [Fact] + public void Address1Test() + { + // TODO unit test for the property 'Address1' + } + /// + /// Test the property 'City' + /// + [Fact] + public void CityTest() + { + // TODO unit test for the property 'City' + } + /// + /// Test the property 'Region' + /// + [Fact] + public void RegionTest() + { + // TODO unit test for the property 'Region' + } + /// + /// Test the property 'PostalCode' + /// + [Fact] + public void PostalCodeTest() + { + // TODO unit test for the property 'PostalCode' + } + /// + /// Test the property 'PhoneCountry' + /// + [Fact] + public void PhoneCountryTest() + { + // TODO unit test for the property 'PhoneCountry' + } + /// + /// Test the property 'AccountSid' + /// + [Fact] + public void AccountSidTest() + { + // TODO unit test for the property 'AccountSid' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/EmptyResponseDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/EmptyResponseDtoTests.cs new file mode 100644 index 00000000..57bb33f5 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/EmptyResponseDtoTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing EmptyResponseDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class EmptyResponseDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EmptyResponseDto + //private EmptyResponseDto instance; + + public EmptyResponseDtoTests() + { + // TODO uncomment below to create an instance of EmptyResponseDto + //instance = new EmptyResponseDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EmptyResponseDto + /// + [Fact] + public void EmptyResponseDtoInstanceTest() + { + // TODO uncomment below to test "IsType" EmptyResponseDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ExpirationDefaultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ExpirationDefaultsTests.cs new file mode 100644 index 00000000..8cc8684b --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ExpirationDefaultsTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ExpirationDefaults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ExpirationDefaultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ExpirationDefaults + //private ExpirationDefaults instance; + + public ExpirationDefaultsTests() + { + // TODO uncomment below to create an instance of ExpirationDefaults + //instance = new ExpirationDefaults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ExpirationDefaults + /// + [Fact] + public void ExpirationDefaultsInstanceTest() + { + // TODO uncomment below to test "IsType" ExpirationDefaults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'DefaultExpirationMillis' + /// + [Fact] + public void DefaultExpirationMillisTest() + { + // TODO unit test for the property 'DefaultExpirationMillis' + } + /// + /// Test the property 'MaxExpirationMillis' + /// + [Fact] + public void MaxExpirationMillisTest() + { + // TODO unit test for the property 'MaxExpirationMillis' + } + /// + /// Test the property 'DefaultExpiresAt' + /// + [Fact] + public void DefaultExpiresAtTest() + { + // TODO unit test for the property 'DefaultExpiresAt' + } + /// + /// Test the property 'CanPermanentInbox' + /// + [Fact] + public void CanPermanentInboxTest() + { + // TODO unit test for the property 'CanPermanentInbox' + } + /// + /// Test the property 'NextInboxAllowsPermanent' + /// + [Fact] + public void NextInboxAllowsPermanentTest() + { + // TODO unit test for the property 'NextInboxAllowsPermanent' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ExpiredInboxDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ExpiredInboxDtoTests.cs new file mode 100644 index 00000000..33cadc3e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ExpiredInboxDtoTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ExpiredInboxDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ExpiredInboxDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ExpiredInboxDto + //private ExpiredInboxDto instance; + + public ExpiredInboxDtoTests() + { + // TODO uncomment below to create an instance of ExpiredInboxDto + //instance = new ExpiredInboxDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ExpiredInboxDto + /// + [Fact] + public void ExpiredInboxDtoInstanceTest() + { + // TODO uncomment below to test "IsType" ExpiredInboxDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ExpiredInboxRecordProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ExpiredInboxRecordProjectionTests.cs new file mode 100644 index 00000000..df2e4f44 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ExpiredInboxRecordProjectionTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ExpiredInboxRecordProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ExpiredInboxRecordProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ExpiredInboxRecordProjection + //private ExpiredInboxRecordProjection instance; + + public ExpiredInboxRecordProjectionTests() + { + // TODO uncomment below to create an instance of ExpiredInboxRecordProjection + //instance = new ExpiredInboxRecordProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ExpiredInboxRecordProjection + /// + [Fact] + public void ExpiredInboxRecordProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" ExpiredInboxRecordProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ExportLinkTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ExportLinkTests.cs new file mode 100644 index 00000000..42756bc8 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ExportLinkTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ExportLink + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ExportLinkTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ExportLink + //private ExportLink instance; + + public ExportLinkTests() + { + // TODO uncomment below to create an instance of ExportLink + //instance = new ExportLink(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ExportLink + /// + [Fact] + public void ExportLinkInstanceTest() + { + // TODO uncomment below to test "IsType" ExportLink + //Assert.IsType(instance); + } + + + /// + /// Test the property 'DownloadLink' + /// + [Fact] + public void DownloadLinkTest() + { + // TODO unit test for the property 'DownloadLink' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ExportOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ExportOptionsTests.cs new file mode 100644 index 00000000..d34fc8c8 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ExportOptionsTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ExportOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ExportOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ExportOptions + //private ExportOptions instance; + + public ExportOptionsTests() + { + // TODO uncomment below to create an instance of ExportOptions + //instance = new ExportOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ExportOptions + /// + [Fact] + public void ExportOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ExportOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'OutputFormat' + /// + [Fact] + public void OutputFormatTest() + { + // TODO unit test for the property 'OutputFormat' + } + /// + /// Test the property 'ExcludePreviouslyExported' + /// + [Fact] + public void ExcludePreviouslyExportedTest() + { + // TODO unit test for the property 'ExcludePreviouslyExported' + } + /// + /// Test the property 'CreatedEarliestTime' + /// + [Fact] + public void CreatedEarliestTimeTest() + { + // TODO unit test for the property 'CreatedEarliestTime' + } + /// + /// Test the property 'CreatedOldestTime' + /// + [Fact] + public void CreatedOldestTimeTest() + { + // TODO unit test for the property 'CreatedOldestTime' + } + /// + /// Test the property 'Filter' + /// + [Fact] + public void FilterTest() + { + // TODO unit test for the property 'Filter' + } + /// + /// Test the property 'ListSeparatorToken' + /// + [Fact] + public void ListSeparatorTokenTest() + { + // TODO unit test for the property 'ListSeparatorToken' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/FakeEmailDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/FakeEmailDtoTests.cs new file mode 100644 index 00000000..fcc00fa3 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/FakeEmailDtoTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing FakeEmailDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class FakeEmailDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for FakeEmailDto + //private FakeEmailDto instance; + + public FakeEmailDtoTests() + { + // TODO uncomment below to create an instance of FakeEmailDto + //instance = new FakeEmailDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of FakeEmailDto + /// + [Fact] + public void FakeEmailDtoInstanceTest() + { + // TODO uncomment below to test "IsType" FakeEmailDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'Sender' + /// + [Fact] + public void SenderTest() + { + // TODO unit test for the property 'Sender' + } + /// + /// Test the property 'Recipients' + /// + [Fact] + public void RecipientsTest() + { + // TODO unit test for the property 'Recipients' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'Preview' + /// + [Fact] + public void PreviewTest() + { + // TODO unit test for the property 'Preview' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'Seen' + /// + [Fact] + public void SeenTest() + { + // TODO unit test for the property 'Seen' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/FakeEmailPreviewTests.cs b/src/mailslurp_netstandard_2x.Test/Model/FakeEmailPreviewTests.cs new file mode 100644 index 00000000..594cfb6e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/FakeEmailPreviewTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing FakeEmailPreview + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class FakeEmailPreviewTests : IDisposable + { + // TODO uncomment below to declare an instance variable for FakeEmailPreview + //private FakeEmailPreview instance; + + public FakeEmailPreviewTests() + { + // TODO uncomment below to create an instance of FakeEmailPreview + //instance = new FakeEmailPreview(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of FakeEmailPreview + /// + [Fact] + public void FakeEmailPreviewInstanceTest() + { + // TODO uncomment below to test "IsType" FakeEmailPreview + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'Sender' + /// + [Fact] + public void SenderTest() + { + // TODO unit test for the property 'Sender' + } + /// + /// Test the property 'Recipients' + /// + [Fact] + public void RecipientsTest() + { + // TODO unit test for the property 'Recipients' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'Preview' + /// + [Fact] + public void PreviewTest() + { + // TODO unit test for the property 'Preview' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Seen' + /// + [Fact] + public void SeenTest() + { + // TODO unit test for the property 'Seen' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/FakeEmailResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/FakeEmailResultTests.cs new file mode 100644 index 00000000..a6d1145f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/FakeEmailResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing FakeEmailResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class FakeEmailResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for FakeEmailResult + //private FakeEmailResult instance; + + public FakeEmailResultTests() + { + // TODO uncomment below to create an instance of FakeEmailResult + //instance = new FakeEmailResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of FakeEmailResult + /// + [Fact] + public void FakeEmailResultInstanceTest() + { + // TODO uncomment below to test "IsType" FakeEmailResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Email' + /// + [Fact] + public void EmailTest() + { + // TODO unit test for the property 'Email' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/FilterBouncedRecipientsOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/FilterBouncedRecipientsOptionsTests.cs new file mode 100644 index 00000000..e0fed886 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/FilterBouncedRecipientsOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing FilterBouncedRecipientsOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class FilterBouncedRecipientsOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for FilterBouncedRecipientsOptions + //private FilterBouncedRecipientsOptions instance; + + public FilterBouncedRecipientsOptionsTests() + { + // TODO uncomment below to create an instance of FilterBouncedRecipientsOptions + //instance = new FilterBouncedRecipientsOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of FilterBouncedRecipientsOptions + /// + [Fact] + public void FilterBouncedRecipientsOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" FilterBouncedRecipientsOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailRecipients' + /// + [Fact] + public void EmailRecipientsTest() + { + // TODO unit test for the property 'EmailRecipients' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/FilterBouncedRecipientsResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/FilterBouncedRecipientsResultTests.cs new file mode 100644 index 00000000..e2181567 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/FilterBouncedRecipientsResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing FilterBouncedRecipientsResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class FilterBouncedRecipientsResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for FilterBouncedRecipientsResult + //private FilterBouncedRecipientsResult instance; + + public FilterBouncedRecipientsResultTests() + { + // TODO uncomment below to create an instance of FilterBouncedRecipientsResult + //instance = new FilterBouncedRecipientsResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of FilterBouncedRecipientsResult + /// + [Fact] + public void FilterBouncedRecipientsResultInstanceTest() + { + // TODO uncomment below to test "IsType" FilterBouncedRecipientsResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'FilteredRecipients' + /// + [Fact] + public void FilteredRecipientsTest() + { + // TODO unit test for the property 'FilteredRecipients' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/FlushExpiredInboxesResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/FlushExpiredInboxesResultTests.cs new file mode 100644 index 00000000..855a9ba4 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/FlushExpiredInboxesResultTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing FlushExpiredInboxesResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class FlushExpiredInboxesResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for FlushExpiredInboxesResult + //private FlushExpiredInboxesResult instance; + + public FlushExpiredInboxesResultTests() + { + // TODO uncomment below to create an instance of FlushExpiredInboxesResult + //instance = new FlushExpiredInboxesResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of FlushExpiredInboxesResult + /// + [Fact] + public void FlushExpiredInboxesResultInstanceTest() + { + // TODO uncomment below to test "IsType" FlushExpiredInboxesResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxIds' + /// + [Fact] + public void InboxIdsTest() + { + // TODO unit test for the property 'InboxIds' + } + /// + /// Test the property 'ExpireBefore' + /// + [Fact] + public void ExpireBeforeTest() + { + // TODO unit test for the property 'ExpireBefore' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ForwardEmailOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ForwardEmailOptionsTests.cs new file mode 100644 index 00000000..6a2883b3 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ForwardEmailOptionsTests.cs @@ -0,0 +1,119 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ForwardEmailOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ForwardEmailOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ForwardEmailOptions + //private ForwardEmailOptions instance; + + public ForwardEmailOptionsTests() + { + // TODO uncomment below to create an instance of ForwardEmailOptions + //instance = new ForwardEmailOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ForwardEmailOptions + /// + [Fact] + public void ForwardEmailOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ForwardEmailOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'Cc' + /// + [Fact] + public void CcTest() + { + // TODO unit test for the property 'Cc' + } + /// + /// Test the property 'Bcc' + /// + [Fact] + public void BccTest() + { + // TODO unit test for the property 'Bcc' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'UseInboxName' + /// + [Fact] + public void UseInboxNameTest() + { + // TODO unit test for the property 'UseInboxName' + } + /// + /// Test the property 'FilterBouncedRecipients' + /// + [Fact] + public void FilterBouncedRecipientsTest() + { + // TODO unit test for the property 'FilterBouncedRecipients' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GenerateBimiRecordOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GenerateBimiRecordOptionsTests.cs new file mode 100644 index 00000000..bcb558f6 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GenerateBimiRecordOptionsTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GenerateBimiRecordOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GenerateBimiRecordOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GenerateBimiRecordOptions + //private GenerateBimiRecordOptions instance; + + public GenerateBimiRecordOptionsTests() + { + // TODO uncomment below to create an instance of GenerateBimiRecordOptions + //instance = new GenerateBimiRecordOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GenerateBimiRecordOptions + /// + [Fact] + public void GenerateBimiRecordOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" GenerateBimiRecordOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Domain' + /// + [Fact] + public void DomainTest() + { + // TODO unit test for the property 'Domain' + } + /// + /// Test the property '_Version' + /// + [Fact] + public void _VersionTest() + { + // TODO unit test for the property '_Version' + } + /// + /// Test the property 'LogoUrl' + /// + [Fact] + public void LogoUrlTest() + { + // TODO unit test for the property 'LogoUrl' + } + /// + /// Test the property 'VmcUrl' + /// + [Fact] + public void VmcUrlTest() + { + // TODO unit test for the property 'VmcUrl' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GenerateBimiRecordResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GenerateBimiRecordResultsTests.cs new file mode 100644 index 00000000..1837f71f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GenerateBimiRecordResultsTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GenerateBimiRecordResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GenerateBimiRecordResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GenerateBimiRecordResults + //private GenerateBimiRecordResults instance; + + public GenerateBimiRecordResultsTests() + { + // TODO uncomment below to create an instance of GenerateBimiRecordResults + //instance = new GenerateBimiRecordResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GenerateBimiRecordResults + /// + [Fact] + public void GenerateBimiRecordResultsInstanceTest() + { + // TODO uncomment below to test "IsType" GenerateBimiRecordResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Type' + /// + [Fact] + public void TypeTest() + { + // TODO unit test for the property 'Type' + } + /// + /// Test the property 'Ttl' + /// + [Fact] + public void TtlTest() + { + // TODO unit test for the property 'Ttl' + } + /// + /// Test the property 'Value' + /// + [Fact] + public void ValueTest() + { + // TODO unit test for the property 'Value' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GenerateDmarcRecordOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GenerateDmarcRecordOptionsTests.cs new file mode 100644 index 00000000..b42f62b7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GenerateDmarcRecordOptionsTests.cs @@ -0,0 +1,159 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GenerateDmarcRecordOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GenerateDmarcRecordOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GenerateDmarcRecordOptions + //private GenerateDmarcRecordOptions instance; + + public GenerateDmarcRecordOptionsTests() + { + // TODO uncomment below to create an instance of GenerateDmarcRecordOptions + //instance = new GenerateDmarcRecordOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GenerateDmarcRecordOptions + /// + [Fact] + public void GenerateDmarcRecordOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" GenerateDmarcRecordOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Domain' + /// + [Fact] + public void DomainTest() + { + // TODO unit test for the property 'Domain' + } + /// + /// Test the property '_Version' + /// + [Fact] + public void _VersionTest() + { + // TODO unit test for the property '_Version' + } + /// + /// Test the property 'Policy' + /// + [Fact] + public void PolicyTest() + { + // TODO unit test for the property 'Policy' + } + /// + /// Test the property 'SubdomainPolicy' + /// + [Fact] + public void SubdomainPolicyTest() + { + // TODO unit test for the property 'SubdomainPolicy' + } + /// + /// Test the property 'ReportEmailAddress' + /// + [Fact] + public void ReportEmailAddressTest() + { + // TODO unit test for the property 'ReportEmailAddress' + } + /// + /// Test the property 'ForensicEmailAddress' + /// + [Fact] + public void ForensicEmailAddressTest() + { + // TODO unit test for the property 'ForensicEmailAddress' + } + /// + /// Test the property 'Percentage' + /// + [Fact] + public void PercentageTest() + { + // TODO unit test for the property 'Percentage' + } + /// + /// Test the property 'ReportFormat' + /// + [Fact] + public void ReportFormatTest() + { + // TODO unit test for the property 'ReportFormat' + } + /// + /// Test the property 'SecondsBetweenReports' + /// + [Fact] + public void SecondsBetweenReportsTest() + { + // TODO unit test for the property 'SecondsBetweenReports' + } + /// + /// Test the property 'Adkim' + /// + [Fact] + public void AdkimTest() + { + // TODO unit test for the property 'Adkim' + } + /// + /// Test the property 'Aspf' + /// + [Fact] + public void AspfTest() + { + // TODO unit test for the property 'Aspf' + } + /// + /// Test the property 'Fo' + /// + [Fact] + public void FoTest() + { + // TODO unit test for the property 'Fo' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GenerateDmarcRecordResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GenerateDmarcRecordResultsTests.cs new file mode 100644 index 00000000..02d436f5 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GenerateDmarcRecordResultsTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GenerateDmarcRecordResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GenerateDmarcRecordResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GenerateDmarcRecordResults + //private GenerateDmarcRecordResults instance; + + public GenerateDmarcRecordResultsTests() + { + // TODO uncomment below to create an instance of GenerateDmarcRecordResults + //instance = new GenerateDmarcRecordResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GenerateDmarcRecordResults + /// + [Fact] + public void GenerateDmarcRecordResultsInstanceTest() + { + // TODO uncomment below to test "IsType" GenerateDmarcRecordResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Type' + /// + [Fact] + public void TypeTest() + { + // TODO unit test for the property 'Type' + } + /// + /// Test the property 'Ttl' + /// + [Fact] + public void TtlTest() + { + // TODO unit test for the property 'Ttl' + } + /// + /// Test the property 'Value' + /// + [Fact] + public void ValueTest() + { + // TODO unit test for the property 'Value' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GenerateMtaStsRecordOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GenerateMtaStsRecordOptionsTests.cs new file mode 100644 index 00000000..b97061b2 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GenerateMtaStsRecordOptionsTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GenerateMtaStsRecordOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GenerateMtaStsRecordOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GenerateMtaStsRecordOptions + //private GenerateMtaStsRecordOptions instance; + + public GenerateMtaStsRecordOptionsTests() + { + // TODO uncomment below to create an instance of GenerateMtaStsRecordOptions + //instance = new GenerateMtaStsRecordOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GenerateMtaStsRecordOptions + /// + [Fact] + public void GenerateMtaStsRecordOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" GenerateMtaStsRecordOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Host' + /// + [Fact] + public void HostTest() + { + // TODO unit test for the property 'Host' + } + /// + /// Test the property '_Version' + /// + [Fact] + public void _VersionTest() + { + // TODO unit test for the property '_Version' + } + /// + /// Test the property 'Mode' + /// + [Fact] + public void ModeTest() + { + // TODO unit test for the property 'Mode' + } + /// + /// Test the property 'Ttl' + /// + [Fact] + public void TtlTest() + { + // TODO unit test for the property 'Ttl' + } + /// + /// Test the property 'MaxAgeSeconds' + /// + [Fact] + public void MaxAgeSecondsTest() + { + // TODO unit test for the property 'MaxAgeSeconds' + } + /// + /// Test the property 'MxRecords' + /// + [Fact] + public void MxRecordsTest() + { + // TODO unit test for the property 'MxRecords' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GenerateMtaStsRecordResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GenerateMtaStsRecordResultsTests.cs new file mode 100644 index 00000000..bc7bbb37 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GenerateMtaStsRecordResultsTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GenerateMtaStsRecordResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GenerateMtaStsRecordResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GenerateMtaStsRecordResults + //private GenerateMtaStsRecordResults instance; + + public GenerateMtaStsRecordResultsTests() + { + // TODO uncomment below to create an instance of GenerateMtaStsRecordResults + //instance = new GenerateMtaStsRecordResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GenerateMtaStsRecordResults + /// + [Fact] + public void GenerateMtaStsRecordResultsInstanceTest() + { + // TODO uncomment below to test "IsType" GenerateMtaStsRecordResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Type' + /// + [Fact] + public void TypeTest() + { + // TODO unit test for the property 'Type' + } + /// + /// Test the property 'Ttl' + /// + [Fact] + public void TtlTest() + { + // TODO unit test for the property 'Ttl' + } + /// + /// Test the property 'Value' + /// + [Fact] + public void ValueTest() + { + // TODO unit test for the property 'Value' + } + /// + /// Test the property 'WellKnownValue' + /// + [Fact] + public void WellKnownValueTest() + { + // TODO unit test for the property 'WellKnownValue' + } + /// + /// Test the property 'WellKnownUrl' + /// + [Fact] + public void WellKnownUrlTest() + { + // TODO unit test for the property 'WellKnownUrl' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GenerateTlsReportingRecordOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GenerateTlsReportingRecordOptionsTests.cs new file mode 100644 index 00000000..7dfcd7d7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GenerateTlsReportingRecordOptionsTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GenerateTlsReportingRecordOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GenerateTlsReportingRecordOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GenerateTlsReportingRecordOptions + //private GenerateTlsReportingRecordOptions instance; + + public GenerateTlsReportingRecordOptionsTests() + { + // TODO uncomment below to create an instance of GenerateTlsReportingRecordOptions + //instance = new GenerateTlsReportingRecordOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GenerateTlsReportingRecordOptions + /// + [Fact] + public void GenerateTlsReportingRecordOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" GenerateTlsReportingRecordOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ReportingAddresses' + /// + [Fact] + public void ReportingAddressesTest() + { + // TODO unit test for the property 'ReportingAddresses' + } + /// + /// Test the property 'ReportingUrl' + /// + [Fact] + public void ReportingUrlTest() + { + // TODO unit test for the property 'ReportingUrl' + } + /// + /// Test the property 'Host' + /// + [Fact] + public void HostTest() + { + // TODO unit test for the property 'Host' + } + /// + /// Test the property '_Version' + /// + [Fact] + public void _VersionTest() + { + // TODO unit test for the property '_Version' + } + /// + /// Test the property 'Ttl' + /// + [Fact] + public void TtlTest() + { + // TODO unit test for the property 'Ttl' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GenerateTlsReportingRecordResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GenerateTlsReportingRecordResultsTests.cs new file mode 100644 index 00000000..f29c3452 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GenerateTlsReportingRecordResultsTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GenerateTlsReportingRecordResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GenerateTlsReportingRecordResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GenerateTlsReportingRecordResults + //private GenerateTlsReportingRecordResults instance; + + public GenerateTlsReportingRecordResultsTests() + { + // TODO uncomment below to create an instance of GenerateTlsReportingRecordResults + //instance = new GenerateTlsReportingRecordResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GenerateTlsReportingRecordResults + /// + [Fact] + public void GenerateTlsReportingRecordResultsInstanceTest() + { + // TODO uncomment below to test "IsType" GenerateTlsReportingRecordResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Type' + /// + [Fact] + public void TypeTest() + { + // TODO unit test for the property 'Type' + } + /// + /// Test the property 'Ttl' + /// + [Fact] + public void TtlTest() + { + // TODO unit test for the property 'Ttl' + } + /// + /// Test the property 'Value' + /// + [Fact] + public void ValueTest() + { + // TODO unit test for the property 'Value' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GetEmailScreenshotOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GetEmailScreenshotOptionsTests.cs new file mode 100644 index 00000000..7ac0c601 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GetEmailScreenshotOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GetEmailScreenshotOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GetEmailScreenshotOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GetEmailScreenshotOptions + //private GetEmailScreenshotOptions instance; + + public GetEmailScreenshotOptionsTests() + { + // TODO uncomment below to create an instance of GetEmailScreenshotOptions + //instance = new GetEmailScreenshotOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GetEmailScreenshotOptions + /// + [Fact] + public void GetEmailScreenshotOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" GetEmailScreenshotOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Height' + /// + [Fact] + public void HeightTest() + { + // TODO unit test for the property 'Height' + } + /// + /// Test the property 'Width' + /// + [Fact] + public void WidthTest() + { + // TODO unit test for the property 'Width' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GravatarUrlTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GravatarUrlTests.cs new file mode 100644 index 00000000..c861978e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GravatarUrlTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GravatarUrl + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GravatarUrlTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GravatarUrl + //private GravatarUrl instance; + + public GravatarUrlTests() + { + // TODO uncomment below to create an instance of GravatarUrl + //instance = new GravatarUrl(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GravatarUrl + /// + [Fact] + public void GravatarUrlInstanceTest() + { + // TODO uncomment below to test "IsType" GravatarUrl + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Url' + /// + [Fact] + public void UrlTest() + { + // TODO unit test for the property 'Url' + } + /// + /// Test the property 'Hash' + /// + [Fact] + public void HashTest() + { + // TODO unit test for the property 'Hash' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GroupContactsDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GroupContactsDtoTests.cs new file mode 100644 index 00000000..3746e5ae --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GroupContactsDtoTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GroupContactsDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GroupContactsDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GroupContactsDto + //private GroupContactsDto instance; + + public GroupContactsDtoTests() + { + // TODO uncomment below to create an instance of GroupContactsDto + //instance = new GroupContactsDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GroupContactsDto + /// + [Fact] + public void GroupContactsDtoInstanceTest() + { + // TODO uncomment below to test "IsType" GroupContactsDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Group' + /// + [Fact] + public void GroupTest() + { + // TODO unit test for the property 'Group' + } + /// + /// Test the property 'Contacts' + /// + [Fact] + public void ContactsTest() + { + // TODO unit test for the property 'Contacts' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GroupDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GroupDtoTests.cs new file mode 100644 index 00000000..b2dabbc1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GroupDtoTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GroupDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GroupDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GroupDto + //private GroupDto instance; + + public GroupDtoTests() + { + // TODO uncomment below to create an instance of GroupDto + //instance = new GroupDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GroupDto + /// + [Fact] + public void GroupDtoInstanceTest() + { + // TODO uncomment below to test "IsType" GroupDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Description' + /// + [Fact] + public void DescriptionTest() + { + // TODO unit test for the property 'Description' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/GroupProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/GroupProjectionTests.cs new file mode 100644 index 00000000..b6dd777e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/GroupProjectionTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing GroupProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class GroupProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GroupProjection + //private GroupProjection instance; + + public GroupProjectionTests() + { + // TODO uncomment below to create an instance of GroupProjection + //instance = new GroupProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GroupProjection + /// + [Fact] + public void GroupProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" GroupProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Description' + /// + [Fact] + public void DescriptionTest() + { + // TODO unit test for the property 'Description' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/HTMLValidationResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/HTMLValidationResultTests.cs new file mode 100644 index 00000000..f6310ccd --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/HTMLValidationResultTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing HTMLValidationResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class HTMLValidationResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for HTMLValidationResult + //private HTMLValidationResult instance; + + public HTMLValidationResultTests() + { + // TODO uncomment below to create an instance of HTMLValidationResult + //instance = new HTMLValidationResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of HTMLValidationResult + /// + [Fact] + public void HTMLValidationResultInstanceTest() + { + // TODO uncomment below to test "IsType" HTMLValidationResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'IsValid' + /// + [Fact] + public void IsValidTest() + { + // TODO unit test for the property 'IsValid' + } + /// + /// Test the property 'Infos' + /// + [Fact] + public void InfosTest() + { + // TODO unit test for the property 'Infos' + } + /// + /// Test the property 'Errors' + /// + [Fact] + public void ErrorsTest() + { + // TODO unit test for the property 'Errors' + } + /// + /// Test the property 'Warnings' + /// + [Fact] + public void WarningsTest() + { + // TODO unit test for the property 'Warnings' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/IPAddressResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/IPAddressResultTests.cs new file mode 100644 index 00000000..16afcd95 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/IPAddressResultTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing IPAddressResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class IPAddressResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for IPAddressResult + //private IPAddressResult instance; + + public IPAddressResultTests() + { + // TODO uncomment below to create an instance of IPAddressResult + //instance = new IPAddressResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of IPAddressResult + /// + [Fact] + public void IPAddressResultInstanceTest() + { + // TODO uncomment below to test "IsType" IPAddressResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Address' + /// + [Fact] + public void AddressTest() + { + // TODO unit test for the property 'Address' + } + /// + /// Test the property 'Hostname' + /// + [Fact] + public void HostnameTest() + { + // TODO unit test for the property 'Hostname' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImageIssueTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImageIssueTests.cs new file mode 100644 index 00000000..8123bd96 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImageIssueTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImageIssue + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImageIssueTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImageIssue + //private ImageIssue instance; + + public ImageIssueTests() + { + // TODO uncomment below to create an instance of ImageIssue + //instance = new ImageIssue(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImageIssue + /// + [Fact] + public void ImageIssueInstanceTest() + { + // TODO uncomment below to test "IsType" ImageIssue + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Url' + /// + [Fact] + public void UrlTest() + { + // TODO unit test for the property 'Url' + } + /// + /// Test the property 'ResponseStatus' + /// + [Fact] + public void ResponseStatusTest() + { + // TODO unit test for the property 'ResponseStatus' + } + /// + /// Test the property 'Severity' + /// + [Fact] + public void SeverityTest() + { + // TODO unit test for the property 'Severity' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapAccessDetailsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapAccessDetailsTests.cs new file mode 100644 index 00000000..a8cd2a4a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapAccessDetailsTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapAccessDetails + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapAccessDetailsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapAccessDetails + //private ImapAccessDetails instance; + + public ImapAccessDetailsTests() + { + // TODO uncomment below to create an instance of ImapAccessDetails + //instance = new ImapAccessDetails(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapAccessDetails + /// + [Fact] + public void ImapAccessDetailsInstanceTest() + { + // TODO uncomment below to test "IsType" ImapAccessDetails + //Assert.IsType(instance); + } + + + /// + /// Test the property 'SecureImapServerHost' + /// + [Fact] + public void SecureImapServerHostTest() + { + // TODO unit test for the property 'SecureImapServerHost' + } + /// + /// Test the property 'SecureImapServerPort' + /// + [Fact] + public void SecureImapServerPortTest() + { + // TODO unit test for the property 'SecureImapServerPort' + } + /// + /// Test the property 'SecureImapUsername' + /// + [Fact] + public void SecureImapUsernameTest() + { + // TODO unit test for the property 'SecureImapUsername' + } + /// + /// Test the property 'SecureImapPassword' + /// + [Fact] + public void SecureImapPasswordTest() + { + // TODO unit test for the property 'SecureImapPassword' + } + /// + /// Test the property 'ImapServerHost' + /// + [Fact] + public void ImapServerHostTest() + { + // TODO unit test for the property 'ImapServerHost' + } + /// + /// Test the property 'ImapServerPort' + /// + [Fact] + public void ImapServerPortTest() + { + // TODO unit test for the property 'ImapServerPort' + } + /// + /// Test the property 'ImapUsername' + /// + [Fact] + public void ImapUsernameTest() + { + // TODO unit test for the property 'ImapUsername' + } + /// + /// Test the property 'ImapPassword' + /// + [Fact] + public void ImapPasswordTest() + { + // TODO unit test for the property 'ImapPassword' + } + /// + /// Test the property 'ImapMailbox' + /// + [Fact] + public void ImapMailboxTest() + { + // TODO unit test for the property 'ImapMailbox' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapEmailProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapEmailProjectionTests.cs new file mode 100644 index 00000000..f0a56950 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapEmailProjectionTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapEmailProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapEmailProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapEmailProjection + //private ImapEmailProjection instance; + + public ImapEmailProjectionTests() + { + // TODO uncomment below to create an instance of ImapEmailProjection + //instance = new ImapEmailProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapEmailProjection + /// + [Fact] + public void ImapEmailProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" ImapEmailProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Read' + /// + [Fact] + public void ReadTest() + { + // TODO unit test for the property 'Read' + } + /// + /// Test the property 'Uid' + /// + [Fact] + public void UidTest() + { + // TODO unit test for the property 'Uid' + } + /// + /// Test the property 'SeqNum' + /// + [Fact] + public void SeqNumTest() + { + // TODO unit test for the property 'SeqNum' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapFlagOperationOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapFlagOperationOptionsTests.cs new file mode 100644 index 00000000..82442415 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapFlagOperationOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapFlagOperationOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapFlagOperationOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapFlagOperationOptions + //private ImapFlagOperationOptions instance; + + public ImapFlagOperationOptionsTests() + { + // TODO uncomment below to create an instance of ImapFlagOperationOptions + //instance = new ImapFlagOperationOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapFlagOperationOptions + /// + [Fact] + public void ImapFlagOperationOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ImapFlagOperationOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'FlagOperation' + /// + [Fact] + public void FlagOperationTest() + { + // TODO unit test for the property 'FlagOperation' + } + /// + /// Test the property 'Flags' + /// + [Fact] + public void FlagsTest() + { + // TODO unit test for the property 'Flags' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapMailboxStatusTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapMailboxStatusTests.cs new file mode 100644 index 00000000..3fb60adb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapMailboxStatusTests.cs @@ -0,0 +1,159 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapMailboxStatus + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapMailboxStatusTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapMailboxStatus + //private ImapMailboxStatus instance; + + public ImapMailboxStatusTests() + { + // TODO uncomment below to create an instance of ImapMailboxStatus + //instance = new ImapMailboxStatus(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapMailboxStatus + /// + [Fact] + public void ImapMailboxStatusInstanceTest() + { + // TODO uncomment below to test "IsType" ImapMailboxStatus + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'ReadOnly' + /// + [Fact] + public void ReadOnlyTest() + { + // TODO unit test for the property 'ReadOnly' + } + /// + /// Test the property 'Items' + /// + [Fact] + public void ItemsTest() + { + // TODO unit test for the property 'Items' + } + /// + /// Test the property 'Flags' + /// + [Fact] + public void FlagsTest() + { + // TODO unit test for the property 'Flags' + } + /// + /// Test the property 'PermanentFlags' + /// + [Fact] + public void PermanentFlagsTest() + { + // TODO unit test for the property 'PermanentFlags' + } + /// + /// Test the property 'UnseenSeqNum' + /// + [Fact] + public void UnseenSeqNumTest() + { + // TODO unit test for the property 'UnseenSeqNum' + } + /// + /// Test the property 'Messages' + /// + [Fact] + public void MessagesTest() + { + // TODO unit test for the property 'Messages' + } + /// + /// Test the property 'Recent' + /// + [Fact] + public void RecentTest() + { + // TODO unit test for the property 'Recent' + } + /// + /// Test the property 'Unseen' + /// + [Fact] + public void UnseenTest() + { + // TODO unit test for the property 'Unseen' + } + /// + /// Test the property 'UidNext' + /// + [Fact] + public void UidNextTest() + { + // TODO unit test for the property 'UidNext' + } + /// + /// Test the property 'UidValidity' + /// + [Fact] + public void UidValidityTest() + { + // TODO unit test for the property 'UidValidity' + } + /// + /// Test the property 'AppendLimit' + /// + [Fact] + public void AppendLimitTest() + { + // TODO unit test for the property 'AppendLimit' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapServerFetchItemTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapServerFetchItemTests.cs new file mode 100644 index 00000000..9dc38f73 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapServerFetchItemTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapServerFetchItem + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapServerFetchItemTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapServerFetchItem + //private ImapServerFetchItem instance; + + public ImapServerFetchItemTests() + { + // TODO uncomment below to create an instance of ImapServerFetchItem + //instance = new ImapServerFetchItem(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapServerFetchItem + /// + [Fact] + public void ImapServerFetchItemInstanceTest() + { + // TODO uncomment below to test "IsType" ImapServerFetchItem + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Uid' + /// + [Fact] + public void UidTest() + { + // TODO unit test for the property 'Uid' + } + /// + /// Test the property 'SeqNum' + /// + [Fact] + public void SeqNumTest() + { + // TODO unit test for the property 'SeqNum' + } + /// + /// Test the property 'Read' + /// + [Fact] + public void ReadTest() + { + // TODO unit test for the property 'Read' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapServerFetchResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapServerFetchResultTests.cs new file mode 100644 index 00000000..c585a97a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapServerFetchResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapServerFetchResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapServerFetchResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapServerFetchResult + //private ImapServerFetchResult instance; + + public ImapServerFetchResultTests() + { + // TODO uncomment below to create an instance of ImapServerFetchResult + //instance = new ImapServerFetchResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapServerFetchResult + /// + [Fact] + public void ImapServerFetchResultInstanceTest() + { + // TODO uncomment below to test "IsType" ImapServerFetchResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Result' + /// + [Fact] + public void ResultTest() + { + // TODO unit test for the property 'Result' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapServerGetResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapServerGetResultTests.cs new file mode 100644 index 00000000..6b63e7c7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapServerGetResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapServerGetResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapServerGetResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapServerGetResult + //private ImapServerGetResult instance; + + public ImapServerGetResultTests() + { + // TODO uncomment below to create an instance of ImapServerGetResult + //instance = new ImapServerGetResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapServerGetResult + /// + [Fact] + public void ImapServerGetResultInstanceTest() + { + // TODO uncomment below to test "IsType" ImapServerGetResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Result' + /// + [Fact] + public void ResultTest() + { + // TODO unit test for the property 'Result' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapServerListOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapServerListOptionsTests.cs new file mode 100644 index 00000000..ff5c45eb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapServerListOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapServerListOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapServerListOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapServerListOptions + //private ImapServerListOptions instance; + + public ImapServerListOptionsTests() + { + // TODO uncomment below to create an instance of ImapServerListOptions + //instance = new ImapServerListOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapServerListOptions + /// + [Fact] + public void ImapServerListOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ImapServerListOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'UidSet' + /// + [Fact] + public void UidSetTest() + { + // TODO unit test for the property 'UidSet' + } + /// + /// Test the property 'SeqSet' + /// + [Fact] + public void SeqSetTest() + { + // TODO unit test for the property 'SeqSet' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapServerListResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapServerListResultTests.cs new file mode 100644 index 00000000..f887728b --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapServerListResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapServerListResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapServerListResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapServerListResult + //private ImapServerListResult instance; + + public ImapServerListResultTests() + { + // TODO uncomment below to create an instance of ImapServerListResult + //instance = new ImapServerListResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapServerListResult + /// + [Fact] + public void ImapServerListResultInstanceTest() + { + // TODO uncomment below to test "IsType" ImapServerListResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Results' + /// + [Fact] + public void ResultsTest() + { + // TODO unit test for the property 'Results' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapServerSearchOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapServerSearchOptionsTests.cs new file mode 100644 index 00000000..15d480d2 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapServerSearchOptionsTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapServerSearchOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapServerSearchOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapServerSearchOptions + //private ImapServerSearchOptions instance; + + public ImapServerSearchOptionsTests() + { + // TODO uncomment below to create an instance of ImapServerSearchOptions + //instance = new ImapServerSearchOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapServerSearchOptions + /// + [Fact] + public void ImapServerSearchOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ImapServerSearchOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'SeqNum' + /// + [Fact] + public void SeqNumTest() + { + // TODO unit test for the property 'SeqNum' + } + /// + /// Test the property 'Uid' + /// + [Fact] + public void UidTest() + { + // TODO unit test for the property 'Uid' + } + /// + /// Test the property 'Since' + /// + [Fact] + public void SinceTest() + { + // TODO unit test for the property 'Since' + } + /// + /// Test the property 'Before' + /// + [Fact] + public void BeforeTest() + { + // TODO unit test for the property 'Before' + } + /// + /// Test the property 'SentSince' + /// + [Fact] + public void SentSinceTest() + { + // TODO unit test for the property 'SentSince' + } + /// + /// Test the property 'SentBefore' + /// + [Fact] + public void SentBeforeTest() + { + // TODO unit test for the property 'SentBefore' + } + /// + /// Test the property 'Header' + /// + [Fact] + public void HeaderTest() + { + // TODO unit test for the property 'Header' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'Text' + /// + [Fact] + public void TextTest() + { + // TODO unit test for the property 'Text' + } + /// + /// Test the property 'WithFlags' + /// + [Fact] + public void WithFlagsTest() + { + // TODO unit test for the property 'WithFlags' + } + /// + /// Test the property 'WithoutFlags' + /// + [Fact] + public void WithoutFlagsTest() + { + // TODO unit test for the property 'WithoutFlags' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapServerSearchResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapServerSearchResultTests.cs new file mode 100644 index 00000000..26f167dd --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapServerSearchResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapServerSearchResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapServerSearchResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapServerSearchResult + //private ImapServerSearchResult instance; + + public ImapServerSearchResultTests() + { + // TODO uncomment below to create an instance of ImapServerSearchResult + //instance = new ImapServerSearchResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapServerSearchResult + /// + [Fact] + public void ImapServerSearchResultInstanceTest() + { + // TODO uncomment below to test "IsType" ImapServerSearchResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Results' + /// + [Fact] + public void ResultsTest() + { + // TODO unit test for the property 'Results' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapServerStatusOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapServerStatusOptionsTests.cs new file mode 100644 index 00000000..537272ae --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapServerStatusOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapServerStatusOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapServerStatusOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapServerStatusOptions + //private ImapServerStatusOptions instance; + + public ImapServerStatusOptionsTests() + { + // TODO uncomment below to create an instance of ImapServerStatusOptions + //instance = new ImapServerStatusOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapServerStatusOptions + /// + [Fact] + public void ImapServerStatusOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ImapServerStatusOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'StatusItems' + /// + [Fact] + public void StatusItemsTest() + { + // TODO unit test for the property 'StatusItems' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapServerStatusResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapServerStatusResultTests.cs new file mode 100644 index 00000000..c10f74ba --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapServerStatusResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapServerStatusResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapServerStatusResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapServerStatusResult + //private ImapServerStatusResult instance; + + public ImapServerStatusResultTests() + { + // TODO uncomment below to create an instance of ImapServerStatusResult + //instance = new ImapServerStatusResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapServerStatusResult + /// + [Fact] + public void ImapServerStatusResultInstanceTest() + { + // TODO uncomment below to test "IsType" ImapServerStatusResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Result' + /// + [Fact] + public void ResultTest() + { + // TODO unit test for the property 'Result' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapSmtpAccessDetailsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapSmtpAccessDetailsTests.cs new file mode 100644 index 00000000..997708b4 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapSmtpAccessDetailsTests.cs @@ -0,0 +1,207 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapSmtpAccessDetails + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapSmtpAccessDetailsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapSmtpAccessDetails + //private ImapSmtpAccessDetails instance; + + public ImapSmtpAccessDetailsTests() + { + // TODO uncomment below to create an instance of ImapSmtpAccessDetails + //instance = new ImapSmtpAccessDetails(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapSmtpAccessDetails + /// + [Fact] + public void ImapSmtpAccessDetailsInstanceTest() + { + // TODO uncomment below to test "IsType" ImapSmtpAccessDetails + //Assert.IsType(instance); + } + + + /// + /// Test the property 'SecureSmtpServerHost' + /// + [Fact] + public void SecureSmtpServerHostTest() + { + // TODO unit test for the property 'SecureSmtpServerHost' + } + /// + /// Test the property 'SecureSmtpServerPort' + /// + [Fact] + public void SecureSmtpServerPortTest() + { + // TODO unit test for the property 'SecureSmtpServerPort' + } + /// + /// Test the property 'SecureSmtpUsername' + /// + [Fact] + public void SecureSmtpUsernameTest() + { + // TODO unit test for the property 'SecureSmtpUsername' + } + /// + /// Test the property 'SecureSmtpPassword' + /// + [Fact] + public void SecureSmtpPasswordTest() + { + // TODO unit test for the property 'SecureSmtpPassword' + } + /// + /// Test the property 'SmtpServerHost' + /// + [Fact] + public void SmtpServerHostTest() + { + // TODO unit test for the property 'SmtpServerHost' + } + /// + /// Test the property 'SmtpServerPort' + /// + [Fact] + public void SmtpServerPortTest() + { + // TODO unit test for the property 'SmtpServerPort' + } + /// + /// Test the property 'SmtpUsername' + /// + [Fact] + public void SmtpUsernameTest() + { + // TODO unit test for the property 'SmtpUsername' + } + /// + /// Test the property 'SmtpPassword' + /// + [Fact] + public void SmtpPasswordTest() + { + // TODO unit test for the property 'SmtpPassword' + } + /// + /// Test the property 'SecureImapServerHost' + /// + [Fact] + public void SecureImapServerHostTest() + { + // TODO unit test for the property 'SecureImapServerHost' + } + /// + /// Test the property 'SecureImapServerPort' + /// + [Fact] + public void SecureImapServerPortTest() + { + // TODO unit test for the property 'SecureImapServerPort' + } + /// + /// Test the property 'SecureImapUsername' + /// + [Fact] + public void SecureImapUsernameTest() + { + // TODO unit test for the property 'SecureImapUsername' + } + /// + /// Test the property 'SecureImapPassword' + /// + [Fact] + public void SecureImapPasswordTest() + { + // TODO unit test for the property 'SecureImapPassword' + } + /// + /// Test the property 'ImapServerHost' + /// + [Fact] + public void ImapServerHostTest() + { + // TODO unit test for the property 'ImapServerHost' + } + /// + /// Test the property 'ImapServerPort' + /// + [Fact] + public void ImapServerPortTest() + { + // TODO unit test for the property 'ImapServerPort' + } + /// + /// Test the property 'ImapUsername' + /// + [Fact] + public void ImapUsernameTest() + { + // TODO unit test for the property 'ImapUsername' + } + /// + /// Test the property 'ImapPassword' + /// + [Fact] + public void ImapPasswordTest() + { + // TODO unit test for the property 'ImapPassword' + } + /// + /// Test the property 'ImapMailbox' + /// + [Fact] + public void ImapMailboxTest() + { + // TODO unit test for the property 'ImapMailbox' + } + /// + /// Test the property 'MailFromDomain' + /// + [Fact] + public void MailFromDomainTest() + { + // TODO unit test for the property 'MailFromDomain' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapSmtpAccessServersTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapSmtpAccessServersTests.cs new file mode 100644 index 00000000..a6d5236a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapSmtpAccessServersTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapSmtpAccessServers + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapSmtpAccessServersTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapSmtpAccessServers + //private ImapSmtpAccessServers instance; + + public ImapSmtpAccessServersTests() + { + // TODO uncomment below to create an instance of ImapSmtpAccessServers + //instance = new ImapSmtpAccessServers(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapSmtpAccessServers + /// + [Fact] + public void ImapSmtpAccessServersInstanceTest() + { + // TODO uncomment below to test "IsType" ImapSmtpAccessServers + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ImapServer' + /// + [Fact] + public void ImapServerTest() + { + // TODO unit test for the property 'ImapServer' + } + /// + /// Test the property 'SecureImapServer' + /// + [Fact] + public void SecureImapServerTest() + { + // TODO unit test for the property 'SecureImapServer' + } + /// + /// Test the property 'SmtpServer' + /// + [Fact] + public void SmtpServerTest() + { + // TODO unit test for the property 'SmtpServer' + } + /// + /// Test the property 'SecureSmtpServer' + /// + [Fact] + public void SecureSmtpServerTest() + { + // TODO unit test for the property 'SecureSmtpServer' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ImapUpdateFlagsOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ImapUpdateFlagsOptionsTests.cs new file mode 100644 index 00000000..81caad6f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ImapUpdateFlagsOptionsTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ImapUpdateFlagsOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ImapUpdateFlagsOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ImapUpdateFlagsOptions + //private ImapUpdateFlagsOptions instance; + + public ImapUpdateFlagsOptionsTests() + { + // TODO uncomment below to create an instance of ImapUpdateFlagsOptions + //instance = new ImapUpdateFlagsOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ImapUpdateFlagsOptions + /// + [Fact] + public void ImapUpdateFlagsOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ImapUpdateFlagsOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Operation' + /// + [Fact] + public void OperationTest() + { + // TODO unit test for the property 'Operation' + } + /// + /// Test the property 'Flags' + /// + [Fact] + public void FlagsTest() + { + // TODO unit test for the property 'Flags' + } + /// + /// Test the property 'UidSet' + /// + [Fact] + public void UidSetTest() + { + // TODO unit test for the property 'UidSet' + } + /// + /// Test the property 'SeqSet' + /// + [Fact] + public void SeqSetTest() + { + // TODO unit test for the property 'SeqSet' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxByEmailAddressResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxByEmailAddressResultTests.cs new file mode 100644 index 00000000..cd49dbe7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxByEmailAddressResultTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxByEmailAddressResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxByEmailAddressResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxByEmailAddressResult + //private InboxByEmailAddressResult instance; + + public InboxByEmailAddressResultTests() + { + // TODO uncomment below to create an instance of InboxByEmailAddressResult + //instance = new InboxByEmailAddressResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxByEmailAddressResult + /// + [Fact] + public void InboxByEmailAddressResultInstanceTest() + { + // TODO uncomment below to test "IsType" InboxByEmailAddressResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'Exists' + /// + [Fact] + public void ExistsTest() + { + // TODO unit test for the property 'Exists' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxByNameResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxByNameResultTests.cs new file mode 100644 index 00000000..0444ad02 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxByNameResultTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxByNameResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxByNameResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxByNameResult + //private InboxByNameResult instance; + + public InboxByNameResultTests() + { + // TODO uncomment below to create an instance of InboxByNameResult + //instance = new InboxByNameResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxByNameResult + /// + [Fact] + public void InboxByNameResultInstanceTest() + { + // TODO uncomment below to test "IsType" InboxByNameResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'Exists' + /// + [Fact] + public void ExistsTest() + { + // TODO unit test for the property 'Exists' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxDtoTests.cs new file mode 100644 index 00000000..3022352c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxDtoTests.cs @@ -0,0 +1,175 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxDto + //private InboxDto instance; + + public InboxDtoTests() + { + // TODO uncomment below to create an instance of InboxDto + //instance = new InboxDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxDto + /// + [Fact] + public void InboxDtoInstanceTest() + { + // TODO uncomment below to test "IsType" InboxDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'Description' + /// + [Fact] + public void DescriptionTest() + { + // TODO unit test for the property 'Description' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'ExpiresAt' + /// + [Fact] + public void ExpiresAtTest() + { + // TODO unit test for the property 'ExpiresAt' + } + /// + /// Test the property 'Favourite' + /// + [Fact] + public void FavouriteTest() + { + // TODO unit test for the property 'Favourite' + } + /// + /// Test the property 'Tags' + /// + [Fact] + public void TagsTest() + { + // TODO unit test for the property 'Tags' + } + /// + /// Test the property 'InboxType' + /// + [Fact] + public void InboxTypeTest() + { + // TODO unit test for the property 'InboxType' + } + /// + /// Test the property 'ReadOnly' + /// + [Fact] + public void ReadOnlyTest() + { + // TODO unit test for the property 'ReadOnly' + } + /// + /// Test the property 'VirtualInbox' + /// + [Fact] + public void VirtualInboxTest() + { + // TODO unit test for the property 'VirtualInbox' + } + /// + /// Test the property 'FunctionsAs' + /// + [Fact] + public void FunctionsAsTest() + { + // TODO unit test for the property 'FunctionsAs' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxExistsDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxExistsDtoTests.cs new file mode 100644 index 00000000..d18c07ab --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxExistsDtoTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxExistsDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxExistsDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxExistsDto + //private InboxExistsDto instance; + + public InboxExistsDtoTests() + { + // TODO uncomment below to create an instance of InboxExistsDto + //instance = new InboxExistsDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxExistsDto + /// + [Fact] + public void InboxExistsDtoInstanceTest() + { + // TODO uncomment below to test "IsType" InboxExistsDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Exists' + /// + [Fact] + public void ExistsTest() + { + // TODO unit test for the property 'Exists' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderDtoTests.cs new file mode 100644 index 00000000..6215dc5c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderDtoTests.cs @@ -0,0 +1,119 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxForwarderDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxForwarderDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxForwarderDto + //private InboxForwarderDto instance; + + public InboxForwarderDtoTests() + { + // TODO uncomment below to create an instance of InboxForwarderDto + //instance = new InboxForwarderDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxForwarderDto + /// + [Fact] + public void InboxForwarderDtoInstanceTest() + { + // TODO uncomment below to test "IsType" InboxForwarderDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Field' + /// + [Fact] + public void FieldTest() + { + // TODO unit test for the property 'Field' + } + /// + /// Test the property 'Match' + /// + [Fact] + public void MatchTest() + { + // TODO unit test for the property 'Match' + } + /// + /// Test the property 'ForwardToRecipients' + /// + [Fact] + public void ForwardToRecipientsTest() + { + // TODO unit test for the property 'ForwardToRecipients' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderEventDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderEventDtoTests.cs new file mode 100644 index 00000000..ba606e05 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderEventDtoTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxForwarderEventDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxForwarderEventDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxForwarderEventDto + //private InboxForwarderEventDto instance; + + public InboxForwarderEventDtoTests() + { + // TODO uncomment below to create an instance of InboxForwarderEventDto + //instance = new InboxForwarderEventDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxForwarderEventDto + /// + [Fact] + public void InboxForwarderEventDtoInstanceTest() + { + // TODO uncomment below to test "IsType" InboxForwarderEventDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'EmailId' + /// + [Fact] + public void EmailIdTest() + { + // TODO unit test for the property 'EmailId' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'ForwarderId' + /// + [Fact] + public void ForwarderIdTest() + { + // TODO unit test for the property 'ForwarderId' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderEventProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderEventProjectionTests.cs new file mode 100644 index 00000000..08165aea --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderEventProjectionTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxForwarderEventProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxForwarderEventProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxForwarderEventProjection + //private InboxForwarderEventProjection instance; + + public InboxForwarderEventProjectionTests() + { + // TODO uncomment below to create an instance of InboxForwarderEventProjection + //instance = new InboxForwarderEventProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxForwarderEventProjection + /// + [Fact] + public void InboxForwarderEventProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" InboxForwarderEventProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailId' + /// + [Fact] + public void EmailIdTest() + { + // TODO unit test for the property 'EmailId' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'ForwarderId' + /// + [Fact] + public void ForwarderIdTest() + { + // TODO unit test for the property 'ForwarderId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderTestOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderTestOptionsTests.cs new file mode 100644 index 00000000..d9ca057b --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderTestOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxForwarderTestOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxForwarderTestOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxForwarderTestOptions + //private InboxForwarderTestOptions instance; + + public InboxForwarderTestOptionsTests() + { + // TODO uncomment below to create an instance of InboxForwarderTestOptions + //instance = new InboxForwarderTestOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxForwarderTestOptions + /// + [Fact] + public void InboxForwarderTestOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" InboxForwarderTestOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'TestValue' + /// + [Fact] + public void TestValueTest() + { + // TODO unit test for the property 'TestValue' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderTestResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderTestResultTests.cs new file mode 100644 index 00000000..cc3b2a69 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxForwarderTestResultTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxForwarderTestResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxForwarderTestResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxForwarderTestResult + //private InboxForwarderTestResult instance; + + public InboxForwarderTestResultTests() + { + // TODO uncomment below to create an instance of InboxForwarderTestResult + //instance = new InboxForwarderTestResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxForwarderTestResult + /// + [Fact] + public void InboxForwarderTestResultInstanceTest() + { + // TODO uncomment below to test "IsType" InboxForwarderTestResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Matches' + /// + [Fact] + public void MatchesTest() + { + // TODO unit test for the property 'Matches' + } + /// + /// Test the property 'DoesMatch' + /// + [Fact] + public void DoesMatchTest() + { + // TODO unit test for the property 'DoesMatch' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxIdItemTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxIdItemTests.cs new file mode 100644 index 00000000..8fcd0ec7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxIdItemTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxIdItem + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxIdItemTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxIdItem + //private InboxIdItem instance; + + public InboxIdItemTests() + { + // TODO uncomment below to create an instance of InboxIdItem + //instance = new InboxIdItem(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxIdItem + /// + [Fact] + public void InboxIdItemInstanceTest() + { + // TODO uncomment below to test "IsType" InboxIdItem + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxIdsResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxIdsResultTests.cs new file mode 100644 index 00000000..c54398aa --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxIdsResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxIdsResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxIdsResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxIdsResult + //private InboxIdsResult instance; + + public InboxIdsResultTests() + { + // TODO uncomment below to create an instance of InboxIdsResult + //instance = new InboxIdsResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxIdsResult + /// + [Fact] + public void InboxIdsResultInstanceTest() + { + // TODO uncomment below to test "IsType" InboxIdsResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxIds' + /// + [Fact] + public void InboxIdsTest() + { + // TODO unit test for the property 'InboxIds' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxPreviewTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxPreviewTests.cs new file mode 100644 index 00000000..009e308f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxPreviewTests.cs @@ -0,0 +1,159 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxPreview + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxPreviewTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxPreview + //private InboxPreview instance; + + public InboxPreviewTests() + { + // TODO uncomment below to create an instance of InboxPreview + //instance = new InboxPreview(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxPreview + /// + [Fact] + public void InboxPreviewInstanceTest() + { + // TODO uncomment below to test "IsType" InboxPreview + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Favourite' + /// + [Fact] + public void FavouriteTest() + { + // TODO unit test for the property 'Favourite' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Tags' + /// + [Fact] + public void TagsTest() + { + // TODO unit test for the property 'Tags' + } + /// + /// Test the property 'TeamAccess' + /// + [Fact] + public void TeamAccessTest() + { + // TODO unit test for the property 'TeamAccess' + } + /// + /// Test the property 'InboxType' + /// + [Fact] + public void InboxTypeTest() + { + // TODO unit test for the property 'InboxType' + } + /// + /// Test the property 'VirtualInbox' + /// + [Fact] + public void VirtualInboxTest() + { + // TODO unit test for the property 'VirtualInbox' + } + /// + /// Test the property 'ExpiresAt' + /// + [Fact] + public void ExpiresAtTest() + { + // TODO unit test for the property 'ExpiresAt' + } + /// + /// Test the property 'FunctionsAs' + /// + [Fact] + public void FunctionsAsTest() + { + // TODO unit test for the property 'FunctionsAs' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxReplierDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxReplierDtoTests.cs new file mode 100644 index 00000000..3c724b5e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxReplierDtoTests.cs @@ -0,0 +1,175 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxReplierDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxReplierDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxReplierDto + //private InboxReplierDto instance; + + public InboxReplierDtoTests() + { + // TODO uncomment below to create an instance of InboxReplierDto + //instance = new InboxReplierDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxReplierDto + /// + [Fact] + public void InboxReplierDtoInstanceTest() + { + // TODO uncomment below to test "IsType" InboxReplierDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Field' + /// + [Fact] + public void FieldTest() + { + // TODO unit test for the property 'Field' + } + /// + /// Test the property 'Match' + /// + [Fact] + public void MatchTest() + { + // TODO unit test for the property 'Match' + } + /// + /// Test the property 'ReplyTo' + /// + [Fact] + public void ReplyToTest() + { + // TODO unit test for the property 'ReplyTo' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'Charset' + /// + [Fact] + public void CharsetTest() + { + // TODO unit test for the property 'Charset' + } + /// + /// Test the property 'IsHTML' + /// + [Fact] + public void IsHTMLTest() + { + // TODO unit test for the property 'IsHTML' + } + /// + /// Test the property 'TemplateId' + /// + [Fact] + public void TemplateIdTest() + { + // TODO unit test for the property 'TemplateId' + } + /// + /// Test the property 'TemplateVariables' + /// + [Fact] + public void TemplateVariablesTest() + { + // TODO unit test for the property 'TemplateVariables' + } + /// + /// Test the property 'IgnoreReplyTo' + /// + [Fact] + public void IgnoreReplyToTest() + { + // TODO unit test for the property 'IgnoreReplyTo' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxReplierEventProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxReplierEventProjectionTests.cs new file mode 100644 index 00000000..41be89de --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxReplierEventProjectionTests.cs @@ -0,0 +1,143 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxReplierEventProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxReplierEventProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxReplierEventProjection + //private InboxReplierEventProjection instance; + + public InboxReplierEventProjectionTests() + { + // TODO uncomment below to create an instance of InboxReplierEventProjection + //instance = new InboxReplierEventProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxReplierEventProjection + /// + [Fact] + public void InboxReplierEventProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" InboxReplierEventProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Recipients' + /// + [Fact] + public void RecipientsTest() + { + // TODO unit test for the property 'Recipients' + } + /// + /// Test the property 'EmailId' + /// + [Fact] + public void EmailIdTest() + { + // TODO unit test for the property 'EmailId' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'SentId' + /// + [Fact] + public void SentIdTest() + { + // TODO unit test for the property 'SentId' + } + /// + /// Test the property 'ReplierId' + /// + [Fact] + public void ReplierIdTest() + { + // TODO unit test for the property 'ReplierId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxRulesetDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxRulesetDtoTests.cs new file mode 100644 index 00000000..a81f8c31 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxRulesetDtoTests.cs @@ -0,0 +1,119 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxRulesetDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxRulesetDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxRulesetDto + //private InboxRulesetDto instance; + + public InboxRulesetDtoTests() + { + // TODO uncomment below to create an instance of InboxRulesetDto + //instance = new InboxRulesetDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxRulesetDto + /// + [Fact] + public void InboxRulesetDtoInstanceTest() + { + // TODO uncomment below to test "IsType" InboxRulesetDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'Scope' + /// + [Fact] + public void ScopeTest() + { + // TODO unit test for the property 'Scope' + } + /// + /// Test the property 'Action' + /// + [Fact] + public void ActionTest() + { + // TODO unit test for the property 'Action' + } + /// + /// Test the property 'Target' + /// + [Fact] + public void TargetTest() + { + // TODO unit test for the property 'Target' + } + /// + /// Test the property 'Handler' + /// + [Fact] + public void HandlerTest() + { + // TODO unit test for the property 'Handler' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxRulesetTestOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxRulesetTestOptionsTests.cs new file mode 100644 index 00000000..9e79fc0d --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxRulesetTestOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxRulesetTestOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxRulesetTestOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxRulesetTestOptions + //private InboxRulesetTestOptions instance; + + public InboxRulesetTestOptionsTests() + { + // TODO uncomment below to create an instance of InboxRulesetTestOptions + //instance = new InboxRulesetTestOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxRulesetTestOptions + /// + [Fact] + public void InboxRulesetTestOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" InboxRulesetTestOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'TestTarget' + /// + [Fact] + public void TestTargetTest() + { + // TODO unit test for the property 'TestTarget' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/InboxRulesetTestResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/InboxRulesetTestResultTests.cs new file mode 100644 index 00000000..27de70d2 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/InboxRulesetTestResultTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing InboxRulesetTestResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class InboxRulesetTestResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InboxRulesetTestResult + //private InboxRulesetTestResult instance; + + public InboxRulesetTestResultTests() + { + // TODO uncomment below to create an instance of InboxRulesetTestResult + //instance = new InboxRulesetTestResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InboxRulesetTestResult + /// + [Fact] + public void InboxRulesetTestResultInstanceTest() + { + // TODO uncomment below to test "IsType" InboxRulesetTestResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RulesetMatches' + /// + [Fact] + public void RulesetMatchesTest() + { + // TODO unit test for the property 'RulesetMatches' + } + /// + /// Test the property 'Matches' + /// + [Fact] + public void MatchesTest() + { + // TODO unit test for the property 'Matches' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/JSONSchemaDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/JSONSchemaDtoTests.cs new file mode 100644 index 00000000..02a4bdee --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/JSONSchemaDtoTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing JSONSchemaDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class JSONSchemaDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for JSONSchemaDto + //private JSONSchemaDto instance; + + public JSONSchemaDtoTests() + { + // TODO uncomment below to create an instance of JSONSchemaDto + //instance = new JSONSchemaDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of JSONSchemaDto + /// + [Fact] + public void JSONSchemaDtoInstanceTest() + { + // TODO uncomment below to test "IsType" JSONSchemaDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Value' + /// + [Fact] + public void ValueTest() + { + // TODO unit test for the property 'Value' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/LinkIssueTests.cs b/src/mailslurp_netstandard_2x.Test/Model/LinkIssueTests.cs new file mode 100644 index 00000000..3719c1e8 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/LinkIssueTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing LinkIssue + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class LinkIssueTests : IDisposable + { + // TODO uncomment below to declare an instance variable for LinkIssue + //private LinkIssue instance; + + public LinkIssueTests() + { + // TODO uncomment below to create an instance of LinkIssue + //instance = new LinkIssue(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of LinkIssue + /// + [Fact] + public void LinkIssueInstanceTest() + { + // TODO uncomment below to test "IsType" LinkIssue + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Url' + /// + [Fact] + public void UrlTest() + { + // TODO unit test for the property 'Url' + } + /// + /// Test the property 'ResponseStatus' + /// + [Fact] + public void ResponseStatusTest() + { + // TODO unit test for the property 'ResponseStatus' + } + /// + /// Test the property 'Severity' + /// + [Fact] + public void SeverityTest() + { + // TODO unit test for the property 'Severity' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ListUnsubscribeRecipientProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ListUnsubscribeRecipientProjectionTests.cs new file mode 100644 index 00000000..2e89807e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ListUnsubscribeRecipientProjectionTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ListUnsubscribeRecipientProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ListUnsubscribeRecipientProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ListUnsubscribeRecipientProjection + //private ListUnsubscribeRecipientProjection instance; + + public ListUnsubscribeRecipientProjectionTests() + { + // TODO uncomment below to create an instance of ListUnsubscribeRecipientProjection + //instance = new ListUnsubscribeRecipientProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ListUnsubscribeRecipientProjection + /// + [Fact] + public void ListUnsubscribeRecipientProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" ListUnsubscribeRecipientProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/LookupBimiDomainOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/LookupBimiDomainOptionsTests.cs new file mode 100644 index 00000000..ccdf70e5 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/LookupBimiDomainOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing LookupBimiDomainOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class LookupBimiDomainOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for LookupBimiDomainOptions + //private LookupBimiDomainOptions instance; + + public LookupBimiDomainOptionsTests() + { + // TODO uncomment below to create an instance of LookupBimiDomainOptions + //instance = new LookupBimiDomainOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of LookupBimiDomainOptions + /// + [Fact] + public void LookupBimiDomainOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" LookupBimiDomainOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Host' + /// + [Fact] + public void HostTest() + { + // TODO unit test for the property 'Host' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/LookupBimiDomainResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/LookupBimiDomainResultsTests.cs new file mode 100644 index 00000000..fbd76ab5 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/LookupBimiDomainResultsTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing LookupBimiDomainResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class LookupBimiDomainResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for LookupBimiDomainResults + //private LookupBimiDomainResults instance; + + public LookupBimiDomainResultsTests() + { + // TODO uncomment below to create an instance of LookupBimiDomainResults + //instance = new LookupBimiDomainResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of LookupBimiDomainResults + /// + [Fact] + public void LookupBimiDomainResultsInstanceTest() + { + // TODO uncomment below to test "IsType" LookupBimiDomainResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Valid' + /// + [Fact] + public void ValidTest() + { + // TODO unit test for the property 'Valid' + } + /// + /// Test the property 'Query' + /// + [Fact] + public void QueryTest() + { + // TODO unit test for the property 'Query' + } + /// + /// Test the property 'Records' + /// + [Fact] + public void RecordsTest() + { + // TODO unit test for the property 'Records' + } + /// + /// Test the property 'Errors' + /// + [Fact] + public void ErrorsTest() + { + // TODO unit test for the property 'Errors' + } + /// + /// Test the property 'Warnings' + /// + [Fact] + public void WarningsTest() + { + // TODO unit test for the property 'Warnings' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/LookupDmarcDomainOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/LookupDmarcDomainOptionsTests.cs new file mode 100644 index 00000000..938ba6d0 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/LookupDmarcDomainOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing LookupDmarcDomainOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class LookupDmarcDomainOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for LookupDmarcDomainOptions + //private LookupDmarcDomainOptions instance; + + public LookupDmarcDomainOptionsTests() + { + // TODO uncomment below to create an instance of LookupDmarcDomainOptions + //instance = new LookupDmarcDomainOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of LookupDmarcDomainOptions + /// + [Fact] + public void LookupDmarcDomainOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" LookupDmarcDomainOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Host' + /// + [Fact] + public void HostTest() + { + // TODO unit test for the property 'Host' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/LookupDmarcDomainResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/LookupDmarcDomainResultsTests.cs new file mode 100644 index 00000000..f44b9d3c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/LookupDmarcDomainResultsTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing LookupDmarcDomainResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class LookupDmarcDomainResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for LookupDmarcDomainResults + //private LookupDmarcDomainResults instance; + + public LookupDmarcDomainResultsTests() + { + // TODO uncomment below to create an instance of LookupDmarcDomainResults + //instance = new LookupDmarcDomainResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of LookupDmarcDomainResults + /// + [Fact] + public void LookupDmarcDomainResultsInstanceTest() + { + // TODO uncomment below to test "IsType" LookupDmarcDomainResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Valid' + /// + [Fact] + public void ValidTest() + { + // TODO unit test for the property 'Valid' + } + /// + /// Test the property 'Query' + /// + [Fact] + public void QueryTest() + { + // TODO unit test for the property 'Query' + } + /// + /// Test the property 'Records' + /// + [Fact] + public void RecordsTest() + { + // TODO unit test for the property 'Records' + } + /// + /// Test the property 'Errors' + /// + [Fact] + public void ErrorsTest() + { + // TODO unit test for the property 'Errors' + } + /// + /// Test the property 'Warnings' + /// + [Fact] + public void WarningsTest() + { + // TODO unit test for the property 'Warnings' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/LookupMtaStsDomainOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/LookupMtaStsDomainOptionsTests.cs new file mode 100644 index 00000000..0811aa3a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/LookupMtaStsDomainOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing LookupMtaStsDomainOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class LookupMtaStsDomainOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for LookupMtaStsDomainOptions + //private LookupMtaStsDomainOptions instance; + + public LookupMtaStsDomainOptionsTests() + { + // TODO uncomment below to create an instance of LookupMtaStsDomainOptions + //instance = new LookupMtaStsDomainOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of LookupMtaStsDomainOptions + /// + [Fact] + public void LookupMtaStsDomainOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" LookupMtaStsDomainOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Host' + /// + [Fact] + public void HostTest() + { + // TODO unit test for the property 'Host' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/LookupMtaStsDomainResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/LookupMtaStsDomainResultsTests.cs new file mode 100644 index 00000000..369b8b9a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/LookupMtaStsDomainResultsTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing LookupMtaStsDomainResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class LookupMtaStsDomainResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for LookupMtaStsDomainResults + //private LookupMtaStsDomainResults instance; + + public LookupMtaStsDomainResultsTests() + { + // TODO uncomment below to create an instance of LookupMtaStsDomainResults + //instance = new LookupMtaStsDomainResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of LookupMtaStsDomainResults + /// + [Fact] + public void LookupMtaStsDomainResultsInstanceTest() + { + // TODO uncomment below to test "IsType" LookupMtaStsDomainResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Valid' + /// + [Fact] + public void ValidTest() + { + // TODO unit test for the property 'Valid' + } + /// + /// Test the property 'Query' + /// + [Fact] + public void QueryTest() + { + // TODO unit test for the property 'Query' + } + /// + /// Test the property 'Records' + /// + [Fact] + public void RecordsTest() + { + // TODO unit test for the property 'Records' + } + /// + /// Test the property 'WellKnownQuery' + /// + [Fact] + public void WellKnownQueryTest() + { + // TODO unit test for the property 'WellKnownQuery' + } + /// + /// Test the property 'WellKnownPresent' + /// + [Fact] + public void WellKnownPresentTest() + { + // TODO unit test for the property 'WellKnownPresent' + } + /// + /// Test the property 'WellKnownValue' + /// + [Fact] + public void WellKnownValueTest() + { + // TODO unit test for the property 'WellKnownValue' + } + /// + /// Test the property 'Errors' + /// + [Fact] + public void ErrorsTest() + { + // TODO unit test for the property 'Errors' + } + /// + /// Test the property 'Warnings' + /// + [Fact] + public void WarningsTest() + { + // TODO unit test for the property 'Warnings' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/LookupTlsReportingDomainOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/LookupTlsReportingDomainOptionsTests.cs new file mode 100644 index 00000000..00fa8719 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/LookupTlsReportingDomainOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing LookupTlsReportingDomainOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class LookupTlsReportingDomainOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for LookupTlsReportingDomainOptions + //private LookupTlsReportingDomainOptions instance; + + public LookupTlsReportingDomainOptionsTests() + { + // TODO uncomment below to create an instance of LookupTlsReportingDomainOptions + //instance = new LookupTlsReportingDomainOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of LookupTlsReportingDomainOptions + /// + [Fact] + public void LookupTlsReportingDomainOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" LookupTlsReportingDomainOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Host' + /// + [Fact] + public void HostTest() + { + // TODO unit test for the property 'Host' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/LookupTlsReportingDomainResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/LookupTlsReportingDomainResultsTests.cs new file mode 100644 index 00000000..5e692ba1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/LookupTlsReportingDomainResultsTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing LookupTlsReportingDomainResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class LookupTlsReportingDomainResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for LookupTlsReportingDomainResults + //private LookupTlsReportingDomainResults instance; + + public LookupTlsReportingDomainResultsTests() + { + // TODO uncomment below to create an instance of LookupTlsReportingDomainResults + //instance = new LookupTlsReportingDomainResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of LookupTlsReportingDomainResults + /// + [Fact] + public void LookupTlsReportingDomainResultsInstanceTest() + { + // TODO uncomment below to test "IsType" LookupTlsReportingDomainResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Valid' + /// + [Fact] + public void ValidTest() + { + // TODO unit test for the property 'Valid' + } + /// + /// Test the property 'Query' + /// + [Fact] + public void QueryTest() + { + // TODO unit test for the property 'Query' + } + /// + /// Test the property 'Records' + /// + [Fact] + public void RecordsTest() + { + // TODO unit test for the property 'Records' + } + /// + /// Test the property 'Errors' + /// + [Fact] + public void ErrorsTest() + { + // TODO unit test for the property 'Errors' + } + /// + /// Test the property 'Warnings' + /// + [Fact] + public void WarningsTest() + { + // TODO unit test for the property 'Warnings' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/MatchOptionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/MatchOptionTests.cs new file mode 100644 index 00000000..5a408eea --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/MatchOptionTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing MatchOption + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class MatchOptionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for MatchOption + //private MatchOption instance; + + public MatchOptionTests() + { + // TODO uncomment below to create an instance of MatchOption + //instance = new MatchOption(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of MatchOption + /// + [Fact] + public void MatchOptionInstanceTest() + { + // TODO uncomment below to test "IsType" MatchOption + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Field' + /// + [Fact] + public void FieldTest() + { + // TODO unit test for the property 'Field' + } + /// + /// Test the property 'Should' + /// + [Fact] + public void ShouldTest() + { + // TODO unit test for the property 'Should' + } + /// + /// Test the property 'Value' + /// + [Fact] + public void ValueTest() + { + // TODO unit test for the property 'Value' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/MatchOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/MatchOptionsTests.cs new file mode 100644 index 00000000..161acd00 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/MatchOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing MatchOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class MatchOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for MatchOptions + //private MatchOptions instance; + + public MatchOptionsTests() + { + // TODO uncomment below to create an instance of MatchOptions + //instance = new MatchOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of MatchOptions + /// + [Fact] + public void MatchOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" MatchOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Matches' + /// + [Fact] + public void MatchesTest() + { + // TODO unit test for the property 'Matches' + } + /// + /// Test the property 'Conditions' + /// + [Fact] + public void ConditionsTest() + { + // TODO unit test for the property 'Conditions' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/MissedEmailDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/MissedEmailDtoTests.cs new file mode 100644 index 00000000..8a9424c3 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/MissedEmailDtoTests.cs @@ -0,0 +1,191 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing MissedEmailDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class MissedEmailDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for MissedEmailDto + //private MissedEmailDto instance; + + public MissedEmailDtoTests() + { + // TODO uncomment below to create an instance of MissedEmailDto + //instance = new MissedEmailDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of MissedEmailDto + /// + [Fact] + public void MissedEmailDtoInstanceTest() + { + // TODO uncomment below to test "IsType" MissedEmailDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'BodyExcerpt' + /// + [Fact] + public void BodyExcerptTest() + { + // TODO unit test for the property 'BodyExcerpt' + } + /// + /// Test the property 'AttachmentCount' + /// + [Fact] + public void AttachmentCountTest() + { + // TODO unit test for the property 'AttachmentCount' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'RawUrl' + /// + [Fact] + public void RawUrlTest() + { + // TODO unit test for the property 'RawUrl' + } + /// + /// Test the property 'RawKey' + /// + [Fact] + public void RawKeyTest() + { + // TODO unit test for the property 'RawKey' + } + /// + /// Test the property 'RawBucket' + /// + [Fact] + public void RawBucketTest() + { + // TODO unit test for the property 'RawBucket' + } + /// + /// Test the property 'CanRestore' + /// + [Fact] + public void CanRestoreTest() + { + // TODO unit test for the property 'CanRestore' + } + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'Cc' + /// + [Fact] + public void CcTest() + { + // TODO unit test for the property 'Cc' + } + /// + /// Test the property 'Bcc' + /// + [Fact] + public void BccTest() + { + // TODO unit test for the property 'Bcc' + } + /// + /// Test the property 'InboxIds' + /// + [Fact] + public void InboxIdsTest() + { + // TODO unit test for the property 'InboxIds' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/MissedEmailProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/MissedEmailProjectionTests.cs new file mode 100644 index 00000000..b2cf8cc6 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/MissedEmailProjectionTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing MissedEmailProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class MissedEmailProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for MissedEmailProjection + //private MissedEmailProjection instance; + + public MissedEmailProjectionTests() + { + // TODO uncomment below to create an instance of MissedEmailProjection + //instance = new MissedEmailProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of MissedEmailProjection + /// + [Fact] + public void MissedEmailProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" MissedEmailProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/NameServerRecordTests.cs b/src/mailslurp_netstandard_2x.Test/Model/NameServerRecordTests.cs new file mode 100644 index 00000000..da5cf303 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/NameServerRecordTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing NameServerRecord + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class NameServerRecordTests : IDisposable + { + // TODO uncomment below to declare an instance variable for NameServerRecord + //private NameServerRecord instance; + + public NameServerRecordTests() + { + // TODO uncomment below to create an instance of NameServerRecord + //instance = new NameServerRecord(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of NameServerRecord + /// + [Fact] + public void NameServerRecordInstanceTest() + { + // TODO uncomment below to test "IsType" NameServerRecord + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Raw' + /// + [Fact] + public void RawTest() + { + // TODO unit test for the property 'Raw' + } + /// + /// Test the property 'RecordType' + /// + [Fact] + public void RecordTypeTest() + { + // TODO unit test for the property 'RecordType' + } + /// + /// Test the property 'Priority' + /// + [Fact] + public void PriorityTest() + { + // TODO unit test for the property 'Priority' + } + /// + /// Test the property 'Value' + /// + [Fact] + public void ValueTest() + { + // TODO unit test for the property 'Value' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/NewFakeEmailAddressResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/NewFakeEmailAddressResultTests.cs new file mode 100644 index 00000000..854e2ddd --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/NewFakeEmailAddressResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing NewFakeEmailAddressResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class NewFakeEmailAddressResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for NewFakeEmailAddressResult + //private NewFakeEmailAddressResult instance; + + public NewFakeEmailAddressResultTests() + { + // TODO uncomment below to create an instance of NewFakeEmailAddressResult + //instance = new NewFakeEmailAddressResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of NewFakeEmailAddressResult + /// + [Fact] + public void NewFakeEmailAddressResultInstanceTest() + { + // TODO uncomment below to test "IsType" NewFakeEmailAddressResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/OrganizationInboxProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/OrganizationInboxProjectionTests.cs new file mode 100644 index 00000000..a08cec52 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/OrganizationInboxProjectionTests.cs @@ -0,0 +1,159 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing OrganizationInboxProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class OrganizationInboxProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for OrganizationInboxProjection + //private OrganizationInboxProjection instance; + + public OrganizationInboxProjectionTests() + { + // TODO uncomment below to create an instance of OrganizationInboxProjection + //instance = new OrganizationInboxProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of OrganizationInboxProjection + /// + [Fact] + public void OrganizationInboxProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" OrganizationInboxProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'Favourite' + /// + [Fact] + public void FavouriteTest() + { + // TODO unit test for the property 'Favourite' + } + /// + /// Test the property 'Tags' + /// + [Fact] + public void TagsTest() + { + // TODO unit test for the property 'Tags' + } + /// + /// Test the property 'TeamAccess' + /// + [Fact] + public void TeamAccessTest() + { + // TODO unit test for the property 'TeamAccess' + } + /// + /// Test the property 'InboxType' + /// + [Fact] + public void InboxTypeTest() + { + // TODO unit test for the property 'InboxType' + } + /// + /// Test the property 'ReadOnly' + /// + [Fact] + public void ReadOnlyTest() + { + // TODO unit test for the property 'ReadOnly' + } + /// + /// Test the property 'VirtualInbox' + /// + [Fact] + public void VirtualInboxTest() + { + // TODO unit test for the property 'VirtualInbox' + } + /// + /// Test the property 'FunctionsAs' + /// + [Fact] + public void FunctionsAsTest() + { + // TODO unit test for the property 'FunctionsAs' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageAliasTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageAliasTests.cs new file mode 100644 index 00000000..5596981f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageAliasTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageAlias + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageAliasTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageAlias + //private PageAlias instance; + + public PageAliasTests() + { + // TODO uncomment below to create an instance of PageAlias + //instance = new PageAlias(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageAlias + /// + [Fact] + public void PageAliasInstanceTest() + { + // TODO uncomment below to test "IsType" PageAlias + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageAttachmentEntityTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageAttachmentEntityTests.cs new file mode 100644 index 00000000..f5742ae4 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageAttachmentEntityTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageAttachmentEntity + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageAttachmentEntityTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageAttachmentEntity + //private PageAttachmentEntity instance; + + public PageAttachmentEntityTests() + { + // TODO uncomment below to create an instance of PageAttachmentEntity + //instance = new PageAttachmentEntity(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageAttachmentEntity + /// + [Fact] + public void PageAttachmentEntityInstanceTest() + { + // TODO uncomment below to test "IsType" PageAttachmentEntity + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageBouncedEmailTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageBouncedEmailTests.cs new file mode 100644 index 00000000..f4ddb783 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageBouncedEmailTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageBouncedEmail + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageBouncedEmailTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageBouncedEmail + //private PageBouncedEmail instance; + + public PageBouncedEmailTests() + { + // TODO uncomment below to create an instance of PageBouncedEmail + //instance = new PageBouncedEmail(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageBouncedEmail + /// + [Fact] + public void PageBouncedEmailInstanceTest() + { + // TODO uncomment below to test "IsType" PageBouncedEmail + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageBouncedRecipientsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageBouncedRecipientsTests.cs new file mode 100644 index 00000000..6a9f7960 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageBouncedRecipientsTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageBouncedRecipients + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageBouncedRecipientsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageBouncedRecipients + //private PageBouncedRecipients instance; + + public PageBouncedRecipientsTests() + { + // TODO uncomment below to create an instance of PageBouncedRecipients + //instance = new PageBouncedRecipients(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageBouncedRecipients + /// + [Fact] + public void PageBouncedRecipientsInstanceTest() + { + // TODO uncomment below to test "IsType" PageBouncedRecipients + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageComplaintTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageComplaintTests.cs new file mode 100644 index 00000000..b6216bf7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageComplaintTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageComplaint + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageComplaintTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageComplaint + //private PageComplaint instance; + + public PageComplaintTests() + { + // TODO uncomment below to create an instance of PageComplaint + //instance = new PageComplaint(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageComplaint + /// + [Fact] + public void PageComplaintInstanceTest() + { + // TODO uncomment below to test "IsType" PageComplaint + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageConnectorSyncEventsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageConnectorSyncEventsTests.cs new file mode 100644 index 00000000..d2a66628 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageConnectorSyncEventsTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageConnectorSyncEvents + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageConnectorSyncEventsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageConnectorSyncEvents + //private PageConnectorSyncEvents instance; + + public PageConnectorSyncEventsTests() + { + // TODO uncomment below to create an instance of PageConnectorSyncEvents + //instance = new PageConnectorSyncEvents(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageConnectorSyncEvents + /// + [Fact] + public void PageConnectorSyncEventsInstanceTest() + { + // TODO uncomment below to test "IsType" PageConnectorSyncEvents + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageConnectorTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageConnectorTests.cs new file mode 100644 index 00000000..abda6212 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageConnectorTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageConnector + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageConnectorTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageConnector + //private PageConnector instance; + + public PageConnectorTests() + { + // TODO uncomment below to create an instance of PageConnector + //instance = new PageConnector(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageConnector + /// + [Fact] + public void PageConnectorInstanceTest() + { + // TODO uncomment below to test "IsType" PageConnector + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageContactProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageContactProjectionTests.cs new file mode 100644 index 00000000..a209b9f7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageContactProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageContactProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageContactProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageContactProjection + //private PageContactProjection instance; + + public PageContactProjectionTests() + { + // TODO uncomment below to create an instance of PageContactProjection + //instance = new PageContactProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageContactProjection + /// + [Fact] + public void PageContactProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageContactProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageDeliveryStatusTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageDeliveryStatusTests.cs new file mode 100644 index 00000000..3aada43d --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageDeliveryStatusTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageDeliveryStatus + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageDeliveryStatusTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageDeliveryStatus + //private PageDeliveryStatus instance; + + public PageDeliveryStatusTests() + { + // TODO uncomment below to create an instance of PageDeliveryStatus + //instance = new PageDeliveryStatus(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageDeliveryStatus + /// + [Fact] + public void PageDeliveryStatusInstanceTest() + { + // TODO uncomment below to test "IsType" PageDeliveryStatus + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageEmailPreviewTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageEmailPreviewTests.cs new file mode 100644 index 00000000..723afacb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageEmailPreviewTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageEmailPreview + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageEmailPreviewTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageEmailPreview + //private PageEmailPreview instance; + + public PageEmailPreviewTests() + { + // TODO uncomment below to create an instance of PageEmailPreview + //instance = new PageEmailPreview(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageEmailPreview + /// + [Fact] + public void PageEmailPreviewInstanceTest() + { + // TODO uncomment below to test "IsType" PageEmailPreview + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageEmailProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageEmailProjectionTests.cs new file mode 100644 index 00000000..3af8e288 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageEmailProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageEmailProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageEmailProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageEmailProjection + //private PageEmailProjection instance; + + public PageEmailProjectionTests() + { + // TODO uncomment below to create an instance of PageEmailProjection + //instance = new PageEmailProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageEmailProjection + /// + [Fact] + public void PageEmailProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageEmailProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageEmailValidationRequestTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageEmailValidationRequestTests.cs new file mode 100644 index 00000000..ac527be4 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageEmailValidationRequestTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageEmailValidationRequest + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageEmailValidationRequestTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageEmailValidationRequest + //private PageEmailValidationRequest instance; + + public PageEmailValidationRequestTests() + { + // TODO uncomment below to create an instance of PageEmailValidationRequest + //instance = new PageEmailValidationRequest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageEmailValidationRequest + /// + [Fact] + public void PageEmailValidationRequestInstanceTest() + { + // TODO uncomment below to test "IsType" PageEmailValidationRequest + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageExpiredInboxRecordProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageExpiredInboxRecordProjectionTests.cs new file mode 100644 index 00000000..dc61ae9c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageExpiredInboxRecordProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageExpiredInboxRecordProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageExpiredInboxRecordProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageExpiredInboxRecordProjection + //private PageExpiredInboxRecordProjection instance; + + public PageExpiredInboxRecordProjectionTests() + { + // TODO uncomment below to create an instance of PageExpiredInboxRecordProjection + //instance = new PageExpiredInboxRecordProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageExpiredInboxRecordProjection + /// + [Fact] + public void PageExpiredInboxRecordProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageExpiredInboxRecordProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageGroupProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageGroupProjectionTests.cs new file mode 100644 index 00000000..5c714a75 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageGroupProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageGroupProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageGroupProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageGroupProjection + //private PageGroupProjection instance; + + public PageGroupProjectionTests() + { + // TODO uncomment below to create an instance of PageGroupProjection + //instance = new PageGroupProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageGroupProjection + /// + [Fact] + public void PageGroupProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageGroupProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageInboxForwarderDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageInboxForwarderDtoTests.cs new file mode 100644 index 00000000..01556f83 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageInboxForwarderDtoTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageInboxForwarderDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageInboxForwarderDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageInboxForwarderDto + //private PageInboxForwarderDto instance; + + public PageInboxForwarderDtoTests() + { + // TODO uncomment below to create an instance of PageInboxForwarderDto + //instance = new PageInboxForwarderDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageInboxForwarderDto + /// + [Fact] + public void PageInboxForwarderDtoInstanceTest() + { + // TODO uncomment below to test "IsType" PageInboxForwarderDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageInboxForwarderEventsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageInboxForwarderEventsTests.cs new file mode 100644 index 00000000..1ed94faa --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageInboxForwarderEventsTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageInboxForwarderEvents + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageInboxForwarderEventsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageInboxForwarderEvents + //private PageInboxForwarderEvents instance; + + public PageInboxForwarderEventsTests() + { + // TODO uncomment below to create an instance of PageInboxForwarderEvents + //instance = new PageInboxForwarderEvents(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageInboxForwarderEvents + /// + [Fact] + public void PageInboxForwarderEventsInstanceTest() + { + // TODO uncomment below to test "IsType" PageInboxForwarderEvents + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageInboxProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageInboxProjectionTests.cs new file mode 100644 index 00000000..c1c88494 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageInboxProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageInboxProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageInboxProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageInboxProjection + //private PageInboxProjection instance; + + public PageInboxProjectionTests() + { + // TODO uncomment below to create an instance of PageInboxProjection + //instance = new PageInboxProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageInboxProjection + /// + [Fact] + public void PageInboxProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageInboxProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageInboxReplierDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageInboxReplierDtoTests.cs new file mode 100644 index 00000000..6689bca1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageInboxReplierDtoTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageInboxReplierDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageInboxReplierDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageInboxReplierDto + //private PageInboxReplierDto instance; + + public PageInboxReplierDtoTests() + { + // TODO uncomment below to create an instance of PageInboxReplierDto + //instance = new PageInboxReplierDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageInboxReplierDto + /// + [Fact] + public void PageInboxReplierDtoInstanceTest() + { + // TODO uncomment below to test "IsType" PageInboxReplierDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageInboxReplierEventsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageInboxReplierEventsTests.cs new file mode 100644 index 00000000..69532d2d --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageInboxReplierEventsTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageInboxReplierEvents + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageInboxReplierEventsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageInboxReplierEvents + //private PageInboxReplierEvents instance; + + public PageInboxReplierEventsTests() + { + // TODO uncomment below to create an instance of PageInboxReplierEvents + //instance = new PageInboxReplierEvents(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageInboxReplierEvents + /// + [Fact] + public void PageInboxReplierEventsInstanceTest() + { + // TODO uncomment below to test "IsType" PageInboxReplierEvents + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageInboxRulesetDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageInboxRulesetDtoTests.cs new file mode 100644 index 00000000..00169193 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageInboxRulesetDtoTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageInboxRulesetDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageInboxRulesetDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageInboxRulesetDto + //private PageInboxRulesetDto instance; + + public PageInboxRulesetDtoTests() + { + // TODO uncomment below to create an instance of PageInboxRulesetDto + //instance = new PageInboxRulesetDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageInboxRulesetDto + /// + [Fact] + public void PageInboxRulesetDtoInstanceTest() + { + // TODO uncomment below to test "IsType" PageInboxRulesetDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageListUnsubscribeRecipientsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageListUnsubscribeRecipientsTests.cs new file mode 100644 index 00000000..c710ce83 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageListUnsubscribeRecipientsTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageListUnsubscribeRecipients + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageListUnsubscribeRecipientsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageListUnsubscribeRecipients + //private PageListUnsubscribeRecipients instance; + + public PageListUnsubscribeRecipientsTests() + { + // TODO uncomment below to create an instance of PageListUnsubscribeRecipients + //instance = new PageListUnsubscribeRecipients(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageListUnsubscribeRecipients + /// + [Fact] + public void PageListUnsubscribeRecipientsInstanceTest() + { + // TODO uncomment below to test "IsType" PageListUnsubscribeRecipients + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageMissedEmailProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageMissedEmailProjectionTests.cs new file mode 100644 index 00000000..7ac00a25 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageMissedEmailProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageMissedEmailProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageMissedEmailProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageMissedEmailProjection + //private PageMissedEmailProjection instance; + + public PageMissedEmailProjectionTests() + { + // TODO uncomment below to create an instance of PageMissedEmailProjection + //instance = new PageMissedEmailProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageMissedEmailProjection + /// + [Fact] + public void PageMissedEmailProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageMissedEmailProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageOrganizationInboxProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageOrganizationInboxProjectionTests.cs new file mode 100644 index 00000000..2111ebcb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageOrganizationInboxProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageOrganizationInboxProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageOrganizationInboxProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageOrganizationInboxProjection + //private PageOrganizationInboxProjection instance; + + public PageOrganizationInboxProjectionTests() + { + // TODO uncomment below to create an instance of PageOrganizationInboxProjection + //instance = new PageOrganizationInboxProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageOrganizationInboxProjection + /// + [Fact] + public void PageOrganizationInboxProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageOrganizationInboxProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PagePhoneNumberProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PagePhoneNumberProjectionTests.cs new file mode 100644 index 00000000..bfb7486c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PagePhoneNumberProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PagePhoneNumberProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PagePhoneNumberProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PagePhoneNumberProjection + //private PagePhoneNumberProjection instance; + + public PagePhoneNumberProjectionTests() + { + // TODO uncomment below to create an instance of PagePhoneNumberProjection + //instance = new PagePhoneNumberProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PagePhoneNumberProjection + /// + [Fact] + public void PagePhoneNumberProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PagePhoneNumberProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageScheduledJobsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageScheduledJobsTests.cs new file mode 100644 index 00000000..205dbe66 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageScheduledJobsTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageScheduledJobs + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageScheduledJobsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageScheduledJobs + //private PageScheduledJobs instance; + + public PageScheduledJobsTests() + { + // TODO uncomment below to create an instance of PageScheduledJobs + //instance = new PageScheduledJobs(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageScheduledJobs + /// + [Fact] + public void PageScheduledJobsInstanceTest() + { + // TODO uncomment below to test "IsType" PageScheduledJobs + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageSentEmailProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageSentEmailProjectionTests.cs new file mode 100644 index 00000000..1cd1301e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageSentEmailProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageSentEmailProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageSentEmailProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageSentEmailProjection + //private PageSentEmailProjection instance; + + public PageSentEmailProjectionTests() + { + // TODO uncomment below to create an instance of PageSentEmailProjection + //instance = new PageSentEmailProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageSentEmailProjection + /// + [Fact] + public void PageSentEmailProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageSentEmailProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageSentEmailWithQueueProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageSentEmailWithQueueProjectionTests.cs new file mode 100644 index 00000000..d6a931a7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageSentEmailWithQueueProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageSentEmailWithQueueProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageSentEmailWithQueueProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageSentEmailWithQueueProjection + //private PageSentEmailWithQueueProjection instance; + + public PageSentEmailWithQueueProjectionTests() + { + // TODO uncomment below to create an instance of PageSentEmailWithQueueProjection + //instance = new PageSentEmailWithQueueProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageSentEmailWithQueueProjection + /// + [Fact] + public void PageSentEmailWithQueueProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageSentEmailWithQueueProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageSmsProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageSmsProjectionTests.cs new file mode 100644 index 00000000..825b4df1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageSmsProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageSmsProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageSmsProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageSmsProjection + //private PageSmsProjection instance; + + public PageSmsProjectionTests() + { + // TODO uncomment below to create an instance of PageSmsProjection + //instance = new PageSmsProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageSmsProjection + /// + [Fact] + public void PageSmsProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageSmsProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageTemplateProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageTemplateProjectionTests.cs new file mode 100644 index 00000000..09b1071e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageTemplateProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageTemplateProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageTemplateProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageTemplateProjection + //private PageTemplateProjection instance; + + public PageTemplateProjectionTests() + { + // TODO uncomment below to create an instance of PageTemplateProjection + //instance = new PageTemplateProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageTemplateProjection + /// + [Fact] + public void PageTemplateProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageTemplateProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageThreadProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageThreadProjectionTests.cs new file mode 100644 index 00000000..3b1d08b4 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageThreadProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageThreadProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageThreadProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageThreadProjection + //private PageThreadProjection instance; + + public PageThreadProjectionTests() + { + // TODO uncomment below to create an instance of PageThreadProjection + //instance = new PageThreadProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageThreadProjection + /// + [Fact] + public void PageThreadProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageThreadProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageTrackingPixelProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageTrackingPixelProjectionTests.cs new file mode 100644 index 00000000..3e874865 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageTrackingPixelProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageTrackingPixelProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageTrackingPixelProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageTrackingPixelProjection + //private PageTrackingPixelProjection instance; + + public PageTrackingPixelProjectionTests() + { + // TODO uncomment below to create an instance of PageTrackingPixelProjection + //instance = new PageTrackingPixelProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageTrackingPixelProjection + /// + [Fact] + public void PageTrackingPixelProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageTrackingPixelProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageUnknownMissedEmailProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageUnknownMissedEmailProjectionTests.cs new file mode 100644 index 00000000..19e19b45 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageUnknownMissedEmailProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageUnknownMissedEmailProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageUnknownMissedEmailProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageUnknownMissedEmailProjection + //private PageUnknownMissedEmailProjection instance; + + public PageUnknownMissedEmailProjectionTests() + { + // TODO uncomment below to create an instance of PageUnknownMissedEmailProjection + //instance = new PageUnknownMissedEmailProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageUnknownMissedEmailProjection + /// + [Fact] + public void PageUnknownMissedEmailProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageUnknownMissedEmailProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageWebhookProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageWebhookProjectionTests.cs new file mode 100644 index 00000000..32c3c090 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageWebhookProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageWebhookProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageWebhookProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageWebhookProjection + //private PageWebhookProjection instance; + + public PageWebhookProjectionTests() + { + // TODO uncomment below to create an instance of PageWebhookProjection + //instance = new PageWebhookProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageWebhookProjection + /// + [Fact] + public void PageWebhookProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PageWebhookProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageWebhookResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageWebhookResultTests.cs new file mode 100644 index 00000000..ecdb1570 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageWebhookResultTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageWebhookResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageWebhookResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageWebhookResult + //private PageWebhookResult instance; + + public PageWebhookResultTests() + { + // TODO uncomment below to create an instance of PageWebhookResult + //instance = new PageWebhookResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageWebhookResult + /// + [Fact] + public void PageWebhookResultInstanceTest() + { + // TODO uncomment below to test "IsType" PageWebhookResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'Pageable' + /// + [Fact] + public void PageableTest() + { + // TODO unit test for the property 'Pageable' + } + /// + /// Test the property 'TotalPages' + /// + [Fact] + public void TotalPagesTest() + { + // TODO unit test for the property 'TotalPages' + } + /// + /// Test the property 'TotalElements' + /// + [Fact] + public void TotalElementsTest() + { + // TODO unit test for the property 'TotalElements' + } + /// + /// Test the property 'Last' + /// + [Fact] + public void LastTest() + { + // TODO unit test for the property 'Last' + } + /// + /// Test the property 'NumberOfElements' + /// + [Fact] + public void NumberOfElementsTest() + { + // TODO unit test for the property 'NumberOfElements' + } + /// + /// Test the property 'Size' + /// + [Fact] + public void SizeTest() + { + // TODO unit test for the property 'Size' + } + /// + /// Test the property 'Number' + /// + [Fact] + public void NumberTest() + { + // TODO unit test for the property 'Number' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + /// + /// Test the property 'First' + /// + [Fact] + public void FirstTest() + { + // TODO unit test for the property 'First' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PageableObjectTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PageableObjectTests.cs new file mode 100644 index 00000000..b6ebcffb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PageableObjectTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PageableObject + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PageableObjectTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PageableObject + //private PageableObject instance; + + public PageableObjectTests() + { + // TODO uncomment below to create an instance of PageableObject + //instance = new PageableObject(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PageableObject + /// + [Fact] + public void PageableObjectInstanceTest() + { + // TODO uncomment below to test "IsType" PageableObject + //Assert.IsType(instance); + } + + + /// + /// Test the property 'PageNumber' + /// + [Fact] + public void PageNumberTest() + { + // TODO unit test for the property 'PageNumber' + } + /// + /// Test the property 'PageSize' + /// + [Fact] + public void PageSizeTest() + { + // TODO unit test for the property 'PageSize' + } + /// + /// Test the property 'Paged' + /// + [Fact] + public void PagedTest() + { + // TODO unit test for the property 'Paged' + } + /// + /// Test the property 'Unpaged' + /// + [Fact] + public void UnpagedTest() + { + // TODO unit test for the property 'Unpaged' + } + /// + /// Test the property 'Offset' + /// + [Fact] + public void OffsetTest() + { + // TODO unit test for the property 'Offset' + } + /// + /// Test the property 'Sort' + /// + [Fact] + public void SortTest() + { + // TODO unit test for the property 'Sort' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PhoneNumberDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PhoneNumberDtoTests.cs new file mode 100644 index 00000000..e6972a9b --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PhoneNumberDtoTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PhoneNumberDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PhoneNumberDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PhoneNumberDto + //private PhoneNumberDto instance; + + public PhoneNumberDtoTests() + { + // TODO uncomment below to create an instance of PhoneNumberDto + //instance = new PhoneNumberDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PhoneNumberDto + /// + [Fact] + public void PhoneNumberDtoInstanceTest() + { + // TODO uncomment below to test "IsType" PhoneNumberDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'ComplianceAddress' + /// + [Fact] + public void ComplianceAddressTest() + { + // TODO unit test for the property 'ComplianceAddress' + } + /// + /// Test the property 'EmergencyAddress' + /// + [Fact] + public void EmergencyAddressTest() + { + // TODO unit test for the property 'EmergencyAddress' + } + /// + /// Test the property 'PhoneNumber' + /// + [Fact] + public void PhoneNumberTest() + { + // TODO unit test for the property 'PhoneNumber' + } + /// + /// Test the property 'PhoneCountry' + /// + [Fact] + public void PhoneCountryTest() + { + // TODO unit test for the property 'PhoneCountry' + } + /// + /// Test the property 'PhonePlan' + /// + [Fact] + public void PhonePlanTest() + { + // TODO unit test for the property 'PhonePlan' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PhoneNumberProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PhoneNumberProjectionTests.cs new file mode 100644 index 00000000..13bda874 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PhoneNumberProjectionTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PhoneNumberProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PhoneNumberProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PhoneNumberProjection + //private PhoneNumberProjection instance; + + public PhoneNumberProjectionTests() + { + // TODO uncomment below to create an instance of PhoneNumberProjection + //instance = new PhoneNumberProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PhoneNumberProjection + /// + [Fact] + public void PhoneNumberProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" PhoneNumberProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'PhoneNumber' + /// + [Fact] + public void PhoneNumberTest() + { + // TODO unit test for the property 'PhoneNumber' + } + /// + /// Test the property 'PhoneCountry' + /// + [Fact] + public void PhoneCountryTest() + { + // TODO unit test for the property 'PhoneCountry' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/PhonePlanDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/PhonePlanDtoTests.cs new file mode 100644 index 00000000..8f110d6b --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/PhonePlanDtoTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing PhonePlanDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class PhonePlanDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PhonePlanDto + //private PhonePlanDto instance; + + public PhonePlanDtoTests() + { + // TODO uncomment below to create an instance of PhonePlanDto + //instance = new PhonePlanDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PhonePlanDto + /// + [Fact] + public void PhonePlanDtoInstanceTest() + { + // TODO uncomment below to test "IsType" PhonePlanDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'PhoneCountry' + /// + [Fact] + public void PhoneCountryTest() + { + // TODO unit test for the property 'PhoneCountry' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/RawEmailJsonTests.cs b/src/mailslurp_netstandard_2x.Test/Model/RawEmailJsonTests.cs new file mode 100644 index 00000000..2fad2127 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/RawEmailJsonTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing RawEmailJson + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class RawEmailJsonTests : IDisposable + { + // TODO uncomment below to declare an instance variable for RawEmailJson + //private RawEmailJson instance; + + public RawEmailJsonTests() + { + // TODO uncomment below to create an instance of RawEmailJson + //instance = new RawEmailJson(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of RawEmailJson + /// + [Fact] + public void RawEmailJsonInstanceTest() + { + // TODO uncomment below to test "IsType" RawEmailJson + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/RecipientTests.cs b/src/mailslurp_netstandard_2x.Test/Model/RecipientTests.cs new file mode 100644 index 00000000..0bcae74f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/RecipientTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing Recipient + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class RecipientTests : IDisposable + { + // TODO uncomment below to declare an instance variable for Recipient + //private Recipient instance; + + public RecipientTests() + { + // TODO uncomment below to create an instance of Recipient + //instance = new Recipient(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of Recipient + /// + [Fact] + public void RecipientInstanceTest() + { + // TODO uncomment below to test "IsType" Recipient + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RawValue' + /// + [Fact] + public void RawValueTest() + { + // TODO unit test for the property 'RawValue' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ReplyForSmsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ReplyForSmsTests.cs new file mode 100644 index 00000000..125734f3 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ReplyForSmsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ReplyForSms + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ReplyForSmsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ReplyForSms + //private ReplyForSms instance; + + public ReplyForSmsTests() + { + // TODO uncomment below to create an instance of ReplyForSms + //instance = new ReplyForSms(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ReplyForSms + /// + [Fact] + public void ReplyForSmsInstanceTest() + { + // TODO uncomment below to test "IsType" ReplyForSms + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Reply' + /// + [Fact] + public void ReplyTest() + { + // TODO unit test for the property 'Reply' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ReplyToAliasEmailOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ReplyToAliasEmailOptionsTests.cs new file mode 100644 index 00000000..83b00048 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ReplyToAliasEmailOptionsTests.cs @@ -0,0 +1,143 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ReplyToAliasEmailOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ReplyToAliasEmailOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ReplyToAliasEmailOptions + //private ReplyToAliasEmailOptions instance; + + public ReplyToAliasEmailOptionsTests() + { + // TODO uncomment below to create an instance of ReplyToAliasEmailOptions + //instance = new ReplyToAliasEmailOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ReplyToAliasEmailOptions + /// + [Fact] + public void ReplyToAliasEmailOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ReplyToAliasEmailOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'IsHTML' + /// + [Fact] + public void IsHTMLTest() + { + // TODO unit test for the property 'IsHTML' + } + /// + /// Test the property 'Charset' + /// + [Fact] + public void CharsetTest() + { + // TODO unit test for the property 'Charset' + } + /// + /// Test the property 'Attachments' + /// + [Fact] + public void AttachmentsTest() + { + // TODO unit test for the property 'Attachments' + } + /// + /// Test the property 'TemplateVariables' + /// + [Fact] + public void TemplateVariablesTest() + { + // TODO unit test for the property 'TemplateVariables' + } + /// + /// Test the property 'Template' + /// + [Fact] + public void TemplateTest() + { + // TODO unit test for the property 'Template' + } + /// + /// Test the property 'SendStrategy' + /// + [Fact] + public void SendStrategyTest() + { + // TODO unit test for the property 'SendStrategy' + } + /// + /// Test the property 'CustomHeaders' + /// + [Fact] + public void CustomHeadersTest() + { + // TODO unit test for the property 'CustomHeaders' + } + /// + /// Test the property 'UseInboxName' + /// + [Fact] + public void UseInboxNameTest() + { + // TODO unit test for the property 'UseInboxName' + } + /// + /// Test the property 'Html' + /// + [Fact] + public void HtmlTest() + { + // TODO unit test for the property 'Html' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ReplyToEmailOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ReplyToEmailOptionsTests.cs new file mode 100644 index 00000000..aa19cff6 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ReplyToEmailOptionsTests.cs @@ -0,0 +1,159 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ReplyToEmailOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ReplyToEmailOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ReplyToEmailOptions + //private ReplyToEmailOptions instance; + + public ReplyToEmailOptionsTests() + { + // TODO uncomment below to create an instance of ReplyToEmailOptions + //instance = new ReplyToEmailOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ReplyToEmailOptions + /// + [Fact] + public void ReplyToEmailOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ReplyToEmailOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'IsHTML' + /// + [Fact] + public void IsHTMLTest() + { + // TODO unit test for the property 'IsHTML' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'ReplyTo' + /// + [Fact] + public void ReplyToTest() + { + // TODO unit test for the property 'ReplyTo' + } + /// + /// Test the property 'CustomHeaders' + /// + [Fact] + public void CustomHeadersTest() + { + // TODO unit test for the property 'CustomHeaders' + } + /// + /// Test the property 'Charset' + /// + [Fact] + public void CharsetTest() + { + // TODO unit test for the property 'Charset' + } + /// + /// Test the property 'Attachments' + /// + [Fact] + public void AttachmentsTest() + { + // TODO unit test for the property 'Attachments' + } + /// + /// Test the property 'TemplateVariables' + /// + [Fact] + public void TemplateVariablesTest() + { + // TODO unit test for the property 'TemplateVariables' + } + /// + /// Test the property 'Template' + /// + [Fact] + public void TemplateTest() + { + // TODO unit test for the property 'Template' + } + /// + /// Test the property 'SendStrategy' + /// + [Fact] + public void SendStrategyTest() + { + // TODO unit test for the property 'SendStrategy' + } + /// + /// Test the property 'UseInboxName' + /// + [Fact] + public void UseInboxNameTest() + { + // TODO unit test for the property 'UseInboxName' + } + /// + /// Test the property 'Html' + /// + [Fact] + public void HtmlTest() + { + // TODO unit test for the property 'Html' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ScheduledJobDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ScheduledJobDtoTests.cs new file mode 100644 index 00000000..6d78d1a5 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ScheduledJobDtoTests.cs @@ -0,0 +1,143 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ScheduledJobDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ScheduledJobDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ScheduledJobDto + //private ScheduledJobDto instance; + + public ScheduledJobDtoTests() + { + // TODO uncomment below to create an instance of ScheduledJobDto + //instance = new ScheduledJobDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ScheduledJobDto + /// + [Fact] + public void ScheduledJobDtoInstanceTest() + { + // TODO uncomment below to test "IsType" ScheduledJobDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'JobId' + /// + [Fact] + public void JobIdTest() + { + // TODO unit test for the property 'JobId' + } + /// + /// Test the property 'GroupId' + /// + [Fact] + public void GroupIdTest() + { + // TODO unit test for the property 'GroupId' + } + /// + /// Test the property 'TriggerId' + /// + [Fact] + public void TriggerIdTest() + { + // TODO unit test for the property 'TriggerId' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'SendAtTimestamp' + /// + [Fact] + public void SendAtTimestampTest() + { + // TODO unit test for the property 'SendAtTimestamp' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ScheduledJobTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ScheduledJobTests.cs new file mode 100644 index 00000000..df82a4ef --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ScheduledJobTests.cs @@ -0,0 +1,143 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ScheduledJob + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ScheduledJobTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ScheduledJob + //private ScheduledJob instance; + + public ScheduledJobTests() + { + // TODO uncomment below to create an instance of ScheduledJob + //instance = new ScheduledJob(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ScheduledJob + /// + [Fact] + public void ScheduledJobInstanceTest() + { + // TODO uncomment below to test "IsType" ScheduledJob + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'JobId' + /// + [Fact] + public void JobIdTest() + { + // TODO unit test for the property 'JobId' + } + /// + /// Test the property 'GroupId' + /// + [Fact] + public void GroupIdTest() + { + // TODO unit test for the property 'GroupId' + } + /// + /// Test the property 'TriggerId' + /// + [Fact] + public void TriggerIdTest() + { + // TODO unit test for the property 'TriggerId' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'SendAtTimestamp' + /// + [Fact] + public void SendAtTimestampTest() + { + // TODO unit test for the property 'SendAtTimestamp' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SearchEmailsOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SearchEmailsOptionsTests.cs new file mode 100644 index 00000000..71bdce30 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SearchEmailsOptionsTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SearchEmailsOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SearchEmailsOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SearchEmailsOptions + //private SearchEmailsOptions instance; + + public SearchEmailsOptionsTests() + { + // TODO uncomment below to create an instance of SearchEmailsOptions + //instance = new SearchEmailsOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SearchEmailsOptions + /// + [Fact] + public void SearchEmailsOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" SearchEmailsOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxIds' + /// + [Fact] + public void InboxIdsTest() + { + // TODO unit test for the property 'InboxIds' + } + /// + /// Test the property 'PageIndex' + /// + [Fact] + public void PageIndexTest() + { + // TODO unit test for the property 'PageIndex' + } + /// + /// Test the property 'PageSize' + /// + [Fact] + public void PageSizeTest() + { + // TODO unit test for the property 'PageSize' + } + /// + /// Test the property 'SortDirection' + /// + [Fact] + public void SortDirectionTest() + { + // TODO unit test for the property 'SortDirection' + } + /// + /// Test the property 'UnreadOnly' + /// + [Fact] + public void UnreadOnlyTest() + { + // TODO unit test for the property 'UnreadOnly' + } + /// + /// Test the property 'SearchFilter' + /// + [Fact] + public void SearchFilterTest() + { + // TODO unit test for the property 'SearchFilter' + } + /// + /// Test the property 'Since' + /// + [Fact] + public void SinceTest() + { + // TODO unit test for the property 'Since' + } + /// + /// Test the property 'Before' + /// + [Fact] + public void BeforeTest() + { + // TODO unit test for the property 'Before' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SearchInboxesOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SearchInboxesOptionsTests.cs new file mode 100644 index 00000000..6a650db2 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SearchInboxesOptionsTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SearchInboxesOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SearchInboxesOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SearchInboxesOptions + //private SearchInboxesOptions instance; + + public SearchInboxesOptionsTests() + { + // TODO uncomment below to create an instance of SearchInboxesOptions + //instance = new SearchInboxesOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SearchInboxesOptions + /// + [Fact] + public void SearchInboxesOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" SearchInboxesOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'PageIndex' + /// + [Fact] + public void PageIndexTest() + { + // TODO unit test for the property 'PageIndex' + } + /// + /// Test the property 'PageSize' + /// + [Fact] + public void PageSizeTest() + { + // TODO unit test for the property 'PageSize' + } + /// + /// Test the property 'SortDirection' + /// + [Fact] + public void SortDirectionTest() + { + // TODO unit test for the property 'SortDirection' + } + /// + /// Test the property 'Favourite' + /// + [Fact] + public void FavouriteTest() + { + // TODO unit test for the property 'Favourite' + } + /// + /// Test the property 'Search' + /// + [Fact] + public void SearchTest() + { + // TODO unit test for the property 'Search' + } + /// + /// Test the property 'Tag' + /// + [Fact] + public void TagTest() + { + // TODO unit test for the property 'Tag' + } + /// + /// Test the property 'Since' + /// + [Fact] + public void SinceTest() + { + // TODO unit test for the property 'Since' + } + /// + /// Test the property 'Before' + /// + [Fact] + public void BeforeTest() + { + // TODO unit test for the property 'Before' + } + /// + /// Test the property 'InboxType' + /// + [Fact] + public void InboxTypeTest() + { + // TODO unit test for the property 'InboxType' + } + /// + /// Test the property 'InboxFunction' + /// + [Fact] + public void InboxFunctionTest() + { + // TODO unit test for the property 'InboxFunction' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SendEmailBodyPartTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SendEmailBodyPartTests.cs new file mode 100644 index 00000000..f4ccb8d7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SendEmailBodyPartTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SendEmailBodyPart + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SendEmailBodyPartTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SendEmailBodyPart + //private SendEmailBodyPart instance; + + public SendEmailBodyPartTests() + { + // TODO uncomment below to create an instance of SendEmailBodyPart + //instance = new SendEmailBodyPart(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SendEmailBodyPart + /// + [Fact] + public void SendEmailBodyPartInstanceTest() + { + // TODO uncomment below to test "IsType" SendEmailBodyPart + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ContentType' + /// + [Fact] + public void ContentTypeTest() + { + // TODO unit test for the property 'ContentType' + } + /// + /// Test the property 'ContentBody' + /// + [Fact] + public void ContentBodyTest() + { + // TODO unit test for the property 'ContentBody' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SendEmailOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SendEmailOptionsTests.cs new file mode 100644 index 00000000..d294b5fa --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SendEmailOptionsTests.cs @@ -0,0 +1,255 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SendEmailOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SendEmailOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SendEmailOptions + //private SendEmailOptions instance; + + public SendEmailOptionsTests() + { + // TODO uncomment below to create an instance of SendEmailOptions + //instance = new SendEmailOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SendEmailOptions + /// + [Fact] + public void SendEmailOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" SendEmailOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ToContacts' + /// + [Fact] + public void ToContactsTest() + { + // TODO unit test for the property 'ToContacts' + } + /// + /// Test the property 'ToGroup' + /// + [Fact] + public void ToGroupTest() + { + // TODO unit test for the property 'ToGroup' + } + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'Cc' + /// + [Fact] + public void CcTest() + { + // TODO unit test for the property 'Cc' + } + /// + /// Test the property 'Bcc' + /// + [Fact] + public void BccTest() + { + // TODO unit test for the property 'Bcc' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'ReplyTo' + /// + [Fact] + public void ReplyToTest() + { + // TODO unit test for the property 'ReplyTo' + } + /// + /// Test the property 'CustomHeaders' + /// + [Fact] + public void CustomHeadersTest() + { + // TODO unit test for the property 'CustomHeaders' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'Html' + /// + [Fact] + public void HtmlTest() + { + // TODO unit test for the property 'Html' + } + /// + /// Test the property 'IsHTML' + /// + [Fact] + public void IsHTMLTest() + { + // TODO unit test for the property 'IsHTML' + } + /// + /// Test the property 'Charset' + /// + [Fact] + public void CharsetTest() + { + // TODO unit test for the property 'Charset' + } + /// + /// Test the property 'Attachments' + /// + [Fact] + public void AttachmentsTest() + { + // TODO unit test for the property 'Attachments' + } + /// + /// Test the property 'TemplateVariables' + /// + [Fact] + public void TemplateVariablesTest() + { + // TODO unit test for the property 'TemplateVariables' + } + /// + /// Test the property 'Template' + /// + [Fact] + public void TemplateTest() + { + // TODO unit test for the property 'Template' + } + /// + /// Test the property 'SendStrategy' + /// + [Fact] + public void SendStrategyTest() + { + // TODO unit test for the property 'SendStrategy' + } + /// + /// Test the property 'UseInboxName' + /// + [Fact] + public void UseInboxNameTest() + { + // TODO unit test for the property 'UseInboxName' + } + /// + /// Test the property 'AddTrackingPixel' + /// + [Fact] + public void AddTrackingPixelTest() + { + // TODO unit test for the property 'AddTrackingPixel' + } + /// + /// Test the property 'FilterBouncedRecipients' + /// + [Fact] + public void FilterBouncedRecipientsTest() + { + // TODO unit test for the property 'FilterBouncedRecipients' + } + /// + /// Test the property 'ValidateEmailAddresses' + /// + [Fact] + public void ValidateEmailAddressesTest() + { + // TODO unit test for the property 'ValidateEmailAddresses' + } + /// + /// Test the property 'IgnoreEmptyRecipients' + /// + [Fact] + public void IgnoreEmptyRecipientsTest() + { + // TODO unit test for the property 'IgnoreEmptyRecipients' + } + /// + /// Test the property 'IsXAmpHtml' + /// + [Fact] + public void IsXAmpHtmlTest() + { + // TODO unit test for the property 'IsXAmpHtml' + } + /// + /// Test the property 'BodyParts' + /// + [Fact] + public void BodyPartsTest() + { + // TODO unit test for the property 'BodyParts' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SendSMTPEnvelopeOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SendSMTPEnvelopeOptionsTests.cs new file mode 100644 index 00000000..2cd761eb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SendSMTPEnvelopeOptionsTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SendSMTPEnvelopeOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SendSMTPEnvelopeOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SendSMTPEnvelopeOptions + //private SendSMTPEnvelopeOptions instance; + + public SendSMTPEnvelopeOptionsTests() + { + // TODO uncomment below to create an instance of SendSMTPEnvelopeOptions + //instance = new SendSMTPEnvelopeOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SendSMTPEnvelopeOptions + /// + [Fact] + public void SendSMTPEnvelopeOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" SendSMTPEnvelopeOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RcptTo' + /// + [Fact] + public void RcptToTest() + { + // TODO unit test for the property 'RcptTo' + } + /// + /// Test the property 'MailFrom' + /// + [Fact] + public void MailFromTest() + { + // TODO unit test for the property 'MailFrom' + } + /// + /// Test the property 'Data' + /// + [Fact] + public void DataTest() + { + // TODO unit test for the property 'Data' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SendWithQueueResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SendWithQueueResultTests.cs new file mode 100644 index 00000000..a65d786d --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SendWithQueueResultTests.cs @@ -0,0 +1,143 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SendWithQueueResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SendWithQueueResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SendWithQueueResult + //private SendWithQueueResult instance; + + public SendWithQueueResultTests() + { + // TODO uncomment below to create an instance of SendWithQueueResult + //instance = new SendWithQueueResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SendWithQueueResult + /// + [Fact] + public void SendWithQueueResultInstanceTest() + { + // TODO uncomment below to test "IsType" SendWithQueueResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'HeaderId' + /// + [Fact] + public void HeaderIdTest() + { + // TODO unit test for the property 'HeaderId' + } + /// + /// Test the property 'Delivered' + /// + [Fact] + public void DeliveredTest() + { + // TODO unit test for the property 'Delivered' + } + /// + /// Test the property 'ExceptionName' + /// + [Fact] + public void ExceptionNameTest() + { + // TODO unit test for the property 'ExceptionName' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SenderTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SenderTests.cs new file mode 100644 index 00000000..d6270b22 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SenderTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing Sender + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SenderTests : IDisposable + { + // TODO uncomment below to declare an instance variable for Sender + //private Sender instance; + + public SenderTests() + { + // TODO uncomment below to create an instance of Sender + //instance = new Sender(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of Sender + /// + [Fact] + public void SenderInstanceTest() + { + // TODO uncomment below to test "IsType" Sender + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RawValue' + /// + [Fact] + public void RawValueTest() + { + // TODO unit test for the property 'RawValue' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SentEmailDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SentEmailDtoTests.cs new file mode 100644 index 00000000..aa77a884 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SentEmailDtoTests.cs @@ -0,0 +1,271 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SentEmailDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SentEmailDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SentEmailDto + //private SentEmailDto instance; + + public SentEmailDtoTests() + { + // TODO uncomment below to create an instance of SentEmailDto + //instance = new SentEmailDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SentEmailDto + /// + [Fact] + public void SentEmailDtoInstanceTest() + { + // TODO uncomment below to test "IsType" SentEmailDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'ReplyTo' + /// + [Fact] + public void ReplyToTest() + { + // TODO unit test for the property 'ReplyTo' + } + /// + /// Test the property 'Cc' + /// + [Fact] + public void CcTest() + { + // TODO unit test for the property 'Cc' + } + /// + /// Test the property 'Bcc' + /// + [Fact] + public void BccTest() + { + // TODO unit test for the property 'Bcc' + } + /// + /// Test the property 'Attachments' + /// + [Fact] + public void AttachmentsTest() + { + // TODO unit test for the property 'Attachments' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'BodyMD5Hash' + /// + [Fact] + public void BodyMD5HashTest() + { + // TODO unit test for the property 'BodyMD5Hash' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'ToContacts' + /// + [Fact] + public void ToContactsTest() + { + // TODO unit test for the property 'ToContacts' + } + /// + /// Test the property 'ToGroup' + /// + [Fact] + public void ToGroupTest() + { + // TODO unit test for the property 'ToGroup' + } + /// + /// Test the property 'Charset' + /// + [Fact] + public void CharsetTest() + { + // TODO unit test for the property 'Charset' + } + /// + /// Test the property 'IsHTML' + /// + [Fact] + public void IsHTMLTest() + { + // TODO unit test for the property 'IsHTML' + } + /// + /// Test the property 'SentAt' + /// + [Fact] + public void SentAtTest() + { + // TODO unit test for the property 'SentAt' + } + /// + /// Test the property 'PixelIds' + /// + [Fact] + public void PixelIdsTest() + { + // TODO unit test for the property 'PixelIds' + } + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'MessageIds' + /// + [Fact] + public void MessageIdsTest() + { + // TODO unit test for the property 'MessageIds' + } + /// + /// Test the property 'VirtualSend' + /// + [Fact] + public void VirtualSendTest() + { + // TODO unit test for the property 'VirtualSend' + } + /// + /// Test the property 'TemplateId' + /// + [Fact] + public void TemplateIdTest() + { + // TODO unit test for the property 'TemplateId' + } + /// + /// Test the property 'TemplateVariables' + /// + [Fact] + public void TemplateVariablesTest() + { + // TODO unit test for the property 'TemplateVariables' + } + /// + /// Test the property 'Headers' + /// + [Fact] + public void HeadersTest() + { + // TODO unit test for the property 'Headers' + } + /// + /// Test the property 'Html' + /// + [Fact] + public void HtmlTest() + { + // TODO unit test for the property 'Html' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SentEmailProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SentEmailProjectionTests.cs new file mode 100644 index 00000000..7db705d8 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SentEmailProjectionTests.cs @@ -0,0 +1,159 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SentEmailProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SentEmailProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SentEmailProjection + //private SentEmailProjection instance; + + public SentEmailProjectionTests() + { + // TODO uncomment below to create an instance of SentEmailProjection + //instance = new SentEmailProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SentEmailProjection + /// + [Fact] + public void SentEmailProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" SentEmailProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'Attachments' + /// + [Fact] + public void AttachmentsTest() + { + // TODO unit test for the property 'Attachments' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'Bcc' + /// + [Fact] + public void BccTest() + { + // TODO unit test for the property 'Bcc' + } + /// + /// Test the property 'Cc' + /// + [Fact] + public void CcTest() + { + // TODO unit test for the property 'Cc' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'BodyMD5Hash' + /// + [Fact] + public void BodyMD5HashTest() + { + // TODO unit test for the property 'BodyMD5Hash' + } + /// + /// Test the property 'VirtualSend' + /// + [Fact] + public void VirtualSendTest() + { + // TODO unit test for the property 'VirtualSend' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SentSmsDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SentSmsDtoTests.cs new file mode 100644 index 00000000..a8bc959f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SentSmsDtoTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SentSmsDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SentSmsDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SentSmsDto + //private SentSmsDto instance; + + public SentSmsDtoTests() + { + // TODO uncomment below to create an instance of SentSmsDto + //instance = new SentSmsDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SentSmsDto + /// + [Fact] + public void SentSmsDtoInstanceTest() + { + // TODO uncomment below to test "IsType" SentSmsDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'PhoneNumber' + /// + [Fact] + public void PhoneNumberTest() + { + // TODO unit test for the property 'PhoneNumber' + } + /// + /// Test the property 'FromNumber' + /// + [Fact] + public void FromNumberTest() + { + // TODO unit test for the property 'FromNumber' + } + /// + /// Test the property 'ToNumber' + /// + [Fact] + public void ToNumberTest() + { + // TODO unit test for the property 'ToNumber' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'Sid' + /// + [Fact] + public void SidTest() + { + // TODO unit test for the property 'Sid' + } + /// + /// Test the property 'ReplyToSid' + /// + [Fact] + public void ReplyToSidTest() + { + // TODO unit test for the property 'ReplyToSid' + } + /// + /// Test the property 'ReplyToId' + /// + [Fact] + public void ReplyToIdTest() + { + // TODO unit test for the property 'ReplyToId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ServerEndpointsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ServerEndpointsTests.cs new file mode 100644 index 00000000..35f8b6af --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ServerEndpointsTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ServerEndpoints + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ServerEndpointsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ServerEndpoints + //private ServerEndpoints instance; + + public ServerEndpointsTests() + { + // TODO uncomment below to create an instance of ServerEndpoints + //instance = new ServerEndpoints(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ServerEndpoints + /// + [Fact] + public void ServerEndpointsInstanceTest() + { + // TODO uncomment below to test "IsType" ServerEndpoints + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Host' + /// + [Fact] + public void HostTest() + { + // TODO unit test for the property 'Host' + } + /// + /// Test the property 'Port' + /// + [Fact] + public void PortTest() + { + // TODO unit test for the property 'Port' + } + /// + /// Test the property 'Tls' + /// + [Fact] + public void TlsTest() + { + // TODO unit test for the property 'Tls' + } + /// + /// Test the property 'AltPorts' + /// + [Fact] + public void AltPortsTest() + { + // TODO unit test for the property 'AltPorts' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SetInboxFavouritedOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SetInboxFavouritedOptionsTests.cs new file mode 100644 index 00000000..59d858a0 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SetInboxFavouritedOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SetInboxFavouritedOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SetInboxFavouritedOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SetInboxFavouritedOptions + //private SetInboxFavouritedOptions instance; + + public SetInboxFavouritedOptionsTests() + { + // TODO uncomment below to create an instance of SetInboxFavouritedOptions + //instance = new SetInboxFavouritedOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SetInboxFavouritedOptions + /// + [Fact] + public void SetInboxFavouritedOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" SetInboxFavouritedOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'State' + /// + [Fact] + public void StateTest() + { + // TODO unit test for the property 'State' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SimpleSendEmailOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SimpleSendEmailOptionsTests.cs new file mode 100644 index 00000000..905648a0 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SimpleSendEmailOptionsTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SimpleSendEmailOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SimpleSendEmailOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SimpleSendEmailOptions + //private SimpleSendEmailOptions instance; + + public SimpleSendEmailOptionsTests() + { + // TODO uncomment below to create an instance of SimpleSendEmailOptions + //instance = new SimpleSendEmailOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SimpleSendEmailOptions + /// + [Fact] + public void SimpleSendEmailOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" SimpleSendEmailOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'SenderId' + /// + [Fact] + public void SenderIdTest() + { + // TODO unit test for the property 'SenderId' + } + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SmsDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SmsDtoTests.cs new file mode 100644 index 00000000..7ae82254 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SmsDtoTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SmsDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SmsDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SmsDto + //private SmsDto instance; + + public SmsDtoTests() + { + // TODO uncomment below to create an instance of SmsDto + //instance = new SmsDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SmsDto + /// + [Fact] + public void SmsDtoInstanceTest() + { + // TODO uncomment below to test "IsType" SmsDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'PhoneNumber' + /// + [Fact] + public void PhoneNumberTest() + { + // TODO unit test for the property 'PhoneNumber' + } + /// + /// Test the property 'FromNumber' + /// + [Fact] + public void FromNumberTest() + { + // TODO unit test for the property 'FromNumber' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'Read' + /// + [Fact] + public void ReadTest() + { + // TODO unit test for the property 'Read' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SmsMatchOptionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SmsMatchOptionTests.cs new file mode 100644 index 00000000..bae9598c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SmsMatchOptionTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SmsMatchOption + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SmsMatchOptionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SmsMatchOption + //private SmsMatchOption instance; + + public SmsMatchOptionTests() + { + // TODO uncomment below to create an instance of SmsMatchOption + //instance = new SmsMatchOption(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SmsMatchOption + /// + [Fact] + public void SmsMatchOptionInstanceTest() + { + // TODO uncomment below to test "IsType" SmsMatchOption + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Field' + /// + [Fact] + public void FieldTest() + { + // TODO unit test for the property 'Field' + } + /// + /// Test the property 'Should' + /// + [Fact] + public void ShouldTest() + { + // TODO unit test for the property 'Should' + } + /// + /// Test the property 'Value' + /// + [Fact] + public void ValueTest() + { + // TODO unit test for the property 'Value' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SmsPreviewTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SmsPreviewTests.cs new file mode 100644 index 00000000..d6fde28d --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SmsPreviewTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SmsPreview + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SmsPreviewTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SmsPreview + //private SmsPreview instance; + + public SmsPreviewTests() + { + // TODO uncomment below to create an instance of SmsPreview + //instance = new SmsPreview(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SmsPreview + /// + [Fact] + public void SmsPreviewInstanceTest() + { + // TODO uncomment below to test "IsType" SmsPreview + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'PhoneNumber' + /// + [Fact] + public void PhoneNumberTest() + { + // TODO unit test for the property 'PhoneNumber' + } + /// + /// Test the property 'FromNumber' + /// + [Fact] + public void FromNumberTest() + { + // TODO unit test for the property 'FromNumber' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SmsProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SmsProjectionTests.cs new file mode 100644 index 00000000..510ce61c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SmsProjectionTests.cs @@ -0,0 +1,119 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SmsProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SmsProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SmsProjection + //private SmsProjection instance; + + public SmsProjectionTests() + { + // TODO uncomment below to create an instance of SmsProjection + //instance = new SmsProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SmsProjection + /// + [Fact] + public void SmsProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" SmsProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'PhoneNumber' + /// + [Fact] + public void PhoneNumberTest() + { + // TODO unit test for the property 'PhoneNumber' + } + /// + /// Test the property 'FromNumber' + /// + [Fact] + public void FromNumberTest() + { + // TODO unit test for the property 'FromNumber' + } + /// + /// Test the property 'Read' + /// + [Fact] + public void ReadTest() + { + // TODO unit test for the property 'Read' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SmsReplyOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SmsReplyOptionsTests.cs new file mode 100644 index 00000000..74e81d1f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SmsReplyOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SmsReplyOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SmsReplyOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SmsReplyOptions + //private SmsReplyOptions instance; + + public SmsReplyOptionsTests() + { + // TODO uncomment below to create an instance of SmsReplyOptions + //instance = new SmsReplyOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SmsReplyOptions + /// + [Fact] + public void SmsReplyOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" SmsReplyOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SmtpAccessDetailsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SmtpAccessDetailsTests.cs new file mode 100644 index 00000000..eecbb763 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SmtpAccessDetailsTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SmtpAccessDetails + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SmtpAccessDetailsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SmtpAccessDetails + //private SmtpAccessDetails instance; + + public SmtpAccessDetailsTests() + { + // TODO uncomment below to create an instance of SmtpAccessDetails + //instance = new SmtpAccessDetails(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SmtpAccessDetails + /// + [Fact] + public void SmtpAccessDetailsInstanceTest() + { + // TODO uncomment below to test "IsType" SmtpAccessDetails + //Assert.IsType(instance); + } + + + /// + /// Test the property 'SecureSmtpServerHost' + /// + [Fact] + public void SecureSmtpServerHostTest() + { + // TODO unit test for the property 'SecureSmtpServerHost' + } + /// + /// Test the property 'SecureSmtpServerPort' + /// + [Fact] + public void SecureSmtpServerPortTest() + { + // TODO unit test for the property 'SecureSmtpServerPort' + } + /// + /// Test the property 'SecureSmtpUsername' + /// + [Fact] + public void SecureSmtpUsernameTest() + { + // TODO unit test for the property 'SecureSmtpUsername' + } + /// + /// Test the property 'SecureSmtpPassword' + /// + [Fact] + public void SecureSmtpPasswordTest() + { + // TODO unit test for the property 'SecureSmtpPassword' + } + /// + /// Test the property 'SmtpServerHost' + /// + [Fact] + public void SmtpServerHostTest() + { + // TODO unit test for the property 'SmtpServerHost' + } + /// + /// Test the property 'SmtpServerPort' + /// + [Fact] + public void SmtpServerPortTest() + { + // TODO unit test for the property 'SmtpServerPort' + } + /// + /// Test the property 'SmtpUsername' + /// + [Fact] + public void SmtpUsernameTest() + { + // TODO unit test for the property 'SmtpUsername' + } + /// + /// Test the property 'SmtpPassword' + /// + [Fact] + public void SmtpPasswordTest() + { + // TODO unit test for the property 'SmtpPassword' + } + /// + /// Test the property 'MailFromDomain' + /// + [Fact] + public void MailFromDomainTest() + { + // TODO unit test for the property 'MailFromDomain' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SortObjectTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SortObjectTests.cs new file mode 100644 index 00000000..32b2dc37 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SortObjectTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SortObject + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SortObjectTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SortObject + //private SortObject instance; + + public SortObjectTests() + { + // TODO uncomment below to create an instance of SortObject + //instance = new SortObject(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SortObject + /// + [Fact] + public void SortObjectInstanceTest() + { + // TODO uncomment below to test "IsType" SortObject + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Sorted' + /// + [Fact] + public void SortedTest() + { + // TODO unit test for the property 'Sorted' + } + /// + /// Test the property 'Unsorted' + /// + [Fact] + public void UnsortedTest() + { + // TODO unit test for the property 'Unsorted' + } + /// + /// Test the property 'Empty' + /// + [Fact] + public void EmptyTest() + { + // TODO unit test for the property 'Empty' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/SpellingIssueTests.cs b/src/mailslurp_netstandard_2x.Test/Model/SpellingIssueTests.cs new file mode 100644 index 00000000..46519d6c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/SpellingIssueTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing SpellingIssue + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SpellingIssueTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SpellingIssue + //private SpellingIssue instance; + + public SpellingIssueTests() + { + // TODO uncomment below to create an instance of SpellingIssue + //instance = new SpellingIssue(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SpellingIssue + /// + [Fact] + public void SpellingIssueInstanceTest() + { + // TODO uncomment below to test "IsType" SpellingIssue + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Group' + /// + [Fact] + public void GroupTest() + { + // TODO unit test for the property 'Group' + } + /// + /// Test the property 'Suggestion' + /// + [Fact] + public void SuggestionTest() + { + // TODO unit test for the property 'Suggestion' + } + /// + /// Test the property 'Severity' + /// + [Fact] + public void SeverityTest() + { + // TODO unit test for the property 'Severity' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TemplateDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TemplateDtoTests.cs new file mode 100644 index 00000000..e0ea7c0b --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TemplateDtoTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TemplateDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TemplateDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TemplateDto + //private TemplateDto instance; + + public TemplateDtoTests() + { + // TODO uncomment below to create an instance of TemplateDto + //instance = new TemplateDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TemplateDto + /// + [Fact] + public void TemplateDtoInstanceTest() + { + // TODO uncomment below to test "IsType" TemplateDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Variables' + /// + [Fact] + public void VariablesTest() + { + // TODO unit test for the property 'Variables' + } + /// + /// Test the property 'Content' + /// + [Fact] + public void ContentTest() + { + // TODO unit test for the property 'Content' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TemplatePreviewTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TemplatePreviewTests.cs new file mode 100644 index 00000000..2b64191d --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TemplatePreviewTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TemplatePreview + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TemplatePreviewTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TemplatePreview + //private TemplatePreview instance; + + public TemplatePreviewTests() + { + // TODO uncomment below to create an instance of TemplatePreview + //instance = new TemplatePreview(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TemplatePreview + /// + [Fact] + public void TemplatePreviewInstanceTest() + { + // TODO uncomment below to test "IsType" TemplatePreview + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Preview' + /// + [Fact] + public void PreviewTest() + { + // TODO unit test for the property 'Preview' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TemplateProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TemplateProjectionTests.cs new file mode 100644 index 00000000..f3cda877 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TemplateProjectionTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TemplateProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TemplateProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TemplateProjection + //private TemplateProjection instance; + + public TemplateProjectionTests() + { + // TODO uncomment below to create an instance of TemplateProjection + //instance = new TemplateProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TemplateProjection + /// + [Fact] + public void TemplateProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" TemplateProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Variables' + /// + [Fact] + public void VariablesTest() + { + // TODO unit test for the property 'Variables' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TemplateVariableTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TemplateVariableTests.cs new file mode 100644 index 00000000..c3082b85 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TemplateVariableTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TemplateVariable + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TemplateVariableTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TemplateVariable + //private TemplateVariable instance; + + public TemplateVariableTests() + { + // TODO uncomment below to create an instance of TemplateVariable + //instance = new TemplateVariable(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TemplateVariable + /// + [Fact] + public void TemplateVariableInstanceTest() + { + // TODO uncomment below to test "IsType" TemplateVariable + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'VariableType' + /// + [Fact] + public void VariableTypeTest() + { + // TODO unit test for the property 'VariableType' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetReceivingOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetReceivingOptionsTests.cs new file mode 100644 index 00000000..0c34414e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetReceivingOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TestInboxRulesetReceivingOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TestInboxRulesetReceivingOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TestInboxRulesetReceivingOptions + //private TestInboxRulesetReceivingOptions instance; + + public TestInboxRulesetReceivingOptionsTests() + { + // TODO uncomment below to create an instance of TestInboxRulesetReceivingOptions + //instance = new TestInboxRulesetReceivingOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TestInboxRulesetReceivingOptions + /// + [Fact] + public void TestInboxRulesetReceivingOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" TestInboxRulesetReceivingOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'FromSender' + /// + [Fact] + public void FromSenderTest() + { + // TODO unit test for the property 'FromSender' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetReceivingResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetReceivingResultTests.cs new file mode 100644 index 00000000..2df33045 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetReceivingResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TestInboxRulesetReceivingResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TestInboxRulesetReceivingResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TestInboxRulesetReceivingResult + //private TestInboxRulesetReceivingResult instance; + + public TestInboxRulesetReceivingResultTests() + { + // TODO uncomment below to create an instance of TestInboxRulesetReceivingResult + //instance = new TestInboxRulesetReceivingResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TestInboxRulesetReceivingResult + /// + [Fact] + public void TestInboxRulesetReceivingResultInstanceTest() + { + // TODO uncomment below to test "IsType" TestInboxRulesetReceivingResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'CanReceive' + /// + [Fact] + public void CanReceiveTest() + { + // TODO unit test for the property 'CanReceive' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetSendingOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetSendingOptionsTests.cs new file mode 100644 index 00000000..aaf9160a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetSendingOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TestInboxRulesetSendingOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TestInboxRulesetSendingOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TestInboxRulesetSendingOptions + //private TestInboxRulesetSendingOptions instance; + + public TestInboxRulesetSendingOptionsTests() + { + // TODO uncomment below to create an instance of TestInboxRulesetSendingOptions + //instance = new TestInboxRulesetSendingOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TestInboxRulesetSendingOptions + /// + [Fact] + public void TestInboxRulesetSendingOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" TestInboxRulesetSendingOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'Recipient' + /// + [Fact] + public void RecipientTest() + { + // TODO unit test for the property 'Recipient' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetSendingResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetSendingResultTests.cs new file mode 100644 index 00000000..9bb967cd --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TestInboxRulesetSendingResultTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TestInboxRulesetSendingResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TestInboxRulesetSendingResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TestInboxRulesetSendingResult + //private TestInboxRulesetSendingResult instance; + + public TestInboxRulesetSendingResultTests() + { + // TODO uncomment below to create an instance of TestInboxRulesetSendingResult + //instance = new TestInboxRulesetSendingResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TestInboxRulesetSendingResult + /// + [Fact] + public void TestInboxRulesetSendingResultInstanceTest() + { + // TODO uncomment below to test "IsType" TestInboxRulesetSendingResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'CanSend' + /// + [Fact] + public void CanSendTest() + { + // TODO unit test for the property 'CanSend' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TestNewInboxForwarderOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TestNewInboxForwarderOptionsTests.cs new file mode 100644 index 00000000..61210fa5 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TestNewInboxForwarderOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TestNewInboxForwarderOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TestNewInboxForwarderOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TestNewInboxForwarderOptions + //private TestNewInboxForwarderOptions instance; + + public TestNewInboxForwarderOptionsTests() + { + // TODO uncomment below to create an instance of TestNewInboxForwarderOptions + //instance = new TestNewInboxForwarderOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TestNewInboxForwarderOptions + /// + [Fact] + public void TestNewInboxForwarderOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" TestNewInboxForwarderOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxForwarderTestOptions' + /// + [Fact] + public void InboxForwarderTestOptionsTest() + { + // TODO unit test for the property 'InboxForwarderTestOptions' + } + /// + /// Test the property 'CreateInboxForwarderOptions' + /// + [Fact] + public void CreateInboxForwarderOptionsTest() + { + // TODO unit test for the property 'CreateInboxForwarderOptions' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TestNewInboxRulesetOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TestNewInboxRulesetOptionsTests.cs new file mode 100644 index 00000000..d5d3938b --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TestNewInboxRulesetOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TestNewInboxRulesetOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TestNewInboxRulesetOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TestNewInboxRulesetOptions + //private TestNewInboxRulesetOptions instance; + + public TestNewInboxRulesetOptionsTests() + { + // TODO uncomment below to create an instance of TestNewInboxRulesetOptions + //instance = new TestNewInboxRulesetOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TestNewInboxRulesetOptions + /// + [Fact] + public void TestNewInboxRulesetOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" TestNewInboxRulesetOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxRulesetTestOptions' + /// + [Fact] + public void InboxRulesetTestOptionsTest() + { + // TODO unit test for the property 'InboxRulesetTestOptions' + } + /// + /// Test the property 'CreateInboxRulesetOptions' + /// + [Fact] + public void CreateInboxRulesetOptionsTest() + { + // TODO unit test for the property 'CreateInboxRulesetOptions' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TestPhoneNumberOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TestPhoneNumberOptionsTests.cs new file mode 100644 index 00000000..ada20598 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TestPhoneNumberOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TestPhoneNumberOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TestPhoneNumberOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TestPhoneNumberOptions + //private TestPhoneNumberOptions instance; + + public TestPhoneNumberOptionsTests() + { + // TODO uncomment below to create an instance of TestPhoneNumberOptions + //instance = new TestPhoneNumberOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TestPhoneNumberOptions + /// + [Fact] + public void TestPhoneNumberOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" TestPhoneNumberOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ThreadProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ThreadProjectionTests.cs new file mode 100644 index 00000000..bee2e45c --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ThreadProjectionTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ThreadProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ThreadProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ThreadProjection + //private ThreadProjection instance; + + public ThreadProjectionTests() + { + // TODO uncomment below to create an instance of ThreadProjection + //instance = new ThreadProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ThreadProjection + /// + [Fact] + public void ThreadProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" ThreadProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'Bcc' + /// + [Fact] + public void BccTest() + { + // TODO unit test for the property 'Bcc' + } + /// + /// Test the property 'Cc' + /// + [Fact] + public void CcTest() + { + // TODO unit test for the property 'Cc' + } + /// + /// Test the property 'AliasId' + /// + [Fact] + public void AliasIdTest() + { + // TODO unit test for the property 'AliasId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TrackingPixelDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TrackingPixelDtoTests.cs new file mode 100644 index 00000000..667b702f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TrackingPixelDtoTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TrackingPixelDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TrackingPixelDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TrackingPixelDto + //private TrackingPixelDto instance; + + public TrackingPixelDtoTests() + { + // TODO uncomment below to create an instance of TrackingPixelDto + //instance = new TrackingPixelDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TrackingPixelDto + /// + [Fact] + public void TrackingPixelDtoInstanceTest() + { + // TODO uncomment below to test "IsType" TrackingPixelDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Seen' + /// + [Fact] + public void SeenTest() + { + // TODO unit test for the property 'Seen' + } + /// + /// Test the property 'Recipient' + /// + [Fact] + public void RecipientTest() + { + // TODO unit test for the property 'Recipient' + } + /// + /// Test the property 'Html' + /// + [Fact] + public void HtmlTest() + { + // TODO unit test for the property 'Html' + } + /// + /// Test the property 'Url' + /// + [Fact] + public void UrlTest() + { + // TODO unit test for the property 'Url' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'SentEmailId' + /// + [Fact] + public void SentEmailIdTest() + { + // TODO unit test for the property 'SentEmailId' + } + /// + /// Test the property 'SeenAt' + /// + [Fact] + public void SeenAtTest() + { + // TODO unit test for the property 'SeenAt' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/TrackingPixelProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/TrackingPixelProjectionTests.cs new file mode 100644 index 00000000..820f8c46 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/TrackingPixelProjectionTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing TrackingPixelProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class TrackingPixelProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TrackingPixelProjection + //private TrackingPixelProjection instance; + + public TrackingPixelProjectionTests() + { + // TODO uncomment below to create an instance of TrackingPixelProjection + //instance = new TrackingPixelProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TrackingPixelProjection + /// + [Fact] + public void TrackingPixelProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" TrackingPixelProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'SentEmailId' + /// + [Fact] + public void SentEmailIdTest() + { + // TODO unit test for the property 'SentEmailId' + } + /// + /// Test the property 'Recipient' + /// + [Fact] + public void RecipientTest() + { + // TODO unit test for the property 'Recipient' + } + /// + /// Test the property 'Seen' + /// + [Fact] + public void SeenTest() + { + // TODO unit test for the property 'Seen' + } + /// + /// Test the property 'SeenAt' + /// + [Fact] + public void SeenAtTest() + { + // TODO unit test for the property 'SeenAt' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UnknownMissedEmailProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UnknownMissedEmailProjectionTests.cs new file mode 100644 index 00000000..cdaa0960 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UnknownMissedEmailProjectionTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UnknownMissedEmailProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UnknownMissedEmailProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UnknownMissedEmailProjection + //private UnknownMissedEmailProjection instance; + + public UnknownMissedEmailProjectionTests() + { + // TODO uncomment below to create an instance of UnknownMissedEmailProjection + //instance = new UnknownMissedEmailProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UnknownMissedEmailProjection + /// + [Fact] + public void UnknownMissedEmailProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" UnknownMissedEmailProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UnreadCountTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UnreadCountTests.cs new file mode 100644 index 00000000..a20f4094 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UnreadCountTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UnreadCount + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UnreadCountTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UnreadCount + //private UnreadCount instance; + + public UnreadCountTests() + { + // TODO uncomment below to create an instance of UnreadCount + //instance = new UnreadCount(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UnreadCount + /// + [Fact] + public void UnreadCountInstanceTest() + { + // TODO uncomment below to test "IsType" UnreadCount + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Count' + /// + [Fact] + public void CountTest() + { + // TODO unit test for the property 'Count' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UnseenErrorCountDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UnseenErrorCountDtoTests.cs new file mode 100644 index 00000000..c69bec62 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UnseenErrorCountDtoTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UnseenErrorCountDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UnseenErrorCountDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UnseenErrorCountDto + //private UnseenErrorCountDto instance; + + public UnseenErrorCountDtoTests() + { + // TODO uncomment below to create an instance of UnseenErrorCountDto + //instance = new UnseenErrorCountDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UnseenErrorCountDto + /// + [Fact] + public void UnseenErrorCountDtoInstanceTest() + { + // TODO uncomment below to test "IsType" UnseenErrorCountDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Count' + /// + [Fact] + public void CountTest() + { + // TODO unit test for the property 'Count' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UpdateAliasOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UpdateAliasOptionsTests.cs new file mode 100644 index 00000000..7feff336 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UpdateAliasOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UpdateAliasOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UpdateAliasOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UpdateAliasOptions + //private UpdateAliasOptions instance; + + public UpdateAliasOptionsTests() + { + // TODO uncomment below to create an instance of UpdateAliasOptions + //instance = new UpdateAliasOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UpdateAliasOptions + /// + [Fact] + public void UpdateAliasOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" UpdateAliasOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UpdateDomainOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UpdateDomainOptionsTests.cs new file mode 100644 index 00000000..9b2d0a18 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UpdateDomainOptionsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UpdateDomainOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UpdateDomainOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UpdateDomainOptions + //private UpdateDomainOptions instance; + + public UpdateDomainOptionsTests() + { + // TODO uncomment below to create an instance of UpdateDomainOptions + //instance = new UpdateDomainOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UpdateDomainOptions + /// + [Fact] + public void UpdateDomainOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" UpdateDomainOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'CatchAllInboxId' + /// + [Fact] + public void CatchAllInboxIdTest() + { + // TODO unit test for the property 'CatchAllInboxId' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UpdateGroupContactsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UpdateGroupContactsTests.cs new file mode 100644 index 00000000..3ca5c88a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UpdateGroupContactsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UpdateGroupContacts + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UpdateGroupContactsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UpdateGroupContacts + //private UpdateGroupContacts instance; + + public UpdateGroupContactsTests() + { + // TODO uncomment below to create an instance of UpdateGroupContacts + //instance = new UpdateGroupContacts(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UpdateGroupContacts + /// + [Fact] + public void UpdateGroupContactsInstanceTest() + { + // TODO uncomment below to test "IsType" UpdateGroupContacts + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ContactIds' + /// + [Fact] + public void ContactIdsTest() + { + // TODO unit test for the property 'ContactIds' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UpdateImapAccessOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UpdateImapAccessOptionsTests.cs new file mode 100644 index 00000000..6e3a483b --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UpdateImapAccessOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UpdateImapAccessOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UpdateImapAccessOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UpdateImapAccessOptions + //private UpdateImapAccessOptions instance; + + public UpdateImapAccessOptionsTests() + { + // TODO uncomment below to create an instance of UpdateImapAccessOptions + //instance = new UpdateImapAccessOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UpdateImapAccessOptions + /// + [Fact] + public void UpdateImapAccessOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" UpdateImapAccessOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ImapUsername' + /// + [Fact] + public void ImapUsernameTest() + { + // TODO unit test for the property 'ImapUsername' + } + /// + /// Test the property 'ImapPassword' + /// + [Fact] + public void ImapPasswordTest() + { + // TODO unit test for the property 'ImapPassword' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UpdateInboxOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UpdateInboxOptionsTests.cs new file mode 100644 index 00000000..fc4ff965 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UpdateInboxOptionsTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UpdateInboxOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UpdateInboxOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UpdateInboxOptions + //private UpdateInboxOptions instance; + + public UpdateInboxOptionsTests() + { + // TODO uncomment below to create an instance of UpdateInboxOptions + //instance = new UpdateInboxOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UpdateInboxOptions + /// + [Fact] + public void UpdateInboxOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" UpdateInboxOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Description' + /// + [Fact] + public void DescriptionTest() + { + // TODO unit test for the property 'Description' + } + /// + /// Test the property 'Tags' + /// + [Fact] + public void TagsTest() + { + // TODO unit test for the property 'Tags' + } + /// + /// Test the property 'ExpiresAt' + /// + [Fact] + public void ExpiresAtTest() + { + // TODO unit test for the property 'ExpiresAt' + } + /// + /// Test the property 'Favourite' + /// + [Fact] + public void FavouriteTest() + { + // TODO unit test for the property 'Favourite' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UpdateInboxReplierOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UpdateInboxReplierOptionsTests.cs new file mode 100644 index 00000000..cc80ab98 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UpdateInboxReplierOptionsTests.cs @@ -0,0 +1,167 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UpdateInboxReplierOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UpdateInboxReplierOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UpdateInboxReplierOptions + //private UpdateInboxReplierOptions instance; + + public UpdateInboxReplierOptionsTests() + { + // TODO uncomment below to create an instance of UpdateInboxReplierOptions + //instance = new UpdateInboxReplierOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UpdateInboxReplierOptions + /// + [Fact] + public void UpdateInboxReplierOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" UpdateInboxReplierOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Field' + /// + [Fact] + public void FieldTest() + { + // TODO unit test for the property 'Field' + } + /// + /// Test the property 'Match' + /// + [Fact] + public void MatchTest() + { + // TODO unit test for the property 'Match' + } + /// + /// Test the property 'ReplyTo' + /// + [Fact] + public void ReplyToTest() + { + // TODO unit test for the property 'ReplyTo' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'Charset' + /// + [Fact] + public void CharsetTest() + { + // TODO unit test for the property 'Charset' + } + /// + /// Test the property 'IsHTML' + /// + [Fact] + public void IsHTMLTest() + { + // TODO unit test for the property 'IsHTML' + } + /// + /// Test the property 'IgnoreReplyTo' + /// + [Fact] + public void IgnoreReplyToTest() + { + // TODO unit test for the property 'IgnoreReplyTo' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'TemplateId' + /// + [Fact] + public void TemplateIdTest() + { + // TODO unit test for the property 'TemplateId' + } + /// + /// Test the property 'TemplateVariables' + /// + [Fact] + public void TemplateVariablesTest() + { + // TODO unit test for the property 'TemplateVariables' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UpdateSmtpAccessOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UpdateSmtpAccessOptionsTests.cs new file mode 100644 index 00000000..81758add --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UpdateSmtpAccessOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UpdateSmtpAccessOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UpdateSmtpAccessOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UpdateSmtpAccessOptions + //private UpdateSmtpAccessOptions instance; + + public UpdateSmtpAccessOptionsTests() + { + // TODO uncomment below to create an instance of UpdateSmtpAccessOptions + //instance = new UpdateSmtpAccessOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UpdateSmtpAccessOptions + /// + [Fact] + public void UpdateSmtpAccessOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" UpdateSmtpAccessOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'SmtpUsername' + /// + [Fact] + public void SmtpUsernameTest() + { + // TODO unit test for the property 'SmtpUsername' + } + /// + /// Test the property 'SmtpPassword' + /// + [Fact] + public void SmtpPasswordTest() + { + // TODO unit test for the property 'SmtpPassword' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UploadAttachmentOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UploadAttachmentOptionsTests.cs new file mode 100644 index 00000000..e3951f8e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UploadAttachmentOptionsTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UploadAttachmentOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UploadAttachmentOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UploadAttachmentOptions + //private UploadAttachmentOptions instance; + + public UploadAttachmentOptionsTests() + { + // TODO uncomment below to create an instance of UploadAttachmentOptions + //instance = new UploadAttachmentOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UploadAttachmentOptions + /// + [Fact] + public void UploadAttachmentOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" UploadAttachmentOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ContentId' + /// + [Fact] + public void ContentIdTest() + { + // TODO unit test for the property 'ContentId' + } + /// + /// Test the property 'ContentType' + /// + [Fact] + public void ContentTypeTest() + { + // TODO unit test for the property 'ContentType' + } + /// + /// Test the property 'Filename' + /// + [Fact] + public void FilenameTest() + { + // TODO unit test for the property 'Filename' + } + /// + /// Test the property 'Base64Contents' + /// + [Fact] + public void Base64ContentsTest() + { + // TODO unit test for the property 'Base64Contents' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UploadMultipartFormRequestTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UploadMultipartFormRequestTests.cs new file mode 100644 index 00000000..d71f07c1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UploadMultipartFormRequestTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UploadMultipartFormRequest + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UploadMultipartFormRequestTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UploadMultipartFormRequest + //private UploadMultipartFormRequest instance; + + public UploadMultipartFormRequestTests() + { + // TODO uncomment below to create an instance of UploadMultipartFormRequest + //instance = new UploadMultipartFormRequest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UploadMultipartFormRequest + /// + [Fact] + public void UploadMultipartFormRequestInstanceTest() + { + // TODO uncomment below to test "IsType" UploadMultipartFormRequest + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ContentTypeHeader' + /// + [Fact] + public void ContentTypeHeaderTest() + { + // TODO unit test for the property 'ContentTypeHeader' + } + /// + /// Test the property 'File' + /// + [Fact] + public void FileTest() + { + // TODO unit test for the property 'File' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/UserInfoDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/UserInfoDtoTests.cs new file mode 100644 index 00000000..f471718f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/UserInfoDtoTests.cs @@ -0,0 +1,111 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing UserInfoDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class UserInfoDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UserInfoDto + //private UserInfoDto instance; + + public UserInfoDtoTests() + { + // TODO uncomment below to create an instance of UserInfoDto + //instance = new UserInfoDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UserInfoDto + /// + [Fact] + public void UserInfoDtoInstanceTest() + { + // TODO uncomment below to test "IsType" UserInfoDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'AccountState' + /// + [Fact] + public void AccountStateTest() + { + // TODO unit test for the property 'AccountState' + } + /// + /// Test the property 'SubscriptionType' + /// + [Fact] + public void SubscriptionTypeTest() + { + // TODO unit test for the property 'SubscriptionType' + } + /// + /// Test the property 'AccountType' + /// + [Fact] + public void AccountTypeTest() + { + // TODO unit test for the property 'AccountType' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ValidateEmailAddressListOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ValidateEmailAddressListOptionsTests.cs new file mode 100644 index 00000000..f5c47c7a --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ValidateEmailAddressListOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ValidateEmailAddressListOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ValidateEmailAddressListOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ValidateEmailAddressListOptions + //private ValidateEmailAddressListOptions instance; + + public ValidateEmailAddressListOptionsTests() + { + // TODO uncomment below to create an instance of ValidateEmailAddressListOptions + //instance = new ValidateEmailAddressListOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ValidateEmailAddressListOptions + /// + [Fact] + public void ValidateEmailAddressListOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ValidateEmailAddressListOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailAddressList' + /// + [Fact] + public void EmailAddressListTest() + { + // TODO unit test for the property 'EmailAddressList' + } + /// + /// Test the property 'IgnoreOldResults' + /// + [Fact] + public void IgnoreOldResultsTest() + { + // TODO unit test for the property 'IgnoreOldResults' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ValidateEmailAddressListResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ValidateEmailAddressListResultTests.cs new file mode 100644 index 00000000..46948f34 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ValidateEmailAddressListResultTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ValidateEmailAddressListResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ValidateEmailAddressListResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ValidateEmailAddressListResult + //private ValidateEmailAddressListResult instance; + + public ValidateEmailAddressListResultTests() + { + // TODO uncomment below to create an instance of ValidateEmailAddressListResult + //instance = new ValidateEmailAddressListResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ValidateEmailAddressListResult + /// + [Fact] + public void ValidateEmailAddressListResultInstanceTest() + { + // TODO uncomment below to test "IsType" ValidateEmailAddressListResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ValidEmailAddresses' + /// + [Fact] + public void ValidEmailAddressesTest() + { + // TODO unit test for the property 'ValidEmailAddresses' + } + /// + /// Test the property 'InvalidEmailAddresses' + /// + [Fact] + public void InvalidEmailAddressesTest() + { + // TODO unit test for the property 'InvalidEmailAddresses' + } + /// + /// Test the property 'ResultMapEmailAddressIsValid' + /// + [Fact] + public void ResultMapEmailAddressIsValidTest() + { + // TODO unit test for the property 'ResultMapEmailAddressIsValid' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ValidationDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ValidationDtoTests.cs new file mode 100644 index 00000000..d8b8a00f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ValidationDtoTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ValidationDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ValidationDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ValidationDto + //private ValidationDto instance; + + public ValidationDtoTests() + { + // TODO uncomment below to create an instance of ValidationDto + //instance = new ValidationDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ValidationDto + /// + [Fact] + public void ValidationDtoInstanceTest() + { + // TODO uncomment below to test "IsType" ValidationDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'EmailId' + /// + [Fact] + public void EmailIdTest() + { + // TODO unit test for the property 'EmailId' + } + /// + /// Test the property 'Html' + /// + [Fact] + public void HtmlTest() + { + // TODO unit test for the property 'Html' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/ValidationMessageTests.cs b/src/mailslurp_netstandard_2x.Test/Model/ValidationMessageTests.cs new file mode 100644 index 00000000..e5032021 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/ValidationMessageTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing ValidationMessage + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ValidationMessageTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ValidationMessage + //private ValidationMessage instance; + + public ValidationMessageTests() + { + // TODO uncomment below to create an instance of ValidationMessage + //instance = new ValidationMessage(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ValidationMessage + /// + [Fact] + public void ValidationMessageInstanceTest() + { + // TODO uncomment below to test "IsType" ValidationMessage + //Assert.IsType(instance); + } + + + /// + /// Test the property 'LineNumber' + /// + [Fact] + public void LineNumberTest() + { + // TODO unit test for the property 'LineNumber' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/VerifyEmailAddressOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/VerifyEmailAddressOptionsTests.cs new file mode 100644 index 00000000..85a04926 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/VerifyEmailAddressOptionsTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing VerifyEmailAddressOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class VerifyEmailAddressOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for VerifyEmailAddressOptions + //private VerifyEmailAddressOptions instance; + + public VerifyEmailAddressOptionsTests() + { + // TODO uncomment below to create an instance of VerifyEmailAddressOptions + //instance = new VerifyEmailAddressOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of VerifyEmailAddressOptions + /// + [Fact] + public void VerifyEmailAddressOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" VerifyEmailAddressOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MailServerDomain' + /// + [Fact] + public void MailServerDomainTest() + { + // TODO unit test for the property 'MailServerDomain' + } + /// + /// Test the property 'EmailAddress' + /// + [Fact] + public void EmailAddressTest() + { + // TODO unit test for the property 'EmailAddress' + } + /// + /// Test the property 'SenderEmailAddress' + /// + [Fact] + public void SenderEmailAddressTest() + { + // TODO unit test for the property 'SenderEmailAddress' + } + /// + /// Test the property 'Port' + /// + [Fact] + public void PortTest() + { + // TODO unit test for the property 'Port' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/VerifyWebhookSignatureOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/VerifyWebhookSignatureOptionsTests.cs new file mode 100644 index 00000000..0b692f17 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/VerifyWebhookSignatureOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing VerifyWebhookSignatureOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class VerifyWebhookSignatureOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for VerifyWebhookSignatureOptions + //private VerifyWebhookSignatureOptions instance; + + public VerifyWebhookSignatureOptionsTests() + { + // TODO uncomment below to create an instance of VerifyWebhookSignatureOptions + //instance = new VerifyWebhookSignatureOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of VerifyWebhookSignatureOptions + /// + [Fact] + public void VerifyWebhookSignatureOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" VerifyWebhookSignatureOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'Signature' + /// + [Fact] + public void SignatureTest() + { + // TODO unit test for the property 'Signature' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/VerifyWebhookSignatureResultsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/VerifyWebhookSignatureResultsTests.cs new file mode 100644 index 00000000..6fc06e9e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/VerifyWebhookSignatureResultsTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing VerifyWebhookSignatureResults + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class VerifyWebhookSignatureResultsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for VerifyWebhookSignatureResults + //private VerifyWebhookSignatureResults instance; + + public VerifyWebhookSignatureResultsTests() + { + // TODO uncomment below to create an instance of VerifyWebhookSignatureResults + //instance = new VerifyWebhookSignatureResults(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of VerifyWebhookSignatureResults + /// + [Fact] + public void VerifyWebhookSignatureResultsInstanceTest() + { + // TODO uncomment below to test "IsType" VerifyWebhookSignatureResults + //Assert.IsType(instance); + } + + + /// + /// Test the property 'IsValid' + /// + [Fact] + public void IsValidTest() + { + // TODO unit test for the property 'IsValid' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WaitForConditionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WaitForConditionsTests.cs new file mode 100644 index 00000000..6da8ea97 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WaitForConditionsTests.cs @@ -0,0 +1,143 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WaitForConditions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WaitForConditionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WaitForConditions + //private WaitForConditions instance; + + public WaitForConditionsTests() + { + // TODO uncomment below to create an instance of WaitForConditions + //instance = new WaitForConditions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WaitForConditions + /// + [Fact] + public void WaitForConditionsInstanceTest() + { + // TODO uncomment below to test "IsType" WaitForConditions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'Count' + /// + [Fact] + public void CountTest() + { + // TODO unit test for the property 'Count' + } + /// + /// Test the property 'DelayTimeout' + /// + [Fact] + public void DelayTimeoutTest() + { + // TODO unit test for the property 'DelayTimeout' + } + /// + /// Test the property 'Timeout' + /// + [Fact] + public void TimeoutTest() + { + // TODO unit test for the property 'Timeout' + } + /// + /// Test the property 'UnreadOnly' + /// + [Fact] + public void UnreadOnlyTest() + { + // TODO unit test for the property 'UnreadOnly' + } + /// + /// Test the property 'CountType' + /// + [Fact] + public void CountTypeTest() + { + // TODO unit test for the property 'CountType' + } + /// + /// Test the property 'Matches' + /// + [Fact] + public void MatchesTest() + { + // TODO unit test for the property 'Matches' + } + /// + /// Test the property 'SortDirection' + /// + [Fact] + public void SortDirectionTest() + { + // TODO unit test for the property 'SortDirection' + } + /// + /// Test the property 'Since' + /// + [Fact] + public void SinceTest() + { + // TODO unit test for the property 'Since' + } + /// + /// Test the property 'Before' + /// + [Fact] + public void BeforeTest() + { + // TODO unit test for the property 'Before' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WaitForSingleSmsOptionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WaitForSingleSmsOptionsTests.cs new file mode 100644 index 00000000..9e487626 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WaitForSingleSmsOptionsTests.cs @@ -0,0 +1,119 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WaitForSingleSmsOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WaitForSingleSmsOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WaitForSingleSmsOptions + //private WaitForSingleSmsOptions instance; + + public WaitForSingleSmsOptionsTests() + { + // TODO uncomment below to create an instance of WaitForSingleSmsOptions + //instance = new WaitForSingleSmsOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WaitForSingleSmsOptions + /// + [Fact] + public void WaitForSingleSmsOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" WaitForSingleSmsOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'PhoneNumberId' + /// + [Fact] + public void PhoneNumberIdTest() + { + // TODO unit test for the property 'PhoneNumberId' + } + /// + /// Test the property 'Timeout' + /// + [Fact] + public void TimeoutTest() + { + // TODO unit test for the property 'Timeout' + } + /// + /// Test the property 'UnreadOnly' + /// + [Fact] + public void UnreadOnlyTest() + { + // TODO unit test for the property 'UnreadOnly' + } + /// + /// Test the property 'Before' + /// + [Fact] + public void BeforeTest() + { + // TODO unit test for the property 'Before' + } + /// + /// Test the property 'Since' + /// + [Fact] + public void SinceTest() + { + // TODO unit test for the property 'Since' + } + /// + /// Test the property 'SortDirection' + /// + [Fact] + public void SortDirectionTest() + { + // TODO unit test for the property 'SortDirection' + } + /// + /// Test the property 'Delay' + /// + [Fact] + public void DelayTest() + { + // TODO unit test for the property 'Delay' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WaitForSmsConditionsTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WaitForSmsConditionsTests.cs new file mode 100644 index 00000000..7847edcb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WaitForSmsConditionsTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WaitForSmsConditions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WaitForSmsConditionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WaitForSmsConditions + //private WaitForSmsConditions instance; + + public WaitForSmsConditionsTests() + { + // TODO uncomment below to create an instance of WaitForSmsConditions + //instance = new WaitForSmsConditions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WaitForSmsConditions + /// + [Fact] + public void WaitForSmsConditionsInstanceTest() + { + // TODO uncomment below to test "IsType" WaitForSmsConditions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'PhoneNumberId' + /// + [Fact] + public void PhoneNumberIdTest() + { + // TODO unit test for the property 'PhoneNumberId' + } + /// + /// Test the property 'Limit' + /// + [Fact] + public void LimitTest() + { + // TODO unit test for the property 'Limit' + } + /// + /// Test the property 'Count' + /// + [Fact] + public void CountTest() + { + // TODO unit test for the property 'Count' + } + /// + /// Test the property 'DelayTimeout' + /// + [Fact] + public void DelayTimeoutTest() + { + // TODO unit test for the property 'DelayTimeout' + } + /// + /// Test the property 'Timeout' + /// + [Fact] + public void TimeoutTest() + { + // TODO unit test for the property 'Timeout' + } + /// + /// Test the property 'UnreadOnly' + /// + [Fact] + public void UnreadOnlyTest() + { + // TODO unit test for the property 'UnreadOnly' + } + /// + /// Test the property 'CountType' + /// + [Fact] + public void CountTypeTest() + { + // TODO unit test for the property 'CountType' + } + /// + /// Test the property 'Matches' + /// + [Fact] + public void MatchesTest() + { + // TODO unit test for the property 'Matches' + } + /// + /// Test the property 'SortDirection' + /// + [Fact] + public void SortDirectionTest() + { + // TODO unit test for the property 'SortDirection' + } + /// + /// Test the property 'Since' + /// + [Fact] + public void SinceTest() + { + // TODO unit test for the property 'Since' + } + /// + /// Test the property 'Before' + /// + [Fact] + public void BeforeTest() + { + // TODO unit test for the property 'Before' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookBouncePayloadTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookBouncePayloadTests.cs new file mode 100644 index 00000000..5131a04b --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookBouncePayloadTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookBouncePayload + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookBouncePayloadTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookBouncePayload + //private WebhookBouncePayload instance; + + public WebhookBouncePayloadTests() + { + // TODO uncomment below to create an instance of WebhookBouncePayload + //instance = new WebhookBouncePayload(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookBouncePayload + /// + [Fact] + public void WebhookBouncePayloadInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookBouncePayload + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'WebhookId' + /// + [Fact] + public void WebhookIdTest() + { + // TODO unit test for the property 'WebhookId' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'WebhookName' + /// + [Fact] + public void WebhookNameTest() + { + // TODO unit test for the property 'WebhookName' + } + /// + /// Test the property 'BounceId' + /// + [Fact] + public void BounceIdTest() + { + // TODO unit test for the property 'BounceId' + } + /// + /// Test the property 'SentToRecipients' + /// + [Fact] + public void SentToRecipientsTest() + { + // TODO unit test for the property 'SentToRecipients' + } + /// + /// Test the property 'Sender' + /// + [Fact] + public void SenderTest() + { + // TODO unit test for the property 'Sender' + } + /// + /// Test the property 'BounceRecipients' + /// + [Fact] + public void BounceRecipientsTest() + { + // TODO unit test for the property 'BounceRecipients' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookBounceRecipientPayloadTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookBounceRecipientPayloadTests.cs new file mode 100644 index 00000000..ec64b812 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookBounceRecipientPayloadTests.cs @@ -0,0 +1,103 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookBounceRecipientPayload + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookBounceRecipientPayloadTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookBounceRecipientPayload + //private WebhookBounceRecipientPayload instance; + + public WebhookBounceRecipientPayloadTests() + { + // TODO uncomment below to create an instance of WebhookBounceRecipientPayload + //instance = new WebhookBounceRecipientPayload(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookBounceRecipientPayload + /// + [Fact] + public void WebhookBounceRecipientPayloadInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookBounceRecipientPayload + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'WebhookId' + /// + [Fact] + public void WebhookIdTest() + { + // TODO unit test for the property 'WebhookId' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'WebhookName' + /// + [Fact] + public void WebhookNameTest() + { + // TODO unit test for the property 'WebhookName' + } + /// + /// Test the property 'Recipient' + /// + [Fact] + public void RecipientTest() + { + // TODO unit test for the property 'Recipient' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookDeliveryStatusPayloadTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookDeliveryStatusPayloadTests.cs new file mode 100644 index 00000000..552a8ccb --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookDeliveryStatusPayloadTests.cs @@ -0,0 +1,191 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookDeliveryStatusPayload + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookDeliveryStatusPayloadTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookDeliveryStatusPayload + //private WebhookDeliveryStatusPayload instance; + + public WebhookDeliveryStatusPayloadTests() + { + // TODO uncomment below to create an instance of WebhookDeliveryStatusPayload + //instance = new WebhookDeliveryStatusPayload(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookDeliveryStatusPayload + /// + [Fact] + public void WebhookDeliveryStatusPayloadInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookDeliveryStatusPayload + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'WebhookId' + /// + [Fact] + public void WebhookIdTest() + { + // TODO unit test for the property 'WebhookId' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'WebhookName' + /// + [Fact] + public void WebhookNameTest() + { + // TODO unit test for the property 'WebhookName' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'SentId' + /// + [Fact] + public void SentIdTest() + { + // TODO unit test for the property 'SentId' + } + /// + /// Test the property 'RemoteMtaIp' + /// + [Fact] + public void RemoteMtaIpTest() + { + // TODO unit test for the property 'RemoteMtaIp' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'ReportingMta' + /// + [Fact] + public void ReportingMtaTest() + { + // TODO unit test for the property 'ReportingMta' + } + /// + /// Test the property 'Recipients' + /// + [Fact] + public void RecipientsTest() + { + // TODO unit test for the property 'Recipients' + } + /// + /// Test the property 'SmtpResponse' + /// + [Fact] + public void SmtpResponseTest() + { + // TODO unit test for the property 'SmtpResponse' + } + /// + /// Test the property 'SmtpStatusCode' + /// + [Fact] + public void SmtpStatusCodeTest() + { + // TODO unit test for the property 'SmtpStatusCode' + } + /// + /// Test the property 'ProcessingTimeMillis' + /// + [Fact] + public void ProcessingTimeMillisTest() + { + // TODO unit test for the property 'ProcessingTimeMillis' + } + /// + /// Test the property 'Received' + /// + [Fact] + public void ReceivedTest() + { + // TODO unit test for the property 'Received' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookDtoTests.cs new file mode 100644 index 00000000..673c5ae0 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookDtoTests.cs @@ -0,0 +1,191 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookDto + //private WebhookDto instance; + + public WebhookDtoTests() + { + // TODO uncomment below to create an instance of WebhookDto + //instance = new WebhookDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookDto + /// + [Fact] + public void WebhookDtoInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'BasicAuth' + /// + [Fact] + public void BasicAuthTest() + { + // TODO unit test for the property 'BasicAuth' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'PhoneId' + /// + [Fact] + public void PhoneIdTest() + { + // TODO unit test for the property 'PhoneId' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'RequestBodyTemplate' + /// + [Fact] + public void RequestBodyTemplateTest() + { + // TODO unit test for the property 'RequestBodyTemplate' + } + /// + /// Test the property 'Url' + /// + [Fact] + public void UrlTest() + { + // TODO unit test for the property 'Url' + } + /// + /// Test the property 'Method' + /// + [Fact] + public void MethodTest() + { + // TODO unit test for the property 'Method' + } + /// + /// Test the property 'PayloadJsonSchema' + /// + [Fact] + public void PayloadJsonSchemaTest() + { + // TODO unit test for the property 'PayloadJsonSchema' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'RequestHeaders' + /// + [Fact] + public void RequestHeadersTest() + { + // TODO unit test for the property 'RequestHeaders' + } + /// + /// Test the property 'IgnoreInsecureSslCertificates' + /// + [Fact] + public void IgnoreInsecureSslCertificatesTest() + { + // TODO unit test for the property 'IgnoreInsecureSslCertificates' + } + /// + /// Test the property 'UseStaticIpRange' + /// + [Fact] + public void UseStaticIpRangeTest() + { + // TODO unit test for the property 'UseStaticIpRange' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookEmailOpenedPayloadTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookEmailOpenedPayloadTests.cs new file mode 100644 index 00000000..e98d78d8 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookEmailOpenedPayloadTests.cs @@ -0,0 +1,135 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookEmailOpenedPayload + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookEmailOpenedPayloadTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookEmailOpenedPayload + //private WebhookEmailOpenedPayload instance; + + public WebhookEmailOpenedPayloadTests() + { + // TODO uncomment below to create an instance of WebhookEmailOpenedPayload + //instance = new WebhookEmailOpenedPayload(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookEmailOpenedPayload + /// + [Fact] + public void WebhookEmailOpenedPayloadInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookEmailOpenedPayload + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'WebhookId' + /// + [Fact] + public void WebhookIdTest() + { + // TODO unit test for the property 'WebhookId' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'WebhookName' + /// + [Fact] + public void WebhookNameTest() + { + // TODO unit test for the property 'WebhookName' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'PixelId' + /// + [Fact] + public void PixelIdTest() + { + // TODO unit test for the property 'PixelId' + } + /// + /// Test the property 'SentEmailId' + /// + [Fact] + public void SentEmailIdTest() + { + // TODO unit test for the property 'SentEmailId' + } + /// + /// Test the property 'Recipient' + /// + [Fact] + public void RecipientTest() + { + // TODO unit test for the property 'Recipient' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookEmailReadPayloadTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookEmailReadPayloadTests.cs new file mode 100644 index 00000000..225383b1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookEmailReadPayloadTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookEmailReadPayload + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookEmailReadPayloadTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookEmailReadPayload + //private WebhookEmailReadPayload instance; + + public WebhookEmailReadPayloadTests() + { + // TODO uncomment below to create an instance of WebhookEmailReadPayload + //instance = new WebhookEmailReadPayload(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookEmailReadPayload + /// + [Fact] + public void WebhookEmailReadPayloadInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookEmailReadPayload + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'WebhookId' + /// + [Fact] + public void WebhookIdTest() + { + // TODO unit test for the property 'WebhookId' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'WebhookName' + /// + [Fact] + public void WebhookNameTest() + { + // TODO unit test for the property 'WebhookName' + } + /// + /// Test the property 'EmailId' + /// + [Fact] + public void EmailIdTest() + { + // TODO unit test for the property 'EmailId' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'EmailIsRead' + /// + [Fact] + public void EmailIsReadTest() + { + // TODO unit test for the property 'EmailIsRead' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookHeaderNameValueTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookHeaderNameValueTests.cs new file mode 100644 index 00000000..3440d741 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookHeaderNameValueTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookHeaderNameValue + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookHeaderNameValueTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookHeaderNameValue + //private WebhookHeaderNameValue instance; + + public WebhookHeaderNameValueTests() + { + // TODO uncomment below to create an instance of WebhookHeaderNameValue + //instance = new WebhookHeaderNameValue(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookHeaderNameValue + /// + [Fact] + public void WebhookHeaderNameValueInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookHeaderNameValue + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Value' + /// + [Fact] + public void ValueTest() + { + // TODO unit test for the property 'Value' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookHeadersTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookHeadersTests.cs new file mode 100644 index 00000000..4035f6e1 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookHeadersTests.cs @@ -0,0 +1,71 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookHeaders + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookHeadersTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookHeaders + //private WebhookHeaders instance; + + public WebhookHeadersTests() + { + // TODO uncomment below to create an instance of WebhookHeaders + //instance = new WebhookHeaders(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookHeaders + /// + [Fact] + public void WebhookHeadersInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookHeaders + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Headers' + /// + [Fact] + public void HeadersTest() + { + // TODO unit test for the property 'Headers' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookNewAttachmentPayloadTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookNewAttachmentPayloadTests.cs new file mode 100644 index 00000000..e8d6c7a2 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookNewAttachmentPayloadTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookNewAttachmentPayload + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookNewAttachmentPayloadTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookNewAttachmentPayload + //private WebhookNewAttachmentPayload instance; + + public WebhookNewAttachmentPayloadTests() + { + // TODO uncomment below to create an instance of WebhookNewAttachmentPayload + //instance = new WebhookNewAttachmentPayload(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookNewAttachmentPayload + /// + [Fact] + public void WebhookNewAttachmentPayloadInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookNewAttachmentPayload + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'WebhookId' + /// + [Fact] + public void WebhookIdTest() + { + // TODO unit test for the property 'WebhookId' + } + /// + /// Test the property 'WebhookName' + /// + [Fact] + public void WebhookNameTest() + { + // TODO unit test for the property 'WebhookName' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'AttachmentId' + /// + [Fact] + public void AttachmentIdTest() + { + // TODO unit test for the property 'AttachmentId' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'ContentType' + /// + [Fact] + public void ContentTypeTest() + { + // TODO unit test for the property 'ContentType' + } + /// + /// Test the property 'ContentLength' + /// + [Fact] + public void ContentLengthTest() + { + // TODO unit test for the property 'ContentLength' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookNewContactPayloadTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookNewContactPayloadTests.cs new file mode 100644 index 00000000..d1ee59ec --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookNewContactPayloadTests.cs @@ -0,0 +1,183 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookNewContactPayload + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookNewContactPayloadTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookNewContactPayload + //private WebhookNewContactPayload instance; + + public WebhookNewContactPayloadTests() + { + // TODO uncomment below to create an instance of WebhookNewContactPayload + //instance = new WebhookNewContactPayload(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookNewContactPayload + /// + [Fact] + public void WebhookNewContactPayloadInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookNewContactPayload + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'WebhookId' + /// + [Fact] + public void WebhookIdTest() + { + // TODO unit test for the property 'WebhookId' + } + /// + /// Test the property 'WebhookName' + /// + [Fact] + public void WebhookNameTest() + { + // TODO unit test for the property 'WebhookName' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'ContactId' + /// + [Fact] + public void ContactIdTest() + { + // TODO unit test for the property 'ContactId' + } + /// + /// Test the property 'GroupId' + /// + [Fact] + public void GroupIdTest() + { + // TODO unit test for the property 'GroupId' + } + /// + /// Test the property 'FirstName' + /// + [Fact] + public void FirstNameTest() + { + // TODO unit test for the property 'FirstName' + } + /// + /// Test the property 'LastName' + /// + [Fact] + public void LastNameTest() + { + // TODO unit test for the property 'LastName' + } + /// + /// Test the property 'Company' + /// + [Fact] + public void CompanyTest() + { + // TODO unit test for the property 'Company' + } + /// + /// Test the property 'PrimaryEmailAddress' + /// + [Fact] + public void PrimaryEmailAddressTest() + { + // TODO unit test for the property 'PrimaryEmailAddress' + } + /// + /// Test the property 'EmailAddresses' + /// + [Fact] + public void EmailAddressesTest() + { + // TODO unit test for the property 'EmailAddresses' + } + /// + /// Test the property 'Tags' + /// + [Fact] + public void TagsTest() + { + // TODO unit test for the property 'Tags' + } + /// + /// Test the property 'MetaData' + /// + [Fact] + public void MetaDataTest() + { + // TODO unit test for the property 'MetaData' + } + /// + /// Test the property 'OptOut' + /// + [Fact] + public void OptOutTest() + { + // TODO unit test for the property 'OptOut' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookNewEmailPayloadTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookNewEmailPayloadTests.cs new file mode 100644 index 00000000..f0e6853e --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookNewEmailPayloadTests.cs @@ -0,0 +1,175 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookNewEmailPayload + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookNewEmailPayloadTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookNewEmailPayload + //private WebhookNewEmailPayload instance; + + public WebhookNewEmailPayloadTests() + { + // TODO uncomment below to create an instance of WebhookNewEmailPayload + //instance = new WebhookNewEmailPayload(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookNewEmailPayload + /// + [Fact] + public void WebhookNewEmailPayloadInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookNewEmailPayload + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'WebhookId' + /// + [Fact] + public void WebhookIdTest() + { + // TODO unit test for the property 'WebhookId' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'WebhookName' + /// + [Fact] + public void WebhookNameTest() + { + // TODO unit test for the property 'WebhookName' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'DomainId' + /// + [Fact] + public void DomainIdTest() + { + // TODO unit test for the property 'DomainId' + } + /// + /// Test the property 'EmailId' + /// + [Fact] + public void EmailIdTest() + { + // TODO unit test for the property 'EmailId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'To' + /// + [Fact] + public void ToTest() + { + // TODO unit test for the property 'To' + } + /// + /// Test the property 'From' + /// + [Fact] + public void FromTest() + { + // TODO unit test for the property 'From' + } + /// + /// Test the property 'Cc' + /// + [Fact] + public void CcTest() + { + // TODO unit test for the property 'Cc' + } + /// + /// Test the property 'Bcc' + /// + [Fact] + public void BccTest() + { + // TODO unit test for the property 'Bcc' + } + /// + /// Test the property 'Subject' + /// + [Fact] + public void SubjectTest() + { + // TODO unit test for the property 'Subject' + } + /// + /// Test the property 'AttachmentMetaDatas' + /// + [Fact] + public void AttachmentMetaDatasTest() + { + // TODO unit test for the property 'AttachmentMetaDatas' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookNewSmsPayloadTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookNewSmsPayloadTests.cs new file mode 100644 index 00000000..645a8ec7 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookNewSmsPayloadTests.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookNewSmsPayload + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookNewSmsPayloadTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookNewSmsPayload + //private WebhookNewSmsPayload instance; + + public WebhookNewSmsPayloadTests() + { + // TODO uncomment below to create an instance of WebhookNewSmsPayload + //instance = new WebhookNewSmsPayload(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookNewSmsPayload + /// + [Fact] + public void WebhookNewSmsPayloadInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookNewSmsPayload + //Assert.IsType(instance); + } + + + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'WebhookId' + /// + [Fact] + public void WebhookIdTest() + { + // TODO unit test for the property 'WebhookId' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'WebhookName' + /// + [Fact] + public void WebhookNameTest() + { + // TODO unit test for the property 'WebhookName' + } + /// + /// Test the property 'SmsId' + /// + [Fact] + public void SmsIdTest() + { + // TODO unit test for the property 'SmsId' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'PhoneNumber' + /// + [Fact] + public void PhoneNumberTest() + { + // TODO unit test for the property 'PhoneNumber' + } + /// + /// Test the property 'ToNumber' + /// + [Fact] + public void ToNumberTest() + { + // TODO unit test for the property 'ToNumber' + } + /// + /// Test the property 'FromNumber' + /// + [Fact] + public void FromNumberTest() + { + // TODO unit test for the property 'FromNumber' + } + /// + /// Test the property 'Body' + /// + [Fact] + public void BodyTest() + { + // TODO unit test for the property 'Body' + } + /// + /// Test the property 'Read' + /// + [Fact] + public void ReadTest() + { + // TODO unit test for the property 'Read' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookProjectionTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookProjectionTests.cs new file mode 100644 index 00000000..0ac44823 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookProjectionTests.cs @@ -0,0 +1,127 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookProjection + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookProjectionTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookProjection + //private WebhookProjection instance; + + public WebhookProjectionTests() + { + // TODO uncomment below to create an instance of WebhookProjection + //instance = new WebhookProjection(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookProjection + /// + [Fact] + public void WebhookProjectionInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookProjection + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Url' + /// + [Fact] + public void UrlTest() + { + // TODO unit test for the property 'Url' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'EventName' + /// + [Fact] + public void EventNameTest() + { + // TODO unit test for the property 'EventName' + } + /// + /// Test the property 'PhoneNumberId' + /// + [Fact] + public void PhoneNumberIdTest() + { + // TODO unit test for the property 'PhoneNumberId' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookRedriveAllResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookRedriveAllResultTests.cs new file mode 100644 index 00000000..32cc49fa --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookRedriveAllResultTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookRedriveAllResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookRedriveAllResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookRedriveAllResult + //private WebhookRedriveAllResult instance; + + public WebhookRedriveAllResultTests() + { + // TODO uncomment below to create an instance of WebhookRedriveAllResult + //instance = new WebhookRedriveAllResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookRedriveAllResult + /// + [Fact] + public void WebhookRedriveAllResultInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookRedriveAllResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Success' + /// + [Fact] + public void SuccessTest() + { + // TODO unit test for the property 'Success' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookRedriveResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookRedriveResultTests.cs new file mode 100644 index 00000000..1875b3d5 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookRedriveResultTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookRedriveResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookRedriveResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookRedriveResult + //private WebhookRedriveResult instance; + + public WebhookRedriveResultTests() + { + // TODO uncomment below to create an instance of WebhookRedriveResult + //instance = new WebhookRedriveResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookRedriveResult + /// + [Fact] + public void WebhookRedriveResultInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookRedriveResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'WebhookResultId' + /// + [Fact] + public void WebhookResultIdTest() + { + // TODO unit test for the property 'WebhookResultId' + } + /// + /// Test the property 'Success' + /// + [Fact] + public void SuccessTest() + { + // TODO unit test for the property 'Success' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookResultDtoTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookResultDtoTests.cs new file mode 100644 index 00000000..63286f28 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookResultDtoTests.cs @@ -0,0 +1,223 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookResultDto + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookResultDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookResultDto + //private WebhookResultDto instance; + + public WebhookResultDtoTests() + { + // TODO uncomment below to create an instance of WebhookResultDto + //instance = new WebhookResultDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookResultDto + /// + [Fact] + public void WebhookResultDtoInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookResultDto + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'UserId' + /// + [Fact] + public void UserIdTest() + { + // TODO unit test for the property 'UserId' + } + /// + /// Test the property 'WebhookId' + /// + [Fact] + public void WebhookIdTest() + { + // TODO unit test for the property 'WebhookId' + } + /// + /// Test the property 'WebhookUrl' + /// + [Fact] + public void WebhookUrlTest() + { + // TODO unit test for the property 'WebhookUrl' + } + /// + /// Test the property 'MessageId' + /// + [Fact] + public void MessageIdTest() + { + // TODO unit test for the property 'MessageId' + } + /// + /// Test the property 'RedriveId' + /// + [Fact] + public void RedriveIdTest() + { + // TODO unit test for the property 'RedriveId' + } + /// + /// Test the property 'HttpMethod' + /// + [Fact] + public void HttpMethodTest() + { + // TODO unit test for the property 'HttpMethod' + } + /// + /// Test the property 'WebhookEvent' + /// + [Fact] + public void WebhookEventTest() + { + // TODO unit test for the property 'WebhookEvent' + } + /// + /// Test the property 'ResponseStatus' + /// + [Fact] + public void ResponseStatusTest() + { + // TODO unit test for the property 'ResponseStatus' + } + /// + /// Test the property 'ResponseTimeMillis' + /// + [Fact] + public void ResponseTimeMillisTest() + { + // TODO unit test for the property 'ResponseTimeMillis' + } + /// + /// Test the property 'ResponseBodyExtract' + /// + [Fact] + public void ResponseBodyExtractTest() + { + // TODO unit test for the property 'ResponseBodyExtract' + } + /// + /// Test the property 'ResultType' + /// + [Fact] + public void ResultTypeTest() + { + // TODO unit test for the property 'ResultType' + } + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + /// + /// Test the property 'Seen' + /// + [Fact] + public void SeenTest() + { + // TODO unit test for the property 'Seen' + } + /// + /// Test the property 'InboxId' + /// + [Fact] + public void InboxIdTest() + { + // TODO unit test for the property 'InboxId' + } + /// + /// Test the property 'EmailId' + /// + [Fact] + public void EmailIdTest() + { + // TODO unit test for the property 'EmailId' + } + /// + /// Test the property 'AttachmentId' + /// + [Fact] + public void AttachmentIdTest() + { + // TODO unit test for the property 'AttachmentId' + } + /// + /// Test the property 'PhoneId' + /// + [Fact] + public void PhoneIdTest() + { + // TODO unit test for the property 'PhoneId' + } + /// + /// Test the property 'SmsId' + /// + [Fact] + public void SmsIdTest() + { + // TODO unit test for the property 'SmsId' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookTestRequestTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookTestRequestTests.cs new file mode 100644 index 00000000..1e6ab21f --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookTestRequestTests.cs @@ -0,0 +1,95 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookTestRequest + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookTestRequestTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookTestRequest + //private WebhookTestRequest instance; + + public WebhookTestRequestTests() + { + // TODO uncomment below to create an instance of WebhookTestRequest + //instance = new WebhookTestRequest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookTestRequest + /// + [Fact] + public void WebhookTestRequestInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookTestRequest + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Url' + /// + [Fact] + public void UrlTest() + { + // TODO unit test for the property 'Url' + } + /// + /// Test the property 'Method' + /// + [Fact] + public void MethodTest() + { + // TODO unit test for the property 'Method' + } + /// + /// Test the property 'Headers' + /// + [Fact] + public void HeadersTest() + { + // TODO unit test for the property 'Headers' + } + /// + /// Test the property 'Payload' + /// + [Fact] + public void PayloadTest() + { + // TODO unit test for the property 'Payload' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookTestResponseTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookTestResponseTests.cs new file mode 100644 index 00000000..d5420613 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookTestResponseTests.cs @@ -0,0 +1,79 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookTestResponse + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookTestResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookTestResponse + //private WebhookTestResponse instance; + + public WebhookTestResponseTests() + { + // TODO uncomment below to create an instance of WebhookTestResponse + //instance = new WebhookTestResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookTestResponse + /// + [Fact] + public void WebhookTestResponseInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookTestResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'StatusCode' + /// + [Fact] + public void StatusCodeTest() + { + // TODO unit test for the property 'StatusCode' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/Model/WebhookTestResultTests.cs b/src/mailslurp_netstandard_2x.Test/Model/WebhookTestResultTests.cs new file mode 100644 index 00000000..229f5ac5 --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/Model/WebhookTestResultTests.cs @@ -0,0 +1,87 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using mailslurp_netstandard_2x.Api; +using mailslurp_netstandard_2x.Model; +using mailslurp_netstandard_2x.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace mailslurp_netstandard_2x.Test.Model +{ + /// + /// Class for testing WebhookTestResult + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class WebhookTestResultTests : IDisposable + { + // TODO uncomment below to declare an instance variable for WebhookTestResult + //private WebhookTestResult instance; + + public WebhookTestResultTests() + { + // TODO uncomment below to create an instance of WebhookTestResult + //instance = new WebhookTestResult(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookTestResult + /// + [Fact] + public void WebhookTestResultInstanceTest() + { + // TODO uncomment below to test "IsType" WebhookTestResult + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + /// + /// Test the property 'Response' + /// + [Fact] + public void ResponseTest() + { + // TODO unit test for the property 'Response' + } + /// + /// Test the property 'Request' + /// + [Fact] + public void RequestTest() + { + // TODO unit test for the property 'Request' + } + + } + +} diff --git a/src/mailslurp_netstandard_2x.Test/mailslurp_netstandard_2x.Test.csproj b/src/mailslurp_netstandard_2x.Test/mailslurp_netstandard_2x.Test.csproj new file mode 100644 index 00000000..85d2a6be --- /dev/null +++ b/src/mailslurp_netstandard_2x.Test/mailslurp_netstandard_2x.Test.csproj @@ -0,0 +1,20 @@ + + + + mailslurp_netstandard_2x.Test + mailslurp_netstandard_2x.Test + netcoreapp3.1 + false + + + + + + + + + + + + + diff --git a/src/mailslurp_netstandard_2x/Api/AliasControllerApi.cs b/src/mailslurp_netstandard_2x/Api/AliasControllerApi.cs new file mode 100644 index 00000000..d86bfcce --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/AliasControllerApi.cs @@ -0,0 +1,2652 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAliasControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. + /// + /// + /// Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// AliasDto + AliasDto CreateAlias(CreateAliasOptions createAliasOptions, int operationIndex = 0); + + /// + /// Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. + /// + /// + /// Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of AliasDto + ApiResponse CreateAliasWithHttpInfo(CreateAliasOptions createAliasOptions, int operationIndex = 0); + /// + /// Delete an email alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteAlias(Guid aliasId, int operationIndex = 0); + + /// + /// Delete an email alias + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAliasWithHttpInfo(Guid aliasId, int operationIndex = 0); + /// + /// Get an email alias + /// + /// + /// Get an email alias by ID + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// AliasDto + AliasDto GetAlias(Guid aliasId, int operationIndex = 0); + + /// + /// Get an email alias + /// + /// + /// Get an email alias by ID + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of AliasDto + ApiResponse GetAliasWithHttpInfo(Guid aliasId, int operationIndex = 0); + /// + /// Get emails for an alias + /// + /// + /// Get paginated emails for an alias by ID + /// + /// Thrown when fails to make API call + /// + /// Optional page index alias email list pagination (optional, default to 0) + /// Optional page size alias email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// PageEmailProjection + PageEmailProjection GetAliasEmails(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get emails for an alias + /// + /// + /// Get paginated emails for an alias by ID + /// + /// Thrown when fails to make API call + /// + /// Optional page index alias email list pagination (optional, default to 0) + /// Optional page size alias email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailProjection + ApiResponse GetAliasEmailsWithHttpInfo(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get threads created for an alias + /// + /// + /// Returns threads created for an email alias in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// PageThreadProjection + PageThreadProjection GetAliasThreads(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get threads created for an alias + /// + /// + /// Returns threads created for an email alias in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageThreadProjection + ApiResponse GetAliasThreadsWithHttpInfo(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get all email aliases you have created + /// + /// + /// Get all email aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional search term (optional) + /// Optional page index in alias list pagination (optional, default to 0) + /// Optional page size in alias list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageAlias + PageAlias GetAliases(string search = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get all email aliases you have created + /// + /// + /// Get all email aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional search term (optional) + /// Optional page index in alias list pagination (optional, default to 0) + /// Optional page size in alias list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageAlias + ApiResponse GetAliasesWithHttpInfo(string search = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get a thread + /// + /// + /// Return a thread associated with an alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ThreadProjection + ThreadProjection GetThread(Guid threadId, int operationIndex = 0); + + /// + /// Get a thread + /// + /// + /// Return a thread associated with an alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ThreadProjection + ApiResponse GetThreadWithHttpInfo(Guid threadId, int operationIndex = 0); + /// + /// Get all threads + /// + /// + /// Returns threads created for all aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// PageThreadProjection + PageThreadProjection GetThreadsPaginated(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get all threads + /// + /// + /// Returns threads created for all aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageThreadProjection + ApiResponse GetThreadsPaginatedWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Reply to an email + /// + /// + /// Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the alias that email belongs to + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// SentEmailDto + SentEmailDto ReplyToAliasEmail(Guid aliasId, Guid emailId, ReplyToAliasEmailOptions replyToAliasEmailOptions, int operationIndex = 0); + + /// + /// Reply to an email + /// + /// + /// Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the alias that email belongs to + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + ApiResponse ReplyToAliasEmailWithHttpInfo(Guid aliasId, Guid emailId, ReplyToAliasEmailOptions replyToAliasEmailOptions, int operationIndex = 0); + /// + /// Send an email from an alias inbox + /// + /// + /// Send an email from an alias. Replies to the email will be forwarded to the alias masked email address + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// SentEmailDto + SentEmailDto SendAliasEmail(Guid aliasId, SendEmailOptions sendEmailOptions, int operationIndex = 0); + + /// + /// Send an email from an alias inbox + /// + /// + /// Send an email from an alias. Replies to the email will be forwarded to the alias masked email address + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + ApiResponse SendAliasEmailWithHttpInfo(Guid aliasId, SendEmailOptions sendEmailOptions, int operationIndex = 0); + /// + /// Update an email alias + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// AliasDto + AliasDto UpdateAlias(Guid aliasId, UpdateAliasOptions updateAliasOptions, int operationIndex = 0); + + /// + /// Update an email alias + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of AliasDto + ApiResponse UpdateAliasWithHttpInfo(Guid aliasId, UpdateAliasOptions updateAliasOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAliasControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. + /// + /// + /// Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AliasDto + System.Threading.Tasks.Task CreateAliasAsync(CreateAliasOptions createAliasOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. + /// + /// + /// Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AliasDto) + System.Threading.Tasks.Task> CreateAliasWithHttpInfoAsync(CreateAliasOptions createAliasOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete an email alias + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAliasAsync(Guid aliasId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete an email alias + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAliasWithHttpInfoAsync(Guid aliasId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an email alias + /// + /// + /// Get an email alias by ID + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AliasDto + System.Threading.Tasks.Task GetAliasAsync(Guid aliasId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an email alias + /// + /// + /// Get an email alias by ID + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AliasDto) + System.Threading.Tasks.Task> GetAliasWithHttpInfoAsync(Guid aliasId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get emails for an alias + /// + /// + /// Get paginated emails for an alias by ID + /// + /// Thrown when fails to make API call + /// + /// Optional page index alias email list pagination (optional, default to 0) + /// Optional page size alias email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailProjection + System.Threading.Tasks.Task GetAliasEmailsAsync(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get emails for an alias + /// + /// + /// Get paginated emails for an alias by ID + /// + /// Thrown when fails to make API call + /// + /// Optional page index alias email list pagination (optional, default to 0) + /// Optional page size alias email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailProjection) + System.Threading.Tasks.Task> GetAliasEmailsWithHttpInfoAsync(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get threads created for an alias + /// + /// + /// Returns threads created for an email alias in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageThreadProjection + System.Threading.Tasks.Task GetAliasThreadsAsync(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get threads created for an alias + /// + /// + /// Returns threads created for an email alias in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageThreadProjection) + System.Threading.Tasks.Task> GetAliasThreadsWithHttpInfoAsync(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all email aliases you have created + /// + /// + /// Get all email aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional search term (optional) + /// Optional page index in alias list pagination (optional, default to 0) + /// Optional page size in alias list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageAlias + System.Threading.Tasks.Task GetAliasesAsync(string search = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all email aliases you have created + /// + /// + /// Get all email aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional search term (optional) + /// Optional page index in alias list pagination (optional, default to 0) + /// Optional page size in alias list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageAlias) + System.Threading.Tasks.Task> GetAliasesWithHttpInfoAsync(string search = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a thread + /// + /// + /// Return a thread associated with an alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ThreadProjection + System.Threading.Tasks.Task GetThreadAsync(Guid threadId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a thread + /// + /// + /// Return a thread associated with an alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ThreadProjection) + System.Threading.Tasks.Task> GetThreadWithHttpInfoAsync(Guid threadId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all threads + /// + /// + /// Returns threads created for all aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageThreadProjection + System.Threading.Tasks.Task GetThreadsPaginatedAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all threads + /// + /// + /// Returns threads created for all aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageThreadProjection) + System.Threading.Tasks.Task> GetThreadsPaginatedWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Reply to an email + /// + /// + /// Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the alias that email belongs to + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + System.Threading.Tasks.Task ReplyToAliasEmailAsync(Guid aliasId, Guid emailId, ReplyToAliasEmailOptions replyToAliasEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Reply to an email + /// + /// + /// Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the alias that email belongs to + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + System.Threading.Tasks.Task> ReplyToAliasEmailWithHttpInfoAsync(Guid aliasId, Guid emailId, ReplyToAliasEmailOptions replyToAliasEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send an email from an alias inbox + /// + /// + /// Send an email from an alias. Replies to the email will be forwarded to the alias masked email address + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + System.Threading.Tasks.Task SendAliasEmailAsync(Guid aliasId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send an email from an alias inbox + /// + /// + /// Send an email from an alias. Replies to the email will be forwarded to the alias masked email address + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + System.Threading.Tasks.Task> SendAliasEmailWithHttpInfoAsync(Guid aliasId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Update an email alias + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AliasDto + System.Threading.Tasks.Task UpdateAliasAsync(Guid aliasId, UpdateAliasOptions updateAliasOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update an email alias + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AliasDto) + System.Threading.Tasks.Task> UpdateAliasWithHttpInfoAsync(Guid aliasId, UpdateAliasOptions updateAliasOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAliasControllerApi : IAliasControllerApiSync, IAliasControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AliasControllerApi : IAliasControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AliasControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public AliasControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AliasControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public AliasControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// AliasDto + public AliasDto CreateAlias(CreateAliasOptions createAliasOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateAliasWithHttpInfo(createAliasOptions); + return localVarResponse.Data; + } + + /// + /// Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of AliasDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateAliasWithHttpInfo(CreateAliasOptions createAliasOptions, int operationIndex = 0) + { + // verify the required parameter 'createAliasOptions' is set + if (createAliasOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createAliasOptions' when calling AliasControllerApi->CreateAlias"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAliasOptions; + + localVarRequestOptions.Operation = "AliasControllerApi.CreateAlias"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/aliases", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAlias", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AliasDto + public async System.Threading.Tasks.Task CreateAliasAsync(CreateAliasOptions createAliasOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateAliasWithHttpInfoAsync(createAliasOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AliasDto) + public async System.Threading.Tasks.Task> CreateAliasWithHttpInfoAsync(CreateAliasOptions createAliasOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createAliasOptions' is set + if (createAliasOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createAliasOptions' when calling AliasControllerApi->CreateAlias"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAliasOptions; + + localVarRequestOptions.Operation = "AliasControllerApi.CreateAlias"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/aliases", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAlias", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an email alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteAlias(Guid aliasId, int operationIndex = 0) + { + DeleteAliasWithHttpInfo(aliasId); + } + + /// + /// Delete an email alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAliasWithHttpInfo(Guid aliasId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + + localVarRequestOptions.Operation = "AliasControllerApi.DeleteAlias"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/aliases/{aliasId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAlias", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an email alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAliasAsync(Guid aliasId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAliasWithHttpInfoAsync(aliasId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an email alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAliasWithHttpInfoAsync(Guid aliasId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + + localVarRequestOptions.Operation = "AliasControllerApi.DeleteAlias"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/aliases/{aliasId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAlias", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an email alias Get an email alias by ID + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// AliasDto + public AliasDto GetAlias(Guid aliasId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAliasWithHttpInfo(aliasId); + return localVarResponse.Data; + } + + /// + /// Get an email alias Get an email alias by ID + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of AliasDto + public mailslurp_netstandard_2x.Client.ApiResponse GetAliasWithHttpInfo(Guid aliasId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + + localVarRequestOptions.Operation = "AliasControllerApi.GetAlias"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/aliases/{aliasId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAlias", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an email alias Get an email alias by ID + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AliasDto + public async System.Threading.Tasks.Task GetAliasAsync(Guid aliasId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAliasWithHttpInfoAsync(aliasId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an email alias Get an email alias by ID + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AliasDto) + public async System.Threading.Tasks.Task> GetAliasWithHttpInfoAsync(Guid aliasId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + + localVarRequestOptions.Operation = "AliasControllerApi.GetAlias"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/aliases/{aliasId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAlias", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get emails for an alias Get paginated emails for an alias by ID + /// + /// Thrown when fails to make API call + /// + /// Optional page index alias email list pagination (optional, default to 0) + /// Optional page size alias email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// PageEmailProjection + public PageEmailProjection GetAliasEmails(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAliasEmailsWithHttpInfo(aliasId, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get emails for an alias Get paginated emails for an alias by ID + /// + /// Thrown when fails to make API call + /// + /// Optional page index alias email list pagination (optional, default to 0) + /// Optional page size alias email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAliasEmailsWithHttpInfo(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "AliasControllerApi.GetAliasEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/aliases/{aliasId}/emails", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAliasEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get emails for an alias Get paginated emails for an alias by ID + /// + /// Thrown when fails to make API call + /// + /// Optional page index alias email list pagination (optional, default to 0) + /// Optional page size alias email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailProjection + public async System.Threading.Tasks.Task GetAliasEmailsAsync(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAliasEmailsWithHttpInfoAsync(aliasId, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get emails for an alias Get paginated emails for an alias by ID + /// + /// Thrown when fails to make API call + /// + /// Optional page index alias email list pagination (optional, default to 0) + /// Optional page size alias email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailProjection) + public async System.Threading.Tasks.Task> GetAliasEmailsWithHttpInfoAsync(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "AliasControllerApi.GetAliasEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/aliases/{aliasId}/emails", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAliasEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get threads created for an alias Returns threads created for an email alias in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// PageThreadProjection + public PageThreadProjection GetAliasThreads(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAliasThreadsWithHttpInfo(aliasId, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get threads created for an alias Returns threads created for an email alias in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageThreadProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAliasThreadsWithHttpInfo(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "AliasControllerApi.GetAliasThreads"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/aliases/{aliasId}/threads", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAliasThreads", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get threads created for an alias Returns threads created for an email alias in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageThreadProjection + public async System.Threading.Tasks.Task GetAliasThreadsAsync(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAliasThreadsWithHttpInfoAsync(aliasId, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get threads created for an alias Returns threads created for an email alias in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageThreadProjection) + public async System.Threading.Tasks.Task> GetAliasThreadsWithHttpInfoAsync(Guid aliasId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "AliasControllerApi.GetAliasThreads"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/aliases/{aliasId}/threads", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAliasThreads", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all email aliases you have created Get all email aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional search term (optional) + /// Optional page index in alias list pagination (optional, default to 0) + /// Optional page size in alias list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageAlias + public PageAlias GetAliases(string search = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAliasesWithHttpInfo(search, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get all email aliases you have created Get all email aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional search term (optional) + /// Optional page index in alias list pagination (optional, default to 0) + /// Optional page size in alias list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageAlias + public mailslurp_netstandard_2x.Client.ApiResponse GetAliasesWithHttpInfo(string search = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (search != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "search", search)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "AliasControllerApi.GetAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/aliases", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all email aliases you have created Get all email aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional search term (optional) + /// Optional page index in alias list pagination (optional, default to 0) + /// Optional page size in alias list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageAlias + public async System.Threading.Tasks.Task GetAliasesAsync(string search = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAliasesWithHttpInfoAsync(search, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all email aliases you have created Get all email aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional search term (optional) + /// Optional page index in alias list pagination (optional, default to 0) + /// Optional page size in alias list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageAlias) + public async System.Threading.Tasks.Task> GetAliasesWithHttpInfoAsync(string search = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (search != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "search", search)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "AliasControllerApi.GetAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/aliases", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a thread Return a thread associated with an alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ThreadProjection + public ThreadProjection GetThread(Guid threadId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetThreadWithHttpInfo(threadId); + return localVarResponse.Data; + } + + /// + /// Get a thread Return a thread associated with an alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ThreadProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetThreadWithHttpInfo(Guid threadId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("threadId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(threadId)); // path parameter + + localVarRequestOptions.Operation = "AliasControllerApi.GetThread"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/aliases/threads/{threadId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetThread", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a thread Return a thread associated with an alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ThreadProjection + public async System.Threading.Tasks.Task GetThreadAsync(Guid threadId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetThreadWithHttpInfoAsync(threadId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a thread Return a thread associated with an alias + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ThreadProjection) + public async System.Threading.Tasks.Task> GetThreadWithHttpInfoAsync(Guid threadId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("threadId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(threadId)); // path parameter + + localVarRequestOptions.Operation = "AliasControllerApi.GetThread"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/aliases/threads/{threadId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetThread", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all threads Returns threads created for all aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// PageThreadProjection + public PageThreadProjection GetThreadsPaginated(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetThreadsPaginatedWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get all threads Returns threads created for all aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageThreadProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetThreadsPaginatedWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "AliasControllerApi.GetThreadsPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/aliases/threads", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetThreadsPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all threads Returns threads created for all aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageThreadProjection + public async System.Threading.Tasks.Task GetThreadsPaginatedAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetThreadsPaginatedWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all threads Returns threads created for all aliases in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in thread list pagination (optional, default to 0) + /// Optional page size in thread list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageThreadProjection) + public async System.Threading.Tasks.Task> GetThreadsPaginatedWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "AliasControllerApi.GetThreadsPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/aliases/threads", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetThreadsPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Reply to an email Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the alias that email belongs to + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// SentEmailDto + public SentEmailDto ReplyToAliasEmail(Guid aliasId, Guid emailId, ReplyToAliasEmailOptions replyToAliasEmailOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ReplyToAliasEmailWithHttpInfo(aliasId, emailId, replyToAliasEmailOptions); + return localVarResponse.Data; + } + + /// + /// Reply to an email Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the alias that email belongs to + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + public mailslurp_netstandard_2x.Client.ApiResponse ReplyToAliasEmailWithHttpInfo(Guid aliasId, Guid emailId, ReplyToAliasEmailOptions replyToAliasEmailOptions, int operationIndex = 0) + { + // verify the required parameter 'replyToAliasEmailOptions' is set + if (replyToAliasEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'replyToAliasEmailOptions' when calling AliasControllerApi->ReplyToAliasEmail"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = replyToAliasEmailOptions; + + localVarRequestOptions.Operation = "AliasControllerApi.ReplyToAliasEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/aliases/{aliasId}/emails/{emailId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ReplyToAliasEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Reply to an email Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the alias that email belongs to + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + public async System.Threading.Tasks.Task ReplyToAliasEmailAsync(Guid aliasId, Guid emailId, ReplyToAliasEmailOptions replyToAliasEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ReplyToAliasEmailWithHttpInfoAsync(aliasId, emailId, replyToAliasEmailOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Reply to an email Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the alias that email belongs to + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + public async System.Threading.Tasks.Task> ReplyToAliasEmailWithHttpInfoAsync(Guid aliasId, Guid emailId, ReplyToAliasEmailOptions replyToAliasEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'replyToAliasEmailOptions' is set + if (replyToAliasEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'replyToAliasEmailOptions' when calling AliasControllerApi->ReplyToAliasEmail"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = replyToAliasEmailOptions; + + localVarRequestOptions.Operation = "AliasControllerApi.ReplyToAliasEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/aliases/{aliasId}/emails/{emailId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ReplyToAliasEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send an email from an alias inbox Send an email from an alias. Replies to the email will be forwarded to the alias masked email address + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// SentEmailDto + public SentEmailDto SendAliasEmail(Guid aliasId, SendEmailOptions sendEmailOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = SendAliasEmailWithHttpInfo(aliasId, sendEmailOptions); + return localVarResponse.Data; + } + + /// + /// Send an email from an alias inbox Send an email from an alias. Replies to the email will be forwarded to the alias masked email address + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + public mailslurp_netstandard_2x.Client.ApiResponse SendAliasEmailWithHttpInfo(Guid aliasId, SendEmailOptions sendEmailOptions, int operationIndex = 0) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling AliasControllerApi->SendAliasEmail"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "AliasControllerApi.SendAliasEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/aliases/{aliasId}/emails", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendAliasEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send an email from an alias inbox Send an email from an alias. Replies to the email will be forwarded to the alias masked email address + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + public async System.Threading.Tasks.Task SendAliasEmailAsync(Guid aliasId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await SendAliasEmailWithHttpInfoAsync(aliasId, sendEmailOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Send an email from an alias inbox Send an email from an alias. Replies to the email will be forwarded to the alias masked email address + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + public async System.Threading.Tasks.Task> SendAliasEmailWithHttpInfoAsync(Guid aliasId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling AliasControllerApi->SendAliasEmail"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "AliasControllerApi.SendAliasEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/aliases/{aliasId}/emails", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendAliasEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an email alias + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// AliasDto + public AliasDto UpdateAlias(Guid aliasId, UpdateAliasOptions updateAliasOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = UpdateAliasWithHttpInfo(aliasId, updateAliasOptions); + return localVarResponse.Data; + } + + /// + /// Update an email alias + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of AliasDto + public mailslurp_netstandard_2x.Client.ApiResponse UpdateAliasWithHttpInfo(Guid aliasId, UpdateAliasOptions updateAliasOptions, int operationIndex = 0) + { + // verify the required parameter 'updateAliasOptions' is set + if (updateAliasOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateAliasOptions' when calling AliasControllerApi->UpdateAlias"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + localVarRequestOptions.Data = updateAliasOptions; + + localVarRequestOptions.Operation = "AliasControllerApi.UpdateAlias"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/aliases/{aliasId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAlias", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an email alias + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AliasDto + public async System.Threading.Tasks.Task UpdateAliasAsync(Guid aliasId, UpdateAliasOptions updateAliasOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await UpdateAliasWithHttpInfoAsync(aliasId, updateAliasOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update an email alias + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AliasDto) + public async System.Threading.Tasks.Task> UpdateAliasWithHttpInfoAsync(Guid aliasId, UpdateAliasOptions updateAliasOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'updateAliasOptions' is set + if (updateAliasOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateAliasOptions' when calling AliasControllerApi->UpdateAlias"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("aliasId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(aliasId)); // path parameter + localVarRequestOptions.Data = updateAliasOptions; + + localVarRequestOptions.Operation = "AliasControllerApi.UpdateAlias"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/aliases/{aliasId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAlias", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/AttachmentControllerApi.cs b/src/mailslurp_netstandard_2x/Api/AttachmentControllerApi.cs new file mode 100644 index 00000000..ca364b78 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/AttachmentControllerApi.cs @@ -0,0 +1,2336 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAttachmentControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Delete all attachments + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + void DeleteAllAttachments(int operationIndex = 0); + + /// + /// Delete all attachments + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAllAttachmentsWithHttpInfo(int operationIndex = 0); + /// + /// Delete an attachment + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// + void DeleteAttachment(string attachmentId, int operationIndex = 0); + + /// + /// Delete an attachment + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAttachmentWithHttpInfo(string attachmentId, int operationIndex = 0); + /// + /// Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. + /// + /// + /// Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// DownloadAttachmentDto + DownloadAttachmentDto DownloadAttachmentAsBase64Encoded(string attachmentId, int operationIndex = 0); + + /// + /// Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. + /// + /// + /// Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of DownloadAttachmentDto + ApiResponse DownloadAttachmentAsBase64EncodedWithHttpInfo(string attachmentId, int operationIndex = 0); + /// + /// Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. + /// + /// + /// Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// byte[] + byte[] DownloadAttachmentAsBytes(string attachmentId, int operationIndex = 0); + + /// + /// Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. + /// + /// + /// Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of byte[] + ApiResponse DownloadAttachmentAsBytesWithHttpInfo(string attachmentId, int operationIndex = 0); + /// + /// Get an attachment entity + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// AttachmentEntity + AttachmentEntity GetAttachment(string attachmentId, int operationIndex = 0); + + /// + /// Get an attachment entity + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of AttachmentEntity + ApiResponse GetAttachmentWithHttpInfo(string attachmentId, int operationIndex = 0); + /// + /// Get email attachment metadata information + /// + /// + /// Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// AttachmentMetaData + AttachmentMetaData GetAttachmentInfo(string attachmentId, int operationIndex = 0); + + /// + /// Get email attachment metadata information + /// + /// + /// Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of AttachmentMetaData + ApiResponse GetAttachmentInfoWithHttpInfo(string attachmentId, int operationIndex = 0); + /// + /// Get email attachments + /// + /// + /// Get all attachments in paginated response. Each entity contains meta data for the attachment such as `name` and `content-type`. Use the `attachmentId` and the download endpoints to get the file contents. + /// + /// Thrown when fails to make API call + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional file name and content type search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inboxId to filter attachments by (optional) + /// Index associated with the operation. + /// PageAttachmentEntity + PageAttachmentEntity GetAttachments(int? page = default(int?), int? size = default(int?), string sort = default(string), string fileNameFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Get email attachments + /// + /// + /// Get all attachments in paginated response. Each entity contains meta data for the attachment such as `name` and `content-type`. Use the `attachmentId` and the download endpoints to get the file contents. + /// + /// Thrown when fails to make API call + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional file name and content type search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inboxId to filter attachments by (optional) + /// Index associated with the operation. + /// ApiResponse of PageAttachmentEntity + ApiResponse GetAttachmentsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string fileNameFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<string> + List UploadAttachment(UploadAttachmentOptions uploadAttachmentOptions, int operationIndex = 0); + + /// + /// Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<string> + ApiResponse> UploadAttachmentWithHttpInfo(UploadAttachmentOptions uploadAttachmentOptions, int operationIndex = 0); + /// + /// Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// (optional) + /// Optional contentType for file. For instance `application/pdf` (optional) + /// Optional content ID (CID) to save upload with (optional) + /// Optional filename to save upload with (optional) + /// (optional) + /// Index associated with the operation. + /// List<string> + List UploadAttachmentBytes(string contentType = default(string), string contentType2 = default(string), string contentId = default(string), string filename = default(string), string filename2 = default(string), int operationIndex = 0); + + /// + /// Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Optional contentType for file. For instance `application/pdf` (optional) + /// Optional content ID (CID) to save upload with (optional) + /// Optional filename to save upload with (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<string> + ApiResponse> UploadAttachmentBytesWithHttpInfo(string contentType = default(string), string contentType2 = default(string), string contentId = default(string), string filename = default(string), string filename2 = default(string), int operationIndex = 0); + /// + /// Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// Optional content ID of attachment (optional) + /// Optional content type of attachment (optional) + /// Optional name of file (optional) + /// Optional content type header of attachment (optional) + /// (optional) + /// Index associated with the operation. + /// List<string> + List UploadMultipartForm(string contentId = default(string), string contentType = default(string), string filename = default(string), string xFilename = default(string), UploadMultipartFormRequest uploadMultipartFormRequest = default(UploadMultipartFormRequest), int operationIndex = 0); + + /// + /// Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional content ID of attachment (optional) + /// Optional content type of attachment (optional) + /// Optional name of file (optional) + /// Optional content type header of attachment (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<string> + ApiResponse> UploadMultipartFormWithHttpInfo(string contentId = default(string), string contentType = default(string), string filename = default(string), string xFilename = default(string), UploadMultipartFormRequest uploadMultipartFormRequest = default(UploadMultipartFormRequest), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAttachmentControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Delete all attachments + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAllAttachmentsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete all attachments + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAllAttachmentsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete an attachment + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAttachmentAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete an attachment + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAttachmentWithHttpInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. + /// + /// + /// Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DownloadAttachmentDto + System.Threading.Tasks.Task DownloadAttachmentAsBase64EncodedAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. + /// + /// + /// Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DownloadAttachmentDto) + System.Threading.Tasks.Task> DownloadAttachmentAsBase64EncodedWithHttpInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. + /// + /// + /// Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of byte[] + System.Threading.Tasks.Task DownloadAttachmentAsBytesAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. + /// + /// + /// Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (byte[]) + System.Threading.Tasks.Task> DownloadAttachmentAsBytesWithHttpInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an attachment entity + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AttachmentEntity + System.Threading.Tasks.Task GetAttachmentAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an attachment entity + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AttachmentEntity) + System.Threading.Tasks.Task> GetAttachmentWithHttpInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email attachment metadata information + /// + /// + /// Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AttachmentMetaData + System.Threading.Tasks.Task GetAttachmentInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email attachment metadata information + /// + /// + /// Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AttachmentMetaData) + System.Threading.Tasks.Task> GetAttachmentInfoWithHttpInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email attachments + /// + /// + /// Get all attachments in paginated response. Each entity contains meta data for the attachment such as `name` and `content-type`. Use the `attachmentId` and the download endpoints to get the file contents. + /// + /// Thrown when fails to make API call + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional file name and content type search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inboxId to filter attachments by (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageAttachmentEntity + System.Threading.Tasks.Task GetAttachmentsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string fileNameFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email attachments + /// + /// + /// Get all attachments in paginated response. Each entity contains meta data for the attachment such as `name` and `content-type`. Use the `attachmentId` and the download endpoints to get the file contents. + /// + /// Thrown when fails to make API call + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional file name and content type search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inboxId to filter attachments by (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageAttachmentEntity) + System.Threading.Tasks.Task> GetAttachmentsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string fileNameFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + System.Threading.Tasks.Task> UploadAttachmentAsync(UploadAttachmentOptions uploadAttachmentOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + System.Threading.Tasks.Task>> UploadAttachmentWithHttpInfoAsync(UploadAttachmentOptions uploadAttachmentOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Optional contentType for file. For instance `application/pdf` (optional) + /// Optional content ID (CID) to save upload with (optional) + /// Optional filename to save upload with (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + System.Threading.Tasks.Task> UploadAttachmentBytesAsync(string contentType = default(string), string contentType2 = default(string), string contentId = default(string), string filename = default(string), string filename2 = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Optional contentType for file. For instance `application/pdf` (optional) + /// Optional content ID (CID) to save upload with (optional) + /// Optional filename to save upload with (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + System.Threading.Tasks.Task>> UploadAttachmentBytesWithHttpInfoAsync(string contentType = default(string), string contentType2 = default(string), string contentId = default(string), string filename = default(string), string filename2 = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional content ID of attachment (optional) + /// Optional content type of attachment (optional) + /// Optional name of file (optional) + /// Optional content type header of attachment (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + System.Threading.Tasks.Task> UploadMultipartFormAsync(string contentId = default(string), string contentType = default(string), string filename = default(string), string xFilename = default(string), UploadMultipartFormRequest uploadMultipartFormRequest = default(UploadMultipartFormRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional content ID of attachment (optional) + /// Optional content type of attachment (optional) + /// Optional name of file (optional) + /// Optional content type header of attachment (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + System.Threading.Tasks.Task>> UploadMultipartFormWithHttpInfoAsync(string contentId = default(string), string contentType = default(string), string filename = default(string), string xFilename = default(string), UploadMultipartFormRequest uploadMultipartFormRequest = default(UploadMultipartFormRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAttachmentControllerApi : IAttachmentControllerApiSync, IAttachmentControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AttachmentControllerApi : IAttachmentControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AttachmentControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public AttachmentControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AttachmentControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public AttachmentControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Delete all attachments + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + public void DeleteAllAttachments(int operationIndex = 0) + { + DeleteAllAttachmentsWithHttpInfo(); + } + + /// + /// Delete all attachments + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAllAttachmentsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "AttachmentControllerApi.DeleteAllAttachments"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/attachments", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllAttachments", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all attachments + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAllAttachmentsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAllAttachmentsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete all attachments + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAllAttachmentsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "AttachmentControllerApi.DeleteAllAttachments"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/attachments", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllAttachments", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an attachment + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// + public void DeleteAttachment(string attachmentId, int operationIndex = 0) + { + DeleteAttachmentWithHttpInfo(attachmentId); + } + + /// + /// Delete an attachment + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAttachmentWithHttpInfo(string attachmentId, int operationIndex = 0) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentControllerApi->DeleteAttachment"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "AttachmentControllerApi.DeleteAttachment"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/attachments/{attachmentId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAttachment", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an attachment + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAttachmentAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAttachmentWithHttpInfoAsync(attachmentId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an attachment + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAttachmentWithHttpInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentControllerApi->DeleteAttachment"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "AttachmentControllerApi.DeleteAttachment"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/attachments/{attachmentId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAttachment", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// DownloadAttachmentDto + public DownloadAttachmentDto DownloadAttachmentAsBase64Encoded(string attachmentId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = DownloadAttachmentAsBase64EncodedWithHttpInfo(attachmentId); + return localVarResponse.Data; + } + + /// + /// Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of DownloadAttachmentDto + public mailslurp_netstandard_2x.Client.ApiResponse DownloadAttachmentAsBase64EncodedWithHttpInfo(string attachmentId, int operationIndex = 0) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentControllerApi->DownloadAttachmentAsBase64Encoded"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "AttachmentControllerApi.DownloadAttachmentAsBase64Encoded"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/attachments/{attachmentId}/base64", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadAttachmentAsBase64Encoded", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DownloadAttachmentDto + public async System.Threading.Tasks.Task DownloadAttachmentAsBase64EncodedAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await DownloadAttachmentAsBase64EncodedWithHttpInfoAsync(attachmentId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents. Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DownloadAttachmentDto) + public async System.Threading.Tasks.Task> DownloadAttachmentAsBase64EncodedWithHttpInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentControllerApi->DownloadAttachmentAsBase64Encoded"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "AttachmentControllerApi.DownloadAttachmentAsBase64Encoded"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/attachments/{attachmentId}/base64", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadAttachmentAsBase64Encoded", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// byte[] + public byte[] DownloadAttachmentAsBytes(string attachmentId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = DownloadAttachmentAsBytesWithHttpInfo(attachmentId); + return localVarResponse.Data; + } + + /// + /// Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of byte[] + public mailslurp_netstandard_2x.Client.ApiResponse DownloadAttachmentAsBytesWithHttpInfo(string attachmentId, int operationIndex = 0) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentControllerApi->DownloadAttachmentAsBytes"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/octet-stream" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "AttachmentControllerApi.DownloadAttachmentAsBytes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/attachments/{attachmentId}/bytes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadAttachmentAsBytes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of byte[] + public async System.Threading.Tasks.Task DownloadAttachmentAsBytesAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await DownloadAttachmentAsBytesWithHttpInfoAsync(attachmentId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints. Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (byte[]) + public async System.Threading.Tasks.Task> DownloadAttachmentAsBytesWithHttpInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentControllerApi->DownloadAttachmentAsBytes"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/octet-stream" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "AttachmentControllerApi.DownloadAttachmentAsBytes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/attachments/{attachmentId}/bytes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadAttachmentAsBytes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an attachment entity + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// AttachmentEntity + public AttachmentEntity GetAttachment(string attachmentId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAttachmentWithHttpInfo(attachmentId); + return localVarResponse.Data; + } + + /// + /// Get an attachment entity + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of AttachmentEntity + public mailslurp_netstandard_2x.Client.ApiResponse GetAttachmentWithHttpInfo(string attachmentId, int operationIndex = 0) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentControllerApi->GetAttachment"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "AttachmentControllerApi.GetAttachment"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/attachments/{attachmentId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAttachment", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an attachment entity + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AttachmentEntity + public async System.Threading.Tasks.Task GetAttachmentAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAttachmentWithHttpInfoAsync(attachmentId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an attachment entity + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AttachmentEntity) + public async System.Threading.Tasks.Task> GetAttachmentWithHttpInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentControllerApi->GetAttachment"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "AttachmentControllerApi.GetAttachment"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/attachments/{attachmentId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAttachment", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachment metadata information Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// AttachmentMetaData + public AttachmentMetaData GetAttachmentInfo(string attachmentId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAttachmentInfoWithHttpInfo(attachmentId); + return localVarResponse.Data; + } + + /// + /// Get email attachment metadata information Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of AttachmentMetaData + public mailslurp_netstandard_2x.Client.ApiResponse GetAttachmentInfoWithHttpInfo(string attachmentId, int operationIndex = 0) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentControllerApi->GetAttachmentInfo"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "AttachmentControllerApi.GetAttachmentInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/attachments/{attachmentId}/metadata", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAttachmentInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachment metadata information Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AttachmentMetaData + public async System.Threading.Tasks.Task GetAttachmentInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAttachmentInfoWithHttpInfoAsync(attachmentId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email attachment metadata information Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment. + /// + /// Thrown when fails to make API call + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AttachmentMetaData) + public async System.Threading.Tasks.Task> GetAttachmentInfoWithHttpInfoAsync(string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling AttachmentControllerApi->GetAttachmentInfo"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "AttachmentControllerApi.GetAttachmentInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/attachments/{attachmentId}/metadata", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAttachmentInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachments Get all attachments in paginated response. Each entity contains meta data for the attachment such as `name` and `content-type`. Use the `attachmentId` and the download endpoints to get the file contents. + /// + /// Thrown when fails to make API call + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional file name and content type search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inboxId to filter attachments by (optional) + /// Index associated with the operation. + /// PageAttachmentEntity + public PageAttachmentEntity GetAttachments(int? page = default(int?), int? size = default(int?), string sort = default(string), string fileNameFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAttachmentsWithHttpInfo(page, size, sort, fileNameFilter, since, before, inboxId); + return localVarResponse.Data; + } + + /// + /// Get email attachments Get all attachments in paginated response. Each entity contains meta data for the attachment such as `name` and `content-type`. Use the `attachmentId` and the download endpoints to get the file contents. + /// + /// Thrown when fails to make API call + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional file name and content type search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inboxId to filter attachments by (optional) + /// Index associated with the operation. + /// ApiResponse of PageAttachmentEntity + public mailslurp_netstandard_2x.Client.ApiResponse GetAttachmentsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string fileNameFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (fileNameFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "fileNameFilter", fileNameFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "AttachmentControllerApi.GetAttachments"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/attachments", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAttachments", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachments Get all attachments in paginated response. Each entity contains meta data for the attachment such as `name` and `content-type`. Use the `attachmentId` and the download endpoints to get the file contents. + /// + /// Thrown when fails to make API call + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional file name and content type search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inboxId to filter attachments by (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageAttachmentEntity + public async System.Threading.Tasks.Task GetAttachmentsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string fileNameFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAttachmentsWithHttpInfoAsync(page, size, sort, fileNameFilter, since, before, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email attachments Get all attachments in paginated response. Each entity contains meta data for the attachment such as `name` and `content-type`. Use the `attachmentId` and the download endpoints to get the file contents. + /// + /// Thrown when fails to make API call + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional file name and content type search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inboxId to filter attachments by (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageAttachmentEntity) + public async System.Threading.Tasks.Task> GetAttachmentsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string fileNameFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (fileNameFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "fileNameFilter", fileNameFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "AttachmentControllerApi.GetAttachments"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/attachments", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAttachments", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<string> + public List UploadAttachment(UploadAttachmentOptions uploadAttachmentOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = UploadAttachmentWithHttpInfo(uploadAttachmentOptions); + return localVarResponse.Data; + } + + /// + /// Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<string> + public mailslurp_netstandard_2x.Client.ApiResponse> UploadAttachmentWithHttpInfo(UploadAttachmentOptions uploadAttachmentOptions, int operationIndex = 0) + { + // verify the required parameter 'uploadAttachmentOptions' is set + if (uploadAttachmentOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'uploadAttachmentOptions' when calling AttachmentControllerApi->UploadAttachment"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = uploadAttachmentOptions; + + localVarRequestOptions.Operation = "AttachmentControllerApi.UploadAttachment"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/attachments", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UploadAttachment", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + public async System.Threading.Tasks.Task> UploadAttachmentAsync(UploadAttachmentOptions uploadAttachmentOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await UploadAttachmentWithHttpInfoAsync(uploadAttachmentOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + public async System.Threading.Tasks.Task>> UploadAttachmentWithHttpInfoAsync(UploadAttachmentOptions uploadAttachmentOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'uploadAttachmentOptions' is set + if (uploadAttachmentOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'uploadAttachmentOptions' when calling AttachmentControllerApi->UploadAttachment"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = uploadAttachmentOptions; + + localVarRequestOptions.Operation = "AttachmentControllerApi.UploadAttachment"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync>("/attachments", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UploadAttachment", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// (optional) + /// Optional contentType for file. For instance `application/pdf` (optional) + /// Optional content ID (CID) to save upload with (optional) + /// Optional filename to save upload with (optional) + /// (optional) + /// Index associated with the operation. + /// List<string> + public List UploadAttachmentBytes(string contentType = default(string), string contentType2 = default(string), string contentId = default(string), string filename = default(string), string filename2 = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = UploadAttachmentBytesWithHttpInfo(contentType, contentType2, contentId, filename, filename2); + return localVarResponse.Data; + } + + /// + /// Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// (optional) + /// Optional contentType for file. For instance `application/pdf` (optional) + /// Optional content ID (CID) to save upload with (optional) + /// Optional filename to save upload with (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<string> + public mailslurp_netstandard_2x.Client.ApiResponse> UploadAttachmentBytesWithHttpInfo(string contentType = default(string), string contentType2 = default(string), string contentId = default(string), string filename = default(string), string filename2 = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (contentType2 != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "contentType", contentType2)); + } + if (contentId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "contentId", contentId)); + } + if (filename != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "filename", filename)); + } + if (contentType != null) + { + localVarRequestOptions.HeaderParameters.Add("contentType", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(contentType)); // header parameter + } + if (filename2 != null) + { + localVarRequestOptions.HeaderParameters.Add("filename", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(filename2)); // header parameter + } + + localVarRequestOptions.Operation = "AttachmentControllerApi.UploadAttachmentBytes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/attachments/bytes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UploadAttachmentBytes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// (optional) + /// Optional contentType for file. For instance `application/pdf` (optional) + /// Optional content ID (CID) to save upload with (optional) + /// Optional filename to save upload with (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + public async System.Threading.Tasks.Task> UploadAttachmentBytesAsync(string contentType = default(string), string contentType2 = default(string), string contentId = default(string), string filename = default(string), string filename2 = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await UploadAttachmentBytesWithHttpInfoAsync(contentType, contentType2, contentId, filename, filename2, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// (optional) + /// Optional contentType for file. For instance `application/pdf` (optional) + /// Optional content ID (CID) to save upload with (optional) + /// Optional filename to save upload with (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + public async System.Threading.Tasks.Task>> UploadAttachmentBytesWithHttpInfoAsync(string contentType = default(string), string contentType2 = default(string), string contentId = default(string), string filename = default(string), string filename2 = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (contentType2 != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "contentType", contentType2)); + } + if (contentId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "contentId", contentId)); + } + if (filename != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "filename", filename)); + } + if (contentType != null) + { + localVarRequestOptions.HeaderParameters.Add("contentType", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(contentType)); // header parameter + } + if (filename2 != null) + { + localVarRequestOptions.HeaderParameters.Add("filename", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(filename2)); // header parameter + } + + localVarRequestOptions.Operation = "AttachmentControllerApi.UploadAttachmentBytes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync>("/attachments/bytes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UploadAttachmentBytes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// Optional content ID of attachment (optional) + /// Optional content type of attachment (optional) + /// Optional name of file (optional) + /// Optional content type header of attachment (optional) + /// (optional) + /// Index associated with the operation. + /// List<string> + public List UploadMultipartForm(string contentId = default(string), string contentType = default(string), string filename = default(string), string xFilename = default(string), UploadMultipartFormRequest uploadMultipartFormRequest = default(UploadMultipartFormRequest), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = UploadMultipartFormWithHttpInfo(contentId, contentType, filename, xFilename, uploadMultipartFormRequest); + return localVarResponse.Data; + } + + /// + /// Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// Optional content ID of attachment (optional) + /// Optional content type of attachment (optional) + /// Optional name of file (optional) + /// Optional content type header of attachment (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<string> + public mailslurp_netstandard_2x.Client.ApiResponse> UploadMultipartFormWithHttpInfo(string contentId = default(string), string contentType = default(string), string filename = default(string), string xFilename = default(string), UploadMultipartFormRequest uploadMultipartFormRequest = default(UploadMultipartFormRequest), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (contentId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "contentId", contentId)); + } + if (contentType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "contentType", contentType)); + } + if (filename != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "filename", filename)); + } + if (xFilename != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "x-filename", xFilename)); + } + localVarRequestOptions.Data = uploadMultipartFormRequest; + + localVarRequestOptions.Operation = "AttachmentControllerApi.UploadMultipartForm"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/attachments/multipart", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UploadMultipartForm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// Optional content ID of attachment (optional) + /// Optional content type of attachment (optional) + /// Optional name of file (optional) + /// Optional content type header of attachment (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + public async System.Threading.Tasks.Task> UploadMultipartFormAsync(string contentId = default(string), string contentType = default(string), string filename = default(string), string xFilename = default(string), UploadMultipartFormRequest uploadMultipartFormRequest = default(UploadMultipartFormRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await UploadMultipartFormWithHttpInfoAsync(contentId, contentType, filename, xFilename, uploadMultipartFormRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment. + /// + /// Thrown when fails to make API call + /// Optional content ID of attachment (optional) + /// Optional content type of attachment (optional) + /// Optional name of file (optional) + /// Optional content type header of attachment (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + public async System.Threading.Tasks.Task>> UploadMultipartFormWithHttpInfoAsync(string contentId = default(string), string contentType = default(string), string filename = default(string), string xFilename = default(string), UploadMultipartFormRequest uploadMultipartFormRequest = default(UploadMultipartFormRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (contentId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "contentId", contentId)); + } + if (contentType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "contentType", contentType)); + } + if (filename != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "filename", filename)); + } + if (xFilename != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "x-filename", xFilename)); + } + localVarRequestOptions.Data = uploadMultipartFormRequest; + + localVarRequestOptions.Operation = "AttachmentControllerApi.UploadMultipartForm"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync>("/attachments/multipart", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UploadMultipartForm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/BounceControllerApi.cs b/src/mailslurp_netstandard_2x/Api/BounceControllerApi.cs new file mode 100644 index 00000000..8b5d8169 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/BounceControllerApi.cs @@ -0,0 +1,2138 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IBounceControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Filter a list of email recipients and remove those who have bounced + /// + /// + /// Prevent email sending errors by remove recipients who have resulted in past email bounces or complaints + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// FilterBouncedRecipientsResult + FilterBouncedRecipientsResult FilterBouncedRecipient(FilterBouncedRecipientsOptions filterBouncedRecipientsOptions, int operationIndex = 0); + + /// + /// Filter a list of email recipients and remove those who have bounced + /// + /// + /// Prevent email sending errors by remove recipients who have resulted in past email bounces or complaints + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of FilterBouncedRecipientsResult + ApiResponse FilterBouncedRecipientWithHttpInfo(FilterBouncedRecipientsOptions filterBouncedRecipientsOptions, int operationIndex = 0); + /// + /// Can account send email + /// + /// + /// Check if account block status prevents sending + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// AccountBounceBlockDto + AccountBounceBlockDto GetAccountBounceBlockStatus(int operationIndex = 0); + + /// + /// Can account send email + /// + /// + /// Check if account block status prevents sending + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of AccountBounceBlockDto + ApiResponse GetAccountBounceBlockStatusWithHttpInfo(int operationIndex = 0); + /// + /// Get a bounced email. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced email to fetch + /// Index associated with the operation. + /// BouncedEmailDto + BouncedEmailDto GetBouncedEmail(Guid id, int operationIndex = 0); + + /// + /// Get a bounced email. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced email to fetch + /// Index associated with the operation. + /// ApiResponse of BouncedEmailDto + ApiResponse GetBouncedEmailWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get paginated list of bounced emails. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageBouncedEmail + PageBouncedEmail GetBouncedEmails(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get paginated list of bounced emails. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageBouncedEmail + ApiResponse GetBouncedEmailsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get a bounced email. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced recipient + /// Index associated with the operation. + /// BouncedRecipientDto + BouncedRecipientDto GetBouncedRecipient(Guid id, int operationIndex = 0); + + /// + /// Get a bounced email. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced recipient + /// Index associated with the operation. + /// ApiResponse of BouncedRecipientDto + ApiResponse GetBouncedRecipientWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get paginated list of bounced recipients. + /// + /// + /// Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageBouncedRecipients + PageBouncedRecipients GetBouncedRecipients(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get paginated list of bounced recipients. + /// + /// + /// Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageBouncedRecipients + ApiResponse GetBouncedRecipientsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get complaint + /// + /// + /// Get complaint + /// + /// Thrown when fails to make API call + /// ID of the complaint + /// Index associated with the operation. + /// Complaint + Complaint GetComplaint(Guid id, int operationIndex = 0); + + /// + /// Get complaint + /// + /// + /// Get complaint + /// + /// Thrown when fails to make API call + /// ID of the complaint + /// Index associated with the operation. + /// ApiResponse of Complaint + ApiResponse GetComplaintWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get paginated list of complaints. + /// + /// + /// SMTP complaints made against your account + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageComplaint + PageComplaint GetComplaints(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get paginated list of complaints. + /// + /// + /// SMTP complaints made against your account + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageComplaint + ApiResponse GetComplaintsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get paginated list of unsubscribed recipients. + /// + /// + /// Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by domainId (optional) + /// Index associated with the operation. + /// PageListUnsubscribeRecipients + PageListUnsubscribeRecipients GetListUnsubscribeRecipients(int? page = default(int?), int? size = default(int?), string sort = default(string), Guid? domainId = default(Guid?), int operationIndex = 0); + + /// + /// Get paginated list of unsubscribed recipients. + /// + /// + /// Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by domainId (optional) + /// Index associated with the operation. + /// ApiResponse of PageListUnsubscribeRecipients + ApiResponse GetListUnsubscribeRecipientsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), Guid? domainId = default(Guid?), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IBounceControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Filter a list of email recipients and remove those who have bounced + /// + /// + /// Prevent email sending errors by remove recipients who have resulted in past email bounces or complaints + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of FilterBouncedRecipientsResult + System.Threading.Tasks.Task FilterBouncedRecipientAsync(FilterBouncedRecipientsOptions filterBouncedRecipientsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Filter a list of email recipients and remove those who have bounced + /// + /// + /// Prevent email sending errors by remove recipients who have resulted in past email bounces or complaints + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (FilterBouncedRecipientsResult) + System.Threading.Tasks.Task> FilterBouncedRecipientWithHttpInfoAsync(FilterBouncedRecipientsOptions filterBouncedRecipientsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Can account send email + /// + /// + /// Check if account block status prevents sending + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AccountBounceBlockDto + System.Threading.Tasks.Task GetAccountBounceBlockStatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Can account send email + /// + /// + /// Check if account block status prevents sending + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AccountBounceBlockDto) + System.Threading.Tasks.Task> GetAccountBounceBlockStatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a bounced email. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced email to fetch + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of BouncedEmailDto + System.Threading.Tasks.Task GetBouncedEmailAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a bounced email. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced email to fetch + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BouncedEmailDto) + System.Threading.Tasks.Task> GetBouncedEmailWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get paginated list of bounced emails. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageBouncedEmail + System.Threading.Tasks.Task GetBouncedEmailsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get paginated list of bounced emails. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageBouncedEmail) + System.Threading.Tasks.Task> GetBouncedEmailsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a bounced email. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced recipient + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of BouncedRecipientDto + System.Threading.Tasks.Task GetBouncedRecipientAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a bounced email. + /// + /// + /// Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced recipient + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BouncedRecipientDto) + System.Threading.Tasks.Task> GetBouncedRecipientWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get paginated list of bounced recipients. + /// + /// + /// Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageBouncedRecipients + System.Threading.Tasks.Task GetBouncedRecipientsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get paginated list of bounced recipients. + /// + /// + /// Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageBouncedRecipients) + System.Threading.Tasks.Task> GetBouncedRecipientsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get complaint + /// + /// + /// Get complaint + /// + /// Thrown when fails to make API call + /// ID of the complaint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Complaint + System.Threading.Tasks.Task GetComplaintAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get complaint + /// + /// + /// Get complaint + /// + /// Thrown when fails to make API call + /// ID of the complaint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Complaint) + System.Threading.Tasks.Task> GetComplaintWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get paginated list of complaints. + /// + /// + /// SMTP complaints made against your account + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageComplaint + System.Threading.Tasks.Task GetComplaintsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get paginated list of complaints. + /// + /// + /// SMTP complaints made against your account + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageComplaint) + System.Threading.Tasks.Task> GetComplaintsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get paginated list of unsubscribed recipients. + /// + /// + /// Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by domainId (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageListUnsubscribeRecipients + System.Threading.Tasks.Task GetListUnsubscribeRecipientsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get paginated list of unsubscribed recipients. + /// + /// + /// Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by domainId (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageListUnsubscribeRecipients) + System.Threading.Tasks.Task> GetListUnsubscribeRecipientsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IBounceControllerApi : IBounceControllerApiSync, IBounceControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class BounceControllerApi : IBounceControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public BounceControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public BounceControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public BounceControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public BounceControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Filter a list of email recipients and remove those who have bounced Prevent email sending errors by remove recipients who have resulted in past email bounces or complaints + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// FilterBouncedRecipientsResult + public FilterBouncedRecipientsResult FilterBouncedRecipient(FilterBouncedRecipientsOptions filterBouncedRecipientsOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = FilterBouncedRecipientWithHttpInfo(filterBouncedRecipientsOptions); + return localVarResponse.Data; + } + + /// + /// Filter a list of email recipients and remove those who have bounced Prevent email sending errors by remove recipients who have resulted in past email bounces or complaints + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of FilterBouncedRecipientsResult + public mailslurp_netstandard_2x.Client.ApiResponse FilterBouncedRecipientWithHttpInfo(FilterBouncedRecipientsOptions filterBouncedRecipientsOptions, int operationIndex = 0) + { + // verify the required parameter 'filterBouncedRecipientsOptions' is set + if (filterBouncedRecipientsOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'filterBouncedRecipientsOptions' when calling BounceControllerApi->FilterBouncedRecipient"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = filterBouncedRecipientsOptions; + + localVarRequestOptions.Operation = "BounceControllerApi.FilterBouncedRecipient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/bounce/filter-recipients", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("FilterBouncedRecipient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Filter a list of email recipients and remove those who have bounced Prevent email sending errors by remove recipients who have resulted in past email bounces or complaints + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of FilterBouncedRecipientsResult + public async System.Threading.Tasks.Task FilterBouncedRecipientAsync(FilterBouncedRecipientsOptions filterBouncedRecipientsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await FilterBouncedRecipientWithHttpInfoAsync(filterBouncedRecipientsOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Filter a list of email recipients and remove those who have bounced Prevent email sending errors by remove recipients who have resulted in past email bounces or complaints + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (FilterBouncedRecipientsResult) + public async System.Threading.Tasks.Task> FilterBouncedRecipientWithHttpInfoAsync(FilterBouncedRecipientsOptions filterBouncedRecipientsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'filterBouncedRecipientsOptions' is set + if (filterBouncedRecipientsOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'filterBouncedRecipientsOptions' when calling BounceControllerApi->FilterBouncedRecipient"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = filterBouncedRecipientsOptions; + + localVarRequestOptions.Operation = "BounceControllerApi.FilterBouncedRecipient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/bounce/filter-recipients", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("FilterBouncedRecipient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Can account send email Check if account block status prevents sending + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// AccountBounceBlockDto + public AccountBounceBlockDto GetAccountBounceBlockStatus(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAccountBounceBlockStatusWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Can account send email Check if account block status prevents sending + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of AccountBounceBlockDto + public mailslurp_netstandard_2x.Client.ApiResponse GetAccountBounceBlockStatusWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "BounceControllerApi.GetAccountBounceBlockStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/bounce/account-block", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccountBounceBlockStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Can account send email Check if account block status prevents sending + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AccountBounceBlockDto + public async System.Threading.Tasks.Task GetAccountBounceBlockStatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAccountBounceBlockStatusWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Can account send email Check if account block status prevents sending + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AccountBounceBlockDto) + public async System.Threading.Tasks.Task> GetAccountBounceBlockStatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "BounceControllerApi.GetAccountBounceBlockStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/bounce/account-block", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccountBounceBlockStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a bounced email. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced email to fetch + /// Index associated with the operation. + /// BouncedEmailDto + public BouncedEmailDto GetBouncedEmail(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetBouncedEmailWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a bounced email. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced email to fetch + /// Index associated with the operation. + /// ApiResponse of BouncedEmailDto + public mailslurp_netstandard_2x.Client.ApiResponse GetBouncedEmailWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "BounceControllerApi.GetBouncedEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/bounce/emails/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBouncedEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a bounced email. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced email to fetch + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of BouncedEmailDto + public async System.Threading.Tasks.Task GetBouncedEmailAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetBouncedEmailWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a bounced email. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced email to fetch + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BouncedEmailDto) + public async System.Threading.Tasks.Task> GetBouncedEmailWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "BounceControllerApi.GetBouncedEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/bounce/emails/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBouncedEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated list of bounced emails. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageBouncedEmail + public PageBouncedEmail GetBouncedEmails(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetBouncedEmailsWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get paginated list of bounced emails. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageBouncedEmail + public mailslurp_netstandard_2x.Client.ApiResponse GetBouncedEmailsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "BounceControllerApi.GetBouncedEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/bounce/emails", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBouncedEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated list of bounced emails. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageBouncedEmail + public async System.Threading.Tasks.Task GetBouncedEmailsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetBouncedEmailsWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get paginated list of bounced emails. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageBouncedEmail) + public async System.Threading.Tasks.Task> GetBouncedEmailsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "BounceControllerApi.GetBouncedEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/bounce/emails", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBouncedEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a bounced email. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced recipient + /// Index associated with the operation. + /// BouncedRecipientDto + public BouncedRecipientDto GetBouncedRecipient(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetBouncedRecipientWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a bounced email. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced recipient + /// Index associated with the operation. + /// ApiResponse of BouncedRecipientDto + public mailslurp_netstandard_2x.Client.ApiResponse GetBouncedRecipientWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "BounceControllerApi.GetBouncedRecipient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/bounce/recipients/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBouncedRecipient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a bounced email. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced recipient + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of BouncedRecipientDto + public async System.Threading.Tasks.Task GetBouncedRecipientAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetBouncedRecipientWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a bounced email. Bounced emails are email you have sent that were rejected by a recipient + /// + /// Thrown when fails to make API call + /// ID of the bounced recipient + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BouncedRecipientDto) + public async System.Threading.Tasks.Task> GetBouncedRecipientWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "BounceControllerApi.GetBouncedRecipient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/bounce/recipients/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBouncedRecipient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated list of bounced recipients. Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageBouncedRecipients + public PageBouncedRecipients GetBouncedRecipients(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetBouncedRecipientsWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get paginated list of bounced recipients. Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageBouncedRecipients + public mailslurp_netstandard_2x.Client.ApiResponse GetBouncedRecipientsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "BounceControllerApi.GetBouncedRecipients"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/bounce/recipients", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBouncedRecipients", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated list of bounced recipients. Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageBouncedRecipients + public async System.Threading.Tasks.Task GetBouncedRecipientsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetBouncedRecipientsWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get paginated list of bounced recipients. Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageBouncedRecipients) + public async System.Threading.Tasks.Task> GetBouncedRecipientsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "BounceControllerApi.GetBouncedRecipients"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/bounce/recipients", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBouncedRecipients", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get complaint Get complaint + /// + /// Thrown when fails to make API call + /// ID of the complaint + /// Index associated with the operation. + /// Complaint + public Complaint GetComplaint(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetComplaintWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get complaint Get complaint + /// + /// Thrown when fails to make API call + /// ID of the complaint + /// Index associated with the operation. + /// ApiResponse of Complaint + public mailslurp_netstandard_2x.Client.ApiResponse GetComplaintWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "BounceControllerApi.GetComplaint"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/bounce/complaints/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetComplaint", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get complaint Get complaint + /// + /// Thrown when fails to make API call + /// ID of the complaint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Complaint + public async System.Threading.Tasks.Task GetComplaintAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetComplaintWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get complaint Get complaint + /// + /// Thrown when fails to make API call + /// ID of the complaint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Complaint) + public async System.Threading.Tasks.Task> GetComplaintWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "BounceControllerApi.GetComplaint"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/bounce/complaints/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetComplaint", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated list of complaints. SMTP complaints made against your account + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageComplaint + public PageComplaint GetComplaints(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetComplaintsWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get paginated list of complaints. SMTP complaints made against your account + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageComplaint + public mailslurp_netstandard_2x.Client.ApiResponse GetComplaintsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "BounceControllerApi.GetComplaints"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/bounce/complaints", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetComplaints", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated list of complaints. SMTP complaints made against your account + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageComplaint + public async System.Threading.Tasks.Task GetComplaintsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetComplaintsWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get paginated list of complaints. SMTP complaints made against your account + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageComplaint) + public async System.Threading.Tasks.Task> GetComplaintsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "BounceControllerApi.GetComplaints"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/bounce/complaints", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetComplaints", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated list of unsubscribed recipients. Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by domainId (optional) + /// Index associated with the operation. + /// PageListUnsubscribeRecipients + public PageListUnsubscribeRecipients GetListUnsubscribeRecipients(int? page = default(int?), int? size = default(int?), string sort = default(string), Guid? domainId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetListUnsubscribeRecipientsWithHttpInfo(page, size, sort, domainId); + return localVarResponse.Data; + } + + /// + /// Get paginated list of unsubscribed recipients. Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by domainId (optional) + /// Index associated with the operation. + /// ApiResponse of PageListUnsubscribeRecipients + public mailslurp_netstandard_2x.Client.ApiResponse GetListUnsubscribeRecipientsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), Guid? domainId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + + localVarRequestOptions.Operation = "BounceControllerApi.GetListUnsubscribeRecipients"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/bounce/list-unsubscribe-recipients", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetListUnsubscribeRecipients", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated list of unsubscribed recipients. Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by domainId (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageListUnsubscribeRecipients + public async System.Threading.Tasks.Task GetListUnsubscribeRecipientsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetListUnsubscribeRecipientsWithHttpInfoAsync(page, size, sort, domainId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get paginated list of unsubscribed recipients. Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again. + /// + /// Thrown when fails to make API call + /// Optional page index (optional, default to 0) + /// Optional page size (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by domainId (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageListUnsubscribeRecipients) + public async System.Threading.Tasks.Task> GetListUnsubscribeRecipientsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + + localVarRequestOptions.Operation = "BounceControllerApi.GetListUnsubscribeRecipients"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/bounce/list-unsubscribe-recipients", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetListUnsubscribeRecipients", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/BulkActionsControllerApi.cs b/src/mailslurp_netstandard_2x/Api/BulkActionsControllerApi.cs new file mode 100644 index 00000000..003b137e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/BulkActionsControllerApi.cs @@ -0,0 +1,741 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IBulkActionsControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Bulk create Inboxes (email addresses) + /// + /// Thrown when fails to make API call + /// Number of inboxes to be created in bulk + /// Index associated with the operation. + /// List<InboxDto> + List BulkCreateInboxes(int count, int operationIndex = 0); + + /// + /// Bulk create Inboxes (email addresses) + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Number of inboxes to be created in bulk + /// Index associated with the operation. + /// ApiResponse of List<InboxDto> + ApiResponse> BulkCreateInboxesWithHttpInfo(int count, int operationIndex = 0); + /// + /// Bulk Delete Inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void BulkDeleteInboxes(List requestBody, int operationIndex = 0); + + /// + /// Bulk Delete Inboxes + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse BulkDeleteInboxesWithHttpInfo(List requestBody, int operationIndex = 0); + /// + /// Bulk Send Emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void BulkSendEmails(BulkSendEmailOptions bulkSendEmailOptions, int operationIndex = 0); + + /// + /// Bulk Send Emails + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse BulkSendEmailsWithHttpInfo(BulkSendEmailOptions bulkSendEmailOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IBulkActionsControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Bulk create Inboxes (email addresses) + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Number of inboxes to be created in bulk + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<InboxDto> + System.Threading.Tasks.Task> BulkCreateInboxesAsync(int count, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Bulk create Inboxes (email addresses) + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Number of inboxes to be created in bulk + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<InboxDto>) + System.Threading.Tasks.Task>> BulkCreateInboxesWithHttpInfoAsync(int count, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Bulk Delete Inboxes + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task BulkDeleteInboxesAsync(List requestBody, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Bulk Delete Inboxes + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> BulkDeleteInboxesWithHttpInfoAsync(List requestBody, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Bulk Send Emails + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task BulkSendEmailsAsync(BulkSendEmailOptions bulkSendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Bulk Send Emails + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> BulkSendEmailsWithHttpInfoAsync(BulkSendEmailOptions bulkSendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IBulkActionsControllerApi : IBulkActionsControllerApiSync, IBulkActionsControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class BulkActionsControllerApi : IBulkActionsControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public BulkActionsControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public BulkActionsControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public BulkActionsControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public BulkActionsControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Bulk create Inboxes (email addresses) + /// + /// Thrown when fails to make API call + /// Number of inboxes to be created in bulk + /// Index associated with the operation. + /// List<InboxDto> + public List BulkCreateInboxes(int count, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = BulkCreateInboxesWithHttpInfo(count); + return localVarResponse.Data; + } + + /// + /// Bulk create Inboxes (email addresses) + /// + /// Thrown when fails to make API call + /// Number of inboxes to be created in bulk + /// Index associated with the operation. + /// ApiResponse of List<InboxDto> + public mailslurp_netstandard_2x.Client.ApiResponse> BulkCreateInboxesWithHttpInfo(int count, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "count", count)); + + localVarRequestOptions.Operation = "BulkActionsControllerApi.BulkCreateInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/bulk/inboxes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("BulkCreateInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Bulk create Inboxes (email addresses) + /// + /// Thrown when fails to make API call + /// Number of inboxes to be created in bulk + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<InboxDto> + public async System.Threading.Tasks.Task> BulkCreateInboxesAsync(int count, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await BulkCreateInboxesWithHttpInfoAsync(count, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Bulk create Inboxes (email addresses) + /// + /// Thrown when fails to make API call + /// Number of inboxes to be created in bulk + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<InboxDto>) + public async System.Threading.Tasks.Task>> BulkCreateInboxesWithHttpInfoAsync(int count, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "count", count)); + + localVarRequestOptions.Operation = "BulkActionsControllerApi.BulkCreateInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync>("/bulk/inboxes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("BulkCreateInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Bulk Delete Inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void BulkDeleteInboxes(List requestBody, int operationIndex = 0) + { + BulkDeleteInboxesWithHttpInfo(requestBody); + } + + /// + /// Bulk Delete Inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse BulkDeleteInboxesWithHttpInfo(List requestBody, int operationIndex = 0) + { + // verify the required parameter 'requestBody' is set + if (requestBody == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'requestBody' when calling BulkActionsControllerApi->BulkDeleteInboxes"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = requestBody; + + localVarRequestOptions.Operation = "BulkActionsControllerApi.BulkDeleteInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/bulk/inboxes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("BulkDeleteInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Bulk Delete Inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task BulkDeleteInboxesAsync(List requestBody, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await BulkDeleteInboxesWithHttpInfoAsync(requestBody, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Bulk Delete Inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> BulkDeleteInboxesWithHttpInfoAsync(List requestBody, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'requestBody' is set + if (requestBody == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'requestBody' when calling BulkActionsControllerApi->BulkDeleteInboxes"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = requestBody; + + localVarRequestOptions.Operation = "BulkActionsControllerApi.BulkDeleteInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/bulk/inboxes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("BulkDeleteInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Bulk Send Emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void BulkSendEmails(BulkSendEmailOptions bulkSendEmailOptions, int operationIndex = 0) + { + BulkSendEmailsWithHttpInfo(bulkSendEmailOptions); + } + + /// + /// Bulk Send Emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse BulkSendEmailsWithHttpInfo(BulkSendEmailOptions bulkSendEmailOptions, int operationIndex = 0) + { + // verify the required parameter 'bulkSendEmailOptions' is set + if (bulkSendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'bulkSendEmailOptions' when calling BulkActionsControllerApi->BulkSendEmails"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = bulkSendEmailOptions; + + localVarRequestOptions.Operation = "BulkActionsControllerApi.BulkSendEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/bulk/send", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("BulkSendEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Bulk Send Emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task BulkSendEmailsAsync(BulkSendEmailOptions bulkSendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await BulkSendEmailsWithHttpInfoAsync(bulkSendEmailOptions, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Bulk Send Emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> BulkSendEmailsWithHttpInfoAsync(BulkSendEmailOptions bulkSendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'bulkSendEmailOptions' is set + if (bulkSendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'bulkSendEmailOptions' when calling BulkActionsControllerApi->BulkSendEmails"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = bulkSendEmailOptions; + + localVarRequestOptions.Operation = "BulkActionsControllerApi.BulkSendEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/bulk/send", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("BulkSendEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/CommonActionsControllerApi.cs b/src/mailslurp_netstandard_2x/Api/CommonActionsControllerApi.cs new file mode 100644 index 00000000..3de259c9 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/CommonActionsControllerApi.cs @@ -0,0 +1,1818 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICommonActionsControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create new random inbox + /// + /// + /// Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// InboxDto + InboxDto CreateNewEmailAddress(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0); + + /// + /// Create new random inbox + /// + /// + /// Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InboxDto + ApiResponse CreateNewEmailAddressWithHttpInfo(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0); + /// + /// Create new random inbox + /// + /// + /// Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// InboxDto + InboxDto CreateRandomInbox(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0); + + /// + /// Create new random inbox + /// + /// + /// Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InboxDto + ApiResponse CreateRandomInboxWithHttpInfo(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0); + /// + /// Delete inbox email address by inbox id + /// + /// + /// Deletes inbox email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteEmailAddress(Guid inboxId, int operationIndex = 0); + + /// + /// Delete inbox email address by inbox id + /// + /// + /// Deletes inbox email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteEmailAddressWithHttpInfo(Guid inboxId, int operationIndex = 0); + /// + /// Delete all emails in an inbox + /// + /// + /// Deletes all emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void EmptyInbox(Guid inboxId, int operationIndex = 0); + + /// + /// Delete all emails in an inbox + /// + /// + /// Deletes all emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse EmptyInboxWithHttpInfo(Guid inboxId, int operationIndex = 0); + /// + /// Send an email using query parameters + /// + /// + /// If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded. + /// + /// Thrown when fails to make API call + /// Email address to send to + /// ID of inbox to send from. If null an inbox will be created for sending (optional) + /// Body of the email message. Supports HTML (optional) + /// Subject line of the email (optional) + /// Index associated with the operation. + /// + void SendEmailQuery(string to, Guid? senderId = default(Guid?), string body = default(string), string subject = default(string), int operationIndex = 0); + + /// + /// Send an email using query parameters + /// + /// + /// If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded. + /// + /// Thrown when fails to make API call + /// Email address to send to + /// ID of inbox to send from. If null an inbox will be created for sending (optional) + /// Body of the email message. Supports HTML (optional) + /// Subject line of the email (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse SendEmailQueryWithHttpInfo(string to, Guid? senderId = default(Guid?), string body = default(string), string subject = default(string), int operationIndex = 0); + /// + /// Send an email + /// + /// + /// If no senderId or inboxId provided a random email address will be used to send from. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void SendEmailSimple(SimpleSendEmailOptions simpleSendEmailOptions, int operationIndex = 0); + + /// + /// Send an email + /// + /// + /// If no senderId or inboxId provided a random email address will be used to send from. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse SendEmailSimpleWithHttpInfo(SimpleSendEmailOptions simpleSendEmailOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICommonActionsControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create new random inbox + /// + /// + /// Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + System.Threading.Tasks.Task CreateNewEmailAddressAsync(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create new random inbox + /// + /// + /// Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + System.Threading.Tasks.Task> CreateNewEmailAddressWithHttpInfoAsync(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create new random inbox + /// + /// + /// Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + System.Threading.Tasks.Task CreateRandomInboxAsync(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create new random inbox + /// + /// + /// Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + System.Threading.Tasks.Task> CreateRandomInboxWithHttpInfoAsync(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete inbox email address by inbox id + /// + /// + /// Deletes inbox email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteEmailAddressAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete inbox email address by inbox id + /// + /// + /// Deletes inbox email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteEmailAddressWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete all emails in an inbox + /// + /// + /// Deletes all emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task EmptyInboxAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete all emails in an inbox + /// + /// + /// Deletes all emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> EmptyInboxWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send an email using query parameters + /// + /// + /// If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded. + /// + /// Thrown when fails to make API call + /// Email address to send to + /// ID of inbox to send from. If null an inbox will be created for sending (optional) + /// Body of the email message. Supports HTML (optional) + /// Subject line of the email (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task SendEmailQueryAsync(string to, Guid? senderId = default(Guid?), string body = default(string), string subject = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send an email using query parameters + /// + /// + /// If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded. + /// + /// Thrown when fails to make API call + /// Email address to send to + /// ID of inbox to send from. If null an inbox will be created for sending (optional) + /// Body of the email message. Supports HTML (optional) + /// Subject line of the email (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> SendEmailQueryWithHttpInfoAsync(string to, Guid? senderId = default(Guid?), string body = default(string), string subject = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send an email + /// + /// + /// If no senderId or inboxId provided a random email address will be used to send from. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task SendEmailSimpleAsync(SimpleSendEmailOptions simpleSendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send an email + /// + /// + /// If no senderId or inboxId provided a random email address will be used to send from. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> SendEmailSimpleWithHttpInfoAsync(SimpleSendEmailOptions simpleSendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICommonActionsControllerApi : ICommonActionsControllerApiSync, ICommonActionsControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CommonActionsControllerApi : ICommonActionsControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public CommonActionsControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public CommonActionsControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public CommonActionsControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public CommonActionsControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create new random inbox Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// InboxDto + public InboxDto CreateNewEmailAddress(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateNewEmailAddressWithHttpInfo(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix); + return localVarResponse.Data; + } + + /// + /// Create new random inbox Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InboxDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateNewEmailAddressWithHttpInfo(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (allowTeamAccess != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "allowTeamAccess", allowTeamAccess)); + } + if (useDomainPool != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useDomainPool", useDomainPool)); + } + if (expiresAt != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresAt", expiresAt)); + } + if (expiresIn != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresIn", expiresIn)); + } + if (emailAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + } + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + if (description != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "description", description)); + } + if (name != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + } + if (tags != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "tags", tags)); + } + if (favourite != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "favourite", favourite)); + } + if (virtualInbox != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "virtualInbox", virtualInbox)); + } + if (useShortAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useShortAddress", useShortAddress)); + } + if (domainName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainName", domainName)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + if (prefix != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "prefix", prefix)); + } + + localVarRequestOptions.Operation = "CommonActionsControllerApi.CreateNewEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/newEmailAddress", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNewEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create new random inbox Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + public async System.Threading.Tasks.Task CreateNewEmailAddressAsync(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateNewEmailAddressWithHttpInfoAsync(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create new random inbox Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + public async System.Threading.Tasks.Task> CreateNewEmailAddressWithHttpInfoAsync(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (allowTeamAccess != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "allowTeamAccess", allowTeamAccess)); + } + if (useDomainPool != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useDomainPool", useDomainPool)); + } + if (expiresAt != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresAt", expiresAt)); + } + if (expiresIn != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresIn", expiresIn)); + } + if (emailAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + } + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + if (description != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "description", description)); + } + if (name != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + } + if (tags != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "tags", tags)); + } + if (favourite != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "favourite", favourite)); + } + if (virtualInbox != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "virtualInbox", virtualInbox)); + } + if (useShortAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useShortAddress", useShortAddress)); + } + if (domainName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainName", domainName)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + if (prefix != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "prefix", prefix)); + } + + localVarRequestOptions.Operation = "CommonActionsControllerApi.CreateNewEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/newEmailAddress", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNewEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create new random inbox Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// InboxDto + public InboxDto CreateRandomInbox(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateRandomInboxWithHttpInfo(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix); + return localVarResponse.Data; + } + + /// + /// Create new random inbox Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InboxDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateRandomInboxWithHttpInfo(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (allowTeamAccess != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "allowTeamAccess", allowTeamAccess)); + } + if (useDomainPool != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useDomainPool", useDomainPool)); + } + if (expiresAt != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresAt", expiresAt)); + } + if (expiresIn != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresIn", expiresIn)); + } + if (emailAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + } + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + if (description != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "description", description)); + } + if (name != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + } + if (tags != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "tags", tags)); + } + if (favourite != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "favourite", favourite)); + } + if (virtualInbox != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "virtualInbox", virtualInbox)); + } + if (useShortAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useShortAddress", useShortAddress)); + } + if (domainName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainName", domainName)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + if (prefix != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "prefix", prefix)); + } + + localVarRequestOptions.Operation = "CommonActionsControllerApi.CreateRandomInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/createInbox", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateRandomInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create new random inbox Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + public async System.Threading.Tasks.Task CreateRandomInboxAsync(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateRandomInboxWithHttpInfoAsync(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create new random inbox Returns an Inbox with an `id` and an `emailAddress` + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + public async System.Threading.Tasks.Task> CreateRandomInboxWithHttpInfoAsync(bool? allowTeamAccess = default(bool?), bool? useDomainPool = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), string emailAddress = default(string), string inboxType = default(string), string description = default(string), string name = default(string), List tags = default(List), bool? favourite = default(bool?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string domainName = default(string), Guid? domainId = default(Guid?), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (allowTeamAccess != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "allowTeamAccess", allowTeamAccess)); + } + if (useDomainPool != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useDomainPool", useDomainPool)); + } + if (expiresAt != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresAt", expiresAt)); + } + if (expiresIn != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresIn", expiresIn)); + } + if (emailAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + } + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + if (description != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "description", description)); + } + if (name != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + } + if (tags != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "tags", tags)); + } + if (favourite != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "favourite", favourite)); + } + if (virtualInbox != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "virtualInbox", virtualInbox)); + } + if (useShortAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useShortAddress", useShortAddress)); + } + if (domainName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainName", domainName)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + if (prefix != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "prefix", prefix)); + } + + localVarRequestOptions.Operation = "CommonActionsControllerApi.CreateRandomInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/createInbox", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateRandomInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inbox email address by inbox id Deletes inbox email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteEmailAddress(Guid inboxId, int operationIndex = 0) + { + DeleteEmailAddressWithHttpInfo(inboxId); + } + + /// + /// Delete inbox email address by inbox id Deletes inbox email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteEmailAddressWithHttpInfo(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + + localVarRequestOptions.Operation = "CommonActionsControllerApi.DeleteEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/deleteEmailAddress", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inbox email address by inbox id Deletes inbox email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteEmailAddressAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteEmailAddressWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete inbox email address by inbox id Deletes inbox email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteEmailAddressWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + + localVarRequestOptions.Operation = "CommonActionsControllerApi.DeleteEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/deleteEmailAddress", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all emails in an inbox Deletes all emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void EmptyInbox(Guid inboxId, int operationIndex = 0) + { + EmptyInboxWithHttpInfo(inboxId); + } + + /// + /// Delete all emails in an inbox Deletes all emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse EmptyInboxWithHttpInfo(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + + localVarRequestOptions.Operation = "CommonActionsControllerApi.EmptyInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/emptyInbox", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("EmptyInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all emails in an inbox Deletes all emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task EmptyInboxAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await EmptyInboxWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete all emails in an inbox Deletes all emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> EmptyInboxWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + + localVarRequestOptions.Operation = "CommonActionsControllerApi.EmptyInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/emptyInbox", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("EmptyInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send an email using query parameters If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded. + /// + /// Thrown when fails to make API call + /// Email address to send to + /// ID of inbox to send from. If null an inbox will be created for sending (optional) + /// Body of the email message. Supports HTML (optional) + /// Subject line of the email (optional) + /// Index associated with the operation. + /// + public void SendEmailQuery(string to, Guid? senderId = default(Guid?), string body = default(string), string subject = default(string), int operationIndex = 0) + { + SendEmailQueryWithHttpInfo(to, senderId, body, subject); + } + + /// + /// Send an email using query parameters If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded. + /// + /// Thrown when fails to make API call + /// Email address to send to + /// ID of inbox to send from. If null an inbox will be created for sending (optional) + /// Body of the email message. Supports HTML (optional) + /// Subject line of the email (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse SendEmailQueryWithHttpInfo(string to, Guid? senderId = default(Guid?), string body = default(string), string subject = default(string), int operationIndex = 0) + { + // verify the required parameter 'to' is set + if (to == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'to' when calling CommonActionsControllerApi->SendEmailQuery"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (senderId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "senderId", senderId)); + } + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "to", to)); + if (body != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "body", body)); + } + if (subject != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "subject", subject)); + } + + localVarRequestOptions.Operation = "CommonActionsControllerApi.SendEmailQuery"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/sendEmailQuery", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmailQuery", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send an email using query parameters If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded. + /// + /// Thrown when fails to make API call + /// Email address to send to + /// ID of inbox to send from. If null an inbox will be created for sending (optional) + /// Body of the email message. Supports HTML (optional) + /// Subject line of the email (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task SendEmailQueryAsync(string to, Guid? senderId = default(Guid?), string body = default(string), string subject = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await SendEmailQueryWithHttpInfoAsync(to, senderId, body, subject, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Send an email using query parameters If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded. + /// + /// Thrown when fails to make API call + /// Email address to send to + /// ID of inbox to send from. If null an inbox will be created for sending (optional) + /// Body of the email message. Supports HTML (optional) + /// Subject line of the email (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SendEmailQueryWithHttpInfoAsync(string to, Guid? senderId = default(Guid?), string body = default(string), string subject = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'to' is set + if (to == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'to' when calling CommonActionsControllerApi->SendEmailQuery"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (senderId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "senderId", senderId)); + } + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "to", to)); + if (body != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "body", body)); + } + if (subject != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "subject", subject)); + } + + localVarRequestOptions.Operation = "CommonActionsControllerApi.SendEmailQuery"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/sendEmailQuery", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmailQuery", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send an email If no senderId or inboxId provided a random email address will be used to send from. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void SendEmailSimple(SimpleSendEmailOptions simpleSendEmailOptions, int operationIndex = 0) + { + SendEmailSimpleWithHttpInfo(simpleSendEmailOptions); + } + + /// + /// Send an email If no senderId or inboxId provided a random email address will be used to send from. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse SendEmailSimpleWithHttpInfo(SimpleSendEmailOptions simpleSendEmailOptions, int operationIndex = 0) + { + // verify the required parameter 'simpleSendEmailOptions' is set + if (simpleSendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'simpleSendEmailOptions' when calling CommonActionsControllerApi->SendEmailSimple"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = simpleSendEmailOptions; + + localVarRequestOptions.Operation = "CommonActionsControllerApi.SendEmailSimple"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/sendEmail", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmailSimple", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send an email If no senderId or inboxId provided a random email address will be used to send from. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task SendEmailSimpleAsync(SimpleSendEmailOptions simpleSendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await SendEmailSimpleWithHttpInfoAsync(simpleSendEmailOptions, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Send an email If no senderId or inboxId provided a random email address will be used to send from. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SendEmailSimpleWithHttpInfoAsync(SimpleSendEmailOptions simpleSendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'simpleSendEmailOptions' is set + if (simpleSendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'simpleSendEmailOptions' when calling CommonActionsControllerApi->SendEmailSimple"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = simpleSendEmailOptions; + + localVarRequestOptions.Operation = "CommonActionsControllerApi.SendEmailSimple"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/sendEmail", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmailSimple", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/ConnectorControllerApi.cs b/src/mailslurp_netstandard_2x/Api/ConnectorControllerApi.cs new file mode 100644 index 00000000..6ec208c6 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/ConnectorControllerApi.cs @@ -0,0 +1,3076 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IConnectorControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create an inbox connector + /// + /// + /// Sync emails between external mailboxes and MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ConnectorDto + ConnectorDto CreateConnector(CreateConnectorOptions createConnectorOptions, int operationIndex = 0); + + /// + /// Create an inbox connector + /// + /// + /// Sync emails between external mailboxes and MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorDto + ApiResponse CreateConnectorWithHttpInfo(CreateConnectorOptions createConnectorOptions, int operationIndex = 0); + /// + /// Create an inbox connector IMAP connection + /// + /// + /// Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ConnectorImapConnectionDto + ConnectorImapConnectionDto CreateConnectorImapConnection(Guid id, CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions, int operationIndex = 0); + + /// + /// Create an inbox connector IMAP connection + /// + /// + /// Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorImapConnectionDto + ApiResponse CreateConnectorImapConnectionWithHttpInfo(Guid id, CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions, int operationIndex = 0); + /// + /// Create an inbox connector SMTP connection + /// + /// + /// Allows sending via connector and email is routed to connected inbox and sent via SMTP + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ConnectorSmtpConnectionDto + ConnectorSmtpConnectionDto CreateConnectorSmtpConnection(Guid id, CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions, int operationIndex = 0); + + /// + /// Create an inbox connector SMTP connection + /// + /// + /// Allows sending via connector and email is routed to connected inbox and sent via SMTP + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorSmtpConnectionDto + ApiResponse CreateConnectorSmtpConnectionWithHttpInfo(Guid id, CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions, int operationIndex = 0); + /// + /// Delete all inbox connectors + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + void DeleteAllConnector(int operationIndex = 0); + + /// + /// Delete all inbox connectors + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAllConnectorWithHttpInfo(int operationIndex = 0); + /// + /// Delete an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteConnector(Guid id, int operationIndex = 0); + + /// + /// Delete an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteConnectorWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Delete an inbox connector IMAP connection + /// + /// + /// Delete IMAP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteConnectorImapConnection(Guid id, int operationIndex = 0); + + /// + /// Delete an inbox connector IMAP connection + /// + /// + /// Delete IMAP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteConnectorImapConnectionWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Delete an inbox connector SMTP connection + /// + /// + /// Delete SMTP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteConnectorSmtpConnection(Guid id, int operationIndex = 0); + + /// + /// Delete an inbox connector SMTP connection + /// + /// + /// Delete SMTP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteConnectorSmtpConnectionWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get all inbox connector sync events + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageConnectorSyncEvents + PageConnectorSyncEvents GetAllConnectorSyncEvents(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get all inbox connector sync events + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageConnectorSyncEvents + ApiResponse GetAllConnectorSyncEventsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ConnectorDto + ConnectorDto GetConnector(Guid id, int operationIndex = 0); + + /// + /// Get an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorDto + ApiResponse GetConnectorWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get an inbox connector sync event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ConnectorSyncEventDto + ConnectorSyncEventDto GetConnectorSyncEvent(Guid id, int operationIndex = 0); + + /// + /// Get an inbox connector sync event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorSyncEventDto + ApiResponse GetConnectorSyncEventWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get an inbox connector sync events + /// + /// Thrown when fails to make API call + /// + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageConnectorSyncEvents + PageConnectorSyncEvents GetConnectorSyncEvents(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get an inbox connector sync events + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageConnectorSyncEvents + ApiResponse GetConnectorSyncEventsWithHttpInfo(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get inbox connectors + /// + /// + /// List inbox connectors that sync external emails to MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageConnector + PageConnector GetConnectors(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get inbox connectors + /// + /// + /// List inbox connectors that sync external emails to MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageConnector + ApiResponse GetConnectorsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Sync an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ConnectorSyncRequestResult + ConnectorSyncRequestResult SyncConnector(Guid id, int operationIndex = 0); + + /// + /// Sync an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorSyncRequestResult + ApiResponse SyncConnectorWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Update an inbox connector + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ConnectorDto + ConnectorDto UpdateConnector(Guid id, CreateConnectorOptions createConnectorOptions, int operationIndex = 0); + + /// + /// Update an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorDto + ApiResponse UpdateConnectorWithHttpInfo(Guid id, CreateConnectorOptions createConnectorOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IConnectorControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create an inbox connector + /// + /// + /// Sync emails between external mailboxes and MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorDto + System.Threading.Tasks.Task CreateConnectorAsync(CreateConnectorOptions createConnectorOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create an inbox connector + /// + /// + /// Sync emails between external mailboxes and MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorDto) + System.Threading.Tasks.Task> CreateConnectorWithHttpInfoAsync(CreateConnectorOptions createConnectorOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create an inbox connector IMAP connection + /// + /// + /// Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorImapConnectionDto + System.Threading.Tasks.Task CreateConnectorImapConnectionAsync(Guid id, CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create an inbox connector IMAP connection + /// + /// + /// Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorImapConnectionDto) + System.Threading.Tasks.Task> CreateConnectorImapConnectionWithHttpInfoAsync(Guid id, CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create an inbox connector SMTP connection + /// + /// + /// Allows sending via connector and email is routed to connected inbox and sent via SMTP + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorSmtpConnectionDto + System.Threading.Tasks.Task CreateConnectorSmtpConnectionAsync(Guid id, CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create an inbox connector SMTP connection + /// + /// + /// Allows sending via connector and email is routed to connected inbox and sent via SMTP + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorSmtpConnectionDto) + System.Threading.Tasks.Task> CreateConnectorSmtpConnectionWithHttpInfoAsync(Guid id, CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete all inbox connectors + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAllConnectorAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete all inbox connectors + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAllConnectorWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteConnectorAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteConnectorWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete an inbox connector IMAP connection + /// + /// + /// Delete IMAP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteConnectorImapConnectionAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete an inbox connector IMAP connection + /// + /// + /// Delete IMAP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteConnectorImapConnectionWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete an inbox connector SMTP connection + /// + /// + /// Delete SMTP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteConnectorSmtpConnectionAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete an inbox connector SMTP connection + /// + /// + /// Delete SMTP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteConnectorSmtpConnectionWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all inbox connector sync events + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageConnectorSyncEvents + System.Threading.Tasks.Task GetAllConnectorSyncEventsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all inbox connector sync events + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageConnectorSyncEvents) + System.Threading.Tasks.Task> GetAllConnectorSyncEventsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorDto + System.Threading.Tasks.Task GetConnectorAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorDto) + System.Threading.Tasks.Task> GetConnectorWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an inbox connector sync event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorSyncEventDto + System.Threading.Tasks.Task GetConnectorSyncEventAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an inbox connector sync event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorSyncEventDto) + System.Threading.Tasks.Task> GetConnectorSyncEventWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an inbox connector sync events + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageConnectorSyncEvents + System.Threading.Tasks.Task GetConnectorSyncEventsAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an inbox connector sync events + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageConnectorSyncEvents) + System.Threading.Tasks.Task> GetConnectorSyncEventsWithHttpInfoAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get inbox connectors + /// + /// + /// List inbox connectors that sync external emails to MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageConnector + System.Threading.Tasks.Task GetConnectorsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get inbox connectors + /// + /// + /// List inbox connectors that sync external emails to MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageConnector) + System.Threading.Tasks.Task> GetConnectorsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Sync an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorSyncRequestResult + System.Threading.Tasks.Task SyncConnectorAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Sync an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorSyncRequestResult) + System.Threading.Tasks.Task> SyncConnectorWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Update an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorDto + System.Threading.Tasks.Task UpdateConnectorAsync(Guid id, CreateConnectorOptions createConnectorOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update an inbox connector + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorDto) + System.Threading.Tasks.Task> UpdateConnectorWithHttpInfoAsync(Guid id, CreateConnectorOptions createConnectorOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IConnectorControllerApi : IConnectorControllerApiSync, IConnectorControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ConnectorControllerApi : IConnectorControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ConnectorControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public ConnectorControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ConnectorControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public ConnectorControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create an inbox connector Sync emails between external mailboxes and MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ConnectorDto + public ConnectorDto CreateConnector(CreateConnectorOptions createConnectorOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateConnectorWithHttpInfo(createConnectorOptions); + return localVarResponse.Data; + } + + /// + /// Create an inbox connector Sync emails between external mailboxes and MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateConnectorWithHttpInfo(CreateConnectorOptions createConnectorOptions, int operationIndex = 0) + { + // verify the required parameter 'createConnectorOptions' is set + if (createConnectorOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createConnectorOptions' when calling ConnectorControllerApi->CreateConnector"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createConnectorOptions; + + localVarRequestOptions.Operation = "ConnectorControllerApi.CreateConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/connectors", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox connector Sync emails between external mailboxes and MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorDto + public async System.Threading.Tasks.Task CreateConnectorAsync(CreateConnectorOptions createConnectorOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateConnectorWithHttpInfoAsync(createConnectorOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create an inbox connector Sync emails between external mailboxes and MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorDto) + public async System.Threading.Tasks.Task> CreateConnectorWithHttpInfoAsync(CreateConnectorOptions createConnectorOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createConnectorOptions' is set + if (createConnectorOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createConnectorOptions' when calling ConnectorControllerApi->CreateConnector"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createConnectorOptions; + + localVarRequestOptions.Operation = "ConnectorControllerApi.CreateConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/connectors", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox connector IMAP connection Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ConnectorImapConnectionDto + public ConnectorImapConnectionDto CreateConnectorImapConnection(Guid id, CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateConnectorImapConnectionWithHttpInfo(id, createConnectorImapConnectionOptions); + return localVarResponse.Data; + } + + /// + /// Create an inbox connector IMAP connection Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorImapConnectionDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateConnectorImapConnectionWithHttpInfo(Guid id, CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions, int operationIndex = 0) + { + // verify the required parameter 'createConnectorImapConnectionOptions' is set + if (createConnectorImapConnectionOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createConnectorImapConnectionOptions' when calling ConnectorControllerApi->CreateConnectorImapConnection"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createConnectorImapConnectionOptions; + + localVarRequestOptions.Operation = "ConnectorControllerApi.CreateConnectorImapConnection"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/connectors/{id}/imap", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateConnectorImapConnection", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox connector IMAP connection Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorImapConnectionDto + public async System.Threading.Tasks.Task CreateConnectorImapConnectionAsync(Guid id, CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateConnectorImapConnectionWithHttpInfoAsync(id, createConnectorImapConnectionOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create an inbox connector IMAP connection Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorImapConnectionDto) + public async System.Threading.Tasks.Task> CreateConnectorImapConnectionWithHttpInfoAsync(Guid id, CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createConnectorImapConnectionOptions' is set + if (createConnectorImapConnectionOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createConnectorImapConnectionOptions' when calling ConnectorControllerApi->CreateConnectorImapConnection"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createConnectorImapConnectionOptions; + + localVarRequestOptions.Operation = "ConnectorControllerApi.CreateConnectorImapConnection"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/connectors/{id}/imap", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateConnectorImapConnection", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox connector SMTP connection Allows sending via connector and email is routed to connected inbox and sent via SMTP + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ConnectorSmtpConnectionDto + public ConnectorSmtpConnectionDto CreateConnectorSmtpConnection(Guid id, CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateConnectorSmtpConnectionWithHttpInfo(id, createConnectorSmtpConnectionOptions); + return localVarResponse.Data; + } + + /// + /// Create an inbox connector SMTP connection Allows sending via connector and email is routed to connected inbox and sent via SMTP + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorSmtpConnectionDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateConnectorSmtpConnectionWithHttpInfo(Guid id, CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions, int operationIndex = 0) + { + // verify the required parameter 'createConnectorSmtpConnectionOptions' is set + if (createConnectorSmtpConnectionOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createConnectorSmtpConnectionOptions' when calling ConnectorControllerApi->CreateConnectorSmtpConnection"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createConnectorSmtpConnectionOptions; + + localVarRequestOptions.Operation = "ConnectorControllerApi.CreateConnectorSmtpConnection"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/connectors/{id}/smtp", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateConnectorSmtpConnection", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox connector SMTP connection Allows sending via connector and email is routed to connected inbox and sent via SMTP + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorSmtpConnectionDto + public async System.Threading.Tasks.Task CreateConnectorSmtpConnectionAsync(Guid id, CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateConnectorSmtpConnectionWithHttpInfoAsync(id, createConnectorSmtpConnectionOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create an inbox connector SMTP connection Allows sending via connector and email is routed to connected inbox and sent via SMTP + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorSmtpConnectionDto) + public async System.Threading.Tasks.Task> CreateConnectorSmtpConnectionWithHttpInfoAsync(Guid id, CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createConnectorSmtpConnectionOptions' is set + if (createConnectorSmtpConnectionOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createConnectorSmtpConnectionOptions' when calling ConnectorControllerApi->CreateConnectorSmtpConnection"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createConnectorSmtpConnectionOptions; + + localVarRequestOptions.Operation = "ConnectorControllerApi.CreateConnectorSmtpConnection"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/connectors/{id}/smtp", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateConnectorSmtpConnection", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all inbox connectors + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + public void DeleteAllConnector(int operationIndex = 0) + { + DeleteAllConnectorWithHttpInfo(); + } + + /// + /// Delete all inbox connectors + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAllConnectorWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ConnectorControllerApi.DeleteAllConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/connectors", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all inbox connectors + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAllConnectorAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAllConnectorWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete all inbox connectors + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAllConnectorWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ConnectorControllerApi.DeleteAllConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/connectors", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteConnector(Guid id, int operationIndex = 0) + { + DeleteConnectorWithHttpInfo(id); + } + + /// + /// Delete an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteConnectorWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.DeleteConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/connectors/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteConnectorAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteConnectorWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteConnectorWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.DeleteConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/connectors/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox connector IMAP connection Delete IMAP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteConnectorImapConnection(Guid id, int operationIndex = 0) + { + DeleteConnectorImapConnectionWithHttpInfo(id); + } + + /// + /// Delete an inbox connector IMAP connection Delete IMAP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteConnectorImapConnectionWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.DeleteConnectorImapConnection"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/connectors/{id}/imap", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteConnectorImapConnection", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox connector IMAP connection Delete IMAP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteConnectorImapConnectionAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteConnectorImapConnectionWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an inbox connector IMAP connection Delete IMAP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteConnectorImapConnectionWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.DeleteConnectorImapConnection"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/connectors/{id}/imap", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteConnectorImapConnection", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox connector SMTP connection Delete SMTP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteConnectorSmtpConnection(Guid id, int operationIndex = 0) + { + DeleteConnectorSmtpConnectionWithHttpInfo(id); + } + + /// + /// Delete an inbox connector SMTP connection Delete SMTP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteConnectorSmtpConnectionWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.DeleteConnectorSmtpConnection"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/connectors/{id}/smtp", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteConnectorSmtpConnection", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox connector SMTP connection Delete SMTP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteConnectorSmtpConnectionAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteConnectorSmtpConnectionWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an inbox connector SMTP connection Delete SMTP connection for external inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteConnectorSmtpConnectionWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.DeleteConnectorSmtpConnection"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/connectors/{id}/smtp", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteConnectorSmtpConnection", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all inbox connector sync events + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageConnectorSyncEvents + public PageConnectorSyncEvents GetAllConnectorSyncEvents(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllConnectorSyncEventsWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get all inbox connector sync events + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageConnectorSyncEvents + public mailslurp_netstandard_2x.Client.ApiResponse GetAllConnectorSyncEventsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "ConnectorControllerApi.GetAllConnectorSyncEvents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/connectors/events", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllConnectorSyncEvents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all inbox connector sync events + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageConnectorSyncEvents + public async System.Threading.Tasks.Task GetAllConnectorSyncEventsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllConnectorSyncEventsWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all inbox connector sync events + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageConnectorSyncEvents) + public async System.Threading.Tasks.Task> GetAllConnectorSyncEventsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "ConnectorControllerApi.GetAllConnectorSyncEvents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/connectors/events", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllConnectorSyncEvents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ConnectorDto + public ConnectorDto GetConnector(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetConnectorWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorDto + public mailslurp_netstandard_2x.Client.ApiResponse GetConnectorWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.GetConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/connectors/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorDto + public async System.Threading.Tasks.Task GetConnectorAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetConnectorWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorDto) + public async System.Threading.Tasks.Task> GetConnectorWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.GetConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/connectors/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox connector sync event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ConnectorSyncEventDto + public ConnectorSyncEventDto GetConnectorSyncEvent(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetConnectorSyncEventWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get an inbox connector sync event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorSyncEventDto + public mailslurp_netstandard_2x.Client.ApiResponse GetConnectorSyncEventWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.GetConnectorSyncEvent"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/connectors/events/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetConnectorSyncEvent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox connector sync event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorSyncEventDto + public async System.Threading.Tasks.Task GetConnectorSyncEventAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetConnectorSyncEventWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an inbox connector sync event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorSyncEventDto) + public async System.Threading.Tasks.Task> GetConnectorSyncEventWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.GetConnectorSyncEvent"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/connectors/events/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetConnectorSyncEvent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox connector sync events + /// + /// Thrown when fails to make API call + /// + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageConnectorSyncEvents + public PageConnectorSyncEvents GetConnectorSyncEvents(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetConnectorSyncEventsWithHttpInfo(id, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get an inbox connector sync events + /// + /// Thrown when fails to make API call + /// + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageConnectorSyncEvents + public mailslurp_netstandard_2x.Client.ApiResponse GetConnectorSyncEventsWithHttpInfo(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "ConnectorControllerApi.GetConnectorSyncEvents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/connectors/{id}/events", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetConnectorSyncEvents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox connector sync events + /// + /// Thrown when fails to make API call + /// + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageConnectorSyncEvents + public async System.Threading.Tasks.Task GetConnectorSyncEventsAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetConnectorSyncEventsWithHttpInfoAsync(id, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an inbox connector sync events + /// + /// Thrown when fails to make API call + /// + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageConnectorSyncEvents) + public async System.Threading.Tasks.Task> GetConnectorSyncEventsWithHttpInfoAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "ConnectorControllerApi.GetConnectorSyncEvents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/connectors/{id}/events", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetConnectorSyncEvents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get inbox connectors List inbox connectors that sync external emails to MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageConnector + public PageConnector GetConnectors(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetConnectorsWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get inbox connectors List inbox connectors that sync external emails to MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageConnector + public mailslurp_netstandard_2x.Client.ApiResponse GetConnectorsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "ConnectorControllerApi.GetConnectors"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/connectors", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetConnectors", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get inbox connectors List inbox connectors that sync external emails to MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageConnector + public async System.Threading.Tasks.Task GetConnectorsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetConnectorsWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get inbox connectors List inbox connectors that sync external emails to MailSlurp inboxes + /// + /// Thrown when fails to make API call + /// Optional page index in connector list pagination (optional, default to 0) + /// Optional page size in connector list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageConnector) + public async System.Threading.Tasks.Task> GetConnectorsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "ConnectorControllerApi.GetConnectors"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/connectors", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetConnectors", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Sync an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ConnectorSyncRequestResult + public ConnectorSyncRequestResult SyncConnector(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = SyncConnectorWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Sync an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorSyncRequestResult + public mailslurp_netstandard_2x.Client.ApiResponse SyncConnectorWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.SyncConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/connectors/{id}/sync", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SyncConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Sync an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorSyncRequestResult + public async System.Threading.Tasks.Task SyncConnectorAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await SyncConnectorWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Sync an inbox connector + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorSyncRequestResult) + public async System.Threading.Tasks.Task> SyncConnectorWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ConnectorControllerApi.SyncConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/connectors/{id}/sync", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SyncConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an inbox connector + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ConnectorDto + public ConnectorDto UpdateConnector(Guid id, CreateConnectorOptions createConnectorOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = UpdateConnectorWithHttpInfo(id, createConnectorOptions); + return localVarResponse.Data; + } + + /// + /// Update an inbox connector + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of ConnectorDto + public mailslurp_netstandard_2x.Client.ApiResponse UpdateConnectorWithHttpInfo(Guid id, CreateConnectorOptions createConnectorOptions, int operationIndex = 0) + { + // verify the required parameter 'createConnectorOptions' is set + if (createConnectorOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createConnectorOptions' when calling ConnectorControllerApi->UpdateConnector"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createConnectorOptions; + + localVarRequestOptions.Operation = "ConnectorControllerApi.UpdateConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/connectors/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an inbox connector + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ConnectorDto + public async System.Threading.Tasks.Task UpdateConnectorAsync(Guid id, CreateConnectorOptions createConnectorOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await UpdateConnectorWithHttpInfoAsync(id, createConnectorOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update an inbox connector + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ConnectorDto) + public async System.Threading.Tasks.Task> UpdateConnectorWithHttpInfoAsync(Guid id, CreateConnectorOptions createConnectorOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createConnectorOptions' is set + if (createConnectorOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createConnectorOptions' when calling ConnectorControllerApi->UpdateConnector"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createConnectorOptions; + + localVarRequestOptions.Operation = "ConnectorControllerApi.UpdateConnector"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/connectors/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateConnector", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/ContactControllerApi.cs b/src/mailslurp_netstandard_2x/Api/ContactControllerApi.cs new file mode 100644 index 00000000..735ffd4c --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/ContactControllerApi.cs @@ -0,0 +1,1372 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IContactControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create a contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ContactDto + ContactDto CreateContact(CreateContactOptions createContactOptions, int operationIndex = 0); + + /// + /// Create a contact + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ContactDto + ApiResponse CreateContactWithHttpInfo(CreateContactOptions createContactOptions, int operationIndex = 0); + /// + /// Delete contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteContact(Guid contactId, int operationIndex = 0); + + /// + /// Delete contact + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteContactWithHttpInfo(Guid contactId, int operationIndex = 0); + /// + /// Get all contacts + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Search terms (optional) + /// Index associated with the operation. + /// PageContactProjection + PageContactProjection GetAllContacts(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string search = default(string), int operationIndex = 0); + + /// + /// Get all contacts + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Search terms (optional) + /// Index associated with the operation. + /// ApiResponse of PageContactProjection + ApiResponse GetAllContactsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string search = default(string), int operationIndex = 0); + /// + /// Get contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ContactDto + ContactDto GetContact(Guid contactId, int operationIndex = 0); + + /// + /// Get contact + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ContactDto + ApiResponse GetContactWithHttpInfo(Guid contactId, int operationIndex = 0); + /// + /// Get contact vCard vcf file + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + [Obsolete] + void GetContactVCard(Guid contactId, int operationIndex = 0); + + /// + /// Get contact vCard vcf file + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + ApiResponse GetContactVCardWithHttpInfo(Guid contactId, int operationIndex = 0); + /// + /// Get all contacts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<ContactProjection> + List GetContacts(int operationIndex = 0); + + /// + /// Get all contacts + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<ContactProjection> + ApiResponse> GetContactsWithHttpInfo(int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IContactControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create a contact + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ContactDto + System.Threading.Tasks.Task CreateContactAsync(CreateContactOptions createContactOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create a contact + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ContactDto) + System.Threading.Tasks.Task> CreateContactWithHttpInfoAsync(CreateContactOptions createContactOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete contact + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteContactAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete contact + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteContactWithHttpInfoAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all contacts + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Search terms (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageContactProjection + System.Threading.Tasks.Task GetAllContactsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string search = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all contacts + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Search terms (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageContactProjection) + System.Threading.Tasks.Task> GetAllContactsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string search = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get contact + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ContactDto + System.Threading.Tasks.Task GetContactAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get contact + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ContactDto) + System.Threading.Tasks.Task> GetContactWithHttpInfoAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get contact vCard vcf file + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + System.Threading.Tasks.Task GetContactVCardAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get contact vCard vcf file + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + System.Threading.Tasks.Task> GetContactVCardWithHttpInfoAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all contacts + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ContactProjection> + System.Threading.Tasks.Task> GetContactsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all contacts + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ContactProjection>) + System.Threading.Tasks.Task>> GetContactsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IContactControllerApi : IContactControllerApiSync, IContactControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ContactControllerApi : IContactControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ContactControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public ContactControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ContactControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public ContactControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create a contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ContactDto + public ContactDto CreateContact(CreateContactOptions createContactOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateContactWithHttpInfo(createContactOptions); + return localVarResponse.Data; + } + + /// + /// Create a contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ContactDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateContactWithHttpInfo(CreateContactOptions createContactOptions, int operationIndex = 0) + { + // verify the required parameter 'createContactOptions' is set + if (createContactOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createContactOptions' when calling ContactControllerApi->CreateContact"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createContactOptions; + + localVarRequestOptions.Operation = "ContactControllerApi.CreateContact"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/contacts", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateContact", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ContactDto + public async System.Threading.Tasks.Task CreateContactAsync(CreateContactOptions createContactOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateContactWithHttpInfoAsync(createContactOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ContactDto) + public async System.Threading.Tasks.Task> CreateContactWithHttpInfoAsync(CreateContactOptions createContactOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createContactOptions' is set + if (createContactOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createContactOptions' when calling ContactControllerApi->CreateContact"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createContactOptions; + + localVarRequestOptions.Operation = "ContactControllerApi.CreateContact"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/contacts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateContact", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteContact(Guid contactId, int operationIndex = 0) + { + DeleteContactWithHttpInfo(contactId); + } + + /// + /// Delete contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteContactWithHttpInfo(Guid contactId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("contactId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(contactId)); // path parameter + + localVarRequestOptions.Operation = "ContactControllerApi.DeleteContact"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/contacts/{contactId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteContact", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteContactAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteContactWithHttpInfoAsync(contactId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteContactWithHttpInfoAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("contactId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(contactId)); // path parameter + + localVarRequestOptions.Operation = "ContactControllerApi.DeleteContact"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/contacts/{contactId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteContact", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all contacts + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Search terms (optional) + /// Index associated with the operation. + /// PageContactProjection + public PageContactProjection GetAllContacts(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string search = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllContactsWithHttpInfo(page, size, sort, since, before, search); + return localVarResponse.Data; + } + + /// + /// Get all contacts + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Search terms (optional) + /// Index associated with the operation. + /// ApiResponse of PageContactProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAllContactsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string search = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (search != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "search", search)); + } + + localVarRequestOptions.Operation = "ContactControllerApi.GetAllContacts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/contacts/paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllContacts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all contacts + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Search terms (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageContactProjection + public async System.Threading.Tasks.Task GetAllContactsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string search = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllContactsWithHttpInfoAsync(page, size, sort, since, before, search, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all contacts + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Search terms (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageContactProjection) + public async System.Threading.Tasks.Task> GetAllContactsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string search = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (search != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "search", search)); + } + + localVarRequestOptions.Operation = "ContactControllerApi.GetAllContacts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/contacts/paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllContacts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ContactDto + public ContactDto GetContact(Guid contactId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetContactWithHttpInfo(contactId); + return localVarResponse.Data; + } + + /// + /// Get contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ContactDto + public mailslurp_netstandard_2x.Client.ApiResponse GetContactWithHttpInfo(Guid contactId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("contactId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(contactId)); // path parameter + + localVarRequestOptions.Operation = "ContactControllerApi.GetContact"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/contacts/{contactId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetContact", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ContactDto + public async System.Threading.Tasks.Task GetContactAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetContactWithHttpInfoAsync(contactId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get contact + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ContactDto) + public async System.Threading.Tasks.Task> GetContactWithHttpInfoAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("contactId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(contactId)); // path parameter + + localVarRequestOptions.Operation = "ContactControllerApi.GetContact"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/contacts/{contactId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetContact", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get contact vCard vcf file + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + [Obsolete] + public void GetContactVCard(Guid contactId, int operationIndex = 0) + { + GetContactVCardWithHttpInfo(contactId); + } + + /// + /// Get contact vCard vcf file + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + [Obsolete] + public mailslurp_netstandard_2x.Client.ApiResponse GetContactVCardWithHttpInfo(Guid contactId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("contactId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(contactId)); // path parameter + + localVarRequestOptions.Operation = "ContactControllerApi.GetContactVCard"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/contacts/{contactId}/download", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetContactVCard", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get contact vCard vcf file + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + [Obsolete] + public async System.Threading.Tasks.Task GetContactVCardAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await GetContactVCardWithHttpInfoAsync(contactId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get contact vCard vcf file + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + [Obsolete] + public async System.Threading.Tasks.Task> GetContactVCardWithHttpInfoAsync(Guid contactId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("contactId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(contactId)); // path parameter + + localVarRequestOptions.Operation = "ContactControllerApi.GetContactVCard"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/contacts/{contactId}/download", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetContactVCard", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all contacts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<ContactProjection> + public List GetContacts(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetContactsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get all contacts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<ContactProjection> + public mailslurp_netstandard_2x.Client.ApiResponse> GetContactsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ContactControllerApi.GetContacts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/contacts", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetContacts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all contacts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<ContactProjection> + public async System.Threading.Tasks.Task> GetContactsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetContactsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all contacts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ContactProjection>) + public async System.Threading.Tasks.Task>> GetContactsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ContactControllerApi.GetContacts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/contacts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetContacts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/DomainControllerApi.cs b/src/mailslurp_netstandard_2x/Api/DomainControllerApi.cs new file mode 100644 index 00000000..7ea51cf5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/DomainControllerApi.cs @@ -0,0 +1,2106 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IDomainControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Add catch all wild card inbox to domain + /// + /// + /// Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DomainDto + DomainDto AddDomainWildcardCatchAll(Guid id, int operationIndex = 0); + + /// + /// Add catch all wild card inbox to domain + /// + /// + /// Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DomainDto + ApiResponse AddDomainWildcardCatchAllWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Create Domain + /// + /// + /// Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DomainDto + DomainDto CreateDomain(CreateDomainOptions createDomainOptions, int operationIndex = 0); + + /// + /// Create Domain + /// + /// + /// Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DomainDto + ApiResponse CreateDomainWithHttpInfo(CreateDomainOptions createDomainOptions, int operationIndex = 0); + /// + /// Delete a domain + /// + /// + /// Delete a domain. This will disable any existing inboxes that use this domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<string> + List DeleteDomain(Guid id, int operationIndex = 0); + + /// + /// Delete a domain + /// + /// + /// Delete a domain. This will disable any existing inboxes that use this domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<string> + ApiResponse> DeleteDomainWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get all usable domains + /// + /// + /// List all domains available for use with email address creation + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// DomainGroupsDto + DomainGroupsDto GetAvailableDomains(string inboxType = default(string), int operationIndex = 0); + + /// + /// Get all usable domains + /// + /// + /// List all domains available for use with email address creation + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of DomainGroupsDto + ApiResponse GetAvailableDomainsWithHttpInfo(string inboxType = default(string), int operationIndex = 0); + /// + /// Get a domain + /// + /// + /// Returns domain verification status and tokens for a given domain + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// DomainDto + DomainDto GetDomain(Guid id, bool? checkForErrors = default(bool?), int operationIndex = 0); + + /// + /// Get a domain + /// + /// + /// Returns domain verification status and tokens for a given domain + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of DomainDto + ApiResponse GetDomainWithHttpInfo(Guid id, bool? checkForErrors = default(bool?), int operationIndex = 0); + /// + /// Get domain issues + /// + /// + /// List domain issues for domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// DomainIssuesDto + DomainIssuesDto GetDomainIssues(int operationIndex = 0); + + /// + /// Get domain issues + /// + /// + /// List domain issues for domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of DomainIssuesDto + ApiResponse GetDomainIssuesWithHttpInfo(int operationIndex = 0); + /// + /// Get catch all wild card inbox for domain + /// + /// + /// Get the catch all inbox for a domain for missed emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxDto + InboxDto GetDomainWildcardCatchAllInbox(Guid id, int operationIndex = 0); + + /// + /// Get catch all wild card inbox for domain + /// + /// + /// Get the catch all inbox for a domain for missed emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxDto + ApiResponse GetDomainWildcardCatchAllInboxWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get domains + /// + /// + /// List all custom domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<DomainPreview> + List GetDomains(int operationIndex = 0); + + /// + /// Get domains + /// + /// + /// List all custom domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<DomainPreview> + ApiResponse> GetDomainsWithHttpInfo(int operationIndex = 0); + /// + /// Get MailSlurp domains + /// + /// + /// List all MailSlurp domains used with non-custom email addresses + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// DomainGroupsDto + DomainGroupsDto GetMailSlurpDomains(string inboxType = default(string), int operationIndex = 0); + + /// + /// Get MailSlurp domains + /// + /// + /// List all MailSlurp domains used with non-custom email addresses + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of DomainGroupsDto + ApiResponse GetMailSlurpDomainsWithHttpInfo(string inboxType = default(string), int operationIndex = 0); + /// + /// Update a domain + /// + /// + /// Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// DomainDto + DomainDto UpdateDomain(Guid id, UpdateDomainOptions updateDomainOptions, int operationIndex = 0); + + /// + /// Update a domain + /// + /// + /// Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of DomainDto + ApiResponse UpdateDomainWithHttpInfo(Guid id, UpdateDomainOptions updateDomainOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IDomainControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Add catch all wild card inbox to domain + /// + /// + /// Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainDto + System.Threading.Tasks.Task AddDomainWildcardCatchAllAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Add catch all wild card inbox to domain + /// + /// + /// Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainDto) + System.Threading.Tasks.Task> AddDomainWildcardCatchAllWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create Domain + /// + /// + /// Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainDto + System.Threading.Tasks.Task CreateDomainAsync(CreateDomainOptions createDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create Domain + /// + /// + /// Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainDto) + System.Threading.Tasks.Task> CreateDomainWithHttpInfoAsync(CreateDomainOptions createDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete a domain + /// + /// + /// Delete a domain. This will disable any existing inboxes that use this domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + System.Threading.Tasks.Task> DeleteDomainAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete a domain + /// + /// + /// Delete a domain. This will disable any existing inboxes that use this domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + System.Threading.Tasks.Task>> DeleteDomainWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all usable domains + /// + /// + /// List all domains available for use with email address creation + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainGroupsDto + System.Threading.Tasks.Task GetAvailableDomainsAsync(string inboxType = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all usable domains + /// + /// + /// List all domains available for use with email address creation + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainGroupsDto) + System.Threading.Tasks.Task> GetAvailableDomainsWithHttpInfoAsync(string inboxType = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a domain + /// + /// + /// Returns domain verification status and tokens for a given domain + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainDto + System.Threading.Tasks.Task GetDomainAsync(Guid id, bool? checkForErrors = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a domain + /// + /// + /// Returns domain verification status and tokens for a given domain + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainDto) + System.Threading.Tasks.Task> GetDomainWithHttpInfoAsync(Guid id, bool? checkForErrors = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get domain issues + /// + /// + /// List domain issues for domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainIssuesDto + System.Threading.Tasks.Task GetDomainIssuesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get domain issues + /// + /// + /// List domain issues for domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainIssuesDto) + System.Threading.Tasks.Task> GetDomainIssuesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get catch all wild card inbox for domain + /// + /// + /// Get the catch all inbox for a domain for missed emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + System.Threading.Tasks.Task GetDomainWildcardCatchAllInboxAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get catch all wild card inbox for domain + /// + /// + /// Get the catch all inbox for a domain for missed emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + System.Threading.Tasks.Task> GetDomainWildcardCatchAllInboxWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get domains + /// + /// + /// List all custom domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<DomainPreview> + System.Threading.Tasks.Task> GetDomainsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get domains + /// + /// + /// List all custom domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<DomainPreview>) + System.Threading.Tasks.Task>> GetDomainsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get MailSlurp domains + /// + /// + /// List all MailSlurp domains used with non-custom email addresses + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainGroupsDto + System.Threading.Tasks.Task GetMailSlurpDomainsAsync(string inboxType = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get MailSlurp domains + /// + /// + /// List all MailSlurp domains used with non-custom email addresses + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainGroupsDto) + System.Threading.Tasks.Task> GetMailSlurpDomainsWithHttpInfoAsync(string inboxType = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Update a domain + /// + /// + /// Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainDto + System.Threading.Tasks.Task UpdateDomainAsync(Guid id, UpdateDomainOptions updateDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update a domain + /// + /// + /// Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainDto) + System.Threading.Tasks.Task> UpdateDomainWithHttpInfoAsync(Guid id, UpdateDomainOptions updateDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IDomainControllerApi : IDomainControllerApiSync, IDomainControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class DomainControllerApi : IDomainControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public DomainControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public DomainControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public DomainControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public DomainControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Add catch all wild card inbox to domain Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DomainDto + public DomainDto AddDomainWildcardCatchAll(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = AddDomainWildcardCatchAllWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Add catch all wild card inbox to domain Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DomainDto + public mailslurp_netstandard_2x.Client.ApiResponse AddDomainWildcardCatchAllWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "DomainControllerApi.AddDomainWildcardCatchAll"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/domains/{id}/wildcard", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddDomainWildcardCatchAll", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Add catch all wild card inbox to domain Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainDto + public async System.Threading.Tasks.Task AddDomainWildcardCatchAllAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await AddDomainWildcardCatchAllWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Add catch all wild card inbox to domain Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainDto) + public async System.Threading.Tasks.Task> AddDomainWildcardCatchAllWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "DomainControllerApi.AddDomainWildcardCatchAll"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/domains/{id}/wildcard", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddDomainWildcardCatchAll", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create Domain Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DomainDto + public DomainDto CreateDomain(CreateDomainOptions createDomainOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateDomainWithHttpInfo(createDomainOptions); + return localVarResponse.Data; + } + + /// + /// Create Domain Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DomainDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateDomainWithHttpInfo(CreateDomainOptions createDomainOptions, int operationIndex = 0) + { + // verify the required parameter 'createDomainOptions' is set + if (createDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createDomainOptions' when calling DomainControllerApi->CreateDomain"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createDomainOptions; + + localVarRequestOptions.Operation = "DomainControllerApi.CreateDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/domains", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create Domain Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainDto + public async System.Threading.Tasks.Task CreateDomainAsync(CreateDomainOptions createDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateDomainWithHttpInfoAsync(createDomainOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create Domain Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainDto) + public async System.Threading.Tasks.Task> CreateDomainWithHttpInfoAsync(CreateDomainOptions createDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createDomainOptions' is set + if (createDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createDomainOptions' when calling DomainControllerApi->CreateDomain"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createDomainOptions; + + localVarRequestOptions.Operation = "DomainControllerApi.CreateDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/domains", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a domain Delete a domain. This will disable any existing inboxes that use this domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<string> + public List DeleteDomain(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = DeleteDomainWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Delete a domain Delete a domain. This will disable any existing inboxes that use this domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<string> + public mailslurp_netstandard_2x.Client.ApiResponse> DeleteDomainWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "DomainControllerApi.DeleteDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete>("/domains/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a domain Delete a domain. This will disable any existing inboxes that use this domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + public async System.Threading.Tasks.Task> DeleteDomainAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await DeleteDomainWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Delete a domain Delete a domain. This will disable any existing inboxes that use this domain. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + public async System.Threading.Tasks.Task>> DeleteDomainWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "DomainControllerApi.DeleteDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync>("/domains/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all usable domains List all domains available for use with email address creation + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// DomainGroupsDto + public DomainGroupsDto GetAvailableDomains(string inboxType = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAvailableDomainsWithHttpInfo(inboxType); + return localVarResponse.Data; + } + + /// + /// Get all usable domains List all domains available for use with email address creation + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of DomainGroupsDto + public mailslurp_netstandard_2x.Client.ApiResponse GetAvailableDomainsWithHttpInfo(string inboxType = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + + localVarRequestOptions.Operation = "DomainControllerApi.GetAvailableDomains"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/domains/available-domains", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAvailableDomains", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all usable domains List all domains available for use with email address creation + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainGroupsDto + public async System.Threading.Tasks.Task GetAvailableDomainsAsync(string inboxType = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAvailableDomainsWithHttpInfoAsync(inboxType, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all usable domains List all domains available for use with email address creation + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainGroupsDto) + public async System.Threading.Tasks.Task> GetAvailableDomainsWithHttpInfoAsync(string inboxType = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + + localVarRequestOptions.Operation = "DomainControllerApi.GetAvailableDomains"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/domains/available-domains", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAvailableDomains", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a domain Returns domain verification status and tokens for a given domain + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// DomainDto + public DomainDto GetDomain(Guid id, bool? checkForErrors = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetDomainWithHttpInfo(id, checkForErrors); + return localVarResponse.Data; + } + + /// + /// Get a domain Returns domain verification status and tokens for a given domain + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of DomainDto + public mailslurp_netstandard_2x.Client.ApiResponse GetDomainWithHttpInfo(Guid id, bool? checkForErrors = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + if (checkForErrors != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "checkForErrors", checkForErrors)); + } + + localVarRequestOptions.Operation = "DomainControllerApi.GetDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/domains/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a domain Returns domain verification status and tokens for a given domain + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainDto + public async System.Threading.Tasks.Task GetDomainAsync(Guid id, bool? checkForErrors = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetDomainWithHttpInfoAsync(id, checkForErrors, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a domain Returns domain verification status and tokens for a given domain + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainDto) + public async System.Threading.Tasks.Task> GetDomainWithHttpInfoAsync(Guid id, bool? checkForErrors = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + if (checkForErrors != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "checkForErrors", checkForErrors)); + } + + localVarRequestOptions.Operation = "DomainControllerApi.GetDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/domains/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get domain issues List domain issues for domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// DomainIssuesDto + public DomainIssuesDto GetDomainIssues(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetDomainIssuesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get domain issues List domain issues for domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of DomainIssuesDto + public mailslurp_netstandard_2x.Client.ApiResponse GetDomainIssuesWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "DomainControllerApi.GetDomainIssues"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/domains/issues", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDomainIssues", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get domain issues List domain issues for domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainIssuesDto + public async System.Threading.Tasks.Task GetDomainIssuesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetDomainIssuesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get domain issues List domain issues for domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainIssuesDto) + public async System.Threading.Tasks.Task> GetDomainIssuesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "DomainControllerApi.GetDomainIssues"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/domains/issues", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDomainIssues", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get catch all wild card inbox for domain Get the catch all inbox for a domain for missed emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxDto + public InboxDto GetDomainWildcardCatchAllInbox(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetDomainWildcardCatchAllInboxWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get catch all wild card inbox for domain Get the catch all inbox for a domain for missed emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxDto + public mailslurp_netstandard_2x.Client.ApiResponse GetDomainWildcardCatchAllInboxWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "DomainControllerApi.GetDomainWildcardCatchAllInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/domains/{id}/wildcard", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDomainWildcardCatchAllInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get catch all wild card inbox for domain Get the catch all inbox for a domain for missed emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + public async System.Threading.Tasks.Task GetDomainWildcardCatchAllInboxAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetDomainWildcardCatchAllInboxWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get catch all wild card inbox for domain Get the catch all inbox for a domain for missed emails + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + public async System.Threading.Tasks.Task> GetDomainWildcardCatchAllInboxWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "DomainControllerApi.GetDomainWildcardCatchAllInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/domains/{id}/wildcard", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDomainWildcardCatchAllInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get domains List all custom domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<DomainPreview> + public List GetDomains(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetDomainsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get domains List all custom domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<DomainPreview> + public mailslurp_netstandard_2x.Client.ApiResponse> GetDomainsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "DomainControllerApi.GetDomains"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/domains", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDomains", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get domains List all custom domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<DomainPreview> + public async System.Threading.Tasks.Task> GetDomainsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetDomainsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get domains List all custom domains you have created + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<DomainPreview>) + public async System.Threading.Tasks.Task>> GetDomainsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "DomainControllerApi.GetDomains"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/domains", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDomains", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get MailSlurp domains List all MailSlurp domains used with non-custom email addresses + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// DomainGroupsDto + public DomainGroupsDto GetMailSlurpDomains(string inboxType = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetMailSlurpDomainsWithHttpInfo(inboxType); + return localVarResponse.Data; + } + + /// + /// Get MailSlurp domains List all MailSlurp domains used with non-custom email addresses + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of DomainGroupsDto + public mailslurp_netstandard_2x.Client.ApiResponse GetMailSlurpDomainsWithHttpInfo(string inboxType = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + + localVarRequestOptions.Operation = "DomainControllerApi.GetMailSlurpDomains"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/domains/mailslurp-domains", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMailSlurpDomains", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get MailSlurp domains List all MailSlurp domains used with non-custom email addresses + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainGroupsDto + public async System.Threading.Tasks.Task GetMailSlurpDomainsAsync(string inboxType = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetMailSlurpDomainsWithHttpInfoAsync(inboxType, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get MailSlurp domains List all MailSlurp domains used with non-custom email addresses + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainGroupsDto) + public async System.Threading.Tasks.Task> GetMailSlurpDomainsWithHttpInfoAsync(string inboxType = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + + localVarRequestOptions.Operation = "DomainControllerApi.GetMailSlurpDomains"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/domains/mailslurp-domains", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMailSlurpDomains", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a domain Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// DomainDto + public DomainDto UpdateDomain(Guid id, UpdateDomainOptions updateDomainOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = UpdateDomainWithHttpInfo(id, updateDomainOptions); + return localVarResponse.Data; + } + + /// + /// Update a domain Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of DomainDto + public mailslurp_netstandard_2x.Client.ApiResponse UpdateDomainWithHttpInfo(Guid id, UpdateDomainOptions updateDomainOptions, int operationIndex = 0) + { + // verify the required parameter 'updateDomainOptions' is set + if (updateDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateDomainOptions' when calling DomainControllerApi->UpdateDomain"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateDomainOptions; + + localVarRequestOptions.Operation = "DomainControllerApi.UpdateDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/domains/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a domain Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DomainDto + public async System.Threading.Tasks.Task UpdateDomainAsync(Guid id, UpdateDomainOptions updateDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await UpdateDomainWithHttpInfoAsync(id, updateDomainOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update a domain Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DomainDto) + public async System.Threading.Tasks.Task> UpdateDomainWithHttpInfoAsync(Guid id, UpdateDomainOptions updateDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'updateDomainOptions' is set + if (updateDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateDomainOptions' when calling DomainControllerApi->UpdateDomain"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateDomainOptions; + + localVarRequestOptions.Operation = "DomainControllerApi.UpdateDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/domains/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/EmailControllerApi.cs b/src/mailslurp_netstandard_2x/Api/EmailControllerApi.cs new file mode 100644 index 00000000..98e804bc --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/EmailControllerApi.cs @@ -0,0 +1,8851 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IEmailControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Set IMAP flags associated with a message. Only supports '\\Seen' flag. + /// + /// + /// Apply RFC3501 section-2.3.2 IMAP flag operations on an email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// EmailPreview + EmailPreview ApplyImapFlagOperation(Guid emailId, ImapFlagOperationOptions imapFlagOperationOptions, int operationIndex = 0); + + /// + /// Set IMAP flags associated with a message. Only supports '\\Seen' flag. + /// + /// + /// Apply RFC3501 section-2.3.2 IMAP flag operations on an email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of EmailPreview + ApiResponse ApplyImapFlagOperationWithHttpInfo(Guid emailId, ImapFlagOperationOptions imapFlagOperationOptions, int operationIndex = 0); + /// + /// Check if email can be sent and options are valid. + /// + /// + /// Can user send email to given recipient or is the recipient blocked + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// CanSendEmailResults + CanSendEmailResults CanSend(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0); + + /// + /// Check if email can be sent and options are valid. + /// + /// + /// Can user send email to given recipient or is the recipient blocked + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// ApiResponse of CanSendEmailResults + ApiResponse CanSendWithHttpInfo(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0); + /// + /// Detect broken links, spelling, and images in email content + /// + /// + /// Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful. Any resource that returns a 4xx or 5xx response or is not reachable via HEAD or GET HTTP operations will be considered unhealthy. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// CheckEmailBodyResults + CheckEmailBodyResults CheckEmailBody(Guid emailId, int operationIndex = 0); + + /// + /// Detect broken links, spelling, and images in email content + /// + /// + /// Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful. Any resource that returns a 4xx or 5xx response or is not reachable via HEAD or GET HTTP operations will be considered unhealthy. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of CheckEmailBodyResults + ApiResponse CheckEmailBodyWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// Show which mail clients support the HTML and CSS features used in an email body. + /// + /// + /// Detect HTML and CSS features inside an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// CheckEmailBodyFeatureSupportResults + CheckEmailBodyFeatureSupportResults CheckEmailBodyFeatureSupport(Guid emailId, int operationIndex = 0); + + /// + /// Show which mail clients support the HTML and CSS features used in an email body. + /// + /// + /// Detect HTML and CSS features inside an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of CheckEmailBodyFeatureSupportResults + ApiResponse CheckEmailBodyFeatureSupportWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// Show which email programs and devices support the features used in an email body. + /// + /// + /// Evaluate the features used in an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// CheckEmailClientSupportResults + CheckEmailClientSupportResults CheckEmailClientSupport(CheckEmailClientSupportOptions checkEmailClientSupportOptions, int operationIndex = 0); + + /// + /// Show which email programs and devices support the features used in an email body. + /// + /// + /// Evaluate the features used in an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of CheckEmailClientSupportResults + ApiResponse CheckEmailClientSupportWithHttpInfo(CheckEmailClientSupportOptions checkEmailClientSupportOptions, int operationIndex = 0); + /// + /// Delete all emails in all inboxes. + /// + /// + /// Deletes all emails in your account. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + void DeleteAllEmails(int operationIndex = 0); + + /// + /// Delete all emails in all inboxes. + /// + /// + /// Deletes all emails in your account. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAllEmailsWithHttpInfo(int operationIndex = 0); + /// + /// Delete an email + /// + /// + /// Deletes an email and removes it from the inbox. Deleted emails cannot be recovered. + /// + /// Thrown when fails to make API call + /// ID of email to delete + /// Index associated with the operation. + /// + void DeleteEmail(Guid emailId, int operationIndex = 0); + + /// + /// Delete an email + /// + /// + /// Deletes an email and removes it from the inbox. Deleted emails cannot be recovered. + /// + /// Thrown when fails to make API call + /// ID of email to delete + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteEmailWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. + /// + /// + /// Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly. (optional) + /// Index associated with the operation. + /// byte[] + byte[] DownloadAttachment(Guid emailId, string attachmentId, string apiKey = default(string), int operationIndex = 0); + + /// + /// Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. + /// + /// + /// Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly. (optional) + /// Index associated with the operation. + /// ApiResponse of byte[] + ApiResponse DownloadAttachmentWithHttpInfo(Guid emailId, string attachmentId, string apiKey = default(string), int operationIndex = 0); + /// + /// Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. + /// + /// + /// Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// DownloadAttachmentDto + DownloadAttachmentDto DownloadAttachmentBase64(Guid emailId, string attachmentId, int operationIndex = 0); + + /// + /// Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. + /// + /// + /// Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of DownloadAttachmentDto + ApiResponse DownloadAttachmentBase64WithHttpInfo(Guid emailId, string attachmentId, int operationIndex = 0); + /// + /// Get email body as string. Returned as `plain/text` with content type header. + /// + /// + /// Returns the specified email body for a given email as a string + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// string + string DownloadBody(Guid emailId, int operationIndex = 0); + + /// + /// Get email body as string. Returned as `plain/text` with content type header. + /// + /// + /// Returns the specified email body for a given email as a string + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of string + ApiResponse DownloadBodyWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// Get email body in bytes. Returned as `octet-stream` with content type header. + /// + /// + /// Returns the specified email body for a given email as a stream / array of bytes. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// byte[] + byte[] DownloadBodyBytes(Guid emailId, int operationIndex = 0); + + /// + /// Get email body in bytes. Returned as `octet-stream` with content type header. + /// + /// + /// Returns the specified email body for a given email as a stream / array of bytes. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of byte[] + ApiResponse DownloadBodyBytesWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// Forward email to recipients + /// + /// + /// Forward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the `from` option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints. + /// + /// Thrown when fails to make API call + /// ID of email + /// + /// Index associated with the operation. + /// SentEmailDto + SentEmailDto ForwardEmail(Guid emailId, ForwardEmailOptions forwardEmailOptions, int operationIndex = 0); + + /// + /// Forward email to recipients + /// + /// + /// Forward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the `from` option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints. + /// + /// Thrown when fails to make API call + /// ID of email + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + ApiResponse ForwardEmailWithHttpInfo(Guid emailId, ForwardEmailOptions forwardEmailOptions, int operationIndex = 0); + /// + /// Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. + /// + /// + /// Returns the metadata such as name and content-type for a given attachment and email. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// AttachmentMetaData + AttachmentMetaData GetAttachmentMetaData(Guid emailId, string attachmentId, int operationIndex = 0); + + /// + /// Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. + /// + /// + /// Returns the metadata such as name and content-type for a given attachment and email. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of AttachmentMetaData + ApiResponse GetAttachmentMetaDataWithHttpInfo(Guid emailId, string attachmentId, int operationIndex = 0); + /// + /// Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. + /// + /// + /// Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints + /// + /// Thrown when fails to make API call + /// + /// Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing (optional, default to false) + /// Index associated with the operation. + /// Email + Email GetEmail(Guid emailId, bool? decode = default(bool?), int operationIndex = 0); + + /// + /// Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. + /// + /// + /// Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints + /// + /// Thrown when fails to make API call + /// + /// Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing (optional, default to false) + /// Index associated with the operation. + /// ApiResponse of Email + ApiResponse GetEmailWithHttpInfo(Guid emailId, bool? decode = default(bool?), int operationIndex = 0); + /// + /// Get all email attachment metadata. Metadata includes name and size of attachments. + /// + /// + /// Returns an array of attachment metadata such as name and content-type for a given email if present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// List<AttachmentMetaData> + List GetEmailAttachments(Guid emailId, int operationIndex = 0); + + /// + /// Get all email attachment metadata. Metadata includes name and size of attachments. + /// + /// + /// Returns an array of attachment metadata such as name and content-type for a given email if present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of List<AttachmentMetaData> + ApiResponse> GetEmailAttachmentsWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// Get email content regex pattern match results. Runs regex against email body and returns match groups. + /// + /// + /// Return the matches for a given Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// + /// Index associated with the operation. + /// EmailContentMatchResult + EmailContentMatchResult GetEmailContentMatch(Guid emailId, ContentMatchOptions contentMatchOptions, int operationIndex = 0); + + /// + /// Get email content regex pattern match results. Runs regex against email body and returns match groups. + /// + /// + /// Return the matches for a given Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// + /// Index associated with the operation. + /// ApiResponse of EmailContentMatchResult + ApiResponse GetEmailContentMatchWithHttpInfo(Guid emailId, ContentMatchOptions contentMatchOptions, int operationIndex = 0); + /// + /// Get email content part by content type + /// + /// + /// Get email body content parts from a multipart email message for a given content type + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// Content type + /// Index associated with the operation. + /// EmailContentPartResult + EmailContentPartResult GetEmailContentPart(Guid emailId, string contentType, int operationIndex = 0); + + /// + /// Get email content part by content type + /// + /// + /// Get email body content parts from a multipart email message for a given content type + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// Content type + /// Index associated with the operation. + /// ApiResponse of EmailContentPartResult + ApiResponse GetEmailContentPartWithHttpInfo(Guid emailId, string contentType, int operationIndex = 0); + /// + /// Get email count + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CountDto + CountDto GetEmailCount(Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Get email count + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CountDto + ApiResponse GetEmailCountWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Get email content as HTML. For displaying emails in browser context. + /// + /// + /// Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`. Returns content-type `text/html;charset=utf-8` so you must call expecting that content response not JSON. For JSON response see the `getEmailHTMLJson` method. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// string + string GetEmailHTML(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0); + + /// + /// Get email content as HTML. For displaying emails in browser context. + /// + /// + /// Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`. Returns content-type `text/html;charset=utf-8` so you must call expecting that content response not JSON. For JSON response see the `getEmailHTMLJson` method. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// ApiResponse of string + ApiResponse GetEmailHTMLWithHttpInfo(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0); + /// + /// Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content + /// + /// + /// Retrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type `application/json;charset=utf-8` so you must call expecting that content response not JSON. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// EmailHtmlDto + EmailHtmlDto GetEmailHTMLJson(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0); + + /// + /// Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content + /// + /// + /// Retrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type `application/json;charset=utf-8` so you must call expecting that content response not JSON. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// ApiResponse of EmailHtmlDto + ApiResponse GetEmailHTMLJsonWithHttpInfo(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0); + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters + /// + /// + /// Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors + /// + /// Thrown when fails to make API call + /// ID of email to perform HTML query on + /// HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information. + /// Index associated with the operation. + /// EmailTextLinesResult + EmailTextLinesResult GetEmailHTMLQuery(Guid emailId, string htmlSelector, int operationIndex = 0); + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters + /// + /// + /// Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors + /// + /// Thrown when fails to make API call + /// ID of email to perform HTML query on + /// HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information. + /// Index associated with the operation. + /// ApiResponse of EmailTextLinesResult + ApiResponse GetEmailHTMLQueryWithHttpInfo(Guid emailId, string htmlSelector, int operationIndex = 0); + /// + /// Parse and return list of links found in an email (only works for HTML content) + /// + /// + /// HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Index associated with the operation. + /// EmailLinksResult + EmailLinksResult GetEmailLinks(Guid emailId, int operationIndex = 0); + + /// + /// Parse and return list of links found in an email (only works for HTML content) + /// + /// + /// HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Index associated with the operation. + /// ApiResponse of EmailLinksResult + ApiResponse GetEmailLinksWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// Get email URLs for viewing in browser or downloading + /// + /// + /// Get a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmailPreviewUrls + EmailPreviewUrls GetEmailPreviewURLs(Guid emailId, int operationIndex = 0); + + /// + /// Get email URLs for viewing in browser or downloading + /// + /// + /// Get a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmailPreviewUrls + ApiResponse GetEmailPreviewURLsWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// Take a screenshot of an email in a browser and return base64 encoded string + /// + /// + /// Capture image of email screenshot and return as base64 encoded string. Useful for embedding in HTML. Be careful as this may contain sensitive information. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// EmailScreenshotResult + EmailScreenshotResult GetEmailScreenshotAsBase64(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0); + + /// + /// Take a screenshot of an email in a browser and return base64 encoded string + /// + /// + /// Capture image of email screenshot and return as base64 encoded string. Useful for embedding in HTML. Be careful as this may contain sensitive information. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of EmailScreenshotResult + ApiResponse GetEmailScreenshotAsBase64WithHttpInfo(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0); + /// + /// Take a screenshot of an email in a browser + /// + /// + /// Returns binary octet-stream of screenshot of the given email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// + void GetEmailScreenshotAsBinary(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0); + + /// + /// Take a screenshot of an email in a browser + /// + /// + /// Returns binary octet-stream of screenshot of the given email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse GetEmailScreenshotAsBinaryWithHttpInfo(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0); + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters + /// + /// + /// Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators. + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Decode HTML entities (optional) + /// Line separator character (optional) + /// Index associated with the operation. + /// EmailTextLinesResult + EmailTextLinesResult GetEmailTextLines(Guid emailId, bool? decodeHtmlEntities = default(bool?), string lineSeparator = default(string), int operationIndex = 0); + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters + /// + /// + /// Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators. + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Decode HTML entities (optional) + /// Line separator character (optional) + /// Index associated with the operation. + /// ApiResponse of EmailTextLinesResult + ApiResponse GetEmailTextLinesWithHttpInfo(Guid emailId, bool? decodeHtmlEntities = default(bool?), string lineSeparator = default(string), int operationIndex = 0); + /// + /// Get all emails in all inboxes in paginated form. Email API list all. + /// + /// + /// By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// PageEmailProjection + PageEmailProjection GetEmailsOffsetPaginated(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. + /// + /// + /// By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailProjection + ApiResponse GetEmailsOffsetPaginatedWithHttpInfo(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get all emails in all inboxes in paginated form. Email API list all. + /// + /// + /// By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// PageEmailProjection + PageEmailProjection GetEmailsPaginated(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. + /// + /// + /// By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailProjection + ApiResponse GetEmailsPaginatedWithHttpInfo(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// + /// + /// + /// Get gravatar url for email address + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// GravatarUrl + GravatarUrl GetGravatarUrlForEmailAddress(string emailAddress, string size = default(string), int operationIndex = 0); + + /// + /// + /// + /// + /// Get gravatar url for email address + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of GravatarUrl + ApiResponse GetGravatarUrlForEmailAddressWithHttpInfo(string emailAddress, string size = default(string), int operationIndex = 0); + /// + /// Get latest email in all inboxes. Most recently received. + /// + /// + /// Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes (optional) + /// Index associated with the operation. + /// Email + Email GetLatestEmail(List inboxIds = default(List), int operationIndex = 0); + + /// + /// Get latest email in all inboxes. Most recently received. + /// + /// + /// Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes (optional) + /// Index associated with the operation. + /// ApiResponse of Email + ApiResponse GetLatestEmailWithHttpInfo(List inboxIds = default(List), int operationIndex = 0); + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + /// + /// + /// Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Index associated with the operation. + /// Email + Email GetLatestEmailInInbox1(Guid inboxId, int operationIndex = 0); + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + /// + /// + /// Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Index associated with the operation. + /// ApiResponse of Email + ApiResponse GetLatestEmailInInbox1WithHttpInfo(Guid inboxId, int operationIndex = 0); + /// + /// Get all organization emails. List team or shared test email accounts + /// + /// + /// By default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter search filter for emails. (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// PageEmailProjection + PageEmailProjection GetOrganizationEmailsPaginated(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get all organization emails. List team or shared test email accounts + /// + /// + /// By default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter search filter for emails. (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailProjection + ApiResponse GetOrganizationEmailsPaginatedWithHttpInfo(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get raw email string. Returns unparsed raw SMTP message with headers and body. + /// + /// + /// Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// + void GetRawEmailContents(Guid emailId, int operationIndex = 0); + + /// + /// Get raw email string. Returns unparsed raw SMTP message with headers and body. + /// + /// + /// Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse GetRawEmailContentsWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. + /// + /// + /// Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// RawEmailJson + RawEmailJson GetRawEmailJson(Guid emailId, int operationIndex = 0); + + /// + /// Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. + /// + /// + /// Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of RawEmailJson + ApiResponse GetRawEmailJsonWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// Get unread email count + /// + /// + /// Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// UnreadCount + UnreadCount GetUnreadEmailCount(Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Get unread email count + /// + /// + /// Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of UnreadCount + ApiResponse GetUnreadEmailCountWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Mark all emails as read or unread + /// + /// + /// Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// What value to assign to email read property. Default true. (optional, default to true) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// + void MarkAllAsRead(bool? read = default(bool?), Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Mark all emails as read or unread + /// + /// + /// Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// What value to assign to email read property. Default true. (optional, default to true) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse MarkAllAsReadWithHttpInfo(bool? read = default(bool?), Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Mark an email as read or unread + /// + /// + /// Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// + /// What value to assign to email read property. Default true. (optional, default to true) + /// Index associated with the operation. + /// EmailPreview + EmailPreview MarkAsRead(Guid emailId, bool? read = default(bool?), int operationIndex = 0); + + /// + /// Mark an email as read or unread + /// + /// + /// Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// + /// What value to assign to email read property. Default true. (optional, default to true) + /// Index associated with the operation. + /// ApiResponse of EmailPreview + ApiResponse MarkAsReadWithHttpInfo(Guid emailId, bool? read = default(bool?), int operationIndex = 0); + /// + /// Reply to an email + /// + /// + /// Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// SentEmailDto + SentEmailDto ReplyToEmail(Guid emailId, ReplyToEmailOptions replyToEmailOptions, int operationIndex = 0); + + /// + /// Reply to an email + /// + /// + /// Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + ApiResponse ReplyToEmailWithHttpInfo(Guid emailId, ReplyToEmailOptions replyToEmailOptions, int operationIndex = 0); + /// + /// Get all emails by search criteria. Return in paginated form. + /// + /// + /// Search emails by given criteria return matches in paginated format. Searches against email recipients, sender, subject, email address and ID. Does not search email body + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// PageEmailProjection + PageEmailProjection SearchEmails(SearchEmailsOptions searchEmailsOptions, int operationIndex = 0); + + /// + /// Get all emails by search criteria. Return in paginated form. + /// + /// + /// Search emails by given criteria return matches in paginated format. Searches against email recipients, sender, subject, email address and ID. Does not search email body + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of PageEmailProjection + ApiResponse SearchEmailsWithHttpInfo(SearchEmailsOptions searchEmailsOptions, int operationIndex = 0); + /// + /// Send email + /// + /// + /// Alias for `InboxController.sendEmail` method - see original method for full details. Sends an email from a given inbox that you have created. If no inbox is supplied a random inbox will be created for you and used to send the email. + /// + /// Thrown when fails to make API call + /// + /// ID of the inbox you want to send the email from (optional) + /// Use domain pool. Optionally create inbox to send from using the mailslurp domain pool. (optional) + /// Optionally create inbox to send from that is a virtual inbox and won't send to external addresses (optional) + /// Index associated with the operation. + /// + void SendEmailSourceOptional(SendEmailOptions sendEmailOptions, Guid? inboxId = default(Guid?), bool? useDomainPool = default(bool?), bool? virtualSend = default(bool?), int operationIndex = 0); + + /// + /// Send email + /// + /// + /// Alias for `InboxController.sendEmail` method - see original method for full details. Sends an email from a given inbox that you have created. If no inbox is supplied a random inbox will be created for you and used to send the email. + /// + /// Thrown when fails to make API call + /// + /// ID of the inbox you want to send the email from (optional) + /// Use domain pool. Optionally create inbox to send from using the mailslurp domain pool. (optional) + /// Optionally create inbox to send from that is a virtual inbox and won't send to external addresses (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse SendEmailSourceOptionalWithHttpInfo(SendEmailOptions sendEmailOptions, Guid? inboxId = default(Guid?), bool? useDomainPool = default(bool?), bool? virtualSend = default(bool?), int operationIndex = 0); + /// + /// Validate email HTML contents + /// + /// + /// Validate the HTML content of email if HTML is found. Considered valid if no HTML is present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ValidationDto + ValidationDto ValidateEmail(Guid emailId, int operationIndex = 0); + + /// + /// Validate email HTML contents + /// + /// + /// Validate the HTML content of email if HTML is found. Considered valid if no HTML is present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of ValidationDto + ApiResponse ValidateEmailWithHttpInfo(Guid emailId, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IEmailControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Set IMAP flags associated with a message. Only supports '\\Seen' flag. + /// + /// + /// Apply RFC3501 section-2.3.2 IMAP flag operations on an email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailPreview + System.Threading.Tasks.Task ApplyImapFlagOperationAsync(Guid emailId, ImapFlagOperationOptions imapFlagOperationOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Set IMAP flags associated with a message. Only supports '\\Seen' flag. + /// + /// + /// Apply RFC3501 section-2.3.2 IMAP flag operations on an email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailPreview) + System.Threading.Tasks.Task> ApplyImapFlagOperationWithHttpInfoAsync(Guid emailId, ImapFlagOperationOptions imapFlagOperationOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Check if email can be sent and options are valid. + /// + /// + /// Can user send email to given recipient or is the recipient blocked + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CanSendEmailResults + System.Threading.Tasks.Task CanSendAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Check if email can be sent and options are valid. + /// + /// + /// Can user send email to given recipient or is the recipient blocked + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CanSendEmailResults) + System.Threading.Tasks.Task> CanSendWithHttpInfoAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Detect broken links, spelling, and images in email content + /// + /// + /// Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful. Any resource that returns a 4xx or 5xx response or is not reachable via HEAD or GET HTTP operations will be considered unhealthy. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CheckEmailBodyResults + System.Threading.Tasks.Task CheckEmailBodyAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Detect broken links, spelling, and images in email content + /// + /// + /// Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful. Any resource that returns a 4xx or 5xx response or is not reachable via HEAD or GET HTTP operations will be considered unhealthy. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CheckEmailBodyResults) + System.Threading.Tasks.Task> CheckEmailBodyWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Show which mail clients support the HTML and CSS features used in an email body. + /// + /// + /// Detect HTML and CSS features inside an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CheckEmailBodyFeatureSupportResults + System.Threading.Tasks.Task CheckEmailBodyFeatureSupportAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Show which mail clients support the HTML and CSS features used in an email body. + /// + /// + /// Detect HTML and CSS features inside an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CheckEmailBodyFeatureSupportResults) + System.Threading.Tasks.Task> CheckEmailBodyFeatureSupportWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Show which email programs and devices support the features used in an email body. + /// + /// + /// Evaluate the features used in an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CheckEmailClientSupportResults + System.Threading.Tasks.Task CheckEmailClientSupportAsync(CheckEmailClientSupportOptions checkEmailClientSupportOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Show which email programs and devices support the features used in an email body. + /// + /// + /// Evaluate the features used in an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CheckEmailClientSupportResults) + System.Threading.Tasks.Task> CheckEmailClientSupportWithHttpInfoAsync(CheckEmailClientSupportOptions checkEmailClientSupportOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete all emails in all inboxes. + /// + /// + /// Deletes all emails in your account. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAllEmailsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete all emails in all inboxes. + /// + /// + /// Deletes all emails in your account. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAllEmailsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete an email + /// + /// + /// Deletes an email and removes it from the inbox. Deleted emails cannot be recovered. + /// + /// Thrown when fails to make API call + /// ID of email to delete + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteEmailAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete an email + /// + /// + /// Deletes an email and removes it from the inbox. Deleted emails cannot be recovered. + /// + /// Thrown when fails to make API call + /// ID of email to delete + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteEmailWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. + /// + /// + /// Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of byte[] + System.Threading.Tasks.Task DownloadAttachmentAsync(Guid emailId, string attachmentId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. + /// + /// + /// Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (byte[]) + System.Threading.Tasks.Task> DownloadAttachmentWithHttpInfoAsync(Guid emailId, string attachmentId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. + /// + /// + /// Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DownloadAttachmentDto + System.Threading.Tasks.Task DownloadAttachmentBase64Async(Guid emailId, string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. + /// + /// + /// Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DownloadAttachmentDto) + System.Threading.Tasks.Task> DownloadAttachmentBase64WithHttpInfoAsync(Guid emailId, string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email body as string. Returned as `plain/text` with content type header. + /// + /// + /// Returns the specified email body for a given email as a string + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + System.Threading.Tasks.Task DownloadBodyAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email body as string. Returned as `plain/text` with content type header. + /// + /// + /// Returns the specified email body for a given email as a string + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> DownloadBodyWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email body in bytes. Returned as `octet-stream` with content type header. + /// + /// + /// Returns the specified email body for a given email as a stream / array of bytes. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of byte[] + System.Threading.Tasks.Task DownloadBodyBytesAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email body in bytes. Returned as `octet-stream` with content type header. + /// + /// + /// Returns the specified email body for a given email as a stream / array of bytes. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (byte[]) + System.Threading.Tasks.Task> DownloadBodyBytesWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Forward email to recipients + /// + /// + /// Forward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the `from` option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints. + /// + /// Thrown when fails to make API call + /// ID of email + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + System.Threading.Tasks.Task ForwardEmailAsync(Guid emailId, ForwardEmailOptions forwardEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Forward email to recipients + /// + /// + /// Forward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the `from` option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints. + /// + /// Thrown when fails to make API call + /// ID of email + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + System.Threading.Tasks.Task> ForwardEmailWithHttpInfoAsync(Guid emailId, ForwardEmailOptions forwardEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. + /// + /// + /// Returns the metadata such as name and content-type for a given attachment and email. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AttachmentMetaData + System.Threading.Tasks.Task GetAttachmentMetaDataAsync(Guid emailId, string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. + /// + /// + /// Returns the metadata such as name and content-type for a given attachment and email. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AttachmentMetaData) + System.Threading.Tasks.Task> GetAttachmentMetaDataWithHttpInfoAsync(Guid emailId, string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. + /// + /// + /// Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints + /// + /// Thrown when fails to make API call + /// + /// Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + System.Threading.Tasks.Task GetEmailAsync(Guid emailId, bool? decode = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. + /// + /// + /// Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints + /// + /// Thrown when fails to make API call + /// + /// Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + System.Threading.Tasks.Task> GetEmailWithHttpInfoAsync(Guid emailId, bool? decode = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all email attachment metadata. Metadata includes name and size of attachments. + /// + /// + /// Returns an array of attachment metadata such as name and content-type for a given email if present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<AttachmentMetaData> + System.Threading.Tasks.Task> GetEmailAttachmentsAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all email attachment metadata. Metadata includes name and size of attachments. + /// + /// + /// Returns an array of attachment metadata such as name and content-type for a given email if present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<AttachmentMetaData>) + System.Threading.Tasks.Task>> GetEmailAttachmentsWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email content regex pattern match results. Runs regex against email body and returns match groups. + /// + /// + /// Return the matches for a given Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailContentMatchResult + System.Threading.Tasks.Task GetEmailContentMatchAsync(Guid emailId, ContentMatchOptions contentMatchOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email content regex pattern match results. Runs regex against email body and returns match groups. + /// + /// + /// Return the matches for a given Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailContentMatchResult) + System.Threading.Tasks.Task> GetEmailContentMatchWithHttpInfoAsync(Guid emailId, ContentMatchOptions contentMatchOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email content part by content type + /// + /// + /// Get email body content parts from a multipart email message for a given content type + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// Content type + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailContentPartResult + System.Threading.Tasks.Task GetEmailContentPartAsync(Guid emailId, string contentType, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email content part by content type + /// + /// + /// Get email body content parts from a multipart email message for a given content type + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// Content type + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailContentPartResult) + System.Threading.Tasks.Task> GetEmailContentPartWithHttpInfoAsync(Guid emailId, string contentType, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email count + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CountDto + System.Threading.Tasks.Task GetEmailCountAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email count + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CountDto) + System.Threading.Tasks.Task> GetEmailCountWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email content as HTML. For displaying emails in browser context. + /// + /// + /// Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`. Returns content-type `text/html;charset=utf-8` so you must call expecting that content response not JSON. For JSON response see the `getEmailHTMLJson` method. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + System.Threading.Tasks.Task GetEmailHTMLAsync(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email content as HTML. For displaying emails in browser context. + /// + /// + /// Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`. Returns content-type `text/html;charset=utf-8` so you must call expecting that content response not JSON. For JSON response see the `getEmailHTMLJson` method. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> GetEmailHTMLWithHttpInfoAsync(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content + /// + /// + /// Retrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type `application/json;charset=utf-8` so you must call expecting that content response not JSON. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailHtmlDto + System.Threading.Tasks.Task GetEmailHTMLJsonAsync(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content + /// + /// + /// Retrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type `application/json;charset=utf-8` so you must call expecting that content response not JSON. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailHtmlDto) + System.Threading.Tasks.Task> GetEmailHTMLJsonWithHttpInfoAsync(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters + /// + /// + /// Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors + /// + /// Thrown when fails to make API call + /// ID of email to perform HTML query on + /// HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailTextLinesResult + System.Threading.Tasks.Task GetEmailHTMLQueryAsync(Guid emailId, string htmlSelector, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters + /// + /// + /// Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors + /// + /// Thrown when fails to make API call + /// ID of email to perform HTML query on + /// HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailTextLinesResult) + System.Threading.Tasks.Task> GetEmailHTMLQueryWithHttpInfoAsync(Guid emailId, string htmlSelector, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Parse and return list of links found in an email (only works for HTML content) + /// + /// + /// HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailLinksResult + System.Threading.Tasks.Task GetEmailLinksAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Parse and return list of links found in an email (only works for HTML content) + /// + /// + /// HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailLinksResult) + System.Threading.Tasks.Task> GetEmailLinksWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email URLs for viewing in browser or downloading + /// + /// + /// Get a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailPreviewUrls + System.Threading.Tasks.Task GetEmailPreviewURLsAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email URLs for viewing in browser or downloading + /// + /// + /// Get a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailPreviewUrls) + System.Threading.Tasks.Task> GetEmailPreviewURLsWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Take a screenshot of an email in a browser and return base64 encoded string + /// + /// + /// Capture image of email screenshot and return as base64 encoded string. Useful for embedding in HTML. Be careful as this may contain sensitive information. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailScreenshotResult + System.Threading.Tasks.Task GetEmailScreenshotAsBase64Async(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Take a screenshot of an email in a browser and return base64 encoded string + /// + /// + /// Capture image of email screenshot and return as base64 encoded string. Useful for embedding in HTML. Be careful as this may contain sensitive information. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailScreenshotResult) + System.Threading.Tasks.Task> GetEmailScreenshotAsBase64WithHttpInfoAsync(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Take a screenshot of an email in a browser + /// + /// + /// Returns binary octet-stream of screenshot of the given email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task GetEmailScreenshotAsBinaryAsync(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Take a screenshot of an email in a browser + /// + /// + /// Returns binary octet-stream of screenshot of the given email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> GetEmailScreenshotAsBinaryWithHttpInfoAsync(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters + /// + /// + /// Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators. + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Decode HTML entities (optional) + /// Line separator character (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailTextLinesResult + System.Threading.Tasks.Task GetEmailTextLinesAsync(Guid emailId, bool? decodeHtmlEntities = default(bool?), string lineSeparator = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters + /// + /// + /// Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators. + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Decode HTML entities (optional) + /// Line separator character (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailTextLinesResult) + System.Threading.Tasks.Task> GetEmailTextLinesWithHttpInfoAsync(Guid emailId, bool? decodeHtmlEntities = default(bool?), string lineSeparator = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all emails in all inboxes in paginated form. Email API list all. + /// + /// + /// By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailProjection + System.Threading.Tasks.Task GetEmailsOffsetPaginatedAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. + /// + /// + /// By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailProjection) + System.Threading.Tasks.Task> GetEmailsOffsetPaginatedWithHttpInfoAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all emails in all inboxes in paginated form. Email API list all. + /// + /// + /// By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailProjection + System.Threading.Tasks.Task GetEmailsPaginatedAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. + /// + /// + /// By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailProjection) + System.Threading.Tasks.Task> GetEmailsPaginatedWithHttpInfoAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get gravatar url for email address + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GravatarUrl + System.Threading.Tasks.Task GetGravatarUrlForEmailAddressAsync(string emailAddress, string size = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get gravatar url for email address + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GravatarUrl) + System.Threading.Tasks.Task> GetGravatarUrlForEmailAddressWithHttpInfoAsync(string emailAddress, string size = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get latest email in all inboxes. Most recently received. + /// + /// + /// Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + System.Threading.Tasks.Task GetLatestEmailAsync(List inboxIds = default(List), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get latest email in all inboxes. Most recently received. + /// + /// + /// Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + System.Threading.Tasks.Task> GetLatestEmailWithHttpInfoAsync(List inboxIds = default(List), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + /// + /// + /// Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + System.Threading.Tasks.Task GetLatestEmailInInbox1Async(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + /// + /// + /// Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + System.Threading.Tasks.Task> GetLatestEmailInInbox1WithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all organization emails. List team or shared test email accounts + /// + /// + /// By default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter search filter for emails. (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailProjection + System.Threading.Tasks.Task GetOrganizationEmailsPaginatedAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all organization emails. List team or shared test email accounts + /// + /// + /// By default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter search filter for emails. (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailProjection) + System.Threading.Tasks.Task> GetOrganizationEmailsPaginatedWithHttpInfoAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get raw email string. Returns unparsed raw SMTP message with headers and body. + /// + /// + /// Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task GetRawEmailContentsAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get raw email string. Returns unparsed raw SMTP message with headers and body. + /// + /// + /// Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> GetRawEmailContentsWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. + /// + /// + /// Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of RawEmailJson + System.Threading.Tasks.Task GetRawEmailJsonAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. + /// + /// + /// Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (RawEmailJson) + System.Threading.Tasks.Task> GetRawEmailJsonWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get unread email count + /// + /// + /// Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UnreadCount + System.Threading.Tasks.Task GetUnreadEmailCountAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get unread email count + /// + /// + /// Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UnreadCount) + System.Threading.Tasks.Task> GetUnreadEmailCountWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Mark all emails as read or unread + /// + /// + /// Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// What value to assign to email read property. Default true. (optional, default to true) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task MarkAllAsReadAsync(bool? read = default(bool?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Mark all emails as read or unread + /// + /// + /// Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// What value to assign to email read property. Default true. (optional, default to true) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> MarkAllAsReadWithHttpInfoAsync(bool? read = default(bool?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Mark an email as read or unread + /// + /// + /// Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// + /// What value to assign to email read property. Default true. (optional, default to true) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailPreview + System.Threading.Tasks.Task MarkAsReadAsync(Guid emailId, bool? read = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Mark an email as read or unread + /// + /// + /// Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// + /// What value to assign to email read property. Default true. (optional, default to true) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailPreview) + System.Threading.Tasks.Task> MarkAsReadWithHttpInfoAsync(Guid emailId, bool? read = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Reply to an email + /// + /// + /// Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + System.Threading.Tasks.Task ReplyToEmailAsync(Guid emailId, ReplyToEmailOptions replyToEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Reply to an email + /// + /// + /// Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + System.Threading.Tasks.Task> ReplyToEmailWithHttpInfoAsync(Guid emailId, ReplyToEmailOptions replyToEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all emails by search criteria. Return in paginated form. + /// + /// + /// Search emails by given criteria return matches in paginated format. Searches against email recipients, sender, subject, email address and ID. Does not search email body + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailProjection + System.Threading.Tasks.Task SearchEmailsAsync(SearchEmailsOptions searchEmailsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all emails by search criteria. Return in paginated form. + /// + /// + /// Search emails by given criteria return matches in paginated format. Searches against email recipients, sender, subject, email address and ID. Does not search email body + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailProjection) + System.Threading.Tasks.Task> SearchEmailsWithHttpInfoAsync(SearchEmailsOptions searchEmailsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send email + /// + /// + /// Alias for `InboxController.sendEmail` method - see original method for full details. Sends an email from a given inbox that you have created. If no inbox is supplied a random inbox will be created for you and used to send the email. + /// + /// Thrown when fails to make API call + /// + /// ID of the inbox you want to send the email from (optional) + /// Use domain pool. Optionally create inbox to send from using the mailslurp domain pool. (optional) + /// Optionally create inbox to send from that is a virtual inbox and won't send to external addresses (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task SendEmailSourceOptionalAsync(SendEmailOptions sendEmailOptions, Guid? inboxId = default(Guid?), bool? useDomainPool = default(bool?), bool? virtualSend = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send email + /// + /// + /// Alias for `InboxController.sendEmail` method - see original method for full details. Sends an email from a given inbox that you have created. If no inbox is supplied a random inbox will be created for you and used to send the email. + /// + /// Thrown when fails to make API call + /// + /// ID of the inbox you want to send the email from (optional) + /// Use domain pool. Optionally create inbox to send from using the mailslurp domain pool. (optional) + /// Optionally create inbox to send from that is a virtual inbox and won't send to external addresses (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> SendEmailSourceOptionalWithHttpInfoAsync(SendEmailOptions sendEmailOptions, Guid? inboxId = default(Guid?), bool? useDomainPool = default(bool?), bool? virtualSend = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Validate email HTML contents + /// + /// + /// Validate the HTML content of email if HTML is found. Considered valid if no HTML is present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ValidationDto + System.Threading.Tasks.Task ValidateEmailAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Validate email HTML contents + /// + /// + /// Validate the HTML content of email if HTML is found. Considered valid if no HTML is present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ValidationDto) + System.Threading.Tasks.Task> ValidateEmailWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IEmailControllerApi : IEmailControllerApiSync, IEmailControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class EmailControllerApi : IEmailControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public EmailControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public EmailControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public EmailControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public EmailControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Set IMAP flags associated with a message. Only supports '\\Seen' flag. Apply RFC3501 section-2.3.2 IMAP flag operations on an email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// EmailPreview + public EmailPreview ApplyImapFlagOperation(Guid emailId, ImapFlagOperationOptions imapFlagOperationOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ApplyImapFlagOperationWithHttpInfo(emailId, imapFlagOperationOptions); + return localVarResponse.Data; + } + + /// + /// Set IMAP flags associated with a message. Only supports '\\Seen' flag. Apply RFC3501 section-2.3.2 IMAP flag operations on an email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of EmailPreview + public mailslurp_netstandard_2x.Client.ApiResponse ApplyImapFlagOperationWithHttpInfo(Guid emailId, ImapFlagOperationOptions imapFlagOperationOptions, int operationIndex = 0) + { + // verify the required parameter 'imapFlagOperationOptions' is set + if (imapFlagOperationOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'imapFlagOperationOptions' when calling EmailControllerApi->ApplyImapFlagOperation"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = imapFlagOperationOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.ApplyImapFlagOperation"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails/{emailId}/imap-flag-operation", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApplyImapFlagOperation", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Set IMAP flags associated with a message. Only supports '\\Seen' flag. Apply RFC3501 section-2.3.2 IMAP flag operations on an email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailPreview + public async System.Threading.Tasks.Task ApplyImapFlagOperationAsync(Guid emailId, ImapFlagOperationOptions imapFlagOperationOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ApplyImapFlagOperationWithHttpInfoAsync(emailId, imapFlagOperationOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Set IMAP flags associated with a message. Only supports '\\Seen' flag. Apply RFC3501 section-2.3.2 IMAP flag operations on an email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailPreview) + public async System.Threading.Tasks.Task> ApplyImapFlagOperationWithHttpInfoAsync(Guid emailId, ImapFlagOperationOptions imapFlagOperationOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'imapFlagOperationOptions' is set + if (imapFlagOperationOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'imapFlagOperationOptions' when calling EmailControllerApi->ApplyImapFlagOperation"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = imapFlagOperationOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.ApplyImapFlagOperation"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails/{emailId}/imap-flag-operation", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApplyImapFlagOperation", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Check if email can be sent and options are valid. Can user send email to given recipient or is the recipient blocked + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// CanSendEmailResults + public CanSendEmailResults CanSend(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CanSendWithHttpInfo(inboxId, sendEmailOptions); + return localVarResponse.Data; + } + + /// + /// Check if email can be sent and options are valid. Can user send email to given recipient or is the recipient blocked + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// ApiResponse of CanSendEmailResults + public mailslurp_netstandard_2x.Client.ApiResponse CanSendWithHttpInfo(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling EmailControllerApi->CanSend"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.CanSend"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails/can-send", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CanSend", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Check if email can be sent and options are valid. Can user send email to given recipient or is the recipient blocked + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CanSendEmailResults + public async System.Threading.Tasks.Task CanSendAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CanSendWithHttpInfoAsync(inboxId, sendEmailOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Check if email can be sent and options are valid. Can user send email to given recipient or is the recipient blocked + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CanSendEmailResults) + public async System.Threading.Tasks.Task> CanSendWithHttpInfoAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling EmailControllerApi->CanSend"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.CanSend"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails/can-send", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CanSend", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Detect broken links, spelling, and images in email content Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful. Any resource that returns a 4xx or 5xx response or is not reachable via HEAD or GET HTTP operations will be considered unhealthy. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// CheckEmailBodyResults + public CheckEmailBodyResults CheckEmailBody(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CheckEmailBodyWithHttpInfo(emailId); + return localVarResponse.Data; + } + + /// + /// Detect broken links, spelling, and images in email content Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful. Any resource that returns a 4xx or 5xx response or is not reachable via HEAD or GET HTTP operations will be considered unhealthy. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of CheckEmailBodyResults + public mailslurp_netstandard_2x.Client.ApiResponse CheckEmailBodyWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.CheckEmailBody"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails/{emailId}/check-email-body", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CheckEmailBody", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Detect broken links, spelling, and images in email content Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful. Any resource that returns a 4xx or 5xx response or is not reachable via HEAD or GET HTTP operations will be considered unhealthy. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CheckEmailBodyResults + public async System.Threading.Tasks.Task CheckEmailBodyAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CheckEmailBodyWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Detect broken links, spelling, and images in email content Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful. Any resource that returns a 4xx or 5xx response or is not reachable via HEAD or GET HTTP operations will be considered unhealthy. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CheckEmailBodyResults) + public async System.Threading.Tasks.Task> CheckEmailBodyWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.CheckEmailBody"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails/{emailId}/check-email-body", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CheckEmailBody", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Show which mail clients support the HTML and CSS features used in an email body. Detect HTML and CSS features inside an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// CheckEmailBodyFeatureSupportResults + public CheckEmailBodyFeatureSupportResults CheckEmailBodyFeatureSupport(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CheckEmailBodyFeatureSupportWithHttpInfo(emailId); + return localVarResponse.Data; + } + + /// + /// Show which mail clients support the HTML and CSS features used in an email body. Detect HTML and CSS features inside an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of CheckEmailBodyFeatureSupportResults + public mailslurp_netstandard_2x.Client.ApiResponse CheckEmailBodyFeatureSupportWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.CheckEmailBodyFeatureSupport"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails/{emailId}/check-email-body-feature-support", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CheckEmailBodyFeatureSupport", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Show which mail clients support the HTML and CSS features used in an email body. Detect HTML and CSS features inside an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CheckEmailBodyFeatureSupportResults + public async System.Threading.Tasks.Task CheckEmailBodyFeatureSupportAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CheckEmailBodyFeatureSupportWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Show which mail clients support the HTML and CSS features used in an email body. Detect HTML and CSS features inside an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CheckEmailBodyFeatureSupportResults) + public async System.Threading.Tasks.Task> CheckEmailBodyFeatureSupportWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.CheckEmailBodyFeatureSupport"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails/{emailId}/check-email-body-feature-support", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CheckEmailBodyFeatureSupport", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Show which email programs and devices support the features used in an email body. Evaluate the features used in an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// CheckEmailClientSupportResults + public CheckEmailClientSupportResults CheckEmailClientSupport(CheckEmailClientSupportOptions checkEmailClientSupportOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CheckEmailClientSupportWithHttpInfo(checkEmailClientSupportOptions); + return localVarResponse.Data; + } + + /// + /// Show which email programs and devices support the features used in an email body. Evaluate the features used in an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of CheckEmailClientSupportResults + public mailslurp_netstandard_2x.Client.ApiResponse CheckEmailClientSupportWithHttpInfo(CheckEmailClientSupportOptions checkEmailClientSupportOptions, int operationIndex = 0) + { + // verify the required parameter 'checkEmailClientSupportOptions' is set + if (checkEmailClientSupportOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'checkEmailClientSupportOptions' when calling EmailControllerApi->CheckEmailClientSupport"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = checkEmailClientSupportOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.CheckEmailClientSupport"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails/check-email-client-support", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CheckEmailClientSupport", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Show which email programs and devices support the features used in an email body. Evaluate the features used in an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CheckEmailClientSupportResults + public async System.Threading.Tasks.Task CheckEmailClientSupportAsync(CheckEmailClientSupportOptions checkEmailClientSupportOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CheckEmailClientSupportWithHttpInfoAsync(checkEmailClientSupportOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Show which email programs and devices support the features used in an email body. Evaluate the features used in an email body and return a report of email client support across different platforms and versions. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CheckEmailClientSupportResults) + public async System.Threading.Tasks.Task> CheckEmailClientSupportWithHttpInfoAsync(CheckEmailClientSupportOptions checkEmailClientSupportOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'checkEmailClientSupportOptions' is set + if (checkEmailClientSupportOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'checkEmailClientSupportOptions' when calling EmailControllerApi->CheckEmailClientSupport"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = checkEmailClientSupportOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.CheckEmailClientSupport"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails/check-email-client-support", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CheckEmailClientSupport", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all emails in all inboxes. Deletes all emails in your account. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + public void DeleteAllEmails(int operationIndex = 0) + { + DeleteAllEmailsWithHttpInfo(); + } + + /// + /// Delete all emails in all inboxes. Deletes all emails in your account. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAllEmailsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "EmailControllerApi.DeleteAllEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/emails", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all emails in all inboxes. Deletes all emails in your account. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAllEmailsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAllEmailsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete all emails in all inboxes. Deletes all emails in your account. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAllEmailsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "EmailControllerApi.DeleteAllEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/emails", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an email Deletes an email and removes it from the inbox. Deleted emails cannot be recovered. + /// + /// Thrown when fails to make API call + /// ID of email to delete + /// Index associated with the operation. + /// + public void DeleteEmail(Guid emailId, int operationIndex = 0) + { + DeleteEmailWithHttpInfo(emailId); + } + + /// + /// Delete an email Deletes an email and removes it from the inbox. Deleted emails cannot be recovered. + /// + /// Thrown when fails to make API call + /// ID of email to delete + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteEmailWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.DeleteEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/emails/{emailId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an email Deletes an email and removes it from the inbox. Deleted emails cannot be recovered. + /// + /// Thrown when fails to make API call + /// ID of email to delete + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteEmailAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteEmailWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an email Deletes an email and removes it from the inbox. Deleted emails cannot be recovered. + /// + /// Thrown when fails to make API call + /// ID of email to delete + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteEmailWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.DeleteEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/emails/{emailId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly. (optional) + /// Index associated with the operation. + /// byte[] + public byte[] DownloadAttachment(Guid emailId, string attachmentId, string apiKey = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = DownloadAttachmentWithHttpInfo(emailId, attachmentId, apiKey); + return localVarResponse.Data; + } + + /// + /// Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly. (optional) + /// Index associated with the operation. + /// ApiResponse of byte[] + public mailslurp_netstandard_2x.Client.ApiResponse DownloadAttachmentWithHttpInfo(Guid emailId, string attachmentId, string apiKey = default(string), int operationIndex = 0) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling EmailControllerApi->DownloadAttachment"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/octet-stream" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + if (apiKey != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "apiKey", apiKey)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.DownloadAttachment"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/attachments/{attachmentId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadAttachment", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of byte[] + public async System.Threading.Tasks.Task DownloadAttachmentAsync(Guid emailId, string attachmentId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await DownloadAttachmentWithHttpInfoAsync(emailId, attachmentId, apiKey, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string. Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (byte[]) + public async System.Threading.Tasks.Task> DownloadAttachmentWithHttpInfoAsync(Guid emailId, string attachmentId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling EmailControllerApi->DownloadAttachment"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/octet-stream" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + if (apiKey != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "apiKey", apiKey)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.DownloadAttachment"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/attachments/{attachmentId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadAttachment", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// DownloadAttachmentDto + public DownloadAttachmentDto DownloadAttachmentBase64(Guid emailId, string attachmentId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = DownloadAttachmentBase64WithHttpInfo(emailId, attachmentId); + return localVarResponse.Data; + } + + /// + /// Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of DownloadAttachmentDto + public mailslurp_netstandard_2x.Client.ApiResponse DownloadAttachmentBase64WithHttpInfo(Guid emailId, string attachmentId, int operationIndex = 0) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling EmailControllerApi->DownloadAttachmentBase64"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.DownloadAttachmentBase64"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/attachments/{attachmentId}/base64", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadAttachmentBase64", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DownloadAttachmentDto + public async System.Threading.Tasks.Task DownloadAttachmentBase64Async(Guid emailId, string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await DownloadAttachmentBase64WithHttpInfoAsync(emailId, attachmentId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`. Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DownloadAttachmentDto) + public async System.Threading.Tasks.Task> DownloadAttachmentBase64WithHttpInfoAsync(Guid emailId, string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling EmailControllerApi->DownloadAttachmentBase64"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.DownloadAttachmentBase64"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/attachments/{attachmentId}/base64", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadAttachmentBase64", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email body as string. Returned as `plain/text` with content type header. Returns the specified email body for a given email as a string + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// string + public string DownloadBody(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = DownloadBodyWithHttpInfo(emailId); + return localVarResponse.Data; + } + + /// + /// Get email body as string. Returned as `plain/text` with content type header. Returns the specified email body for a given email as a string + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of string + public mailslurp_netstandard_2x.Client.ApiResponse DownloadBodyWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "text/html" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.DownloadBody"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/body", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadBody", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email body as string. Returned as `plain/text` with content type header. Returns the specified email body for a given email as a string + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + public async System.Threading.Tasks.Task DownloadBodyAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await DownloadBodyWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email body as string. Returned as `plain/text` with content type header. Returns the specified email body for a given email as a string + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> DownloadBodyWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "text/html" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.DownloadBody"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/body", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadBody", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email body in bytes. Returned as `octet-stream` with content type header. Returns the specified email body for a given email as a stream / array of bytes. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// byte[] + public byte[] DownloadBodyBytes(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = DownloadBodyBytesWithHttpInfo(emailId); + return localVarResponse.Data; + } + + /// + /// Get email body in bytes. Returned as `octet-stream` with content type header. Returns the specified email body for a given email as a stream / array of bytes. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of byte[] + public mailslurp_netstandard_2x.Client.ApiResponse DownloadBodyBytesWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/octet-stream" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.DownloadBodyBytes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/body-bytes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadBodyBytes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email body in bytes. Returned as `octet-stream` with content type header. Returns the specified email body for a given email as a stream / array of bytes. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of byte[] + public async System.Threading.Tasks.Task DownloadBodyBytesAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await DownloadBodyBytesWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email body in bytes. Returned as `octet-stream` with content type header. Returns the specified email body for a given email as a stream / array of bytes. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (byte[]) + public async System.Threading.Tasks.Task> DownloadBodyBytesWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/octet-stream" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.DownloadBodyBytes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/body-bytes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DownloadBodyBytes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Forward email to recipients Forward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the `from` option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints. + /// + /// Thrown when fails to make API call + /// ID of email + /// + /// Index associated with the operation. + /// SentEmailDto + public SentEmailDto ForwardEmail(Guid emailId, ForwardEmailOptions forwardEmailOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ForwardEmailWithHttpInfo(emailId, forwardEmailOptions); + return localVarResponse.Data; + } + + /// + /// Forward email to recipients Forward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the `from` option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints. + /// + /// Thrown when fails to make API call + /// ID of email + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + public mailslurp_netstandard_2x.Client.ApiResponse ForwardEmailWithHttpInfo(Guid emailId, ForwardEmailOptions forwardEmailOptions, int operationIndex = 0) + { + // verify the required parameter 'forwardEmailOptions' is set + if (forwardEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'forwardEmailOptions' when calling EmailControllerApi->ForwardEmail"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = forwardEmailOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.ForwardEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails/{emailId}/forward", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ForwardEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Forward email to recipients Forward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the `from` option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints. + /// + /// Thrown when fails to make API call + /// ID of email + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + public async System.Threading.Tasks.Task ForwardEmailAsync(Guid emailId, ForwardEmailOptions forwardEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ForwardEmailWithHttpInfoAsync(emailId, forwardEmailOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Forward email to recipients Forward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the `from` option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints. + /// + /// Thrown when fails to make API call + /// ID of email + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + public async System.Threading.Tasks.Task> ForwardEmailWithHttpInfoAsync(Guid emailId, ForwardEmailOptions forwardEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'forwardEmailOptions' is set + if (forwardEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'forwardEmailOptions' when calling EmailControllerApi->ForwardEmail"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = forwardEmailOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.ForwardEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails/{emailId}/forward", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ForwardEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. Returns the metadata such as name and content-type for a given attachment and email. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// AttachmentMetaData + public AttachmentMetaData GetAttachmentMetaData(Guid emailId, string attachmentId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAttachmentMetaDataWithHttpInfo(emailId, attachmentId); + return localVarResponse.Data; + } + + /// + /// Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. Returns the metadata such as name and content-type for a given attachment and email. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// ApiResponse of AttachmentMetaData + public mailslurp_netstandard_2x.Client.ApiResponse GetAttachmentMetaDataWithHttpInfo(Guid emailId, string attachmentId, int operationIndex = 0) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling EmailControllerApi->GetAttachmentMetaData"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetAttachmentMetaData"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/attachments/{attachmentId}/metadata", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAttachmentMetaData", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. Returns the metadata such as name and content-type for a given attachment and email. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AttachmentMetaData + public async System.Threading.Tasks.Task GetAttachmentMetaDataAsync(Guid emailId, string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAttachmentMetaDataWithHttpInfoAsync(emailId, attachmentId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods. Returns the metadata such as name and content-type for a given attachment and email. + /// + /// Thrown when fails to make API call + /// ID of email + /// ID of attachment + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AttachmentMetaData) + public async System.Threading.Tasks.Task> GetAttachmentMetaDataWithHttpInfoAsync(Guid emailId, string attachmentId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'attachmentId' is set + if (attachmentId == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'attachmentId' when calling EmailControllerApi->GetAttachmentMetaData"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.PathParameters.Add("attachmentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(attachmentId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetAttachmentMetaData"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/attachments/{attachmentId}/metadata", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAttachmentMetaData", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints + /// + /// Thrown when fails to make API call + /// + /// Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing (optional, default to false) + /// Index associated with the operation. + /// Email + public Email GetEmail(Guid emailId, bool? decode = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailWithHttpInfo(emailId, decode); + return localVarResponse.Data; + } + + /// + /// Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints + /// + /// Thrown when fails to make API call + /// + /// Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing (optional, default to false) + /// Index associated with the operation. + /// ApiResponse of Email + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailWithHttpInfo(Guid emailId, bool? decode = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + if (decode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "decode", decode)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints + /// + /// Thrown when fails to make API call + /// + /// Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + public async System.Threading.Tasks.Task GetEmailAsync(Guid emailId, bool? decode = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailWithHttpInfoAsync(emailId, decode, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints + /// + /// Thrown when fails to make API call + /// + /// Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + public async System.Threading.Tasks.Task> GetEmailWithHttpInfoAsync(Guid emailId, bool? decode = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + if (decode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "decode", decode)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all email attachment metadata. Metadata includes name and size of attachments. Returns an array of attachment metadata such as name and content-type for a given email if present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// List<AttachmentMetaData> + public List GetEmailAttachments(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetEmailAttachmentsWithHttpInfo(emailId); + return localVarResponse.Data; + } + + /// + /// Get all email attachment metadata. Metadata includes name and size of attachments. Returns an array of attachment metadata such as name and content-type for a given email if present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of List<AttachmentMetaData> + public mailslurp_netstandard_2x.Client.ApiResponse> GetEmailAttachmentsWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailAttachments"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/emails/{emailId}/attachments", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailAttachments", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all email attachment metadata. Metadata includes name and size of attachments. Returns an array of attachment metadata such as name and content-type for a given email if present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<AttachmentMetaData> + public async System.Threading.Tasks.Task> GetEmailAttachmentsAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetEmailAttachmentsWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all email attachment metadata. Metadata includes name and size of attachments. Returns an array of attachment metadata such as name and content-type for a given email if present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<AttachmentMetaData>) + public async System.Threading.Tasks.Task>> GetEmailAttachmentsWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailAttachments"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/emails/{emailId}/attachments", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailAttachments", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email content regex pattern match results. Runs regex against email body and returns match groups. Return the matches for a given Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// + /// Index associated with the operation. + /// EmailContentMatchResult + public EmailContentMatchResult GetEmailContentMatch(Guid emailId, ContentMatchOptions contentMatchOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailContentMatchWithHttpInfo(emailId, contentMatchOptions); + return localVarResponse.Data; + } + + /// + /// Get email content regex pattern match results. Runs regex against email body and returns match groups. Return the matches for a given Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// + /// Index associated with the operation. + /// ApiResponse of EmailContentMatchResult + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailContentMatchWithHttpInfo(Guid emailId, ContentMatchOptions contentMatchOptions, int operationIndex = 0) + { + // verify the required parameter 'contentMatchOptions' is set + if (contentMatchOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'contentMatchOptions' when calling EmailControllerApi->GetEmailContentMatch"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = contentMatchOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailContentMatch"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails/{emailId}/contentMatch", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailContentMatch", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email content regex pattern match results. Runs regex against email body and returns match groups. Return the matches for a given Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailContentMatchResult + public async System.Threading.Tasks.Task GetEmailContentMatchAsync(Guid emailId, ContentMatchOptions contentMatchOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailContentMatchWithHttpInfoAsync(emailId, contentMatchOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email content regex pattern match results. Runs regex against email body and returns match groups. Return the matches for a given Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailContentMatchResult) + public async System.Threading.Tasks.Task> GetEmailContentMatchWithHttpInfoAsync(Guid emailId, ContentMatchOptions contentMatchOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'contentMatchOptions' is set + if (contentMatchOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'contentMatchOptions' when calling EmailControllerApi->GetEmailContentMatch"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = contentMatchOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailContentMatch"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails/{emailId}/contentMatch", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailContentMatch", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email content part by content type Get email body content parts from a multipart email message for a given content type + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// Content type + /// Index associated with the operation. + /// EmailContentPartResult + public EmailContentPartResult GetEmailContentPart(Guid emailId, string contentType, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailContentPartWithHttpInfo(emailId, contentType); + return localVarResponse.Data; + } + + /// + /// Get email content part by content type Get email body content parts from a multipart email message for a given content type + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// Content type + /// Index associated with the operation. + /// ApiResponse of EmailContentPartResult + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailContentPartWithHttpInfo(Guid emailId, string contentType, int operationIndex = 0) + { + // verify the required parameter 'contentType' is set + if (contentType == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'contentType' when calling EmailControllerApi->GetEmailContentPart"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "contentType", contentType)); + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailContentPart"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/contentPart", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailContentPart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email content part by content type Get email body content parts from a multipart email message for a given content type + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// Content type + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailContentPartResult + public async System.Threading.Tasks.Task GetEmailContentPartAsync(Guid emailId, string contentType, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailContentPartWithHttpInfoAsync(emailId, contentType, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email content part by content type Get email body content parts from a multipart email message for a given content type + /// + /// Thrown when fails to make API call + /// ID of email to match against + /// Content type + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailContentPartResult) + public async System.Threading.Tasks.Task> GetEmailContentPartWithHttpInfoAsync(Guid emailId, string contentType, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'contentType' is set + if (contentType == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'contentType' when calling EmailControllerApi->GetEmailContentPart"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "contentType", contentType)); + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailContentPart"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/contentPart", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailContentPart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email count + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CountDto + public CountDto GetEmailCount(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailCountWithHttpInfo(inboxId); + return localVarResponse.Data; + } + + /// + /// Get email count + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CountDto + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailCountWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/emails/count", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email count + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CountDto + public async System.Threading.Tasks.Task GetEmailCountAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailCountWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email count + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CountDto) + public async System.Threading.Tasks.Task> GetEmailCountWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/emails/count", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email content as HTML. For displaying emails in browser context. Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`. Returns content-type `text/html;charset=utf-8` so you must call expecting that content response not JSON. For JSON response see the `getEmailHTMLJson` method. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// string + public string GetEmailHTML(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailHTMLWithHttpInfo(emailId, decode, replaceCidImages); + return localVarResponse.Data; + } + + /// + /// Get email content as HTML. For displaying emails in browser context. Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`. Returns content-type `text/html;charset=utf-8` so you must call expecting that content response not JSON. For JSON response see the `getEmailHTMLJson` method. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// ApiResponse of string + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailHTMLWithHttpInfo(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/html;charset=utf-8", + "text/html" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + if (decode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "decode", decode)); + } + if (replaceCidImages != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "replaceCidImages", replaceCidImages)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailHTML"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/html", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailHTML", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email content as HTML. For displaying emails in browser context. Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`. Returns content-type `text/html;charset=utf-8` so you must call expecting that content response not JSON. For JSON response see the `getEmailHTMLJson` method. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + public async System.Threading.Tasks.Task GetEmailHTMLAsync(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailHTMLWithHttpInfoAsync(emailId, decode, replaceCidImages, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email content as HTML. For displaying emails in browser context. Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`. Returns content-type `text/html;charset=utf-8` so you must call expecting that content response not JSON. For JSON response see the `getEmailHTMLJson` method. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> GetEmailHTMLWithHttpInfoAsync(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/html;charset=utf-8", + "text/html" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + if (decode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "decode", decode)); + } + if (replaceCidImages != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "replaceCidImages", replaceCidImages)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailHTML"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/html", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailHTML", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content Retrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type `application/json;charset=utf-8` so you must call expecting that content response not JSON. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// EmailHtmlDto + public EmailHtmlDto GetEmailHTMLJson(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailHTMLJsonWithHttpInfo(emailId, decode, replaceCidImages); + return localVarResponse.Data; + } + + /// + /// Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content Retrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type `application/json;charset=utf-8` so you must call expecting that content response not JSON. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// ApiResponse of EmailHtmlDto + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailHTMLJsonWithHttpInfo(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + if (decode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "decode", decode)); + } + if (replaceCidImages != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "replaceCidImages", replaceCidImages)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailHTMLJson"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/html/json", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailHTMLJson", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content Retrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type `application/json;charset=utf-8` so you must call expecting that content response not JSON. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailHtmlDto + public async System.Threading.Tasks.Task GetEmailHTMLJsonAsync(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailHTMLJsonWithHttpInfoAsync(emailId, decode, replaceCidImages, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content Retrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type `application/json;charset=utf-8` so you must call expecting that content response not JSON. + /// + /// Thrown when fails to make API call + /// + /// (optional, default to false) + /// (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailHtmlDto) + public async System.Threading.Tasks.Task> GetEmailHTMLJsonWithHttpInfoAsync(Guid emailId, bool? decode = default(bool?), bool? replaceCidImages = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + if (decode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "decode", decode)); + } + if (replaceCidImages != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "replaceCidImages", replaceCidImages)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailHTMLJson"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/html/json", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailHTMLJson", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors + /// + /// Thrown when fails to make API call + /// ID of email to perform HTML query on + /// HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information. + /// Index associated with the operation. + /// EmailTextLinesResult + public EmailTextLinesResult GetEmailHTMLQuery(Guid emailId, string htmlSelector, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailHTMLQueryWithHttpInfo(emailId, htmlSelector); + return localVarResponse.Data; + } + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors + /// + /// Thrown when fails to make API call + /// ID of email to perform HTML query on + /// HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information. + /// Index associated with the operation. + /// ApiResponse of EmailTextLinesResult + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailHTMLQueryWithHttpInfo(Guid emailId, string htmlSelector, int operationIndex = 0) + { + // verify the required parameter 'htmlSelector' is set + if (htmlSelector == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'htmlSelector' when calling EmailControllerApi->GetEmailHTMLQuery"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "htmlSelector", htmlSelector)); + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailHTMLQuery"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/htmlQuery", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailHTMLQuery", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors + /// + /// Thrown when fails to make API call + /// ID of email to perform HTML query on + /// HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailTextLinesResult + public async System.Threading.Tasks.Task GetEmailHTMLQueryAsync(Guid emailId, string htmlSelector, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailHTMLQueryWithHttpInfoAsync(emailId, htmlSelector, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors + /// + /// Thrown when fails to make API call + /// ID of email to perform HTML query on + /// HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailTextLinesResult) + public async System.Threading.Tasks.Task> GetEmailHTMLQueryWithHttpInfoAsync(Guid emailId, string htmlSelector, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'htmlSelector' is set + if (htmlSelector == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'htmlSelector' when calling EmailControllerApi->GetEmailHTMLQuery"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "htmlSelector", htmlSelector)); + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailHTMLQuery"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/htmlQuery", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailHTMLQuery", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Parse and return list of links found in an email (only works for HTML content) HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Index associated with the operation. + /// EmailLinksResult + public EmailLinksResult GetEmailLinks(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailLinksWithHttpInfo(emailId); + return localVarResponse.Data; + } + + /// + /// Parse and return list of links found in an email (only works for HTML content) HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Index associated with the operation. + /// ApiResponse of EmailLinksResult + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailLinksWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailLinks"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/links", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailLinks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Parse and return list of links found in an email (only works for HTML content) HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailLinksResult + public async System.Threading.Tasks.Task GetEmailLinksAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailLinksWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Parse and return list of links found in an email (only works for HTML content) HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailLinksResult) + public async System.Threading.Tasks.Task> GetEmailLinksWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailLinks"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/links", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailLinks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email URLs for viewing in browser or downloading Get a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmailPreviewUrls + public EmailPreviewUrls GetEmailPreviewURLs(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailPreviewURLsWithHttpInfo(emailId); + return localVarResponse.Data; + } + + /// + /// Get email URLs for viewing in browser or downloading Get a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmailPreviewUrls + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailPreviewURLsWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailPreviewURLs"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/urls", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailPreviewURLs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email URLs for viewing in browser or downloading Get a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailPreviewUrls + public async System.Threading.Tasks.Task GetEmailPreviewURLsAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailPreviewURLsWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email URLs for viewing in browser or downloading Get a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailPreviewUrls) + public async System.Threading.Tasks.Task> GetEmailPreviewURLsWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailPreviewURLs"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/urls", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailPreviewURLs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Take a screenshot of an email in a browser and return base64 encoded string Capture image of email screenshot and return as base64 encoded string. Useful for embedding in HTML. Be careful as this may contain sensitive information. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// EmailScreenshotResult + public EmailScreenshotResult GetEmailScreenshotAsBase64(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailScreenshotAsBase64WithHttpInfo(emailId, getEmailScreenshotOptions); + return localVarResponse.Data; + } + + /// + /// Take a screenshot of an email in a browser and return base64 encoded string Capture image of email screenshot and return as base64 encoded string. Useful for embedding in HTML. Be careful as this may contain sensitive information. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of EmailScreenshotResult + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailScreenshotAsBase64WithHttpInfo(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0) + { + // verify the required parameter 'getEmailScreenshotOptions' is set + if (getEmailScreenshotOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'getEmailScreenshotOptions' when calling EmailControllerApi->GetEmailScreenshotAsBase64"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = getEmailScreenshotOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailScreenshotAsBase64"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails/{emailId}/screenshot/base64", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailScreenshotAsBase64", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Take a screenshot of an email in a browser and return base64 encoded string Capture image of email screenshot and return as base64 encoded string. Useful for embedding in HTML. Be careful as this may contain sensitive information. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailScreenshotResult + public async System.Threading.Tasks.Task GetEmailScreenshotAsBase64Async(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailScreenshotAsBase64WithHttpInfoAsync(emailId, getEmailScreenshotOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Take a screenshot of an email in a browser and return base64 encoded string Capture image of email screenshot and return as base64 encoded string. Useful for embedding in HTML. Be careful as this may contain sensitive information. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailScreenshotResult) + public async System.Threading.Tasks.Task> GetEmailScreenshotAsBase64WithHttpInfoAsync(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'getEmailScreenshotOptions' is set + if (getEmailScreenshotOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'getEmailScreenshotOptions' when calling EmailControllerApi->GetEmailScreenshotAsBase64"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = getEmailScreenshotOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailScreenshotAsBase64"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails/{emailId}/screenshot/base64", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailScreenshotAsBase64", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Take a screenshot of an email in a browser Returns binary octet-stream of screenshot of the given email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// + public void GetEmailScreenshotAsBinary(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0) + { + GetEmailScreenshotAsBinaryWithHttpInfo(emailId, getEmailScreenshotOptions); + } + + /// + /// Take a screenshot of an email in a browser Returns binary octet-stream of screenshot of the given email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailScreenshotAsBinaryWithHttpInfo(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0) + { + // verify the required parameter 'getEmailScreenshotOptions' is set + if (getEmailScreenshotOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'getEmailScreenshotOptions' when calling EmailControllerApi->GetEmailScreenshotAsBinary"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = getEmailScreenshotOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailScreenshotAsBinary"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails/{emailId}/screenshot/binary", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailScreenshotAsBinary", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Take a screenshot of an email in a browser Returns binary octet-stream of screenshot of the given email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task GetEmailScreenshotAsBinaryAsync(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await GetEmailScreenshotAsBinaryWithHttpInfoAsync(emailId, getEmailScreenshotOptions, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Take a screenshot of an email in a browser Returns binary octet-stream of screenshot of the given email + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> GetEmailScreenshotAsBinaryWithHttpInfoAsync(Guid emailId, GetEmailScreenshotOptions getEmailScreenshotOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'getEmailScreenshotOptions' is set + if (getEmailScreenshotOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'getEmailScreenshotOptions' when calling EmailControllerApi->GetEmailScreenshotAsBinary"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = getEmailScreenshotOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailScreenshotAsBinary"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails/{emailId}/screenshot/binary", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailScreenshotAsBinary", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators. + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Decode HTML entities (optional) + /// Line separator character (optional) + /// Index associated with the operation. + /// EmailTextLinesResult + public EmailTextLinesResult GetEmailTextLines(Guid emailId, bool? decodeHtmlEntities = default(bool?), string lineSeparator = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailTextLinesWithHttpInfo(emailId, decodeHtmlEntities, lineSeparator); + return localVarResponse.Data; + } + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators. + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Decode HTML entities (optional) + /// Line separator character (optional) + /// Index associated with the operation. + /// ApiResponse of EmailTextLinesResult + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailTextLinesWithHttpInfo(Guid emailId, bool? decodeHtmlEntities = default(bool?), string lineSeparator = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + if (decodeHtmlEntities != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "decodeHtmlEntities", decodeHtmlEntities)); + } + if (lineSeparator != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "lineSeparator", lineSeparator)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailTextLines"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/textLines", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailTextLines", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators. + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Decode HTML entities (optional) + /// Line separator character (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailTextLinesResult + public async System.Threading.Tasks.Task GetEmailTextLinesAsync(Guid emailId, bool? decodeHtmlEntities = default(bool?), string lineSeparator = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailTextLinesWithHttpInfoAsync(emailId, decodeHtmlEntities, lineSeparator, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Parse and return text from an email, stripping HTML and decoding encoded characters Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators. + /// + /// Thrown when fails to make API call + /// ID of email to fetch text for + /// Decode HTML entities (optional) + /// Line separator character (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailTextLinesResult) + public async System.Threading.Tasks.Task> GetEmailTextLinesWithHttpInfoAsync(Guid emailId, bool? decodeHtmlEntities = default(bool?), string lineSeparator = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + if (decodeHtmlEntities != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "decodeHtmlEntities", decodeHtmlEntities)); + } + if (lineSeparator != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "lineSeparator", lineSeparator)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailTextLines"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/textLines", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailTextLines", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// PageEmailProjection + public PageEmailProjection GetEmailsOffsetPaginated(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailsOffsetPaginatedWithHttpInfo(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailsOffsetPaginatedWithHttpInfo(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailsOffsetPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/offset-paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailsOffsetPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailProjection + public async System.Threading.Tasks.Task GetEmailsOffsetPaginatedAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailsOffsetPaginatedWithHttpInfoAsync(inboxId, page, size, sort, unreadOnly, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailProjection) + public async System.Threading.Tasks.Task> GetEmailsOffsetPaginatedWithHttpInfoAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailsOffsetPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/offset-paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailsOffsetPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// PageEmailProjection + public PageEmailProjection GetEmailsPaginated(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmailsPaginatedWithHttpInfo(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetEmailsPaginatedWithHttpInfo(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailsPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailsPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailProjection + public async System.Threading.Tasks.Task GetEmailsPaginatedAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmailsPaginatedWithHttpInfoAsync(inboxId, page, size, sort, unreadOnly, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all emails in all inboxes in paginated form. Email API list all. By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailProjection) + public async System.Threading.Tasks.Task> GetEmailsPaginatedWithHttpInfoAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetEmailsPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmailsPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get gravatar url for email address + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// GravatarUrl + public GravatarUrl GetGravatarUrlForEmailAddress(string emailAddress, string size = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetGravatarUrlForEmailAddressWithHttpInfo(emailAddress, size); + return localVarResponse.Data; + } + + /// + /// Get gravatar url for email address + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of GravatarUrl + public mailslurp_netstandard_2x.Client.ApiResponse GetGravatarUrlForEmailAddressWithHttpInfo(string emailAddress, string size = default(string), int operationIndex = 0) + { + // verify the required parameter 'emailAddress' is set + if (emailAddress == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'emailAddress' when calling EmailControllerApi->GetGravatarUrlForEmailAddress"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetGravatarUrlForEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/gravatarFor", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGravatarUrlForEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get gravatar url for email address + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GravatarUrl + public async System.Threading.Tasks.Task GetGravatarUrlForEmailAddressAsync(string emailAddress, string size = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetGravatarUrlForEmailAddressWithHttpInfoAsync(emailAddress, size, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get gravatar url for email address + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GravatarUrl) + public async System.Threading.Tasks.Task> GetGravatarUrlForEmailAddressWithHttpInfoAsync(string emailAddress, string size = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'emailAddress' is set + if (emailAddress == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'emailAddress' when calling EmailControllerApi->GetGravatarUrlForEmailAddress"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetGravatarUrlForEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/gravatarFor", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGravatarUrlForEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get latest email in all inboxes. Most recently received. Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes (optional) + /// Index associated with the operation. + /// Email + public Email GetLatestEmail(List inboxIds = default(List), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetLatestEmailWithHttpInfo(inboxIds); + return localVarResponse.Data; + } + + /// + /// Get latest email in all inboxes. Most recently received. Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes (optional) + /// Index associated with the operation. + /// ApiResponse of Email + public mailslurp_netstandard_2x.Client.ApiResponse GetLatestEmailWithHttpInfo(List inboxIds = default(List), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxIds != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "inboxIds", inboxIds)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetLatestEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/latest", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLatestEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get latest email in all inboxes. Most recently received. Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + public async System.Threading.Tasks.Task GetLatestEmailAsync(List inboxIds = default(List), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetLatestEmailWithHttpInfoAsync(inboxIds, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get latest email in all inboxes. Most recently received. Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + public async System.Threading.Tasks.Task> GetLatestEmailWithHttpInfoAsync(List inboxIds = default(List), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxIds != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "inboxIds", inboxIds)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetLatestEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/latest", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLatestEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Index associated with the operation. + /// Email + public Email GetLatestEmailInInbox1(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetLatestEmailInInbox1WithHttpInfo(inboxId); + return localVarResponse.Data; + } + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Index associated with the operation. + /// ApiResponse of Email + public mailslurp_netstandard_2x.Client.ApiResponse GetLatestEmailInInbox1WithHttpInfo(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + + localVarRequestOptions.Operation = "EmailControllerApi.GetLatestEmailInInbox1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/latestIn", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLatestEmailInInbox1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + public async System.Threading.Tasks.Task GetLatestEmailInInbox1Async(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetLatestEmailInInbox1WithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. Get the newest email in all inboxes or in a passed set of inbox IDs + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + public async System.Threading.Tasks.Task> GetLatestEmailInInbox1WithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + + localVarRequestOptions.Operation = "EmailControllerApi.GetLatestEmailInInbox1"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/latestIn", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLatestEmailInInbox1", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all organization emails. List team or shared test email accounts By default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter search filter for emails. (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// PageEmailProjection + public PageEmailProjection GetOrganizationEmailsPaginated(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetOrganizationEmailsPaginatedWithHttpInfo(inboxId, page, size, sort, unreadOnly, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// Get all organization emails. List team or shared test email accounts By default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter search filter for emails. (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetOrganizationEmailsPaginatedWithHttpInfo(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetOrganizationEmailsPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/organization", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetOrganizationEmailsPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all organization emails. List team or shared test email accounts By default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter search filter for emails. (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailProjection + public async System.Threading.Tasks.Task GetOrganizationEmailsPaginatedAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetOrganizationEmailsPaginatedWithHttpInfoAsync(inboxId, page, size, sort, unreadOnly, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all organization emails. List team or shared test email accounts By default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. (optional) + /// Optional page index in email list pagination (optional, default to 0) + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional search filter search filter for emails. (optional) + /// Optional filter emails received after given date time. If unset will use time 24hours prior to now. (optional) + /// Optional filter emails received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailProjection) + public async System.Threading.Tasks.Task> GetOrganizationEmailsPaginatedWithHttpInfoAsync(List inboxId = default(List), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetOrganizationEmailsPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/organization", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetOrganizationEmailsPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get raw email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// + public void GetRawEmailContents(Guid emailId, int operationIndex = 0) + { + GetRawEmailContentsWithHttpInfo(emailId); + } + + /// + /// Get raw email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse GetRawEmailContentsWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetRawEmailContents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/raw", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetRawEmailContents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get raw email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task GetRawEmailContentsAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await GetRawEmailContentsWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get raw email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> GetRawEmailContentsWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetRawEmailContents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/raw", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetRawEmailContents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// RawEmailJson + public RawEmailJson GetRawEmailJson(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetRawEmailJsonWithHttpInfo(emailId); + return localVarResponse.Data; + } + + /// + /// Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of RawEmailJson + public mailslurp_netstandard_2x.Client.ApiResponse GetRawEmailJsonWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetRawEmailJson"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/{emailId}/raw/json", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetRawEmailJson", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of RawEmailJson + public async System.Threading.Tasks.Task GetRawEmailJsonAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetRawEmailJsonWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get raw email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (RawEmailJson) + public async System.Threading.Tasks.Task> GetRawEmailJsonWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.GetRawEmailJson"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/{emailId}/raw/json", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetRawEmailJson", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get unread email count Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// UnreadCount + public UnreadCount GetUnreadEmailCount(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetUnreadEmailCountWithHttpInfo(inboxId); + return localVarResponse.Data; + } + + /// + /// Get unread email count Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of UnreadCount + public mailslurp_netstandard_2x.Client.ApiResponse GetUnreadEmailCountWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetUnreadEmailCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/emails/unreadCount", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUnreadEmailCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get unread email count Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UnreadCount + public async System.Threading.Tasks.Task GetUnreadEmailCountAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetUnreadEmailCountWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get unread email count Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UnreadCount) + public async System.Threading.Tasks.Task> GetUnreadEmailCountWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.GetUnreadEmailCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/emails/unreadCount", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUnreadEmailCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Mark all emails as read or unread Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// What value to assign to email read property. Default true. (optional, default to true) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// + public void MarkAllAsRead(bool? read = default(bool?), Guid? inboxId = default(Guid?), int operationIndex = 0) + { + MarkAllAsReadWithHttpInfo(read, inboxId); + } + + /// + /// Mark all emails as read or unread Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// What value to assign to email read property. Default true. (optional, default to true) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse MarkAllAsReadWithHttpInfo(bool? read = default(bool?), Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (read != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "read", read)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.MarkAllAsRead"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/emails/read", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("MarkAllAsRead", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Mark all emails as read or unread Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// What value to assign to email read property. Default true. (optional, default to true) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task MarkAllAsReadAsync(bool? read = default(bool?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await MarkAllAsReadWithHttpInfoAsync(read, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Mark all emails as read or unread Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// What value to assign to email read property. Default true. (optional, default to true) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> MarkAllAsReadWithHttpInfoAsync(bool? read = default(bool?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (read != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "read", read)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.MarkAllAsRead"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PatchAsync("/emails/read", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("MarkAllAsRead", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Mark an email as read or unread Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// + /// What value to assign to email read property. Default true. (optional, default to true) + /// Index associated with the operation. + /// EmailPreview + public EmailPreview MarkAsRead(Guid emailId, bool? read = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = MarkAsReadWithHttpInfo(emailId, read); + return localVarResponse.Data; + } + + /// + /// Mark an email as read or unread Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// + /// What value to assign to email read property. Default true. (optional, default to true) + /// Index associated with the operation. + /// ApiResponse of EmailPreview + public mailslurp_netstandard_2x.Client.ApiResponse MarkAsReadWithHttpInfo(Guid emailId, bool? read = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + if (read != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "read", read)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.MarkAsRead"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/emails/{emailId}/read", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("MarkAsRead", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Mark an email as read or unread Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// + /// What value to assign to email read property. Default true. (optional, default to true) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailPreview + public async System.Threading.Tasks.Task MarkAsReadAsync(Guid emailId, bool? read = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await MarkAsReadWithHttpInfoAsync(emailId, read, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Mark an email as read or unread Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread + /// + /// Thrown when fails to make API call + /// + /// What value to assign to email read property. Default true. (optional, default to true) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailPreview) + public async System.Threading.Tasks.Task> MarkAsReadWithHttpInfoAsync(Guid emailId, bool? read = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + if (read != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "read", read)); + } + + localVarRequestOptions.Operation = "EmailControllerApi.MarkAsRead"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PatchAsync("/emails/{emailId}/read", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("MarkAsRead", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Reply to an email Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// SentEmailDto + public SentEmailDto ReplyToEmail(Guid emailId, ReplyToEmailOptions replyToEmailOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ReplyToEmailWithHttpInfo(emailId, replyToEmailOptions); + return localVarResponse.Data; + } + + /// + /// Reply to an email Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + public mailslurp_netstandard_2x.Client.ApiResponse ReplyToEmailWithHttpInfo(Guid emailId, ReplyToEmailOptions replyToEmailOptions, int operationIndex = 0) + { + // verify the required parameter 'replyToEmailOptions' is set + if (replyToEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'replyToEmailOptions' when calling EmailControllerApi->ReplyToEmail"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = replyToEmailOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.ReplyToEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/emails/{emailId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ReplyToEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Reply to an email Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + public async System.Threading.Tasks.Task ReplyToEmailAsync(Guid emailId, ReplyToEmailOptions replyToEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ReplyToEmailWithHttpInfoAsync(emailId, replyToEmailOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Reply to an email Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. + /// + /// Thrown when fails to make API call + /// ID of the email that should be replied to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + public async System.Threading.Tasks.Task> ReplyToEmailWithHttpInfoAsync(Guid emailId, ReplyToEmailOptions replyToEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'replyToEmailOptions' is set + if (replyToEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'replyToEmailOptions' when calling EmailControllerApi->ReplyToEmail"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + localVarRequestOptions.Data = replyToEmailOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.ReplyToEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/emails/{emailId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ReplyToEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all emails by search criteria. Return in paginated form. Search emails by given criteria return matches in paginated format. Searches against email recipients, sender, subject, email address and ID. Does not search email body + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// PageEmailProjection + public PageEmailProjection SearchEmails(SearchEmailsOptions searchEmailsOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = SearchEmailsWithHttpInfo(searchEmailsOptions); + return localVarResponse.Data; + } + + /// + /// Get all emails by search criteria. Return in paginated form. Search emails by given criteria return matches in paginated format. Searches against email recipients, sender, subject, email address and ID. Does not search email body + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of PageEmailProjection + public mailslurp_netstandard_2x.Client.ApiResponse SearchEmailsWithHttpInfo(SearchEmailsOptions searchEmailsOptions, int operationIndex = 0) + { + // verify the required parameter 'searchEmailsOptions' is set + if (searchEmailsOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'searchEmailsOptions' when calling EmailControllerApi->SearchEmails"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = searchEmailsOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.SearchEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails/search", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all emails by search criteria. Return in paginated form. Search emails by given criteria return matches in paginated format. Searches against email recipients, sender, subject, email address and ID. Does not search email body + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailProjection + public async System.Threading.Tasks.Task SearchEmailsAsync(SearchEmailsOptions searchEmailsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await SearchEmailsWithHttpInfoAsync(searchEmailsOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all emails by search criteria. Return in paginated form. Search emails by given criteria return matches in paginated format. Searches against email recipients, sender, subject, email address and ID. Does not search email body + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailProjection) + public async System.Threading.Tasks.Task> SearchEmailsWithHttpInfoAsync(SearchEmailsOptions searchEmailsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'searchEmailsOptions' is set + if (searchEmailsOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'searchEmailsOptions' when calling EmailControllerApi->SearchEmails"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = searchEmailsOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.SearchEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send email Alias for `InboxController.sendEmail` method - see original method for full details. Sends an email from a given inbox that you have created. If no inbox is supplied a random inbox will be created for you and used to send the email. + /// + /// Thrown when fails to make API call + /// + /// ID of the inbox you want to send the email from (optional) + /// Use domain pool. Optionally create inbox to send from using the mailslurp domain pool. (optional) + /// Optionally create inbox to send from that is a virtual inbox and won't send to external addresses (optional) + /// Index associated with the operation. + /// + public void SendEmailSourceOptional(SendEmailOptions sendEmailOptions, Guid? inboxId = default(Guid?), bool? useDomainPool = default(bool?), bool? virtualSend = default(bool?), int operationIndex = 0) + { + SendEmailSourceOptionalWithHttpInfo(sendEmailOptions, inboxId, useDomainPool, virtualSend); + } + + /// + /// Send email Alias for `InboxController.sendEmail` method - see original method for full details. Sends an email from a given inbox that you have created. If no inbox is supplied a random inbox will be created for you and used to send the email. + /// + /// Thrown when fails to make API call + /// + /// ID of the inbox you want to send the email from (optional) + /// Use domain pool. Optionally create inbox to send from using the mailslurp domain pool. (optional) + /// Optionally create inbox to send from that is a virtual inbox and won't send to external addresses (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse SendEmailSourceOptionalWithHttpInfo(SendEmailOptions sendEmailOptions, Guid? inboxId = default(Guid?), bool? useDomainPool = default(bool?), bool? virtualSend = default(bool?), int operationIndex = 0) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling EmailControllerApi->SendEmailSourceOptional"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (useDomainPool != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useDomainPool", useDomainPool)); + } + if (virtualSend != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "virtualSend", virtualSend)); + } + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.SendEmailSourceOptional"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmailSourceOptional", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send email Alias for `InboxController.sendEmail` method - see original method for full details. Sends an email from a given inbox that you have created. If no inbox is supplied a random inbox will be created for you and used to send the email. + /// + /// Thrown when fails to make API call + /// + /// ID of the inbox you want to send the email from (optional) + /// Use domain pool. Optionally create inbox to send from using the mailslurp domain pool. (optional) + /// Optionally create inbox to send from that is a virtual inbox and won't send to external addresses (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task SendEmailSourceOptionalAsync(SendEmailOptions sendEmailOptions, Guid? inboxId = default(Guid?), bool? useDomainPool = default(bool?), bool? virtualSend = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await SendEmailSourceOptionalWithHttpInfoAsync(sendEmailOptions, inboxId, useDomainPool, virtualSend, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Send email Alias for `InboxController.sendEmail` method - see original method for full details. Sends an email from a given inbox that you have created. If no inbox is supplied a random inbox will be created for you and used to send the email. + /// + /// Thrown when fails to make API call + /// + /// ID of the inbox you want to send the email from (optional) + /// Use domain pool. Optionally create inbox to send from using the mailslurp domain pool. (optional) + /// Optionally create inbox to send from that is a virtual inbox and won't send to external addresses (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SendEmailSourceOptionalWithHttpInfoAsync(SendEmailOptions sendEmailOptions, Guid? inboxId = default(Guid?), bool? useDomainPool = default(bool?), bool? virtualSend = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling EmailControllerApi->SendEmailSourceOptional"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (useDomainPool != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useDomainPool", useDomainPool)); + } + if (virtualSend != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "virtualSend", virtualSend)); + } + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "EmailControllerApi.SendEmailSourceOptional"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmailSourceOptional", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Validate email HTML contents Validate the HTML content of email if HTML is found. Considered valid if no HTML is present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ValidationDto + public ValidationDto ValidateEmail(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ValidateEmailWithHttpInfo(emailId); + return localVarResponse.Data; + } + + /// + /// Validate email HTML contents Validate the HTML content of email if HTML is found. Considered valid if no HTML is present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of ValidationDto + public mailslurp_netstandard_2x.Client.ApiResponse ValidateEmailWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.ValidateEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/emails/{emailId}/validate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ValidateEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Validate email HTML contents Validate the HTML content of email if HTML is found. Considered valid if no HTML is present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ValidationDto + public async System.Threading.Tasks.Task ValidateEmailAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ValidateEmailWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Validate email HTML contents Validate the HTML content of email if HTML is found. Considered valid if no HTML is present. + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ValidationDto) + public async System.Threading.Tasks.Task> ValidateEmailWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "EmailControllerApi.ValidateEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/emails/{emailId}/validate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ValidateEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/EmailVerificationControllerApi.cs b/src/mailslurp_netstandard_2x/Api/EmailVerificationControllerApi.cs new file mode 100644 index 00000000..7236da6d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/EmailVerificationControllerApi.cs @@ -0,0 +1,1006 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IEmailVerificationControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Delete all validation requests + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + void DeleteAllValidationRequests(int operationIndex = 0); + + /// + /// Delete all validation requests + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAllValidationRequestsWithHttpInfo(int operationIndex = 0); + /// + /// Delete a validation record + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteValidationRequest(Guid id, int operationIndex = 0); + + /// + /// Delete a validation record + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteValidationRequestWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter where email is valid is true or false (optional) + /// Index associated with the operation. + /// PageEmailValidationRequest + PageEmailValidationRequest GetValidationRequests(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? isValid = default(bool?), int operationIndex = 0); + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter where email is valid is true or false (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailValidationRequest + ApiResponse GetValidationRequestsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? isValid = default(bool?), int operationIndex = 0); + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ValidateEmailAddressListResult + ValidateEmailAddressListResult ValidateEmailAddressList(ValidateEmailAddressListOptions validateEmailAddressListOptions, int operationIndex = 0); + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ValidateEmailAddressListResult + ApiResponse ValidateEmailAddressListWithHttpInfo(ValidateEmailAddressListOptions validateEmailAddressListOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IEmailVerificationControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Delete all validation requests + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAllValidationRequestsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete all validation requests + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAllValidationRequestsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete a validation record + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteValidationRequestAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete a validation record + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteValidationRequestWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter where email is valid is true or false (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailValidationRequest + System.Threading.Tasks.Task GetValidationRequestsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? isValid = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter where email is valid is true or false (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailValidationRequest) + System.Threading.Tasks.Task> GetValidationRequestsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? isValid = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ValidateEmailAddressListResult + System.Threading.Tasks.Task ValidateEmailAddressListAsync(ValidateEmailAddressListOptions validateEmailAddressListOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ValidateEmailAddressListResult) + System.Threading.Tasks.Task> ValidateEmailAddressListWithHttpInfoAsync(ValidateEmailAddressListOptions validateEmailAddressListOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IEmailVerificationControllerApi : IEmailVerificationControllerApiSync, IEmailVerificationControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class EmailVerificationControllerApi : IEmailVerificationControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public EmailVerificationControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public EmailVerificationControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public EmailVerificationControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public EmailVerificationControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Delete all validation requests + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + public void DeleteAllValidationRequests(int operationIndex = 0) + { + DeleteAllValidationRequestsWithHttpInfo(); + } + + /// + /// Delete all validation requests + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAllValidationRequestsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "EmailVerificationControllerApi.DeleteAllValidationRequests"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/email-verification", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllValidationRequests", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all validation requests + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAllValidationRequestsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAllValidationRequestsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete all validation requests + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAllValidationRequestsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "EmailVerificationControllerApi.DeleteAllValidationRequests"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/email-verification", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllValidationRequests", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a validation record + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteValidationRequest(Guid id, int operationIndex = 0) + { + DeleteValidationRequestWithHttpInfo(id); + } + + /// + /// Delete a validation record + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteValidationRequestWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "EmailVerificationControllerApi.DeleteValidationRequest"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/email-verification/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteValidationRequest", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a validation record + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteValidationRequestAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteValidationRequestWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a validation record + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteValidationRequestWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "EmailVerificationControllerApi.DeleteValidationRequest"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/email-verification/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteValidationRequest", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter where email is valid is true or false (optional) + /// Index associated with the operation. + /// PageEmailValidationRequest + public PageEmailValidationRequest GetValidationRequests(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? isValid = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetValidationRequestsWithHttpInfo(page, size, sort, searchFilter, since, before, isValid); + return localVarResponse.Data; + } + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter where email is valid is true or false (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailValidationRequest + public mailslurp_netstandard_2x.Client.ApiResponse GetValidationRequestsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? isValid = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (isValid != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "isValid", isValid)); + } + + localVarRequestOptions.Operation = "EmailVerificationControllerApi.GetValidationRequests"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/email-verification/validation-requests", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetValidationRequests", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter where email is valid is true or false (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailValidationRequest + public async System.Threading.Tasks.Task GetValidationRequestsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? isValid = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetValidationRequestsWithHttpInfoAsync(page, size, sort, searchFilter, since, before, isValid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter where email is valid is true or false (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailValidationRequest) + public async System.Threading.Tasks.Task> GetValidationRequestsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? isValid = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (isValid != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "isValid", isValid)); + } + + localVarRequestOptions.Operation = "EmailVerificationControllerApi.GetValidationRequests"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/email-verification/validation-requests", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetValidationRequests", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ValidateEmailAddressListResult + public ValidateEmailAddressListResult ValidateEmailAddressList(ValidateEmailAddressListOptions validateEmailAddressListOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ValidateEmailAddressListWithHttpInfo(validateEmailAddressListOptions); + return localVarResponse.Data; + } + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ValidateEmailAddressListResult + public mailslurp_netstandard_2x.Client.ApiResponse ValidateEmailAddressListWithHttpInfo(ValidateEmailAddressListOptions validateEmailAddressListOptions, int operationIndex = 0) + { + // verify the required parameter 'validateEmailAddressListOptions' is set + if (validateEmailAddressListOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'validateEmailAddressListOptions' when calling EmailVerificationControllerApi->ValidateEmailAddressList"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = validateEmailAddressListOptions; + + localVarRequestOptions.Operation = "EmailVerificationControllerApi.ValidateEmailAddressList"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/email-verification/email-address-list", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ValidateEmailAddressList", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ValidateEmailAddressListResult + public async System.Threading.Tasks.Task ValidateEmailAddressListAsync(ValidateEmailAddressListOptions validateEmailAddressListOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ValidateEmailAddressListWithHttpInfoAsync(validateEmailAddressListOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Validate a list of email addresses. Per unit billing. See your plan for pricing. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ValidateEmailAddressListResult) + public async System.Threading.Tasks.Task> ValidateEmailAddressListWithHttpInfoAsync(ValidateEmailAddressListOptions validateEmailAddressListOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'validateEmailAddressListOptions' is set + if (validateEmailAddressListOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'validateEmailAddressListOptions' when calling EmailVerificationControllerApi->ValidateEmailAddressList"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = validateEmailAddressListOptions; + + localVarRequestOptions.Operation = "EmailVerificationControllerApi.ValidateEmailAddressList"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/email-verification/email-address-list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ValidateEmailAddressList", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/ExpiredControllerApi.cs b/src/mailslurp_netstandard_2x/Api/ExpiredControllerApi.cs new file mode 100644 index 00000000..967aa54d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/ExpiredControllerApi.cs @@ -0,0 +1,980 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IExpiredControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get default expiration settings + /// + /// + /// Return default times used for inbox expiration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ExpirationDefaults + ExpirationDefaults GetExpirationDefaults(int operationIndex = 0); + + /// + /// Get default expiration settings + /// + /// + /// Return default times used for inbox expiration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of ExpirationDefaults + ApiResponse GetExpirationDefaultsWithHttpInfo(int operationIndex = 0); + /// + /// Get expired inbox record for a previously existing inbox + /// + /// + /// Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId + /// + /// Thrown when fails to make API call + /// ID of inbox you want to retrieve (not the inbox ID) + /// Index associated with the operation. + /// ExpiredInboxDto + ExpiredInboxDto GetExpiredInboxByInboxId(Guid inboxId, int operationIndex = 0); + + /// + /// Get expired inbox record for a previously existing inbox + /// + /// + /// Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId + /// + /// Thrown when fails to make API call + /// ID of inbox you want to retrieve (not the inbox ID) + /// Index associated with the operation. + /// ApiResponse of ExpiredInboxDto + ApiResponse GetExpiredInboxByInboxIdWithHttpInfo(Guid inboxId, int operationIndex = 0); + /// + /// Get an expired inbox record + /// + /// + /// Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId + /// Index associated with the operation. + /// ExpiredInboxDto + ExpiredInboxDto GetExpiredInboxRecord(Guid expiredId, int operationIndex = 0); + + /// + /// Get an expired inbox record + /// + /// + /// Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId + /// Index associated with the operation. + /// ApiResponse of ExpiredInboxDto + ApiResponse GetExpiredInboxRecordWithHttpInfo(Guid expiredId, int operationIndex = 0); + /// + /// List records of expired inboxes + /// + /// + /// Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageExpiredInboxRecordProjection + PageExpiredInboxRecordProjection GetExpiredInboxes(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// List records of expired inboxes + /// + /// + /// Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageExpiredInboxRecordProjection + ApiResponse GetExpiredInboxesWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IExpiredControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get default expiration settings + /// + /// + /// Return default times used for inbox expiration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ExpirationDefaults + System.Threading.Tasks.Task GetExpirationDefaultsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get default expiration settings + /// + /// + /// Return default times used for inbox expiration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ExpirationDefaults) + System.Threading.Tasks.Task> GetExpirationDefaultsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get expired inbox record for a previously existing inbox + /// + /// + /// Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId + /// + /// Thrown when fails to make API call + /// ID of inbox you want to retrieve (not the inbox ID) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ExpiredInboxDto + System.Threading.Tasks.Task GetExpiredInboxByInboxIdAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get expired inbox record for a previously existing inbox + /// + /// + /// Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId + /// + /// Thrown when fails to make API call + /// ID of inbox you want to retrieve (not the inbox ID) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ExpiredInboxDto) + System.Threading.Tasks.Task> GetExpiredInboxByInboxIdWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an expired inbox record + /// + /// + /// Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ExpiredInboxDto + System.Threading.Tasks.Task GetExpiredInboxRecordAsync(Guid expiredId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an expired inbox record + /// + /// + /// Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ExpiredInboxDto) + System.Threading.Tasks.Task> GetExpiredInboxRecordWithHttpInfoAsync(Guid expiredId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List records of expired inboxes + /// + /// + /// Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageExpiredInboxRecordProjection + System.Threading.Tasks.Task GetExpiredInboxesAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List records of expired inboxes + /// + /// + /// Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageExpiredInboxRecordProjection) + System.Threading.Tasks.Task> GetExpiredInboxesWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IExpiredControllerApi : IExpiredControllerApiSync, IExpiredControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ExpiredControllerApi : IExpiredControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ExpiredControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public ExpiredControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ExpiredControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public ExpiredControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get default expiration settings Return default times used for inbox expiration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ExpirationDefaults + public ExpirationDefaults GetExpirationDefaults(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetExpirationDefaultsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get default expiration settings Return default times used for inbox expiration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of ExpirationDefaults + public mailslurp_netstandard_2x.Client.ApiResponse GetExpirationDefaultsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ExpiredControllerApi.GetExpirationDefaults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/expired/defaults", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetExpirationDefaults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get default expiration settings Return default times used for inbox expiration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ExpirationDefaults + public async System.Threading.Tasks.Task GetExpirationDefaultsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetExpirationDefaultsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get default expiration settings Return default times used for inbox expiration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ExpirationDefaults) + public async System.Threading.Tasks.Task> GetExpirationDefaultsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ExpiredControllerApi.GetExpirationDefaults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/expired/defaults", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetExpirationDefaults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get expired inbox record for a previously existing inbox Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId + /// + /// Thrown when fails to make API call + /// ID of inbox you want to retrieve (not the inbox ID) + /// Index associated with the operation. + /// ExpiredInboxDto + public ExpiredInboxDto GetExpiredInboxByInboxId(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetExpiredInboxByInboxIdWithHttpInfo(inboxId); + return localVarResponse.Data; + } + + /// + /// Get expired inbox record for a previously existing inbox Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId + /// + /// Thrown when fails to make API call + /// ID of inbox you want to retrieve (not the inbox ID) + /// Index associated with the operation. + /// ApiResponse of ExpiredInboxDto + public mailslurp_netstandard_2x.Client.ApiResponse GetExpiredInboxByInboxIdWithHttpInfo(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "ExpiredControllerApi.GetExpiredInboxByInboxId"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/expired/inbox/{inboxId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetExpiredInboxByInboxId", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get expired inbox record for a previously existing inbox Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId + /// + /// Thrown when fails to make API call + /// ID of inbox you want to retrieve (not the inbox ID) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ExpiredInboxDto + public async System.Threading.Tasks.Task GetExpiredInboxByInboxIdAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetExpiredInboxByInboxIdWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get expired inbox record for a previously existing inbox Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId + /// + /// Thrown when fails to make API call + /// ID of inbox you want to retrieve (not the inbox ID) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ExpiredInboxDto) + public async System.Threading.Tasks.Task> GetExpiredInboxByInboxIdWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "ExpiredControllerApi.GetExpiredInboxByInboxId"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/expired/inbox/{inboxId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetExpiredInboxByInboxId", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an expired inbox record Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId + /// Index associated with the operation. + /// ExpiredInboxDto + public ExpiredInboxDto GetExpiredInboxRecord(Guid expiredId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetExpiredInboxRecordWithHttpInfo(expiredId); + return localVarResponse.Data; + } + + /// + /// Get an expired inbox record Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId + /// Index associated with the operation. + /// ApiResponse of ExpiredInboxDto + public mailslurp_netstandard_2x.Client.ApiResponse GetExpiredInboxRecordWithHttpInfo(Guid expiredId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("expiredId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(expiredId)); // path parameter + + localVarRequestOptions.Operation = "ExpiredControllerApi.GetExpiredInboxRecord"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/expired/{expiredId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetExpiredInboxRecord", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an expired inbox record Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ExpiredInboxDto + public async System.Threading.Tasks.Task GetExpiredInboxRecordAsync(Guid expiredId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetExpiredInboxRecordWithHttpInfoAsync(expiredId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an expired inbox record Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ExpiredInboxDto) + public async System.Threading.Tasks.Task> GetExpiredInboxRecordWithHttpInfoAsync(Guid expiredId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("expiredId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(expiredId)); // path parameter + + localVarRequestOptions.Operation = "ExpiredControllerApi.GetExpiredInboxRecord"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/expired/{expiredId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetExpiredInboxRecord", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List records of expired inboxes Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageExpiredInboxRecordProjection + public PageExpiredInboxRecordProjection GetExpiredInboxes(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetExpiredInboxesWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// List records of expired inboxes Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageExpiredInboxRecordProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetExpiredInboxesWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "ExpiredControllerApi.GetExpiredInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/expired", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetExpiredInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List records of expired inboxes Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageExpiredInboxRecordProjection + public async System.Threading.Tasks.Task GetExpiredInboxesAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetExpiredInboxesWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List records of expired inboxes Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageExpiredInboxRecordProjection) + public async System.Threading.Tasks.Task> GetExpiredInboxesWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "ExpiredControllerApi.GetExpiredInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/expired", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetExpiredInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/ExportControllerApi.cs b/src/mailslurp_netstandard_2x/Api/ExportControllerApi.cs new file mode 100644 index 00000000..6611680d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/ExportControllerApi.cs @@ -0,0 +1,722 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IExportControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Export inboxes link callable via browser + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// byte[] + byte[] ExportEntities(string exportType, string apiKey, string outputFormat, string filter = default(string), string listSeparatorToken = default(string), bool? excludePreviouslyExported = default(bool?), DateTime? createdEarliestTime = default(DateTime?), DateTime? createdOldestTime = default(DateTime?), int operationIndex = 0); + + /// + /// Export inboxes link callable via browser + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of byte[] + ApiResponse ExportEntitiesWithHttpInfo(string exportType, string apiKey, string outputFormat, string filter = default(string), string listSeparatorToken = default(string), bool? excludePreviouslyExported = default(bool?), DateTime? createdEarliestTime = default(DateTime?), DateTime? createdOldestTime = default(DateTime?), int operationIndex = 0); + /// + /// Get export link + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// ExportLink + ExportLink GetExportLink(string exportType, ExportOptions exportOptions, string apiKey = default(string), int operationIndex = 0); + + /// + /// Get export link + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of ExportLink + ApiResponse GetExportLinkWithHttpInfo(string exportType, ExportOptions exportOptions, string apiKey = default(string), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IExportControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Export inboxes link callable via browser + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of byte[] + System.Threading.Tasks.Task ExportEntitiesAsync(string exportType, string apiKey, string outputFormat, string filter = default(string), string listSeparatorToken = default(string), bool? excludePreviouslyExported = default(bool?), DateTime? createdEarliestTime = default(DateTime?), DateTime? createdOldestTime = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Export inboxes link callable via browser + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (byte[]) + System.Threading.Tasks.Task> ExportEntitiesWithHttpInfoAsync(string exportType, string apiKey, string outputFormat, string filter = default(string), string listSeparatorToken = default(string), bool? excludePreviouslyExported = default(bool?), DateTime? createdEarliestTime = default(DateTime?), DateTime? createdOldestTime = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get export link + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ExportLink + System.Threading.Tasks.Task GetExportLinkAsync(string exportType, ExportOptions exportOptions, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get export link + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ExportLink) + System.Threading.Tasks.Task> GetExportLinkWithHttpInfoAsync(string exportType, ExportOptions exportOptions, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IExportControllerApi : IExportControllerApiSync, IExportControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ExportControllerApi : IExportControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ExportControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public ExportControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ExportControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public ExportControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Export inboxes link callable via browser + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// byte[] + public byte[] ExportEntities(string exportType, string apiKey, string outputFormat, string filter = default(string), string listSeparatorToken = default(string), bool? excludePreviouslyExported = default(bool?), DateTime? createdEarliestTime = default(DateTime?), DateTime? createdOldestTime = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ExportEntitiesWithHttpInfo(exportType, apiKey, outputFormat, filter, listSeparatorToken, excludePreviouslyExported, createdEarliestTime, createdOldestTime); + return localVarResponse.Data; + } + + /// + /// Export inboxes link callable via browser + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of byte[] + public mailslurp_netstandard_2x.Client.ApiResponse ExportEntitiesWithHttpInfo(string exportType, string apiKey, string outputFormat, string filter = default(string), string listSeparatorToken = default(string), bool? excludePreviouslyExported = default(bool?), DateTime? createdEarliestTime = default(DateTime?), DateTime? createdOldestTime = default(DateTime?), int operationIndex = 0) + { + // verify the required parameter 'exportType' is set + if (exportType == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'exportType' when calling ExportControllerApi->ExportEntities"); + } + + // verify the required parameter 'apiKey' is set + if (apiKey == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'apiKey' when calling ExportControllerApi->ExportEntities"); + } + + // verify the required parameter 'outputFormat' is set + if (outputFormat == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'outputFormat' when calling ExportControllerApi->ExportEntities"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "exportType", exportType)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "apiKey", apiKey)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "outputFormat", outputFormat)); + if (filter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "filter", filter)); + } + if (listSeparatorToken != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "listSeparatorToken", listSeparatorToken)); + } + if (excludePreviouslyExported != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "excludePreviouslyExported", excludePreviouslyExported)); + } + if (createdEarliestTime != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "createdEarliestTime", createdEarliestTime)); + } + if (createdOldestTime != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "createdOldestTime", createdOldestTime)); + } + + localVarRequestOptions.Operation = "ExportControllerApi.ExportEntities"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/export", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ExportEntities", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Export inboxes link callable via browser + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of byte[] + public async System.Threading.Tasks.Task ExportEntitiesAsync(string exportType, string apiKey, string outputFormat, string filter = default(string), string listSeparatorToken = default(string), bool? excludePreviouslyExported = default(bool?), DateTime? createdEarliestTime = default(DateTime?), DateTime? createdOldestTime = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ExportEntitiesWithHttpInfoAsync(exportType, apiKey, outputFormat, filter, listSeparatorToken, excludePreviouslyExported, createdEarliestTime, createdOldestTime, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Export inboxes link callable via browser + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (byte[]) + public async System.Threading.Tasks.Task> ExportEntitiesWithHttpInfoAsync(string exportType, string apiKey, string outputFormat, string filter = default(string), string listSeparatorToken = default(string), bool? excludePreviouslyExported = default(bool?), DateTime? createdEarliestTime = default(DateTime?), DateTime? createdOldestTime = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'exportType' is set + if (exportType == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'exportType' when calling ExportControllerApi->ExportEntities"); + } + + // verify the required parameter 'apiKey' is set + if (apiKey == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'apiKey' when calling ExportControllerApi->ExportEntities"); + } + + // verify the required parameter 'outputFormat' is set + if (outputFormat == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'outputFormat' when calling ExportControllerApi->ExportEntities"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "exportType", exportType)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "apiKey", apiKey)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "outputFormat", outputFormat)); + if (filter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "filter", filter)); + } + if (listSeparatorToken != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "listSeparatorToken", listSeparatorToken)); + } + if (excludePreviouslyExported != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "excludePreviouslyExported", excludePreviouslyExported)); + } + if (createdEarliestTime != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "createdEarliestTime", createdEarliestTime)); + } + if (createdOldestTime != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "createdOldestTime", createdOldestTime)); + } + + localVarRequestOptions.Operation = "ExportControllerApi.ExportEntities"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/export", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ExportEntities", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get export link + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// ExportLink + public ExportLink GetExportLink(string exportType, ExportOptions exportOptions, string apiKey = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetExportLinkWithHttpInfo(exportType, exportOptions, apiKey); + return localVarResponse.Data; + } + + /// + /// Get export link + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of ExportLink + public mailslurp_netstandard_2x.Client.ApiResponse GetExportLinkWithHttpInfo(string exportType, ExportOptions exportOptions, string apiKey = default(string), int operationIndex = 0) + { + // verify the required parameter 'exportType' is set + if (exportType == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'exportType' when calling ExportControllerApi->GetExportLink"); + } + + // verify the required parameter 'exportOptions' is set + if (exportOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'exportOptions' when calling ExportControllerApi->GetExportLink"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "exportType", exportType)); + if (apiKey != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "apiKey", apiKey)); + } + localVarRequestOptions.Data = exportOptions; + + localVarRequestOptions.Operation = "ExportControllerApi.GetExportLink"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/export", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetExportLink", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get export link + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ExportLink + public async System.Threading.Tasks.Task GetExportLinkAsync(string exportType, ExportOptions exportOptions, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetExportLinkWithHttpInfoAsync(exportType, exportOptions, apiKey, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get export link + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ExportLink) + public async System.Threading.Tasks.Task> GetExportLinkWithHttpInfoAsync(string exportType, ExportOptions exportOptions, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'exportType' is set + if (exportType == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'exportType' when calling ExportControllerApi->GetExportLink"); + } + + // verify the required parameter 'exportOptions' is set + if (exportOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'exportOptions' when calling ExportControllerApi->GetExportLink"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "exportType", exportType)); + if (apiKey != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "apiKey", apiKey)); + } + localVarRequestOptions.Data = exportOptions; + + localVarRequestOptions.Operation = "ExportControllerApi.GetExportLink"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/export", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetExportLink", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/FormControllerApi.cs b/src/mailslurp_netstandard_2x/Api/FormControllerApi.cs new file mode 100644 index 00000000..5615ccdb --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/FormControllerApi.cs @@ -0,0 +1,451 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IFormControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Submit a form to be parsed and sent as an email to an address determined by the form fields + /// + /// + /// This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://csharp.api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://csharp.api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`. + /// + /// Thrown when fails to make API call + /// The email address that submitted form should be sent to. (optional) + /// Optional subject of the email that will be sent. (optional) + /// Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional) + /// Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional) + /// Optional success message to display if no _redirectTo present. (optional) + /// Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional) + /// All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional) + /// Index associated with the operation. + /// string + string SubmitForm(string to = default(string), string subject = default(string), string redirectTo = default(string), string emailAddress = default(string), string successMessage = default(string), string spamCheck = default(string), string otherParameters = default(string), int operationIndex = 0); + + /// + /// Submit a form to be parsed and sent as an email to an address determined by the form fields + /// + /// + /// This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://csharp.api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://csharp.api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`. + /// + /// Thrown when fails to make API call + /// The email address that submitted form should be sent to. (optional) + /// Optional subject of the email that will be sent. (optional) + /// Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional) + /// Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional) + /// Optional success message to display if no _redirectTo present. (optional) + /// Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional) + /// All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional) + /// Index associated with the operation. + /// ApiResponse of string + ApiResponse SubmitFormWithHttpInfo(string to = default(string), string subject = default(string), string redirectTo = default(string), string emailAddress = default(string), string successMessage = default(string), string spamCheck = default(string), string otherParameters = default(string), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IFormControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Submit a form to be parsed and sent as an email to an address determined by the form fields + /// + /// + /// This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://csharp.api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://csharp.api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`. + /// + /// Thrown when fails to make API call + /// The email address that submitted form should be sent to. (optional) + /// Optional subject of the email that will be sent. (optional) + /// Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional) + /// Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional) + /// Optional success message to display if no _redirectTo present. (optional) + /// Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional) + /// All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + System.Threading.Tasks.Task SubmitFormAsync(string to = default(string), string subject = default(string), string redirectTo = default(string), string emailAddress = default(string), string successMessage = default(string), string spamCheck = default(string), string otherParameters = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Submit a form to be parsed and sent as an email to an address determined by the form fields + /// + /// + /// This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://csharp.api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://csharp.api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`. + /// + /// Thrown when fails to make API call + /// The email address that submitted form should be sent to. (optional) + /// Optional subject of the email that will be sent. (optional) + /// Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional) + /// Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional) + /// Optional success message to display if no _redirectTo present. (optional) + /// Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional) + /// All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> SubmitFormWithHttpInfoAsync(string to = default(string), string subject = default(string), string redirectTo = default(string), string emailAddress = default(string), string successMessage = default(string), string spamCheck = default(string), string otherParameters = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IFormControllerApi : IFormControllerApiSync, IFormControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class FormControllerApi : IFormControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public FormControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public FormControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public FormControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public FormControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Submit a form to be parsed and sent as an email to an address determined by the form fields This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://csharp.api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://csharp.api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`. + /// + /// Thrown when fails to make API call + /// The email address that submitted form should be sent to. (optional) + /// Optional subject of the email that will be sent. (optional) + /// Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional) + /// Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional) + /// Optional success message to display if no _redirectTo present. (optional) + /// Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional) + /// All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional) + /// Index associated with the operation. + /// string + public string SubmitForm(string to = default(string), string subject = default(string), string redirectTo = default(string), string emailAddress = default(string), string successMessage = default(string), string spamCheck = default(string), string otherParameters = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = SubmitFormWithHttpInfo(to, subject, redirectTo, emailAddress, successMessage, spamCheck, otherParameters); + return localVarResponse.Data; + } + + /// + /// Submit a form to be parsed and sent as an email to an address determined by the form fields This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://csharp.api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://csharp.api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`. + /// + /// Thrown when fails to make API call + /// The email address that submitted form should be sent to. (optional) + /// Optional subject of the email that will be sent. (optional) + /// Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional) + /// Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional) + /// Optional success message to display if no _redirectTo present. (optional) + /// Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional) + /// All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional) + /// Index associated with the operation. + /// ApiResponse of string + public mailslurp_netstandard_2x.Client.ApiResponse SubmitFormWithHttpInfo(string to = default(string), string subject = default(string), string redirectTo = default(string), string emailAddress = default(string), string successMessage = default(string), string spamCheck = default(string), string otherParameters = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (to != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_to", to)); + } + if (subject != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_subject", subject)); + } + if (redirectTo != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_redirectTo", redirectTo)); + } + if (emailAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_emailAddress", emailAddress)); + } + if (successMessage != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_successMessage", successMessage)); + } + if (spamCheck != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_spamCheck", spamCheck)); + } + if (otherParameters != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "otherParameters", otherParameters)); + } + + localVarRequestOptions.Operation = "FormControllerApi.SubmitForm"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/forms", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SubmitForm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Submit a form to be parsed and sent as an email to an address determined by the form fields This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://csharp.api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://csharp.api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`. + /// + /// Thrown when fails to make API call + /// The email address that submitted form should be sent to. (optional) + /// Optional subject of the email that will be sent. (optional) + /// Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional) + /// Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional) + /// Optional success message to display if no _redirectTo present. (optional) + /// Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional) + /// All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + public async System.Threading.Tasks.Task SubmitFormAsync(string to = default(string), string subject = default(string), string redirectTo = default(string), string emailAddress = default(string), string successMessage = default(string), string spamCheck = default(string), string otherParameters = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await SubmitFormWithHttpInfoAsync(to, subject, redirectTo, emailAddress, successMessage, spamCheck, otherParameters, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Submit a form to be parsed and sent as an email to an address determined by the form fields This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://csharp.api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://csharp.api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`. + /// + /// Thrown when fails to make API call + /// The email address that submitted form should be sent to. (optional) + /// Optional subject of the email that will be sent. (optional) + /// Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional) + /// Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional) + /// Optional success message to display if no _redirectTo present. (optional) + /// Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional) + /// All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> SubmitFormWithHttpInfoAsync(string to = default(string), string subject = default(string), string redirectTo = default(string), string emailAddress = default(string), string successMessage = default(string), string spamCheck = default(string), string otherParameters = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (to != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_to", to)); + } + if (subject != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_subject", subject)); + } + if (redirectTo != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_redirectTo", redirectTo)); + } + if (emailAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_emailAddress", emailAddress)); + } + if (successMessage != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_successMessage", successMessage)); + } + if (spamCheck != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "_spamCheck", spamCheck)); + } + if (otherParameters != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "otherParameters", otherParameters)); + } + + localVarRequestOptions.Operation = "FormControllerApi.SubmitForm"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/forms", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SubmitForm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/GroupControllerApi.cs b/src/mailslurp_netstandard_2x/Api/GroupControllerApi.cs new file mode 100644 index 00000000..dc8c425b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/GroupControllerApi.cs @@ -0,0 +1,2044 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IGroupControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Add contacts to a group + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// GroupContactsDto + GroupContactsDto AddContactsToGroup(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0); + + /// + /// Add contacts to a group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of GroupContactsDto + ApiResponse AddContactsToGroupWithHttpInfo(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0); + /// + /// Create a group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GroupDto + GroupDto CreateGroup(CreateGroupOptions createGroupOptions, int operationIndex = 0); + + /// + /// Create a group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GroupDto + ApiResponse CreateGroupWithHttpInfo(CreateGroupOptions createGroupOptions, int operationIndex = 0); + /// + /// Delete group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteGroup(Guid groupId, int operationIndex = 0); + + /// + /// Delete group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteGroupWithHttpInfo(Guid groupId, int operationIndex = 0); + /// + /// Get all Contact Groups in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageGroupProjection + PageGroupProjection GetAllGroups(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get all Contact Groups in paginated format + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageGroupProjection + ApiResponse GetAllGroupsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GroupDto + GroupDto GetGroup(Guid groupId, int operationIndex = 0); + + /// + /// Get group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GroupDto + ApiResponse GetGroupWithHttpInfo(Guid groupId, int operationIndex = 0); + /// + /// Get group and contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GroupContactsDto + GroupContactsDto GetGroupWithContacts(Guid groupId, int operationIndex = 0); + + /// + /// Get group and contacts belonging to it + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GroupContactsDto + ApiResponse GetGroupWithContactsWithHttpInfo(Guid groupId, int operationIndex = 0); + /// + /// + /// + /// + /// Get group and paginated contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Optional page index in group contact pagination (optional, default to 0) + /// Optional page size in group contact pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageContactProjection + PageContactProjection GetGroupWithContactsPaginated(Guid groupId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// + /// + /// + /// Get group and paginated contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Optional page index in group contact pagination (optional, default to 0) + /// Optional page size in group contact pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageContactProjection + ApiResponse GetGroupWithContactsPaginatedWithHttpInfo(Guid groupId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get all groups + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<GroupProjection> + List GetGroups(int operationIndex = 0); + + /// + /// Get all groups + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<GroupProjection> + ApiResponse> GetGroupsWithHttpInfo(int operationIndex = 0); + /// + /// Remove contacts from a group + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// GroupContactsDto + GroupContactsDto RemoveContactsFromGroup(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0); + + /// + /// Remove contacts from a group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of GroupContactsDto + ApiResponse RemoveContactsFromGroupWithHttpInfo(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IGroupControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Add contacts to a group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GroupContactsDto + System.Threading.Tasks.Task AddContactsToGroupAsync(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Add contacts to a group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GroupContactsDto) + System.Threading.Tasks.Task> AddContactsToGroupWithHttpInfoAsync(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create a group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GroupDto + System.Threading.Tasks.Task CreateGroupAsync(CreateGroupOptions createGroupOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create a group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GroupDto) + System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(CreateGroupOptions createGroupOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteGroupAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteGroupWithHttpInfoAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all Contact Groups in paginated format + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageGroupProjection + System.Threading.Tasks.Task GetAllGroupsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all Contact Groups in paginated format + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageGroupProjection) + System.Threading.Tasks.Task> GetAllGroupsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GroupDto + System.Threading.Tasks.Task GetGroupAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GroupDto) + System.Threading.Tasks.Task> GetGroupWithHttpInfoAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get group and contacts belonging to it + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GroupContactsDto + System.Threading.Tasks.Task GetGroupWithContactsAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get group and contacts belonging to it + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GroupContactsDto) + System.Threading.Tasks.Task> GetGroupWithContactsWithHttpInfoAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get group and paginated contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Optional page index in group contact pagination (optional, default to 0) + /// Optional page size in group contact pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageContactProjection + System.Threading.Tasks.Task GetGroupWithContactsPaginatedAsync(Guid groupId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get group and paginated contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Optional page index in group contact pagination (optional, default to 0) + /// Optional page size in group contact pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageContactProjection) + System.Threading.Tasks.Task> GetGroupWithContactsPaginatedWithHttpInfoAsync(Guid groupId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all groups + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GroupProjection> + System.Threading.Tasks.Task> GetGroupsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all groups + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GroupProjection>) + System.Threading.Tasks.Task>> GetGroupsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Remove contacts from a group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GroupContactsDto + System.Threading.Tasks.Task RemoveContactsFromGroupAsync(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Remove contacts from a group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GroupContactsDto) + System.Threading.Tasks.Task> RemoveContactsFromGroupWithHttpInfoAsync(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IGroupControllerApi : IGroupControllerApiSync, IGroupControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class GroupControllerApi : IGroupControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public GroupControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public GroupControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public GroupControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public GroupControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Add contacts to a group + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// GroupContactsDto + public GroupContactsDto AddContactsToGroup(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = AddContactsToGroupWithHttpInfo(groupId, updateGroupContacts); + return localVarResponse.Data; + } + + /// + /// Add contacts to a group + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of GroupContactsDto + public mailslurp_netstandard_2x.Client.ApiResponse AddContactsToGroupWithHttpInfo(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0) + { + // verify the required parameter 'updateGroupContacts' is set + if (updateGroupContacts == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateGroupContacts' when calling GroupControllerApi->AddContactsToGroup"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + localVarRequestOptions.Data = updateGroupContacts; + + localVarRequestOptions.Operation = "GroupControllerApi.AddContactsToGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/groups/{groupId}/contacts", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddContactsToGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Add contacts to a group + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GroupContactsDto + public async System.Threading.Tasks.Task AddContactsToGroupAsync(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await AddContactsToGroupWithHttpInfoAsync(groupId, updateGroupContacts, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Add contacts to a group + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GroupContactsDto) + public async System.Threading.Tasks.Task> AddContactsToGroupWithHttpInfoAsync(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'updateGroupContacts' is set + if (updateGroupContacts == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateGroupContacts' when calling GroupControllerApi->AddContactsToGroup"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + localVarRequestOptions.Data = updateGroupContacts; + + localVarRequestOptions.Operation = "GroupControllerApi.AddContactsToGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/groups/{groupId}/contacts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddContactsToGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GroupDto + public GroupDto CreateGroup(CreateGroupOptions createGroupOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateGroupWithHttpInfo(createGroupOptions); + return localVarResponse.Data; + } + + /// + /// Create a group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GroupDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateGroupWithHttpInfo(CreateGroupOptions createGroupOptions, int operationIndex = 0) + { + // verify the required parameter 'createGroupOptions' is set + if (createGroupOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createGroupOptions' when calling GroupControllerApi->CreateGroup"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createGroupOptions; + + localVarRequestOptions.Operation = "GroupControllerApi.CreateGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GroupDto + public async System.Threading.Tasks.Task CreateGroupAsync(CreateGroupOptions createGroupOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateGroupWithHttpInfoAsync(createGroupOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GroupDto) + public async System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(CreateGroupOptions createGroupOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createGroupOptions' is set + if (createGroupOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createGroupOptions' when calling GroupControllerApi->CreateGroup"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createGroupOptions; + + localVarRequestOptions.Operation = "GroupControllerApi.CreateGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteGroup(Guid groupId, int operationIndex = 0) + { + DeleteGroupWithHttpInfo(groupId); + } + + /// + /// Delete group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteGroupWithHttpInfo(Guid groupId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + + localVarRequestOptions.Operation = "GroupControllerApi.DeleteGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/groups/{groupId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteGroupAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteGroupWithHttpInfoAsync(groupId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteGroupWithHttpInfoAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + + localVarRequestOptions.Operation = "GroupControllerApi.DeleteGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/groups/{groupId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all Contact Groups in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageGroupProjection + public PageGroupProjection GetAllGroups(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllGroupsWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get all Contact Groups in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageGroupProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAllGroupsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "GroupControllerApi.GetAllGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/groups/paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all Contact Groups in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageGroupProjection + public async System.Threading.Tasks.Task GetAllGroupsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllGroupsWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all Contact Groups in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageGroupProjection) + public async System.Threading.Tasks.Task> GetAllGroupsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "GroupControllerApi.GetAllGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/groups/paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GroupDto + public GroupDto GetGroup(Guid groupId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetGroupWithHttpInfo(groupId); + return localVarResponse.Data; + } + + /// + /// Get group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GroupDto + public mailslurp_netstandard_2x.Client.ApiResponse GetGroupWithHttpInfo(Guid groupId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + + localVarRequestOptions.Operation = "GroupControllerApi.GetGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/groups/{groupId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GroupDto + public async System.Threading.Tasks.Task GetGroupAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetGroupWithHttpInfoAsync(groupId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get group + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GroupDto) + public async System.Threading.Tasks.Task> GetGroupWithHttpInfoAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + + localVarRequestOptions.Operation = "GroupControllerApi.GetGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/groups/{groupId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get group and contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GroupContactsDto + public GroupContactsDto GetGroupWithContacts(Guid groupId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetGroupWithContactsWithHttpInfo(groupId); + return localVarResponse.Data; + } + + /// + /// Get group and contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GroupContactsDto + public mailslurp_netstandard_2x.Client.ApiResponse GetGroupWithContactsWithHttpInfo(Guid groupId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + + localVarRequestOptions.Operation = "GroupControllerApi.GetGroupWithContacts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/groups/{groupId}/contacts", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupWithContacts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get group and contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GroupContactsDto + public async System.Threading.Tasks.Task GetGroupWithContactsAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetGroupWithContactsWithHttpInfoAsync(groupId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get group and contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GroupContactsDto) + public async System.Threading.Tasks.Task> GetGroupWithContactsWithHttpInfoAsync(Guid groupId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + + localVarRequestOptions.Operation = "GroupControllerApi.GetGroupWithContacts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/groups/{groupId}/contacts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupWithContacts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get group and paginated contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Optional page index in group contact pagination (optional, default to 0) + /// Optional page size in group contact pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageContactProjection + public PageContactProjection GetGroupWithContactsPaginated(Guid groupId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetGroupWithContactsPaginatedWithHttpInfo(groupId, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get group and paginated contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Optional page index in group contact pagination (optional, default to 0) + /// Optional page size in group contact pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageContactProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetGroupWithContactsPaginatedWithHttpInfo(Guid groupId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "GroupControllerApi.GetGroupWithContactsPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/groups/{groupId}/contacts-paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupWithContactsPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get group and paginated contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Optional page index in group contact pagination (optional, default to 0) + /// Optional page size in group contact pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageContactProjection + public async System.Threading.Tasks.Task GetGroupWithContactsPaginatedAsync(Guid groupId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetGroupWithContactsPaginatedWithHttpInfoAsync(groupId, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get group and paginated contacts belonging to it + /// + /// Thrown when fails to make API call + /// + /// Optional page index in group contact pagination (optional, default to 0) + /// Optional page size in group contact pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageContactProjection) + public async System.Threading.Tasks.Task> GetGroupWithContactsPaginatedWithHttpInfoAsync(Guid groupId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "GroupControllerApi.GetGroupWithContactsPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/groups/{groupId}/contacts-paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroupWithContactsPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all groups + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<GroupProjection> + public List GetGroups(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetGroupsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get all groups + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<GroupProjection> + public mailslurp_netstandard_2x.Client.ApiResponse> GetGroupsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "GroupControllerApi.GetGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all groups + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<GroupProjection> + public async System.Threading.Tasks.Task> GetGroupsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetGroupsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all groups + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<GroupProjection>) + public async System.Threading.Tasks.Task>> GetGroupsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "GroupControllerApi.GetGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Remove contacts from a group + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// GroupContactsDto + public GroupContactsDto RemoveContactsFromGroup(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = RemoveContactsFromGroupWithHttpInfo(groupId, updateGroupContacts); + return localVarResponse.Data; + } + + /// + /// Remove contacts from a group + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of GroupContactsDto + public mailslurp_netstandard_2x.Client.ApiResponse RemoveContactsFromGroupWithHttpInfo(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0) + { + // verify the required parameter 'updateGroupContacts' is set + if (updateGroupContacts == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateGroupContacts' when calling GroupControllerApi->RemoveContactsFromGroup"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + localVarRequestOptions.Data = updateGroupContacts; + + localVarRequestOptions.Operation = "GroupControllerApi.RemoveContactsFromGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/groups/{groupId}/contacts", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RemoveContactsFromGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Remove contacts from a group + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GroupContactsDto + public async System.Threading.Tasks.Task RemoveContactsFromGroupAsync(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await RemoveContactsFromGroupWithHttpInfoAsync(groupId, updateGroupContacts, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Remove contacts from a group + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GroupContactsDto) + public async System.Threading.Tasks.Task> RemoveContactsFromGroupWithHttpInfoAsync(Guid groupId, UpdateGroupContacts updateGroupContacts, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'updateGroupContacts' is set + if (updateGroupContacts == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateGroupContacts' when calling GroupControllerApi->RemoveContactsFromGroup"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(groupId)); // path parameter + localVarRequestOptions.Data = updateGroupContacts; + + localVarRequestOptions.Operation = "GroupControllerApi.RemoveContactsFromGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/groups/{groupId}/contacts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RemoveContactsFromGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/ImapControllerApi.cs b/src/mailslurp_netstandard_2x/Api/ImapControllerApi.cs new file mode 100644 index 00000000..8b6b5a96 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/ImapControllerApi.cs @@ -0,0 +1,1433 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IImapControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Fetch message in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ImapServerFetchResult + ImapServerFetchResult ImapServerFetch(long seqNum, Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Fetch message in an inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ApiResponse of ImapServerFetchResult + ApiResponse ImapServerFetchWithHttpInfo(long seqNum, Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Get a message by email ID + /// + /// Thrown when fails to make API call + /// Email ID to get + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ImapServerGetResult + ImapServerGetResult ImapServerGet(Guid emailId, Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Get a message by email ID + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Email ID to get + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ApiResponse of ImapServerGetResult + ApiResponse ImapServerGetWithHttpInfo(Guid emailId, Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// List messages in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// ImapServerListResult + ImapServerListResult ImapServerList(ImapServerListOptions imapServerListOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// List messages in an inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// ApiResponse of ImapServerListResult + ApiResponse ImapServerListWithHttpInfo(ImapServerListOptions imapServerListOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Search messages in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ImapServerSearchResult + ImapServerSearchResult ImapServerSearch(ImapServerSearchOptions imapServerSearchOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Search messages in an inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ApiResponse of ImapServerSearchResult + ApiResponse ImapServerSearchWithHttpInfo(ImapServerSearchOptions imapServerSearchOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Get status for mailbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// ImapServerStatusResult + ImapServerStatusResult ImapServerStatus(ImapServerStatusOptions imapServerStatusOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Get status for mailbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// ApiResponse of ImapServerStatusResult + ApiResponse ImapServerStatusWithHttpInfo(ImapServerStatusOptions imapServerStatusOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// + /// + /// + /// Update message flags + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + void ImapServerUpdateFlags(ImapUpdateFlagsOptions imapUpdateFlagsOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// + /// + /// + /// Update message flags + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse ImapServerUpdateFlagsWithHttpInfo(ImapUpdateFlagsOptions imapUpdateFlagsOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IImapControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Fetch message in an inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapServerFetchResult + System.Threading.Tasks.Task ImapServerFetchAsync(long seqNum, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Fetch message in an inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapServerFetchResult) + System.Threading.Tasks.Task> ImapServerFetchWithHttpInfoAsync(long seqNum, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a message by email ID + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Email ID to get + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapServerGetResult + System.Threading.Tasks.Task ImapServerGetAsync(Guid emailId, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a message by email ID + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Email ID to get + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapServerGetResult) + System.Threading.Tasks.Task> ImapServerGetWithHttpInfoAsync(Guid emailId, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List messages in an inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapServerListResult + System.Threading.Tasks.Task ImapServerListAsync(ImapServerListOptions imapServerListOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List messages in an inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapServerListResult) + System.Threading.Tasks.Task> ImapServerListWithHttpInfoAsync(ImapServerListOptions imapServerListOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Search messages in an inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapServerSearchResult + System.Threading.Tasks.Task ImapServerSearchAsync(ImapServerSearchOptions imapServerSearchOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Search messages in an inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapServerSearchResult) + System.Threading.Tasks.Task> ImapServerSearchWithHttpInfoAsync(ImapServerSearchOptions imapServerSearchOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get status for mailbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapServerStatusResult + System.Threading.Tasks.Task ImapServerStatusAsync(ImapServerStatusOptions imapServerStatusOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get status for mailbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapServerStatusResult) + System.Threading.Tasks.Task> ImapServerStatusWithHttpInfoAsync(ImapServerStatusOptions imapServerStatusOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Update message flags + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ImapServerUpdateFlagsAsync(ImapUpdateFlagsOptions imapUpdateFlagsOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Update message flags + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ImapServerUpdateFlagsWithHttpInfoAsync(ImapUpdateFlagsOptions imapUpdateFlagsOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IImapControllerApi : IImapControllerApiSync, IImapControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ImapControllerApi : IImapControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ImapControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public ImapControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ImapControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public ImapControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Fetch message in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ImapServerFetchResult + public ImapServerFetchResult ImapServerFetch(long seqNum, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ImapServerFetchWithHttpInfo(seqNum, inboxId); + return localVarResponse.Data; + } + + /// + /// Fetch message in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ApiResponse of ImapServerFetchResult + public mailslurp_netstandard_2x.Client.ApiResponse ImapServerFetchWithHttpInfo(long seqNum, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "seqNum", seqNum)); + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerFetch"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/imap/server/fetch", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerFetch", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Fetch message in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapServerFetchResult + public async System.Threading.Tasks.Task ImapServerFetchAsync(long seqNum, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ImapServerFetchWithHttpInfoAsync(seqNum, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Fetch message in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapServerFetchResult) + public async System.Threading.Tasks.Task> ImapServerFetchWithHttpInfoAsync(long seqNum, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "seqNum", seqNum)); + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerFetch"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/imap/server/fetch", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerFetch", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a message by email ID + /// + /// Thrown when fails to make API call + /// Email ID to get + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ImapServerGetResult + public ImapServerGetResult ImapServerGet(Guid emailId, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ImapServerGetWithHttpInfo(emailId, inboxId); + return localVarResponse.Data; + } + + /// + /// Get a message by email ID + /// + /// Thrown when fails to make API call + /// Email ID to get + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ApiResponse of ImapServerGetResult + public mailslurp_netstandard_2x.Client.ApiResponse ImapServerGetWithHttpInfo(Guid emailId, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailId", emailId)); + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerGet"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/imap/server/get", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerGet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a message by email ID + /// + /// Thrown when fails to make API call + /// Email ID to get + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapServerGetResult + public async System.Threading.Tasks.Task ImapServerGetAsync(Guid emailId, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ImapServerGetWithHttpInfoAsync(emailId, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a message by email ID + /// + /// Thrown when fails to make API call + /// Email ID to get + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapServerGetResult) + public async System.Threading.Tasks.Task> ImapServerGetWithHttpInfoAsync(Guid emailId, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailId", emailId)); + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerGet"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/imap/server/get", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerGet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List messages in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// ImapServerListResult + public ImapServerListResult ImapServerList(ImapServerListOptions imapServerListOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ImapServerListWithHttpInfo(imapServerListOptions, inboxId); + return localVarResponse.Data; + } + + /// + /// List messages in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// ApiResponse of ImapServerListResult + public mailslurp_netstandard_2x.Client.ApiResponse ImapServerListWithHttpInfo(ImapServerListOptions imapServerListOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + // verify the required parameter 'imapServerListOptions' is set + if (imapServerListOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'imapServerListOptions' when calling ImapControllerApi->ImapServerList"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = imapServerListOptions; + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerList"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/imap/server/list", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerList", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List messages in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapServerListResult + public async System.Threading.Tasks.Task ImapServerListAsync(ImapServerListOptions imapServerListOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ImapServerListWithHttpInfoAsync(imapServerListOptions, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List messages in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapServerListResult) + public async System.Threading.Tasks.Task> ImapServerListWithHttpInfoAsync(ImapServerListOptions imapServerListOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'imapServerListOptions' is set + if (imapServerListOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'imapServerListOptions' when calling ImapControllerApi->ImapServerList"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = imapServerListOptions; + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerList"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/imap/server/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerList", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Search messages in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ImapServerSearchResult + public ImapServerSearchResult ImapServerSearch(ImapServerSearchOptions imapServerSearchOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ImapServerSearchWithHttpInfo(imapServerSearchOptions, inboxId); + return localVarResponse.Data; + } + + /// + /// Search messages in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// ApiResponse of ImapServerSearchResult + public mailslurp_netstandard_2x.Client.ApiResponse ImapServerSearchWithHttpInfo(ImapServerSearchOptions imapServerSearchOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + // verify the required parameter 'imapServerSearchOptions' is set + if (imapServerSearchOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'imapServerSearchOptions' when calling ImapControllerApi->ImapServerSearch"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = imapServerSearchOptions; + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerSearch"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/imap/server/search", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerSearch", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Search messages in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapServerSearchResult + public async System.Threading.Tasks.Task ImapServerSearchAsync(ImapServerSearchOptions imapServerSearchOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ImapServerSearchWithHttpInfoAsync(imapServerSearchOptions, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Search messages in an inbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to search (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapServerSearchResult) + public async System.Threading.Tasks.Task> ImapServerSearchWithHttpInfoAsync(ImapServerSearchOptions imapServerSearchOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'imapServerSearchOptions' is set + if (imapServerSearchOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'imapServerSearchOptions' when calling ImapControllerApi->ImapServerSearch"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = imapServerSearchOptions; + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerSearch"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/imap/server/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerSearch", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get status for mailbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// ImapServerStatusResult + public ImapServerStatusResult ImapServerStatus(ImapServerStatusOptions imapServerStatusOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ImapServerStatusWithHttpInfo(imapServerStatusOptions, inboxId); + return localVarResponse.Data; + } + + /// + /// Get status for mailbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// ApiResponse of ImapServerStatusResult + public mailslurp_netstandard_2x.Client.ApiResponse ImapServerStatusWithHttpInfo(ImapServerStatusOptions imapServerStatusOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + // verify the required parameter 'imapServerStatusOptions' is set + if (imapServerStatusOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'imapServerStatusOptions' when calling ImapControllerApi->ImapServerStatus"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = imapServerStatusOptions; + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/imap/server/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get status for mailbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapServerStatusResult + public async System.Threading.Tasks.Task ImapServerStatusAsync(ImapServerStatusOptions imapServerStatusOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ImapServerStatusWithHttpInfoAsync(imapServerStatusOptions, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get status for mailbox + /// + /// Thrown when fails to make API call + /// + /// Inbox ID to list (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapServerStatusResult) + public async System.Threading.Tasks.Task> ImapServerStatusWithHttpInfoAsync(ImapServerStatusOptions imapServerStatusOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'imapServerStatusOptions' is set + if (imapServerStatusOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'imapServerStatusOptions' when calling ImapControllerApi->ImapServerStatus"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = imapServerStatusOptions; + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/imap/server/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update message flags + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// + public void ImapServerUpdateFlags(ImapUpdateFlagsOptions imapUpdateFlagsOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + ImapServerUpdateFlagsWithHttpInfo(imapUpdateFlagsOptions, inboxId); + } + + /// + /// Update message flags + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse ImapServerUpdateFlagsWithHttpInfo(ImapUpdateFlagsOptions imapUpdateFlagsOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + // verify the required parameter 'imapUpdateFlagsOptions' is set + if (imapUpdateFlagsOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'imapUpdateFlagsOptions' when calling ImapControllerApi->ImapServerUpdateFlags"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = imapUpdateFlagsOptions; + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerUpdateFlags"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/imap/server/update-flags", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerUpdateFlags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update message flags + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task ImapServerUpdateFlagsAsync(ImapUpdateFlagsOptions imapUpdateFlagsOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await ImapServerUpdateFlagsWithHttpInfoAsync(imapUpdateFlagsOptions, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update message flags + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ImapServerUpdateFlagsWithHttpInfoAsync(ImapUpdateFlagsOptions imapUpdateFlagsOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'imapUpdateFlagsOptions' is set + if (imapUpdateFlagsOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'imapUpdateFlagsOptions' when calling ImapControllerApi->ImapServerUpdateFlags"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = imapUpdateFlagsOptions; + + localVarRequestOptions.Operation = "ImapControllerApi.ImapServerUpdateFlags"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/imap/server/update-flags", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ImapServerUpdateFlags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/InboxControllerApi.cs b/src/mailslurp_netstandard_2x/Api/InboxControllerApi.cs new file mode 100644 index 00000000..5cd72d7a --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/InboxControllerApi.cs @@ -0,0 +1,11553 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Cancel a scheduled email job + /// + /// + /// Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ScheduledJobDto + ScheduledJobDto CancelScheduledJob(Guid jobId, int operationIndex = 0); + + /// + /// Cancel a scheduled email job + /// + /// + /// Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ScheduledJobDto + ApiResponse CancelScheduledJobWithHttpInfo(Guid jobId, int operationIndex = 0); + /// + /// Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. + /// + /// + /// Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. + /// + /// Thrown when fails to make API call + /// A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) + /// Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) + /// Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) + /// Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) + /// Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) + /// Number of milliseconds that inbox should exist for (optional) + /// DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) + /// HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) + /// Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) + /// Use a shorter email address under 31 characters (optional) + /// ID of custom domain to use for email address. (optional) + /// FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) + /// Prefix to add before the email address for easier labelling or identification. (optional) + /// Index associated with the operation. + /// InboxDto + InboxDto CreateInbox(string emailAddress = default(string), List tags = default(List), string name = default(string), string description = default(string), bool? useDomainPool = default(bool?), bool? favourite = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), bool? allowTeamAccess = default(bool?), string inboxType = default(string), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), Guid? domainId = default(Guid?), string domainName = default(string), string prefix = default(string), int operationIndex = 0); + + /// + /// Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. + /// + /// + /// Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. + /// + /// Thrown when fails to make API call + /// A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) + /// Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) + /// Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) + /// Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) + /// Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) + /// Number of milliseconds that inbox should exist for (optional) + /// DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) + /// HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) + /// Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) + /// Use a shorter email address under 31 characters (optional) + /// ID of custom domain to use for email address. (optional) + /// FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) + /// Prefix to add before the email address for easier labelling or identification. (optional) + /// Index associated with the operation. + /// ApiResponse of InboxDto + ApiResponse CreateInboxWithHttpInfo(string emailAddress = default(string), List tags = default(List), string name = default(string), string description = default(string), bool? useDomainPool = default(bool?), bool? favourite = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), bool? allowTeamAccess = default(bool?), string inboxType = default(string), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), Guid? domainId = default(Guid?), string domainName = default(string), string prefix = default(string), int operationIndex = 0); + /// + /// Create an inbox ruleset + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// inboxId + /// + /// Index associated with the operation. + /// InboxRulesetDto + InboxRulesetDto CreateInboxRuleset(Guid inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, int operationIndex = 0); + + /// + /// Create an inbox ruleset + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// inboxId + /// + /// Index associated with the operation. + /// ApiResponse of InboxRulesetDto + ApiResponse CreateInboxRulesetWithHttpInfo(Guid inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, int operationIndex = 0); + /// + /// Create an inbox with default options. Uses MailSlurp domain pool address and is private. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// InboxDto + InboxDto CreateInboxWithDefaults(int operationIndex = 0); + + /// + /// Create an inbox with default options. Uses MailSlurp domain pool address and is private. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of InboxDto + ApiResponse CreateInboxWithDefaultsWithHttpInfo(int operationIndex = 0); + /// + /// Create an inbox with options. Extended options for inbox creation. + /// + /// + /// Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxDto + InboxDto CreateInboxWithOptions(CreateInboxDto createInboxDto, int operationIndex = 0); + + /// + /// Create an inbox with options. Extended options for inbox creation. + /// + /// + /// Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxDto + ApiResponse CreateInboxWithOptionsWithHttpInfo(CreateInboxDto createInboxDto, int operationIndex = 0); + /// + /// Delete all emails in a given inboxes. + /// + /// + /// Deletes all emails in an inbox. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteAllInboxEmails(Guid inboxId, int operationIndex = 0); + + /// + /// Delete all emails in a given inboxes. + /// + /// + /// Deletes all emails in an inbox. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAllInboxEmailsWithHttpInfo(Guid inboxId, int operationIndex = 0); + /// + /// Delete all inboxes + /// + /// + /// Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + void DeleteAllInboxes(int operationIndex = 0); + + /// + /// Delete all inboxes + /// + /// + /// Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAllInboxesWithHttpInfo(int operationIndex = 0); + /// + /// Delete inboxes by description + /// + /// + /// Permanently delete all inboxes by description + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteAllInboxesByDescription(string description, int operationIndex = 0); + + /// + /// Delete inboxes by description + /// + /// + /// Permanently delete all inboxes by description + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAllInboxesByDescriptionWithHttpInfo(string description, int operationIndex = 0); + /// + /// Delete inboxes by name + /// + /// + /// Permanently delete all inboxes by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteAllInboxesByName(string name, int operationIndex = 0); + + /// + /// Delete inboxes by name + /// + /// + /// Permanently delete all inboxes by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAllInboxesByNameWithHttpInfo(string name, int operationIndex = 0); + /// + /// Delete inboxes by tag + /// + /// + /// Permanently delete all inboxes by tag + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteAllInboxesByTag(string tag, int operationIndex = 0); + + /// + /// Delete inboxes by tag + /// + /// + /// Permanently delete all inboxes by tag + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAllInboxesByTagWithHttpInfo(string tag, int operationIndex = 0); + /// + /// Delete inbox + /// + /// + /// Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteInbox(Guid inboxId, int operationIndex = 0); + + /// + /// Delete inbox + /// + /// + /// Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteInboxWithHttpInfo(Guid inboxId, int operationIndex = 0); + /// + /// Does inbox exist + /// + /// + /// Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses + /// + /// Thrown when fails to make API call + /// Email address + /// (optional) + /// Index associated with the operation. + /// InboxExistsDto + InboxExistsDto DoesInboxExist(string emailAddress, bool? allowCatchAll = default(bool?), int operationIndex = 0); + + /// + /// Does inbox exist + /// + /// + /// Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses + /// + /// Thrown when fails to make API call + /// Email address + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InboxExistsDto + ApiResponse DoesInboxExistWithHttpInfo(string emailAddress, bool? allowCatchAll = default(bool?), int operationIndex = 0); + /// + /// Remove expired inboxes + /// + /// + /// Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) + /// + /// Thrown when fails to make API call + /// Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) + /// Index associated with the operation. + /// FlushExpiredInboxesResult + FlushExpiredInboxesResult FlushExpired(DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Remove expired inboxes + /// + /// + /// Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) + /// + /// Thrown when fails to make API call + /// Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) + /// Index associated with the operation. + /// ApiResponse of FlushExpiredInboxesResult + ApiResponse FlushExpiredWithHttpInfo(DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// List All Inboxes Paginated + /// + /// + /// List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// PageInboxProjection + PageInboxProjection GetAllInboxes(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0); + + /// + /// List All Inboxes Paginated + /// + /// + /// List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxProjection + ApiResponse GetAllInboxesWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0); + /// + /// List All Inboxes Offset Paginated + /// + /// + /// List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// PageInboxProjection + PageInboxProjection GetAllInboxesOffsetPaginated(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0); + + /// + /// List All Inboxes Offset Paginated + /// + /// + /// List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxProjection + ApiResponse GetAllInboxesOffsetPaginatedWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0); + /// + /// Get all scheduled email sending jobs for account + /// + /// + /// Schedule sending of emails using scheduled jobs. These can be inbox or account level. + /// + /// Thrown when fails to make API call + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageScheduledJobs + PageScheduledJobs GetAllScheduledJobs(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get all scheduled email sending jobs for account + /// + /// + /// Schedule sending of emails using scheduled jobs. These can be inbox or account level. + /// + /// Thrown when fails to make API call + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageScheduledJobs + ApiResponse GetAllScheduledJobsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// + /// + /// + /// Get all email delivery statuses for an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageDeliveryStatus + [Obsolete] + PageDeliveryStatus GetDeliveryStatusesByInboxId(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// + /// + /// + /// Get all email delivery statuses for an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageDeliveryStatus + [Obsolete] + ApiResponse GetDeliveryStatusesByInboxIdWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. + /// + /// + /// List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Alias for limit. Assessed first before assessing any passed limit. (optional) + /// Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) + /// Sort the results by received date and direction ASC or DESC (optional) + /// Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) + /// (optional) + /// Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) + /// (optional) + /// Exclude emails received after this ISO 8601 date time (optional) + /// Exclude emails received before this ISO 8601 date time (optional) + /// Index associated with the operation. + /// List<EmailPreview> + List GetEmails(Guid inboxId, int? size = default(int?), int? limit = default(int?), string sort = default(string), long? retryTimeout = default(long?), long? delayTimeout = default(long?), long? minCount = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), int operationIndex = 0); + + /// + /// Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. + /// + /// + /// List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Alias for limit. Assessed first before assessing any passed limit. (optional) + /// Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) + /// Sort the results by received date and direction ASC or DESC (optional) + /// Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) + /// (optional) + /// Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) + /// (optional) + /// Exclude emails received after this ISO 8601 date time (optional) + /// Exclude emails received before this ISO 8601 date time (optional) + /// Index associated with the operation. + /// ApiResponse of List<EmailPreview> + ApiResponse> GetEmailsWithHttpInfo(Guid inboxId, int? size = default(int?), int? limit = default(int?), string sort = default(string), long? retryTimeout = default(long?), long? delayTimeout = default(long?), long? minCount = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), int operationIndex = 0); + /// + /// + /// + /// + /// Get IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ImapAccessDetails + ImapAccessDetails GetImapAccess(Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// + /// + /// + /// Get IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of ImapAccessDetails + ApiResponse GetImapAccessWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// + /// + /// + /// Get IMAP and SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ImapSmtpAccessDetails + ImapSmtpAccessDetails GetImapSmtpAccess(Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// + /// + /// + /// Get IMAP and SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of ImapSmtpAccessDetails + ApiResponse GetImapSmtpAccessWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// + /// + /// + /// Get IMAP and SMTP access details in .env format + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// string + string GetImapSmtpAccessEnv(Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// + /// + /// + /// Get IMAP and SMTP access details in .env format + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of string + ApiResponse GetImapSmtpAccessEnvWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// + /// + /// + /// Get IMAP and SMTP server hosts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ImapSmtpAccessServers + ImapSmtpAccessServers GetImapSmtpAccessServers(int operationIndex = 0); + + /// + /// + /// + /// + /// Get IMAP and SMTP server hosts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of ImapSmtpAccessServers + ApiResponse GetImapSmtpAccessServersWithHttpInfo(int operationIndex = 0); + /// + /// Get Inbox. Returns properties of an inbox. + /// + /// + /// Returns an inbox's properties, including its email address and ID. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxDto + InboxDto GetInbox(Guid inboxId, int operationIndex = 0); + + /// + /// Get Inbox. Returns properties of an inbox. + /// + /// + /// Returns an inbox's properties, including its email address and ID. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxDto + ApiResponse GetInboxWithHttpInfo(Guid inboxId, int operationIndex = 0); + /// + /// Search for an inbox with the provided email address + /// + /// + /// Get a inbox result by email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxByEmailAddressResult + InboxByEmailAddressResult GetInboxByEmailAddress(string emailAddress, int operationIndex = 0); + + /// + /// Search for an inbox with the provided email address + /// + /// + /// Get a inbox result by email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxByEmailAddressResult + ApiResponse GetInboxByEmailAddressWithHttpInfo(string emailAddress, int operationIndex = 0); + /// + /// Search for an inbox with the given name + /// + /// + /// Get a inbox result by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxByNameResult + InboxByNameResult GetInboxByName(string name, int operationIndex = 0); + + /// + /// Search for an inbox with the given name + /// + /// + /// Get a inbox result by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxByNameResult + ApiResponse GetInboxByNameWithHttpInfo(string name, int operationIndex = 0); + /// + /// Get total inbox count + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// CountDto + CountDto GetInboxCount(int operationIndex = 0); + + /// + /// Get total inbox count + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of CountDto + ApiResponse GetInboxCountWithHttpInfo(int operationIndex = 0); + /// + /// Get email count in inbox + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Index associated with the operation. + /// CountDto + CountDto GetInboxEmailCount(Guid inboxId, int operationIndex = 0); + + /// + /// Get email count in inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Index associated with the operation. + /// ApiResponse of CountDto + ApiResponse GetInboxEmailCountWithHttpInfo(Guid inboxId, int operationIndex = 0); + /// + /// Get inbox emails paginated + /// + /// + /// Get a paginated list of emails in an inbox. Does not hold connections open. + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Optional page index in inbox emails list pagination (optional, default to 0) + /// Optional page size in inbox emails list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by received after given date time (optional) + /// Optional filter by received before given date time (optional) + /// Index associated with the operation. + /// PageEmailPreview + PageEmailPreview GetInboxEmailsPaginated(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get inbox emails paginated + /// + /// + /// Get a paginated list of emails in an inbox. Does not hold connections open. + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Optional page index in inbox emails list pagination (optional, default to 0) + /// Optional page size in inbox emails list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by received after given date time (optional) + /// Optional filter by received before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailPreview + ApiResponse GetInboxEmailsPaginatedWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get all inbox IDs + /// + /// + /// Get list of inbox IDs + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// InboxIdsResult + [Obsolete] + InboxIdsResult GetInboxIds(int operationIndex = 0); + + /// + /// Get all inbox IDs + /// + /// + /// Get list of inbox IDs + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of InboxIdsResult + [Obsolete] + ApiResponse GetInboxIdsWithHttpInfo(int operationIndex = 0); + /// + /// Get Inbox Sent Emails + /// + /// + /// Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional sent email search (optional) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// PageSentEmailProjection + [Obsolete] + PageSentEmailProjection GetInboxSentEmails(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get Inbox Sent Emails + /// + /// + /// Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional sent email search (optional) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageSentEmailProjection + [Obsolete] + ApiResponse GetInboxSentEmailsWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get inbox tags + /// + /// + /// Get all inbox tags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<string> + [Obsolete] + List GetInboxTags(int operationIndex = 0); + + /// + /// Get inbox tags + /// + /// + /// Get all inbox tags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<string> + [Obsolete] + ApiResponse> GetInboxTagsWithHttpInfo(int operationIndex = 0); + /// + /// List Inboxes and email addresses + /// + /// + /// List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. + /// + /// Thrown when fails to make API call + /// Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by created after given date time (optional) + /// Optional exclude catch all inboxes (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// List<InboxDto> + [Obsolete] + List GetInboxes(int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), bool? excludeCatchAllInboxes = default(bool?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// List Inboxes and email addresses + /// + /// + /// List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. + /// + /// Thrown when fails to make API call + /// Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by created after given date time (optional) + /// Optional exclude catch all inboxes (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of List<InboxDto> + [Obsolete] + ApiResponse> GetInboxesWithHttpInfo(int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), bool? excludeCatchAllInboxes = default(bool?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + /// + /// + /// Get the newest email in an inbox or wait for one to arrive + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Timeout milliseconds to wait for latest email + /// Index associated with the operation. + /// Email + Email GetLatestEmailInInbox(Guid inboxId, long timeoutMillis, int operationIndex = 0); + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + /// + /// + /// Get the newest email in an inbox or wait for one to arrive + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Timeout milliseconds to wait for latest email + /// Index associated with the operation. + /// ApiResponse of Email + ApiResponse GetLatestEmailInInboxWithHttpInfo(Guid inboxId, long timeoutMillis, int operationIndex = 0); + /// + /// List Organization Inboxes Paginated + /// + /// + /// List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// PageOrganizationInboxProjection + [Obsolete] + PageOrganizationInboxProjection GetOrganizationInboxes(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// List Organization Inboxes Paginated + /// + /// + /// List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageOrganizationInboxProjection + [Obsolete] + ApiResponse GetOrganizationInboxesWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get a scheduled email job + /// + /// + /// Get a scheduled email job details. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ScheduledJobDto + ScheduledJobDto GetScheduledJob(Guid jobId, int operationIndex = 0); + + /// + /// Get a scheduled email job + /// + /// + /// Get a scheduled email job details. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ScheduledJobDto + ApiResponse GetScheduledJobWithHttpInfo(Guid jobId, int operationIndex = 0); + /// + /// Get all scheduled email sending jobs for the inbox + /// + /// + /// Schedule sending of emails using scheduled jobs. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageScheduledJobs + PageScheduledJobs GetScheduledJobsByInboxId(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get all scheduled email sending jobs for the inbox + /// + /// + /// Schedule sending of emails using scheduled jobs. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageScheduledJobs + ApiResponse GetScheduledJobsByInboxIdWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// + /// + /// + /// Get SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// SmtpAccessDetails + SmtpAccessDetails GetSmtpAccess(Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// + /// + /// + /// Get SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of SmtpAccessDetails + ApiResponse GetSmtpAccessWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// List inbox rulesets + /// + /// + /// List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// PageInboxRulesetDto + PageInboxRulesetDto ListInboxRulesets(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// List inbox rulesets + /// + /// + /// List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxRulesetDto + ApiResponse ListInboxRulesetsWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// List inbox tracking pixels + /// + /// + /// List all tracking pixels sent from an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox tracking pixel list pagination (optional, default to 0) + /// Optional page size in inbox tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// PageTrackingPixelProjection + PageTrackingPixelProjection ListInboxTrackingPixels(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// List inbox tracking pixels + /// + /// + /// List all tracking pixels sent from an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox tracking pixel list pagination (optional, default to 0) + /// Optional page size in inbox tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageTrackingPixelProjection + ApiResponse ListInboxTrackingPixelsWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Search all inboxes and return matching inboxes + /// + /// + /// Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// PageInboxProjection + PageInboxProjection SearchInboxes(SearchInboxesOptions searchInboxesOptions, int operationIndex = 0); + + /// + /// Search all inboxes and return matching inboxes + /// + /// + /// Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of PageInboxProjection + ApiResponse SearchInboxesWithHttpInfo(SearchInboxesOptions searchInboxesOptions, int operationIndex = 0); + /// + /// Send Email + /// + /// + /// Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// + void SendEmail(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0); + + /// + /// Send Email + /// + /// + /// Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse SendEmailWithHttpInfo(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0); + /// + /// Send email and return sent confirmation + /// + /// + /// Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// SentEmailDto + SentEmailDto SendEmailAndConfirm(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0); + + /// + /// Send email and return sent confirmation + /// + /// + /// Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + ApiResponse SendEmailAndConfirmWithHttpInfo(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0); + /// + /// Send email with queue + /// + /// + /// Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// Validate before adding to queue + /// + /// Index associated with the operation. + /// + void SendEmailWithQueue(Guid inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions, int operationIndex = 0); + + /// + /// Send email with queue + /// + /// + /// Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// Validate before adding to queue + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse SendEmailWithQueueWithHttpInfo(Guid inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions, int operationIndex = 0); + /// + /// Send email using an SMTP mail envelope and message body and return sent confirmation + /// + /// + /// Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// SentEmailDto + SentEmailDto SendSmtpEnvelope(Guid inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, int operationIndex = 0); + + /// + /// Send email using an SMTP mail envelope and message body and return sent confirmation + /// + /// + /// Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + ApiResponse SendSmtpEnvelopeWithHttpInfo(Guid inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, int operationIndex = 0); + /// + /// Send a test email to inbox + /// + /// + /// Send an inbox a test email to test email receiving is working + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void SendTestEmail(Guid inboxId, int operationIndex = 0); + + /// + /// Send a test email to inbox + /// + /// + /// Send an inbox a test email to test email receiving is working + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse SendTestEmailWithHttpInfo(Guid inboxId, int operationIndex = 0); + /// + /// Send email with with delay or schedule + /// + /// + /// Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Sending timestamp (optional) + /// Send after n seconds (optional) + /// Validate before adding to queue (optional) + /// Index associated with the operation. + /// ScheduledJobDto + ScheduledJobDto SendWithSchedule(Guid inboxId, SendEmailOptions sendEmailOptions, DateTime? sendAtTimestamp = default(DateTime?), long? sendAtNowPlusSeconds = default(long?), bool? validateBeforeEnqueue = default(bool?), int operationIndex = 0); + + /// + /// Send email with with delay or schedule + /// + /// + /// Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Sending timestamp (optional) + /// Send after n seconds (optional) + /// Validate before adding to queue (optional) + /// Index associated with the operation. + /// ApiResponse of ScheduledJobDto + ApiResponse SendWithScheduleWithHttpInfo(Guid inboxId, SendEmailOptions sendEmailOptions, DateTime? sendAtTimestamp = default(DateTime?), long? sendAtNowPlusSeconds = default(long?), bool? validateBeforeEnqueue = default(bool?), int operationIndex = 0); + /// + /// Set inbox favourited state + /// + /// + /// Set and return new favourite state for an inbox + /// + /// Thrown when fails to make API call + /// ID of inbox to set favourite state + /// + /// Index associated with the operation. + /// InboxDto + InboxDto SetInboxFavourited(Guid inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, int operationIndex = 0); + + /// + /// Set inbox favourited state + /// + /// + /// Set and return new favourite state for an inbox + /// + /// Thrown when fails to make API call + /// ID of inbox to set favourite state + /// + /// Index associated with the operation. + /// ApiResponse of InboxDto + ApiResponse SetInboxFavouritedWithHttpInfo(Guid inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, int operationIndex = 0); + /// + /// + /// + /// + /// Update IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// + void UpdateImapAccess(UpdateImapAccessOptions updateImapAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// + /// + /// + /// Update IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse UpdateImapAccessWithHttpInfo(UpdateImapAccessOptions updateImapAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Update Inbox. Change name and description. Email address is not editable. + /// + /// + /// Update editable fields on an inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// InboxDto + InboxDto UpdateInbox(Guid inboxId, UpdateInboxOptions updateInboxOptions, int operationIndex = 0); + + /// + /// Update Inbox. Change name and description. Email address is not editable. + /// + /// + /// Update editable fields on an inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of InboxDto + ApiResponse UpdateInboxWithHttpInfo(Guid inboxId, UpdateInboxOptions updateInboxOptions, int operationIndex = 0); + /// + /// + /// + /// + /// Update SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// + void UpdateSmtpAccess(UpdateSmtpAccessOptions updateSmtpAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// + /// + /// + /// Update SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse UpdateSmtpAccessWithHttpInfo(UpdateSmtpAccessOptions updateSmtpAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Cancel a scheduled email job + /// + /// + /// Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ScheduledJobDto + System.Threading.Tasks.Task CancelScheduledJobAsync(Guid jobId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Cancel a scheduled email job + /// + /// + /// Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ScheduledJobDto) + System.Threading.Tasks.Task> CancelScheduledJobWithHttpInfoAsync(Guid jobId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. + /// + /// + /// Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. + /// + /// Thrown when fails to make API call + /// A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) + /// Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) + /// Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) + /// Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) + /// Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) + /// Number of milliseconds that inbox should exist for (optional) + /// DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) + /// HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) + /// Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) + /// Use a shorter email address under 31 characters (optional) + /// ID of custom domain to use for email address. (optional) + /// FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) + /// Prefix to add before the email address for easier labelling or identification. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + System.Threading.Tasks.Task CreateInboxAsync(string emailAddress = default(string), List tags = default(List), string name = default(string), string description = default(string), bool? useDomainPool = default(bool?), bool? favourite = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), bool? allowTeamAccess = default(bool?), string inboxType = default(string), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), Guid? domainId = default(Guid?), string domainName = default(string), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. + /// + /// + /// Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. + /// + /// Thrown when fails to make API call + /// A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) + /// Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) + /// Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) + /// Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) + /// Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) + /// Number of milliseconds that inbox should exist for (optional) + /// DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) + /// HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) + /// Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) + /// Use a shorter email address under 31 characters (optional) + /// ID of custom domain to use for email address. (optional) + /// FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) + /// Prefix to add before the email address for easier labelling or identification. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + System.Threading.Tasks.Task> CreateInboxWithHttpInfoAsync(string emailAddress = default(string), List tags = default(List), string name = default(string), string description = default(string), bool? useDomainPool = default(bool?), bool? favourite = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), bool? allowTeamAccess = default(bool?), string inboxType = default(string), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), Guid? domainId = default(Guid?), string domainName = default(string), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create an inbox ruleset + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// inboxId + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetDto + System.Threading.Tasks.Task CreateInboxRulesetAsync(Guid inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create an inbox ruleset + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// inboxId + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetDto) + System.Threading.Tasks.Task> CreateInboxRulesetWithHttpInfoAsync(Guid inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create an inbox with default options. Uses MailSlurp domain pool address and is private. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + System.Threading.Tasks.Task CreateInboxWithDefaultsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create an inbox with default options. Uses MailSlurp domain pool address and is private. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + System.Threading.Tasks.Task> CreateInboxWithDefaultsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create an inbox with options. Extended options for inbox creation. + /// + /// + /// Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + System.Threading.Tasks.Task CreateInboxWithOptionsAsync(CreateInboxDto createInboxDto, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create an inbox with options. Extended options for inbox creation. + /// + /// + /// Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + System.Threading.Tasks.Task> CreateInboxWithOptionsWithHttpInfoAsync(CreateInboxDto createInboxDto, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete all emails in a given inboxes. + /// + /// + /// Deletes all emails in an inbox. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAllInboxEmailsAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete all emails in a given inboxes. + /// + /// + /// Deletes all emails in an inbox. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAllInboxEmailsWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete all inboxes + /// + /// + /// Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAllInboxesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete all inboxes + /// + /// + /// Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAllInboxesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete inboxes by description + /// + /// + /// Permanently delete all inboxes by description + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAllInboxesByDescriptionAsync(string description, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete inboxes by description + /// + /// + /// Permanently delete all inboxes by description + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAllInboxesByDescriptionWithHttpInfoAsync(string description, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete inboxes by name + /// + /// + /// Permanently delete all inboxes by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAllInboxesByNameAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete inboxes by name + /// + /// + /// Permanently delete all inboxes by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAllInboxesByNameWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete inboxes by tag + /// + /// + /// Permanently delete all inboxes by tag + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAllInboxesByTagAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete inboxes by tag + /// + /// + /// Permanently delete all inboxes by tag + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAllInboxesByTagWithHttpInfoAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete inbox + /// + /// + /// Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteInboxAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete inbox + /// + /// + /// Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteInboxWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Does inbox exist + /// + /// + /// Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses + /// + /// Thrown when fails to make API call + /// Email address + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxExistsDto + System.Threading.Tasks.Task DoesInboxExistAsync(string emailAddress, bool? allowCatchAll = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Does inbox exist + /// + /// + /// Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses + /// + /// Thrown when fails to make API call + /// Email address + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxExistsDto) + System.Threading.Tasks.Task> DoesInboxExistWithHttpInfoAsync(string emailAddress, bool? allowCatchAll = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Remove expired inboxes + /// + /// + /// Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) + /// + /// Thrown when fails to make API call + /// Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of FlushExpiredInboxesResult + System.Threading.Tasks.Task FlushExpiredAsync(DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Remove expired inboxes + /// + /// + /// Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) + /// + /// Thrown when fails to make API call + /// Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (FlushExpiredInboxesResult) + System.Threading.Tasks.Task> FlushExpiredWithHttpInfoAsync(DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List All Inboxes Paginated + /// + /// + /// List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxProjection + System.Threading.Tasks.Task GetAllInboxesAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List All Inboxes Paginated + /// + /// + /// List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxProjection) + System.Threading.Tasks.Task> GetAllInboxesWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List All Inboxes Offset Paginated + /// + /// + /// List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxProjection + System.Threading.Tasks.Task GetAllInboxesOffsetPaginatedAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List All Inboxes Offset Paginated + /// + /// + /// List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxProjection) + System.Threading.Tasks.Task> GetAllInboxesOffsetPaginatedWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all scheduled email sending jobs for account + /// + /// + /// Schedule sending of emails using scheduled jobs. These can be inbox or account level. + /// + /// Thrown when fails to make API call + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageScheduledJobs + System.Threading.Tasks.Task GetAllScheduledJobsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all scheduled email sending jobs for account + /// + /// + /// Schedule sending of emails using scheduled jobs. These can be inbox or account level. + /// + /// Thrown when fails to make API call + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageScheduledJobs) + System.Threading.Tasks.Task> GetAllScheduledJobsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get all email delivery statuses for an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageDeliveryStatus + [Obsolete] + System.Threading.Tasks.Task GetDeliveryStatusesByInboxIdAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get all email delivery statuses for an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageDeliveryStatus) + [Obsolete] + System.Threading.Tasks.Task> GetDeliveryStatusesByInboxIdWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. + /// + /// + /// List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Alias for limit. Assessed first before assessing any passed limit. (optional) + /// Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) + /// Sort the results by received date and direction ASC or DESC (optional) + /// Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) + /// (optional) + /// Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) + /// (optional) + /// Exclude emails received after this ISO 8601 date time (optional) + /// Exclude emails received before this ISO 8601 date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<EmailPreview> + System.Threading.Tasks.Task> GetEmailsAsync(Guid inboxId, int? size = default(int?), int? limit = default(int?), string sort = default(string), long? retryTimeout = default(long?), long? delayTimeout = default(long?), long? minCount = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. + /// + /// + /// List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Alias for limit. Assessed first before assessing any passed limit. (optional) + /// Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) + /// Sort the results by received date and direction ASC or DESC (optional) + /// Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) + /// (optional) + /// Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) + /// (optional) + /// Exclude emails received after this ISO 8601 date time (optional) + /// Exclude emails received before this ISO 8601 date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<EmailPreview>) + System.Threading.Tasks.Task>> GetEmailsWithHttpInfoAsync(Guid inboxId, int? size = default(int?), int? limit = default(int?), string sort = default(string), long? retryTimeout = default(long?), long? delayTimeout = default(long?), long? minCount = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapAccessDetails + System.Threading.Tasks.Task GetImapAccessAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapAccessDetails) + System.Threading.Tasks.Task> GetImapAccessWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get IMAP and SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapSmtpAccessDetails + System.Threading.Tasks.Task GetImapSmtpAccessAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get IMAP and SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapSmtpAccessDetails) + System.Threading.Tasks.Task> GetImapSmtpAccessWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get IMAP and SMTP access details in .env format + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + System.Threading.Tasks.Task GetImapSmtpAccessEnvAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get IMAP and SMTP access details in .env format + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> GetImapSmtpAccessEnvWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get IMAP and SMTP server hosts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapSmtpAccessServers + System.Threading.Tasks.Task GetImapSmtpAccessServersAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get IMAP and SMTP server hosts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapSmtpAccessServers) + System.Threading.Tasks.Task> GetImapSmtpAccessServersWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get Inbox. Returns properties of an inbox. + /// + /// + /// Returns an inbox's properties, including its email address and ID. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + System.Threading.Tasks.Task GetInboxAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get Inbox. Returns properties of an inbox. + /// + /// + /// Returns an inbox's properties, including its email address and ID. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + System.Threading.Tasks.Task> GetInboxWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Search for an inbox with the provided email address + /// + /// + /// Get a inbox result by email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxByEmailAddressResult + System.Threading.Tasks.Task GetInboxByEmailAddressAsync(string emailAddress, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Search for an inbox with the provided email address + /// + /// + /// Get a inbox result by email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxByEmailAddressResult) + System.Threading.Tasks.Task> GetInboxByEmailAddressWithHttpInfoAsync(string emailAddress, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Search for an inbox with the given name + /// + /// + /// Get a inbox result by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxByNameResult + System.Threading.Tasks.Task GetInboxByNameAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Search for an inbox with the given name + /// + /// + /// Get a inbox result by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxByNameResult) + System.Threading.Tasks.Task> GetInboxByNameWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get total inbox count + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CountDto + System.Threading.Tasks.Task GetInboxCountAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get total inbox count + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CountDto) + System.Threading.Tasks.Task> GetInboxCountWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get email count in inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CountDto + System.Threading.Tasks.Task GetInboxEmailCountAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get email count in inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CountDto) + System.Threading.Tasks.Task> GetInboxEmailCountWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get inbox emails paginated + /// + /// + /// Get a paginated list of emails in an inbox. Does not hold connections open. + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Optional page index in inbox emails list pagination (optional, default to 0) + /// Optional page size in inbox emails list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by received after given date time (optional) + /// Optional filter by received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailPreview + System.Threading.Tasks.Task GetInboxEmailsPaginatedAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get inbox emails paginated + /// + /// + /// Get a paginated list of emails in an inbox. Does not hold connections open. + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Optional page index in inbox emails list pagination (optional, default to 0) + /// Optional page size in inbox emails list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by received after given date time (optional) + /// Optional filter by received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailPreview) + System.Threading.Tasks.Task> GetInboxEmailsPaginatedWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all inbox IDs + /// + /// + /// Get list of inbox IDs + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxIdsResult + [Obsolete] + System.Threading.Tasks.Task GetInboxIdsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all inbox IDs + /// + /// + /// Get list of inbox IDs + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxIdsResult) + [Obsolete] + System.Threading.Tasks.Task> GetInboxIdsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get Inbox Sent Emails + /// + /// + /// Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional sent email search (optional) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageSentEmailProjection + [Obsolete] + System.Threading.Tasks.Task GetInboxSentEmailsAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get Inbox Sent Emails + /// + /// + /// Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional sent email search (optional) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageSentEmailProjection) + [Obsolete] + System.Threading.Tasks.Task> GetInboxSentEmailsWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get inbox tags + /// + /// + /// Get all inbox tags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + [Obsolete] + System.Threading.Tasks.Task> GetInboxTagsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get inbox tags + /// + /// + /// Get all inbox tags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + [Obsolete] + System.Threading.Tasks.Task>> GetInboxTagsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List Inboxes and email addresses + /// + /// + /// List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. + /// + /// Thrown when fails to make API call + /// Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by created after given date time (optional) + /// Optional exclude catch all inboxes (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<InboxDto> + [Obsolete] + System.Threading.Tasks.Task> GetInboxesAsync(int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), bool? excludeCatchAllInboxes = default(bool?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List Inboxes and email addresses + /// + /// + /// List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. + /// + /// Thrown when fails to make API call + /// Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by created after given date time (optional) + /// Optional exclude catch all inboxes (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<InboxDto>) + [Obsolete] + System.Threading.Tasks.Task>> GetInboxesWithHttpInfoAsync(int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), bool? excludeCatchAllInboxes = default(bool?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + /// + /// + /// Get the newest email in an inbox or wait for one to arrive + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Timeout milliseconds to wait for latest email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + System.Threading.Tasks.Task GetLatestEmailInInboxAsync(Guid inboxId, long timeoutMillis, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. + /// + /// + /// Get the newest email in an inbox or wait for one to arrive + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Timeout milliseconds to wait for latest email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + System.Threading.Tasks.Task> GetLatestEmailInInboxWithHttpInfoAsync(Guid inboxId, long timeoutMillis, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List Organization Inboxes Paginated + /// + /// + /// List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageOrganizationInboxProjection + [Obsolete] + System.Threading.Tasks.Task GetOrganizationInboxesAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List Organization Inboxes Paginated + /// + /// + /// List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageOrganizationInboxProjection) + [Obsolete] + System.Threading.Tasks.Task> GetOrganizationInboxesWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a scheduled email job + /// + /// + /// Get a scheduled email job details. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ScheduledJobDto + System.Threading.Tasks.Task GetScheduledJobAsync(Guid jobId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a scheduled email job + /// + /// + /// Get a scheduled email job details. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ScheduledJobDto) + System.Threading.Tasks.Task> GetScheduledJobWithHttpInfoAsync(Guid jobId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all scheduled email sending jobs for the inbox + /// + /// + /// Schedule sending of emails using scheduled jobs. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageScheduledJobs + System.Threading.Tasks.Task GetScheduledJobsByInboxIdAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all scheduled email sending jobs for the inbox + /// + /// + /// Schedule sending of emails using scheduled jobs. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageScheduledJobs) + System.Threading.Tasks.Task> GetScheduledJobsByInboxIdWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SmtpAccessDetails + System.Threading.Tasks.Task GetSmtpAccessAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SmtpAccessDetails) + System.Threading.Tasks.Task> GetSmtpAccessWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List inbox rulesets + /// + /// + /// List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxRulesetDto + System.Threading.Tasks.Task ListInboxRulesetsAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List inbox rulesets + /// + /// + /// List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxRulesetDto) + System.Threading.Tasks.Task> ListInboxRulesetsWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List inbox tracking pixels + /// + /// + /// List all tracking pixels sent from an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox tracking pixel list pagination (optional, default to 0) + /// Optional page size in inbox tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageTrackingPixelProjection + System.Threading.Tasks.Task ListInboxTrackingPixelsAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List inbox tracking pixels + /// + /// + /// List all tracking pixels sent from an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox tracking pixel list pagination (optional, default to 0) + /// Optional page size in inbox tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageTrackingPixelProjection) + System.Threading.Tasks.Task> ListInboxTrackingPixelsWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Search all inboxes and return matching inboxes + /// + /// + /// Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxProjection + System.Threading.Tasks.Task SearchInboxesAsync(SearchInboxesOptions searchInboxesOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Search all inboxes and return matching inboxes + /// + /// + /// Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxProjection) + System.Threading.Tasks.Task> SearchInboxesWithHttpInfoAsync(SearchInboxesOptions searchInboxesOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send Email + /// + /// + /// Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task SendEmailAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send Email + /// + /// + /// Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> SendEmailWithHttpInfoAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send email and return sent confirmation + /// + /// + /// Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + System.Threading.Tasks.Task SendEmailAndConfirmAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send email and return sent confirmation + /// + /// + /// Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + System.Threading.Tasks.Task> SendEmailAndConfirmWithHttpInfoAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send email with queue + /// + /// + /// Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// Validate before adding to queue + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task SendEmailWithQueueAsync(Guid inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send email with queue + /// + /// + /// Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// Validate before adding to queue + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> SendEmailWithQueueWithHttpInfoAsync(Guid inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send email using an SMTP mail envelope and message body and return sent confirmation + /// + /// + /// Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + System.Threading.Tasks.Task SendSmtpEnvelopeAsync(Guid inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send email using an SMTP mail envelope and message body and return sent confirmation + /// + /// + /// Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + System.Threading.Tasks.Task> SendSmtpEnvelopeWithHttpInfoAsync(Guid inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send a test email to inbox + /// + /// + /// Send an inbox a test email to test email receiving is working + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task SendTestEmailAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send a test email to inbox + /// + /// + /// Send an inbox a test email to test email receiving is working + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> SendTestEmailWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send email with with delay or schedule + /// + /// + /// Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Sending timestamp (optional) + /// Send after n seconds (optional) + /// Validate before adding to queue (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ScheduledJobDto + System.Threading.Tasks.Task SendWithScheduleAsync(Guid inboxId, SendEmailOptions sendEmailOptions, DateTime? sendAtTimestamp = default(DateTime?), long? sendAtNowPlusSeconds = default(long?), bool? validateBeforeEnqueue = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send email with with delay or schedule + /// + /// + /// Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Sending timestamp (optional) + /// Send after n seconds (optional) + /// Validate before adding to queue (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ScheduledJobDto) + System.Threading.Tasks.Task> SendWithScheduleWithHttpInfoAsync(Guid inboxId, SendEmailOptions sendEmailOptions, DateTime? sendAtTimestamp = default(DateTime?), long? sendAtNowPlusSeconds = default(long?), bool? validateBeforeEnqueue = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Set inbox favourited state + /// + /// + /// Set and return new favourite state for an inbox + /// + /// Thrown when fails to make API call + /// ID of inbox to set favourite state + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + System.Threading.Tasks.Task SetInboxFavouritedAsync(Guid inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Set inbox favourited state + /// + /// + /// Set and return new favourite state for an inbox + /// + /// Thrown when fails to make API call + /// ID of inbox to set favourite state + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + System.Threading.Tasks.Task> SetInboxFavouritedWithHttpInfoAsync(Guid inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Update IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task UpdateImapAccessAsync(UpdateImapAccessOptions updateImapAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Update IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateImapAccessWithHttpInfoAsync(UpdateImapAccessOptions updateImapAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Update Inbox. Change name and description. Email address is not editable. + /// + /// + /// Update editable fields on an inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + System.Threading.Tasks.Task UpdateInboxAsync(Guid inboxId, UpdateInboxOptions updateInboxOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update Inbox. Change name and description. Email address is not editable. + /// + /// + /// Update editable fields on an inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + System.Threading.Tasks.Task> UpdateInboxWithHttpInfoAsync(Guid inboxId, UpdateInboxOptions updateInboxOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Update SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task UpdateSmtpAccessAsync(UpdateSmtpAccessOptions updateSmtpAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Update SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateSmtpAccessWithHttpInfoAsync(UpdateSmtpAccessOptions updateSmtpAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxControllerApi : IInboxControllerApiSync, IInboxControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class InboxControllerApi : IInboxControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public InboxControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public InboxControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public InboxControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public InboxControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Cancel a scheduled email job Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ScheduledJobDto + public ScheduledJobDto CancelScheduledJob(Guid jobId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CancelScheduledJobWithHttpInfo(jobId); + return localVarResponse.Data; + } + + /// + /// Cancel a scheduled email job Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ScheduledJobDto + public mailslurp_netstandard_2x.Client.ApiResponse CancelScheduledJobWithHttpInfo(Guid jobId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("jobId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(jobId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.CancelScheduledJob"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/inboxes/scheduled-jobs/{jobId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CancelScheduledJob", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Cancel a scheduled email job Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ScheduledJobDto + public async System.Threading.Tasks.Task CancelScheduledJobAsync(Guid jobId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CancelScheduledJobWithHttpInfoAsync(jobId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Cancel a scheduled email job Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ScheduledJobDto) + public async System.Threading.Tasks.Task> CancelScheduledJobWithHttpInfoAsync(Guid jobId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("jobId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(jobId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.CancelScheduledJob"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/inboxes/scheduled-jobs/{jobId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CancelScheduledJob", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. + /// + /// Thrown when fails to make API call + /// A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) + /// Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) + /// Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) + /// Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) + /// Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) + /// Number of milliseconds that inbox should exist for (optional) + /// DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) + /// HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) + /// Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) + /// Use a shorter email address under 31 characters (optional) + /// ID of custom domain to use for email address. (optional) + /// FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) + /// Prefix to add before the email address for easier labelling or identification. (optional) + /// Index associated with the operation. + /// InboxDto + public InboxDto CreateInbox(string emailAddress = default(string), List tags = default(List), string name = default(string), string description = default(string), bool? useDomainPool = default(bool?), bool? favourite = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), bool? allowTeamAccess = default(bool?), string inboxType = default(string), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), Guid? domainId = default(Guid?), string domainName = default(string), string prefix = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateInboxWithHttpInfo(emailAddress, tags, name, description, useDomainPool, favourite, expiresAt, expiresIn, allowTeamAccess, inboxType, virtualInbox, useShortAddress, domainId, domainName, prefix); + return localVarResponse.Data; + } + + /// + /// Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. + /// + /// Thrown when fails to make API call + /// A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) + /// Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) + /// Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) + /// Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) + /// Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) + /// Number of milliseconds that inbox should exist for (optional) + /// DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) + /// HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) + /// Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) + /// Use a shorter email address under 31 characters (optional) + /// ID of custom domain to use for email address. (optional) + /// FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) + /// Prefix to add before the email address for easier labelling or identification. (optional) + /// Index associated with the operation. + /// ApiResponse of InboxDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateInboxWithHttpInfo(string emailAddress = default(string), List tags = default(List), string name = default(string), string description = default(string), bool? useDomainPool = default(bool?), bool? favourite = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), bool? allowTeamAccess = default(bool?), string inboxType = default(string), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), Guid? domainId = default(Guid?), string domainName = default(string), string prefix = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (emailAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + } + if (tags != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "tags", tags)); + } + if (name != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + } + if (description != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "description", description)); + } + if (useDomainPool != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useDomainPool", useDomainPool)); + } + if (favourite != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "favourite", favourite)); + } + if (expiresAt != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresAt", expiresAt)); + } + if (expiresIn != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresIn", expiresIn)); + } + if (allowTeamAccess != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "allowTeamAccess", allowTeamAccess)); + } + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + if (virtualInbox != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "virtualInbox", virtualInbox)); + } + if (useShortAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useShortAddress", useShortAddress)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + if (domainName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainName", domainName)); + } + if (prefix != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "prefix", prefix)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.CreateInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. + /// + /// Thrown when fails to make API call + /// A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) + /// Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) + /// Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) + /// Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) + /// Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) + /// Number of milliseconds that inbox should exist for (optional) + /// DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) + /// HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) + /// Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) + /// Use a shorter email address under 31 characters (optional) + /// ID of custom domain to use for email address. (optional) + /// FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) + /// Prefix to add before the email address for easier labelling or identification. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + public async System.Threading.Tasks.Task CreateInboxAsync(string emailAddress = default(string), List tags = default(List), string name = default(string), string description = default(string), bool? useDomainPool = default(bool?), bool? favourite = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), bool? allowTeamAccess = default(bool?), string inboxType = default(string), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), Guid? domainId = default(Guid?), string domainName = default(string), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateInboxWithHttpInfoAsync(emailAddress, tags, name, description, useDomainPool, favourite, expiresAt, expiresIn, allowTeamAccess, inboxType, virtualInbox, useShortAddress, domainId, domainName, prefix, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. + /// + /// Thrown when fails to make API call + /// A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) + /// Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) + /// Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) + /// Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) + /// Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) + /// Number of milliseconds that inbox should exist for (optional) + /// DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) + /// HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) + /// Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) + /// Use a shorter email address under 31 characters (optional) + /// ID of custom domain to use for email address. (optional) + /// FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) + /// Prefix to add before the email address for easier labelling or identification. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + public async System.Threading.Tasks.Task> CreateInboxWithHttpInfoAsync(string emailAddress = default(string), List tags = default(List), string name = default(string), string description = default(string), bool? useDomainPool = default(bool?), bool? favourite = default(bool?), DateTime? expiresAt = default(DateTime?), long? expiresIn = default(long?), bool? allowTeamAccess = default(bool?), string inboxType = default(string), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), Guid? domainId = default(Guid?), string domainName = default(string), string prefix = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (emailAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + } + if (tags != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("multi", "tags", tags)); + } + if (name != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + } + if (description != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "description", description)); + } + if (useDomainPool != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useDomainPool", useDomainPool)); + } + if (favourite != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "favourite", favourite)); + } + if (expiresAt != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresAt", expiresAt)); + } + if (expiresIn != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expiresIn", expiresIn)); + } + if (allowTeamAccess != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "allowTeamAccess", allowTeamAccess)); + } + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + if (virtualInbox != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "virtualInbox", virtualInbox)); + } + if (useShortAddress != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "useShortAddress", useShortAddress)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + if (domainName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainName", domainName)); + } + if (prefix != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "prefix", prefix)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.CreateInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// inboxId + /// + /// Index associated with the operation. + /// InboxRulesetDto + public InboxRulesetDto CreateInboxRuleset(Guid inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateInboxRulesetWithHttpInfo(inboxId, createInboxRulesetOptions); + return localVarResponse.Data; + } + + /// + /// Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// inboxId + /// + /// Index associated with the operation. + /// ApiResponse of InboxRulesetDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateInboxRulesetWithHttpInfo(Guid inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, int operationIndex = 0) + { + // verify the required parameter 'createInboxRulesetOptions' is set + if (createInboxRulesetOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxRulesetOptions' when calling InboxControllerApi->CreateInboxRuleset"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = createInboxRulesetOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.CreateInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes/{inboxId}/rulesets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// inboxId + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetDto + public async System.Threading.Tasks.Task CreateInboxRulesetAsync(Guid inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateInboxRulesetWithHttpInfoAsync(inboxId, createInboxRulesetOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// inboxId + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetDto) + public async System.Threading.Tasks.Task> CreateInboxRulesetWithHttpInfoAsync(Guid inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createInboxRulesetOptions' is set + if (createInboxRulesetOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxRulesetOptions' when calling InboxControllerApi->CreateInboxRuleset"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = createInboxRulesetOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.CreateInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes/{inboxId}/rulesets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox with default options. Uses MailSlurp domain pool address and is private. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// InboxDto + public InboxDto CreateInboxWithDefaults(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateInboxWithDefaultsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Create an inbox with default options. Uses MailSlurp domain pool address and is private. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of InboxDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateInboxWithDefaultsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.CreateInboxWithDefaults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes/withDefaults", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateInboxWithDefaults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox with default options. Uses MailSlurp domain pool address and is private. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + public async System.Threading.Tasks.Task CreateInboxWithDefaultsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateInboxWithDefaultsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create an inbox with default options. Uses MailSlurp domain pool address and is private. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + public async System.Threading.Tasks.Task> CreateInboxWithDefaultsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.CreateInboxWithDefaults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes/withDefaults", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateInboxWithDefaults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox with options. Extended options for inbox creation. Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxDto + public InboxDto CreateInboxWithOptions(CreateInboxDto createInboxDto, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateInboxWithOptionsWithHttpInfo(createInboxDto); + return localVarResponse.Data; + } + + /// + /// Create an inbox with options. Extended options for inbox creation. Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateInboxWithOptionsWithHttpInfo(CreateInboxDto createInboxDto, int operationIndex = 0) + { + // verify the required parameter 'createInboxDto' is set + if (createInboxDto == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxDto' when calling InboxControllerApi->CreateInboxWithOptions"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createInboxDto; + + localVarRequestOptions.Operation = "InboxControllerApi.CreateInboxWithOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes/withOptions", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateInboxWithOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox with options. Extended options for inbox creation. Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + public async System.Threading.Tasks.Task CreateInboxWithOptionsAsync(CreateInboxDto createInboxDto, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateInboxWithOptionsWithHttpInfoAsync(createInboxDto, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create an inbox with options. Extended options for inbox creation. Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + public async System.Threading.Tasks.Task> CreateInboxWithOptionsWithHttpInfoAsync(CreateInboxDto createInboxDto, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createInboxDto' is set + if (createInboxDto == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxDto' when calling InboxControllerApi->CreateInboxWithOptions"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createInboxDto; + + localVarRequestOptions.Operation = "InboxControllerApi.CreateInboxWithOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes/withOptions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateInboxWithOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all emails in a given inboxes. Deletes all emails in an inbox. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteAllInboxEmails(Guid inboxId, int operationIndex = 0) + { + DeleteAllInboxEmailsWithHttpInfo(inboxId); + } + + /// + /// Delete all emails in a given inboxes. Deletes all emails in an inbox. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAllInboxEmailsWithHttpInfo(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteAllInboxEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/inboxes/{inboxId}/deleteAllInboxEmails", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllInboxEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all emails in a given inboxes. Deletes all emails in an inbox. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAllInboxEmailsAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAllInboxEmailsWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete all emails in a given inboxes. Deletes all emails in an inbox. Be careful as emails cannot be recovered + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAllInboxEmailsWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteAllInboxEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/inboxes/{inboxId}/deleteAllInboxEmails", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllInboxEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all inboxes Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + public void DeleteAllInboxes(int operationIndex = 0) + { + DeleteAllInboxesWithHttpInfo(); + } + + /// + /// Delete all inboxes Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAllInboxesWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteAllInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/inboxes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all inboxes Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAllInboxesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAllInboxesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete all inboxes Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAllInboxesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteAllInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/inboxes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inboxes by description Permanently delete all inboxes by description + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteAllInboxesByDescription(string description, int operationIndex = 0) + { + DeleteAllInboxesByDescriptionWithHttpInfo(description); + } + + /// + /// Delete inboxes by description Permanently delete all inboxes by description + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAllInboxesByDescriptionWithHttpInfo(string description, int operationIndex = 0) + { + // verify the required parameter 'description' is set + if (description == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'description' when calling InboxControllerApi->DeleteAllInboxesByDescription"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "description", description)); + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteAllInboxesByDescription"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/inboxes/by-description", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllInboxesByDescription", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inboxes by description Permanently delete all inboxes by description + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAllInboxesByDescriptionAsync(string description, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAllInboxesByDescriptionWithHttpInfoAsync(description, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete inboxes by description Permanently delete all inboxes by description + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAllInboxesByDescriptionWithHttpInfoAsync(string description, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'description' is set + if (description == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'description' when calling InboxControllerApi->DeleteAllInboxesByDescription"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "description", description)); + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteAllInboxesByDescription"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/inboxes/by-description", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllInboxesByDescription", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inboxes by name Permanently delete all inboxes by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteAllInboxesByName(string name, int operationIndex = 0) + { + DeleteAllInboxesByNameWithHttpInfo(name); + } + + /// + /// Delete inboxes by name Permanently delete all inboxes by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAllInboxesByNameWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'name' when calling InboxControllerApi->DeleteAllInboxesByName"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteAllInboxesByName"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/inboxes/by-name", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllInboxesByName", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inboxes by name Permanently delete all inboxes by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAllInboxesByNameAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAllInboxesByNameWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete inboxes by name Permanently delete all inboxes by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAllInboxesByNameWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'name' when calling InboxControllerApi->DeleteAllInboxesByName"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteAllInboxesByName"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/inboxes/by-name", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllInboxesByName", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inboxes by tag Permanently delete all inboxes by tag + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteAllInboxesByTag(string tag, int operationIndex = 0) + { + DeleteAllInboxesByTagWithHttpInfo(tag); + } + + /// + /// Delete inboxes by tag Permanently delete all inboxes by tag + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAllInboxesByTagWithHttpInfo(string tag, int operationIndex = 0) + { + // verify the required parameter 'tag' is set + if (tag == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'tag' when calling InboxControllerApi->DeleteAllInboxesByTag"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "tag", tag)); + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteAllInboxesByTag"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/inboxes/by-tag", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllInboxesByTag", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inboxes by tag Permanently delete all inboxes by tag + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAllInboxesByTagAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAllInboxesByTagWithHttpInfoAsync(tag, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete inboxes by tag Permanently delete all inboxes by tag + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAllInboxesByTagWithHttpInfoAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'tag' is set + if (tag == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'tag' when calling InboxControllerApi->DeleteAllInboxesByTag"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "tag", tag)); + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteAllInboxesByTag"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/inboxes/by-tag", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllInboxesByTag", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inbox Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteInbox(Guid inboxId, int operationIndex = 0) + { + DeleteInboxWithHttpInfo(inboxId); + } + + /// + /// Delete inbox Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteInboxWithHttpInfo(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/inboxes/{inboxId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inbox Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteInboxAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteInboxWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete inbox Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteInboxWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.DeleteInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/inboxes/{inboxId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Does inbox exist Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses + /// + /// Thrown when fails to make API call + /// Email address + /// (optional) + /// Index associated with the operation. + /// InboxExistsDto + public InboxExistsDto DoesInboxExist(string emailAddress, bool? allowCatchAll = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = DoesInboxExistWithHttpInfo(emailAddress, allowCatchAll); + return localVarResponse.Data; + } + + /// + /// Does inbox exist Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses + /// + /// Thrown when fails to make API call + /// Email address + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InboxExistsDto + public mailslurp_netstandard_2x.Client.ApiResponse DoesInboxExistWithHttpInfo(string emailAddress, bool? allowCatchAll = default(bool?), int operationIndex = 0) + { + // verify the required parameter 'emailAddress' is set + if (emailAddress == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'emailAddress' when calling InboxControllerApi->DoesInboxExist"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + if (allowCatchAll != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "allowCatchAll", allowCatchAll)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.DoesInboxExist"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/exists", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DoesInboxExist", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Does inbox exist Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses + /// + /// Thrown when fails to make API call + /// Email address + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxExistsDto + public async System.Threading.Tasks.Task DoesInboxExistAsync(string emailAddress, bool? allowCatchAll = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await DoesInboxExistWithHttpInfoAsync(emailAddress, allowCatchAll, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Does inbox exist Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses + /// + /// Thrown when fails to make API call + /// Email address + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxExistsDto) + public async System.Threading.Tasks.Task> DoesInboxExistWithHttpInfoAsync(string emailAddress, bool? allowCatchAll = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'emailAddress' is set + if (emailAddress == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'emailAddress' when calling InboxControllerApi->DoesInboxExist"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + if (allowCatchAll != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "allowCatchAll", allowCatchAll)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.DoesInboxExist"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/exists", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DoesInboxExist", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Remove expired inboxes Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) + /// + /// Thrown when fails to make API call + /// Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) + /// Index associated with the operation. + /// FlushExpiredInboxesResult + public FlushExpiredInboxesResult FlushExpired(DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = FlushExpiredWithHttpInfo(before); + return localVarResponse.Data; + } + + /// + /// Remove expired inboxes Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) + /// + /// Thrown when fails to make API call + /// Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) + /// Index associated with the operation. + /// ApiResponse of FlushExpiredInboxesResult + public mailslurp_netstandard_2x.Client.ApiResponse FlushExpiredWithHttpInfo(DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.FlushExpired"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/inboxes/expired", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("FlushExpired", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Remove expired inboxes Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) + /// + /// Thrown when fails to make API call + /// Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of FlushExpiredInboxesResult + public async System.Threading.Tasks.Task FlushExpiredAsync(DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await FlushExpiredWithHttpInfoAsync(before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Remove expired inboxes Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) + /// + /// Thrown when fails to make API call + /// Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (FlushExpiredInboxesResult) + public async System.Threading.Tasks.Task> FlushExpiredWithHttpInfoAsync(DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.FlushExpired"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/inboxes/expired", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("FlushExpired", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List All Inboxes Paginated List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// PageInboxProjection + public PageInboxProjection GetAllInboxes(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllInboxesWithHttpInfo(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId); + return localVarResponse.Data; + } + + /// + /// List All Inboxes Paginated List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAllInboxesWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (favourite != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "favourite", favourite)); + } + if (search != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "search", search)); + } + if (tag != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "tag", tag)); + } + if (teamAccess != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "teamAccess", teamAccess)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + if (inboxFunction != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxFunction", inboxFunction)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetAllInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List All Inboxes Paginated List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxProjection + public async System.Threading.Tasks.Task GetAllInboxesAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllInboxesWithHttpInfoAsync(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List All Inboxes Paginated List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxProjection) + public async System.Threading.Tasks.Task> GetAllInboxesWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (favourite != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "favourite", favourite)); + } + if (search != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "search", search)); + } + if (tag != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "tag", tag)); + } + if (teamAccess != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "teamAccess", teamAccess)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + if (inboxFunction != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxFunction", inboxFunction)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetAllInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List All Inboxes Offset Paginated List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// PageInboxProjection + public PageInboxProjection GetAllInboxesOffsetPaginated(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllInboxesOffsetPaginatedWithHttpInfo(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId); + return localVarResponse.Data; + } + + /// + /// List All Inboxes Offset Paginated List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAllInboxesOffsetPaginatedWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (favourite != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "favourite", favourite)); + } + if (search != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "search", search)); + } + if (tag != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "tag", tag)); + } + if (teamAccess != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "teamAccess", teamAccess)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + if (inboxFunction != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxFunction", inboxFunction)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetAllInboxesOffsetPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/offset-paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllInboxesOffsetPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List All Inboxes Offset Paginated List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxProjection + public async System.Threading.Tasks.Task GetAllInboxesOffsetPaginatedAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllInboxesOffsetPaginatedWithHttpInfoAsync(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List All Inboxes Offset Paginated List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optionally filter results for favourites only (optional, default to false) + /// Optionally filter by search words partial matching ID, tags, name, and email address (optional) + /// Optionally filter by tags. Will return inboxes that include given tags (optional) + /// DEPRECATED. Optionally filter by team access. (optional) (deprecated) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Optional filter by inbox type (optional) + /// Optional filter by inbox function (optional) + /// Optional domain ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxProjection) + public async System.Threading.Tasks.Task> GetAllInboxesOffsetPaginatedWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), bool? favourite = default(bool?), string search = default(string), string tag = default(string), bool? teamAccess = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string inboxType = default(string), string inboxFunction = default(string), Guid? domainId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (favourite != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "favourite", favourite)); + } + if (search != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "search", search)); + } + if (tag != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "tag", tag)); + } + if (teamAccess != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "teamAccess", teamAccess)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (inboxType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxType", inboxType)); + } + if (inboxFunction != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxFunction", inboxFunction)); + } + if (domainId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "domainId", domainId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetAllInboxesOffsetPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/offset-paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllInboxesOffsetPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all scheduled email sending jobs for account Schedule sending of emails using scheduled jobs. These can be inbox or account level. + /// + /// Thrown when fails to make API call + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageScheduledJobs + public PageScheduledJobs GetAllScheduledJobs(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllScheduledJobsWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get all scheduled email sending jobs for account Schedule sending of emails using scheduled jobs. These can be inbox or account level. + /// + /// Thrown when fails to make API call + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageScheduledJobs + public mailslurp_netstandard_2x.Client.ApiResponse GetAllScheduledJobsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetAllScheduledJobs"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/scheduled-jobs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllScheduledJobs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all scheduled email sending jobs for account Schedule sending of emails using scheduled jobs. These can be inbox or account level. + /// + /// Thrown when fails to make API call + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageScheduledJobs + public async System.Threading.Tasks.Task GetAllScheduledJobsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllScheduledJobsWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all scheduled email sending jobs for account Schedule sending of emails using scheduled jobs. These can be inbox or account level. + /// + /// Thrown when fails to make API call + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageScheduledJobs) + public async System.Threading.Tasks.Task> GetAllScheduledJobsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetAllScheduledJobs"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/scheduled-jobs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllScheduledJobs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all email delivery statuses for an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageDeliveryStatus + [Obsolete] + public PageDeliveryStatus GetDeliveryStatusesByInboxId(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetDeliveryStatusesByInboxIdWithHttpInfo(inboxId, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get all email delivery statuses for an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageDeliveryStatus + [Obsolete] + public mailslurp_netstandard_2x.Client.ApiResponse GetDeliveryStatusesByInboxIdWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetDeliveryStatusesByInboxId"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/{inboxId}/delivery-status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDeliveryStatusesByInboxId", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all email delivery statuses for an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageDeliveryStatus + [Obsolete] + public async System.Threading.Tasks.Task GetDeliveryStatusesByInboxIdAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetDeliveryStatusesByInboxIdWithHttpInfoAsync(inboxId, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all email delivery statuses for an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageDeliveryStatus) + [Obsolete] + public async System.Threading.Tasks.Task> GetDeliveryStatusesByInboxIdWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetDeliveryStatusesByInboxId"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/{inboxId}/delivery-status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDeliveryStatusesByInboxId", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Alias for limit. Assessed first before assessing any passed limit. (optional) + /// Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) + /// Sort the results by received date and direction ASC or DESC (optional) + /// Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) + /// (optional) + /// Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) + /// (optional) + /// Exclude emails received after this ISO 8601 date time (optional) + /// Exclude emails received before this ISO 8601 date time (optional) + /// Index associated with the operation. + /// List<EmailPreview> + public List GetEmails(Guid inboxId, int? size = default(int?), int? limit = default(int?), string sort = default(string), long? retryTimeout = default(long?), long? delayTimeout = default(long?), long? minCount = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetEmailsWithHttpInfo(inboxId, size, limit, sort, retryTimeout, delayTimeout, minCount, unreadOnly, before, since); + return localVarResponse.Data; + } + + /// + /// Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Alias for limit. Assessed first before assessing any passed limit. (optional) + /// Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) + /// Sort the results by received date and direction ASC or DESC (optional) + /// Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) + /// (optional) + /// Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) + /// (optional) + /// Exclude emails received after this ISO 8601 date time (optional) + /// Exclude emails received before this ISO 8601 date time (optional) + /// Index associated with the operation. + /// ApiResponse of List<EmailPreview> + public mailslurp_netstandard_2x.Client.ApiResponse> GetEmailsWithHttpInfo(Guid inboxId, int? size = default(int?), int? limit = default(int?), string sort = default(string), long? retryTimeout = default(long?), long? delayTimeout = default(long?), long? minCount = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (retryTimeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "retryTimeout", retryTimeout)); + } + if (delayTimeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delayTimeout", delayTimeout)); + } + if (minCount != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "minCount", minCount)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/inboxes/{inboxId}/emails", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Alias for limit. Assessed first before assessing any passed limit. (optional) + /// Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) + /// Sort the results by received date and direction ASC or DESC (optional) + /// Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) + /// (optional) + /// Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) + /// (optional) + /// Exclude emails received after this ISO 8601 date time (optional) + /// Exclude emails received before this ISO 8601 date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<EmailPreview> + public async System.Threading.Tasks.Task> GetEmailsAsync(Guid inboxId, int? size = default(int?), int? limit = default(int?), string sort = default(string), long? retryTimeout = default(long?), long? delayTimeout = default(long?), long? minCount = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetEmailsWithHttpInfoAsync(inboxId, size, limit, sort, retryTimeout, delayTimeout, minCount, unreadOnly, before, since, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Alias for limit. Assessed first before assessing any passed limit. (optional) + /// Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) + /// Sort the results by received date and direction ASC or DESC (optional) + /// Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) + /// (optional) + /// Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) + /// (optional) + /// Exclude emails received after this ISO 8601 date time (optional) + /// Exclude emails received before this ISO 8601 date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<EmailPreview>) + public async System.Threading.Tasks.Task>> GetEmailsWithHttpInfoAsync(Guid inboxId, int? size = default(int?), int? limit = default(int?), string sort = default(string), long? retryTimeout = default(long?), long? delayTimeout = default(long?), long? minCount = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (retryTimeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "retryTimeout", retryTimeout)); + } + if (delayTimeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delayTimeout", delayTimeout)); + } + if (minCount != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "minCount", minCount)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/inboxes/{inboxId}/emails", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ImapAccessDetails + public ImapAccessDetails GetImapAccess(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetImapAccessWithHttpInfo(inboxId); + return localVarResponse.Data; + } + + /// + /// Get IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of ImapAccessDetails + public mailslurp_netstandard_2x.Client.ApiResponse GetImapAccessWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetImapAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/imap-access", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetImapAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapAccessDetails + public async System.Threading.Tasks.Task GetImapAccessAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetImapAccessWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapAccessDetails) + public async System.Threading.Tasks.Task> GetImapAccessWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetImapAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/imap-access", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetImapAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get IMAP and SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ImapSmtpAccessDetails + public ImapSmtpAccessDetails GetImapSmtpAccess(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetImapSmtpAccessWithHttpInfo(inboxId); + return localVarResponse.Data; + } + + /// + /// Get IMAP and SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of ImapSmtpAccessDetails + public mailslurp_netstandard_2x.Client.ApiResponse GetImapSmtpAccessWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetImapSmtpAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/imap-smtp-access", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetImapSmtpAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get IMAP and SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapSmtpAccessDetails + public async System.Threading.Tasks.Task GetImapSmtpAccessAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetImapSmtpAccessWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get IMAP and SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapSmtpAccessDetails) + public async System.Threading.Tasks.Task> GetImapSmtpAccessWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetImapSmtpAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/imap-smtp-access", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetImapSmtpAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get IMAP and SMTP access details in .env format + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// string + public string GetImapSmtpAccessEnv(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetImapSmtpAccessEnvWithHttpInfo(inboxId); + return localVarResponse.Data; + } + + /// + /// Get IMAP and SMTP access details in .env format + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of string + public mailslurp_netstandard_2x.Client.ApiResponse GetImapSmtpAccessEnvWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetImapSmtpAccessEnv"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/imap-smtp-access/env", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetImapSmtpAccessEnv", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get IMAP and SMTP access details in .env format + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + public async System.Threading.Tasks.Task GetImapSmtpAccessEnvAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetImapSmtpAccessEnvWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get IMAP and SMTP access details in .env format + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> GetImapSmtpAccessEnvWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetImapSmtpAccessEnv"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/imap-smtp-access/env", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetImapSmtpAccessEnv", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get IMAP and SMTP server hosts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ImapSmtpAccessServers + public ImapSmtpAccessServers GetImapSmtpAccessServers(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetImapSmtpAccessServersWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get IMAP and SMTP server hosts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of ImapSmtpAccessServers + public mailslurp_netstandard_2x.Client.ApiResponse GetImapSmtpAccessServersWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.GetImapSmtpAccessServers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/imap-smtp-access/servers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetImapSmtpAccessServers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get IMAP and SMTP server hosts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ImapSmtpAccessServers + public async System.Threading.Tasks.Task GetImapSmtpAccessServersAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetImapSmtpAccessServersWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get IMAP and SMTP server hosts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ImapSmtpAccessServers) + public async System.Threading.Tasks.Task> GetImapSmtpAccessServersWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.GetImapSmtpAccessServers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/imap-smtp-access/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetImapSmtpAccessServers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get Inbox. Returns properties of an inbox. Returns an inbox's properties, including its email address and ID. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxDto + public InboxDto GetInbox(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxWithHttpInfo(inboxId); + return localVarResponse.Data; + } + + /// + /// Get Inbox. Returns properties of an inbox. Returns an inbox's properties, including its email address and ID. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxDto + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxWithHttpInfo(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.GetInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/{inboxId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get Inbox. Returns properties of an inbox. Returns an inbox's properties, including its email address and ID. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + public async System.Threading.Tasks.Task GetInboxAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get Inbox. Returns properties of an inbox. Returns an inbox's properties, including its email address and ID. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + public async System.Threading.Tasks.Task> GetInboxWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.GetInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/{inboxId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Search for an inbox with the provided email address Get a inbox result by email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxByEmailAddressResult + public InboxByEmailAddressResult GetInboxByEmailAddress(string emailAddress, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxByEmailAddressWithHttpInfo(emailAddress); + return localVarResponse.Data; + } + + /// + /// Search for an inbox with the provided email address Get a inbox result by email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxByEmailAddressResult + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxByEmailAddressWithHttpInfo(string emailAddress, int operationIndex = 0) + { + // verify the required parameter 'emailAddress' is set + if (emailAddress == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'emailAddress' when calling InboxControllerApi->GetInboxByEmailAddress"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxByEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/byEmailAddress", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxByEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Search for an inbox with the provided email address Get a inbox result by email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxByEmailAddressResult + public async System.Threading.Tasks.Task GetInboxByEmailAddressAsync(string emailAddress, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxByEmailAddressWithHttpInfoAsync(emailAddress, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Search for an inbox with the provided email address Get a inbox result by email address + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxByEmailAddressResult) + public async System.Threading.Tasks.Task> GetInboxByEmailAddressWithHttpInfoAsync(string emailAddress, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'emailAddress' is set + if (emailAddress == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'emailAddress' when calling InboxControllerApi->GetInboxByEmailAddress"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxByEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/byEmailAddress", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxByEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Search for an inbox with the given name Get a inbox result by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxByNameResult + public InboxByNameResult GetInboxByName(string name, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxByNameWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// Search for an inbox with the given name Get a inbox result by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxByNameResult + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxByNameWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'name' when calling InboxControllerApi->GetInboxByName"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxByName"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/byName", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxByName", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Search for an inbox with the given name Get a inbox result by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxByNameResult + public async System.Threading.Tasks.Task GetInboxByNameAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxByNameWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Search for an inbox with the given name Get a inbox result by name + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxByNameResult) + public async System.Threading.Tasks.Task> GetInboxByNameWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'name' when calling InboxControllerApi->GetInboxByName"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxByName"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/byName", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxByName", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get total inbox count + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// CountDto + public CountDto GetInboxCount(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxCountWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get total inbox count + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of CountDto + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxCountWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/count", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get total inbox count + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CountDto + public async System.Threading.Tasks.Task GetInboxCountAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxCountWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get total inbox count + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CountDto) + public async System.Threading.Tasks.Task> GetInboxCountWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/count", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email count in inbox + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Index associated with the operation. + /// CountDto + public CountDto GetInboxEmailCount(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxEmailCountWithHttpInfo(inboxId); + return localVarResponse.Data; + } + + /// + /// Get email count in inbox + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Index associated with the operation. + /// ApiResponse of CountDto + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxEmailCountWithHttpInfo(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxEmailCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/{inboxId}/emails/count", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxEmailCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get email count in inbox + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CountDto + public async System.Threading.Tasks.Task GetInboxEmailCountAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxEmailCountWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get email count in inbox + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CountDto) + public async System.Threading.Tasks.Task> GetInboxEmailCountWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxEmailCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/{inboxId}/emails/count", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxEmailCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get inbox emails paginated Get a paginated list of emails in an inbox. Does not hold connections open. + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Optional page index in inbox emails list pagination (optional, default to 0) + /// Optional page size in inbox emails list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by received after given date time (optional) + /// Optional filter by received before given date time (optional) + /// Index associated with the operation. + /// PageEmailPreview + public PageEmailPreview GetInboxEmailsPaginated(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxEmailsPaginatedWithHttpInfo(inboxId, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get inbox emails paginated Get a paginated list of emails in an inbox. Does not hold connections open. + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Optional page index in inbox emails list pagination (optional, default to 0) + /// Optional page size in inbox emails list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by received after given date time (optional) + /// Optional filter by received before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageEmailPreview + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxEmailsPaginatedWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxEmailsPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/{inboxId}/emails/paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxEmailsPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get inbox emails paginated Get a paginated list of emails in an inbox. Does not hold connections open. + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Optional page index in inbox emails list pagination (optional, default to 0) + /// Optional page size in inbox emails list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by received after given date time (optional) + /// Optional filter by received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageEmailPreview + public async System.Threading.Tasks.Task GetInboxEmailsPaginatedAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxEmailsPaginatedWithHttpInfoAsync(inboxId, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get inbox emails paginated Get a paginated list of emails in an inbox. Does not hold connections open. + /// + /// Thrown when fails to make API call + /// Id of inbox that emails belongs to + /// Optional page index in inbox emails list pagination (optional, default to 0) + /// Optional page size in inbox emails list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by received after given date time (optional) + /// Optional filter by received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageEmailPreview) + public async System.Threading.Tasks.Task> GetInboxEmailsPaginatedWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxEmailsPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/{inboxId}/emails/paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxEmailsPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all inbox IDs Get list of inbox IDs + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// InboxIdsResult + [Obsolete] + public InboxIdsResult GetInboxIds(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxIdsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get all inbox IDs Get list of inbox IDs + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of InboxIdsResult + [Obsolete] + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxIdsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxIds"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/ids", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxIds", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all inbox IDs Get list of inbox IDs + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxIdsResult + [Obsolete] + public async System.Threading.Tasks.Task GetInboxIdsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxIdsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all inbox IDs Get list of inbox IDs + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxIdsResult) + [Obsolete] + public async System.Threading.Tasks.Task> GetInboxIdsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxIds"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/ids", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxIds", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get Inbox Sent Emails Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional sent email search (optional) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// PageSentEmailProjection + [Obsolete] + public PageSentEmailProjection GetInboxSentEmails(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxSentEmailsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// Get Inbox Sent Emails Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional sent email search (optional) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageSentEmailProjection + [Obsolete] + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxSentEmailsWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxSentEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/{inboxId}/sent", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxSentEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get Inbox Sent Emails Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional sent email search (optional) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageSentEmailProjection + [Obsolete] + public async System.Threading.Tasks.Task GetInboxSentEmailsAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxSentEmailsWithHttpInfoAsync(inboxId, page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get Inbox Sent Emails Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional sent email search (optional) + /// Optional filter by sent after given date time (optional) + /// Optional filter by sent before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageSentEmailProjection) + [Obsolete] + public async System.Threading.Tasks.Task> GetInboxSentEmailsWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxSentEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/{inboxId}/sent", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxSentEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get inbox tags Get all inbox tags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<string> + [Obsolete] + public List GetInboxTags(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetInboxTagsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get inbox tags Get all inbox tags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<string> + [Obsolete] + public mailslurp_netstandard_2x.Client.ApiResponse> GetInboxTagsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxTags"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/inboxes/tags", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxTags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get inbox tags Get all inbox tags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<string> + [Obsolete] + public async System.Threading.Tasks.Task> GetInboxTagsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetInboxTagsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get inbox tags Get all inbox tags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<string>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetInboxTagsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxTags"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/inboxes/tags", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxTags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List Inboxes and email addresses List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. + /// + /// Thrown when fails to make API call + /// Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by created after given date time (optional) + /// Optional exclude catch all inboxes (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// List<InboxDto> + [Obsolete] + public List GetInboxes(int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), bool? excludeCatchAllInboxes = default(bool?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetInboxesWithHttpInfo(size, sort, since, excludeCatchAllInboxes, before); + return localVarResponse.Data; + } + + /// + /// List Inboxes and email addresses List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. + /// + /// Thrown when fails to make API call + /// Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by created after given date time (optional) + /// Optional exclude catch all inboxes (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of List<InboxDto> + [Obsolete] + public mailslurp_netstandard_2x.Client.ApiResponse> GetInboxesWithHttpInfo(int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), bool? excludeCatchAllInboxes = default(bool?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (excludeCatchAllInboxes != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "excludeCatchAllInboxes", excludeCatchAllInboxes)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/inboxes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List Inboxes and email addresses List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. + /// + /// Thrown when fails to make API call + /// Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by created after given date time (optional) + /// Optional exclude catch all inboxes (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<InboxDto> + [Obsolete] + public async System.Threading.Tasks.Task> GetInboxesAsync(int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), bool? excludeCatchAllInboxes = default(bool?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetInboxesWithHttpInfoAsync(size, sort, since, excludeCatchAllInboxes, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List Inboxes and email addresses List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. + /// + /// Thrown when fails to make API call + /// Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter by created after given date time (optional) + /// Optional exclude catch all inboxes (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<InboxDto>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetInboxesWithHttpInfoAsync(int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), bool? excludeCatchAllInboxes = default(bool?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (excludeCatchAllInboxes != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "excludeCatchAllInboxes", excludeCatchAllInboxes)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/inboxes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. Get the newest email in an inbox or wait for one to arrive + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Timeout milliseconds to wait for latest email + /// Index associated with the operation. + /// Email + public Email GetLatestEmailInInbox(Guid inboxId, long timeoutMillis, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetLatestEmailInInboxWithHttpInfo(inboxId, timeoutMillis); + return localVarResponse.Data; + } + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. Get the newest email in an inbox or wait for one to arrive + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Timeout milliseconds to wait for latest email + /// Index associated with the operation. + /// ApiResponse of Email + public mailslurp_netstandard_2x.Client.ApiResponse GetLatestEmailInInboxWithHttpInfo(Guid inboxId, long timeoutMillis, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeoutMillis", timeoutMillis)); + + localVarRequestOptions.Operation = "InboxControllerApi.GetLatestEmailInInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/getLatestEmail", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLatestEmailInInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. Get the newest email in an inbox or wait for one to arrive + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Timeout milliseconds to wait for latest email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + public async System.Threading.Tasks.Task GetLatestEmailInInboxAsync(Guid inboxId, long timeoutMillis, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetLatestEmailInInboxWithHttpInfoAsync(inboxId, timeoutMillis, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. Get the newest email in an inbox or wait for one to arrive + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to get the latest email from + /// Timeout milliseconds to wait for latest email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + public async System.Threading.Tasks.Task> GetLatestEmailInInboxWithHttpInfoAsync(Guid inboxId, long timeoutMillis, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeoutMillis", timeoutMillis)); + + localVarRequestOptions.Operation = "InboxControllerApi.GetLatestEmailInInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/getLatestEmail", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLatestEmailInInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List Organization Inboxes Paginated List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// PageOrganizationInboxProjection + [Obsolete] + public PageOrganizationInboxProjection GetOrganizationInboxes(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetOrganizationInboxesWithHttpInfo(page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// List Organization Inboxes Paginated List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageOrganizationInboxProjection + [Obsolete] + public mailslurp_netstandard_2x.Client.ApiResponse GetOrganizationInboxesWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetOrganizationInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/organization", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetOrganizationInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List Organization Inboxes Paginated List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageOrganizationInboxProjection + [Obsolete] + public async System.Threading.Tasks.Task GetOrganizationInboxesAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetOrganizationInboxesWithHttpInfoAsync(page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List Organization Inboxes Paginated List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageOrganizationInboxProjection) + [Obsolete] + public async System.Threading.Tasks.Task> GetOrganizationInboxesWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetOrganizationInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/organization", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetOrganizationInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a scheduled email job Get a scheduled email job details. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ScheduledJobDto + public ScheduledJobDto GetScheduledJob(Guid jobId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetScheduledJobWithHttpInfo(jobId); + return localVarResponse.Data; + } + + /// + /// Get a scheduled email job Get a scheduled email job details. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ScheduledJobDto + public mailslurp_netstandard_2x.Client.ApiResponse GetScheduledJobWithHttpInfo(Guid jobId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("jobId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(jobId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.GetScheduledJob"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/scheduled-jobs/{jobId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetScheduledJob", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a scheduled email job Get a scheduled email job details. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ScheduledJobDto + public async System.Threading.Tasks.Task GetScheduledJobAsync(Guid jobId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetScheduledJobWithHttpInfoAsync(jobId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a scheduled email job Get a scheduled email job details. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ScheduledJobDto) + public async System.Threading.Tasks.Task> GetScheduledJobWithHttpInfoAsync(Guid jobId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("jobId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(jobId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.GetScheduledJob"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/scheduled-jobs/{jobId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetScheduledJob", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all scheduled email sending jobs for the inbox Schedule sending of emails using scheduled jobs. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageScheduledJobs + public PageScheduledJobs GetScheduledJobsByInboxId(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetScheduledJobsByInboxIdWithHttpInfo(inboxId, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get all scheduled email sending jobs for the inbox Schedule sending of emails using scheduled jobs. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageScheduledJobs + public mailslurp_netstandard_2x.Client.ApiResponse GetScheduledJobsByInboxIdWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetScheduledJobsByInboxId"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/{inboxId}/scheduled-jobs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetScheduledJobsByInboxId", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all scheduled email sending jobs for the inbox Schedule sending of emails using scheduled jobs. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageScheduledJobs + public async System.Threading.Tasks.Task GetScheduledJobsByInboxIdAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetScheduledJobsByInboxIdWithHttpInfoAsync(inboxId, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all scheduled email sending jobs for the inbox Schedule sending of emails using scheduled jobs. + /// + /// Thrown when fails to make API call + /// + /// Optional page index in scheduled job list pagination (optional, default to 0) + /// Optional page size in scheduled job list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageScheduledJobs) + public async System.Threading.Tasks.Task> GetScheduledJobsByInboxIdWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetScheduledJobsByInboxId"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/{inboxId}/scheduled-jobs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetScheduledJobsByInboxId", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// SmtpAccessDetails + public SmtpAccessDetails GetSmtpAccess(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSmtpAccessWithHttpInfo(inboxId); + return localVarResponse.Data; + } + + /// + /// Get SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of SmtpAccessDetails + public mailslurp_netstandard_2x.Client.ApiResponse GetSmtpAccessWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetSmtpAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/smtp-access", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSmtpAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SmtpAccessDetails + public async System.Threading.Tasks.Task GetSmtpAccessAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSmtpAccessWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SmtpAccessDetails) + public async System.Threading.Tasks.Task> GetSmtpAccessWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.GetSmtpAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/smtp-access", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSmtpAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List inbox rulesets List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// PageInboxRulesetDto + public PageInboxRulesetDto ListInboxRulesets(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ListInboxRulesetsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// List inbox rulesets List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxRulesetDto + public mailslurp_netstandard_2x.Client.ApiResponse ListInboxRulesetsWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.ListInboxRulesets"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/{inboxId}/rulesets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListInboxRulesets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List inbox rulesets List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxRulesetDto + public async System.Threading.Tasks.Task ListInboxRulesetsAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ListInboxRulesetsWithHttpInfoAsync(inboxId, page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List inbox rulesets List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxRulesetDto) + public async System.Threading.Tasks.Task> ListInboxRulesetsWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.ListInboxRulesets"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/{inboxId}/rulesets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListInboxRulesets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List inbox tracking pixels List all tracking pixels sent from an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox tracking pixel list pagination (optional, default to 0) + /// Optional page size in inbox tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// PageTrackingPixelProjection + public PageTrackingPixelProjection ListInboxTrackingPixels(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ListInboxTrackingPixelsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// List inbox tracking pixels List all tracking pixels sent from an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox tracking pixel list pagination (optional, default to 0) + /// Optional page size in inbox tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageTrackingPixelProjection + public mailslurp_netstandard_2x.Client.ApiResponse ListInboxTrackingPixelsWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.ListInboxTrackingPixels"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/{inboxId}/tracking-pixels", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListInboxTrackingPixels", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List inbox tracking pixels List all tracking pixels sent from an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox tracking pixel list pagination (optional, default to 0) + /// Optional page size in inbox tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageTrackingPixelProjection + public async System.Threading.Tasks.Task ListInboxTrackingPixelsAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ListInboxTrackingPixelsWithHttpInfoAsync(inboxId, page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List inbox tracking pixels List all tracking pixels sent from an inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in inbox tracking pixel list pagination (optional, default to 0) + /// Optional page size in inbox tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Optional filter by created after given date time (optional) + /// Optional filter by created before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageTrackingPixelProjection) + public async System.Threading.Tasks.Task> ListInboxTrackingPixelsWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxControllerApi.ListInboxTrackingPixels"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/{inboxId}/tracking-pixels", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListInboxTrackingPixels", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Search all inboxes and return matching inboxes Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// PageInboxProjection + public PageInboxProjection SearchInboxes(SearchInboxesOptions searchInboxesOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = SearchInboxesWithHttpInfo(searchInboxesOptions); + return localVarResponse.Data; + } + + /// + /// Search all inboxes and return matching inboxes Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of PageInboxProjection + public mailslurp_netstandard_2x.Client.ApiResponse SearchInboxesWithHttpInfo(SearchInboxesOptions searchInboxesOptions, int operationIndex = 0) + { + // verify the required parameter 'searchInboxesOptions' is set + if (searchInboxesOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'searchInboxesOptions' when calling InboxControllerApi->SearchInboxes"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = searchInboxesOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SearchInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes/search", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Search all inboxes and return matching inboxes Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxProjection + public async System.Threading.Tasks.Task SearchInboxesAsync(SearchInboxesOptions searchInboxesOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await SearchInboxesWithHttpInfoAsync(searchInboxesOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Search all inboxes and return matching inboxes Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxProjection) + public async System.Threading.Tasks.Task> SearchInboxesWithHttpInfoAsync(SearchInboxesOptions searchInboxesOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'searchInboxesOptions' is set + if (searchInboxesOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'searchInboxesOptions' when calling InboxControllerApi->SearchInboxes"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = searchInboxesOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SearchInboxes"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchInboxes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send Email Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// + public void SendEmail(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0) + { + SendEmailWithHttpInfo(inboxId, sendEmailOptions); + } + + /// + /// Send Email Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse SendEmailWithHttpInfo(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling InboxControllerApi->SendEmail"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SendEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes/{inboxId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send Email Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task SendEmailAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await SendEmailWithHttpInfoAsync(inboxId, sendEmailOptions, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Send Email Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SendEmailWithHttpInfoAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling InboxControllerApi->SendEmail"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SendEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes/{inboxId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send email and return sent confirmation Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// SentEmailDto + public SentEmailDto SendEmailAndConfirm(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = SendEmailAndConfirmWithHttpInfo(inboxId, sendEmailOptions); + return localVarResponse.Data; + } + + /// + /// Send email and return sent confirmation Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + public mailslurp_netstandard_2x.Client.ApiResponse SendEmailAndConfirmWithHttpInfo(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling InboxControllerApi->SendEmailAndConfirm"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SendEmailAndConfirm"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes/{inboxId}/confirm", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmailAndConfirm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send email and return sent confirmation Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + public async System.Threading.Tasks.Task SendEmailAndConfirmAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await SendEmailAndConfirmWithHttpInfoAsync(inboxId, sendEmailOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Send email and return sent confirmation Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + public async System.Threading.Tasks.Task> SendEmailAndConfirmWithHttpInfoAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling InboxControllerApi->SendEmailAndConfirm"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SendEmailAndConfirm"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes/{inboxId}/confirm", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmailAndConfirm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send email with queue Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// Validate before adding to queue + /// + /// Index associated with the operation. + /// + public void SendEmailWithQueue(Guid inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions, int operationIndex = 0) + { + SendEmailWithQueueWithHttpInfo(inboxId, validateBeforeEnqueue, sendEmailOptions); + } + + /// + /// Send email with queue Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// Validate before adding to queue + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse SendEmailWithQueueWithHttpInfo(Guid inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions, int operationIndex = 0) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling InboxControllerApi->SendEmailWithQueue"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "validateBeforeEnqueue", validateBeforeEnqueue)); + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SendEmailWithQueue"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes/{inboxId}/with-queue", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmailWithQueue", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send email with queue Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// Validate before adding to queue + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task SendEmailWithQueueAsync(Guid inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await SendEmailWithQueueWithHttpInfoAsync(inboxId, validateBeforeEnqueue, sendEmailOptions, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Send email with queue Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// Validate before adding to queue + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SendEmailWithQueueWithHttpInfoAsync(Guid inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling InboxControllerApi->SendEmailWithQueue"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "validateBeforeEnqueue", validateBeforeEnqueue)); + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SendEmailWithQueue"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes/{inboxId}/with-queue", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendEmailWithQueue", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send email using an SMTP mail envelope and message body and return sent confirmation Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// SentEmailDto + public SentEmailDto SendSmtpEnvelope(Guid inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = SendSmtpEnvelopeWithHttpInfo(inboxId, sendSMTPEnvelopeOptions); + return localVarResponse.Data; + } + + /// + /// Send email using an SMTP mail envelope and message body and return sent confirmation Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + public mailslurp_netstandard_2x.Client.ApiResponse SendSmtpEnvelopeWithHttpInfo(Guid inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, int operationIndex = 0) + { + // verify the required parameter 'sendSMTPEnvelopeOptions' is set + if (sendSMTPEnvelopeOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendSMTPEnvelopeOptions' when calling InboxControllerApi->SendSmtpEnvelope"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = sendSMTPEnvelopeOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SendSmtpEnvelope"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes/{inboxId}/smtp-envelope", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendSmtpEnvelope", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send email using an SMTP mail envelope and message body and return sent confirmation Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + public async System.Threading.Tasks.Task SendSmtpEnvelopeAsync(Guid inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await SendSmtpEnvelopeWithHttpInfoAsync(inboxId, sendSMTPEnvelopeOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Send email using an SMTP mail envelope and message body and return sent confirmation Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + public async System.Threading.Tasks.Task> SendSmtpEnvelopeWithHttpInfoAsync(Guid inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'sendSMTPEnvelopeOptions' is set + if (sendSMTPEnvelopeOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendSMTPEnvelopeOptions' when calling InboxControllerApi->SendSmtpEnvelope"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = sendSMTPEnvelopeOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SendSmtpEnvelope"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes/{inboxId}/smtp-envelope", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendSmtpEnvelope", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send a test email to inbox Send an inbox a test email to test email receiving is working + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void SendTestEmail(Guid inboxId, int operationIndex = 0) + { + SendTestEmailWithHttpInfo(inboxId); + } + + /// + /// Send a test email to inbox Send an inbox a test email to test email receiving is working + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse SendTestEmailWithHttpInfo(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.SendTestEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes/{inboxId}/send-test-email", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendTestEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send a test email to inbox Send an inbox a test email to test email receiving is working + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task SendTestEmailAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await SendTestEmailWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Send a test email to inbox Send an inbox a test email to test email receiving is working + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SendTestEmailWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "InboxControllerApi.SendTestEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes/{inboxId}/send-test-email", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendTestEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send email with with delay or schedule Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Sending timestamp (optional) + /// Send after n seconds (optional) + /// Validate before adding to queue (optional) + /// Index associated with the operation. + /// ScheduledJobDto + public ScheduledJobDto SendWithSchedule(Guid inboxId, SendEmailOptions sendEmailOptions, DateTime? sendAtTimestamp = default(DateTime?), long? sendAtNowPlusSeconds = default(long?), bool? validateBeforeEnqueue = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = SendWithScheduleWithHttpInfo(inboxId, sendEmailOptions, sendAtTimestamp, sendAtNowPlusSeconds, validateBeforeEnqueue); + return localVarResponse.Data; + } + + /// + /// Send email with with delay or schedule Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Sending timestamp (optional) + /// Send after n seconds (optional) + /// Validate before adding to queue (optional) + /// Index associated with the operation. + /// ApiResponse of ScheduledJobDto + public mailslurp_netstandard_2x.Client.ApiResponse SendWithScheduleWithHttpInfo(Guid inboxId, SendEmailOptions sendEmailOptions, DateTime? sendAtTimestamp = default(DateTime?), long? sendAtNowPlusSeconds = default(long?), bool? validateBeforeEnqueue = default(bool?), int operationIndex = 0) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling InboxControllerApi->SendWithSchedule"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (sendAtTimestamp != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sendAtTimestamp", sendAtTimestamp)); + } + if (sendAtNowPlusSeconds != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sendAtNowPlusSeconds", sendAtNowPlusSeconds)); + } + if (validateBeforeEnqueue != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "validateBeforeEnqueue", validateBeforeEnqueue)); + } + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SendWithSchedule"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes/{inboxId}/with-schedule", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendWithSchedule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send email with with delay or schedule Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Sending timestamp (optional) + /// Send after n seconds (optional) + /// Validate before adding to queue (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ScheduledJobDto + public async System.Threading.Tasks.Task SendWithScheduleAsync(Guid inboxId, SendEmailOptions sendEmailOptions, DateTime? sendAtTimestamp = default(DateTime?), long? sendAtNowPlusSeconds = default(long?), bool? validateBeforeEnqueue = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await SendWithScheduleWithHttpInfoAsync(inboxId, sendEmailOptions, sendAtTimestamp, sendAtNowPlusSeconds, validateBeforeEnqueue, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Send email with with delay or schedule Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. + /// + /// Thrown when fails to make API call + /// ID of the inbox you want to send the email from + /// + /// Sending timestamp (optional) + /// Send after n seconds (optional) + /// Validate before adding to queue (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ScheduledJobDto) + public async System.Threading.Tasks.Task> SendWithScheduleWithHttpInfoAsync(Guid inboxId, SendEmailOptions sendEmailOptions, DateTime? sendAtTimestamp = default(DateTime?), long? sendAtNowPlusSeconds = default(long?), bool? validateBeforeEnqueue = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'sendEmailOptions' is set + if (sendEmailOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'sendEmailOptions' when calling InboxControllerApi->SendWithSchedule"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (sendAtTimestamp != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sendAtTimestamp", sendAtTimestamp)); + } + if (sendAtNowPlusSeconds != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sendAtNowPlusSeconds", sendAtNowPlusSeconds)); + } + if (validateBeforeEnqueue != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "validateBeforeEnqueue", validateBeforeEnqueue)); + } + localVarRequestOptions.Data = sendEmailOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SendWithSchedule"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes/{inboxId}/with-schedule", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendWithSchedule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Set inbox favourited state Set and return new favourite state for an inbox + /// + /// Thrown when fails to make API call + /// ID of inbox to set favourite state + /// + /// Index associated with the operation. + /// InboxDto + public InboxDto SetInboxFavourited(Guid inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = SetInboxFavouritedWithHttpInfo(inboxId, setInboxFavouritedOptions); + return localVarResponse.Data; + } + + /// + /// Set inbox favourited state Set and return new favourite state for an inbox + /// + /// Thrown when fails to make API call + /// ID of inbox to set favourite state + /// + /// Index associated with the operation. + /// ApiResponse of InboxDto + public mailslurp_netstandard_2x.Client.ApiResponse SetInboxFavouritedWithHttpInfo(Guid inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, int operationIndex = 0) + { + // verify the required parameter 'setInboxFavouritedOptions' is set + if (setInboxFavouritedOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'setInboxFavouritedOptions' when calling InboxControllerApi->SetInboxFavourited"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = setInboxFavouritedOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SetInboxFavourited"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/inboxes/{inboxId}/favourite", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SetInboxFavourited", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Set inbox favourited state Set and return new favourite state for an inbox + /// + /// Thrown when fails to make API call + /// ID of inbox to set favourite state + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + public async System.Threading.Tasks.Task SetInboxFavouritedAsync(Guid inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await SetInboxFavouritedWithHttpInfoAsync(inboxId, setInboxFavouritedOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Set inbox favourited state Set and return new favourite state for an inbox + /// + /// Thrown when fails to make API call + /// ID of inbox to set favourite state + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + public async System.Threading.Tasks.Task> SetInboxFavouritedWithHttpInfoAsync(Guid inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'setInboxFavouritedOptions' is set + if (setInboxFavouritedOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'setInboxFavouritedOptions' when calling InboxControllerApi->SetInboxFavourited"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = setInboxFavouritedOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.SetInboxFavourited"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/inboxes/{inboxId}/favourite", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SetInboxFavourited", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// + public void UpdateImapAccess(UpdateImapAccessOptions updateImapAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + UpdateImapAccessWithHttpInfo(updateImapAccessOptions, inboxId); + } + + /// + /// Update IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse UpdateImapAccessWithHttpInfo(UpdateImapAccessOptions updateImapAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + // verify the required parameter 'updateImapAccessOptions' is set + if (updateImapAccessOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateImapAccessOptions' when calling InboxControllerApi->UpdateImapAccess"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = updateImapAccessOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.UpdateImapAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/inboxes/imap-access", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateImapAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task UpdateImapAccessAsync(UpdateImapAccessOptions updateImapAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await UpdateImapAccessWithHttpInfoAsync(updateImapAccessOptions, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update IMAP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateImapAccessWithHttpInfoAsync(UpdateImapAccessOptions updateImapAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'updateImapAccessOptions' is set + if (updateImapAccessOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateImapAccessOptions' when calling InboxControllerApi->UpdateImapAccess"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = updateImapAccessOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.UpdateImapAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PatchAsync("/inboxes/imap-access", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateImapAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update Inbox. Change name and description. Email address is not editable. Update editable fields on an inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// InboxDto + public InboxDto UpdateInbox(Guid inboxId, UpdateInboxOptions updateInboxOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = UpdateInboxWithHttpInfo(inboxId, updateInboxOptions); + return localVarResponse.Data; + } + + /// + /// Update Inbox. Change name and description. Email address is not editable. Update editable fields on an inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of InboxDto + public mailslurp_netstandard_2x.Client.ApiResponse UpdateInboxWithHttpInfo(Guid inboxId, UpdateInboxOptions updateInboxOptions, int operationIndex = 0) + { + // verify the required parameter 'updateInboxOptions' is set + if (updateInboxOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateInboxOptions' when calling InboxControllerApi->UpdateInbox"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = updateInboxOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.UpdateInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/inboxes/{inboxId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update Inbox. Change name and description. Email address is not editable. Update editable fields on an inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxDto + public async System.Threading.Tasks.Task UpdateInboxAsync(Guid inboxId, UpdateInboxOptions updateInboxOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await UpdateInboxWithHttpInfoAsync(inboxId, updateInboxOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update Inbox. Change name and description. Email address is not editable. Update editable fields on an inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxDto) + public async System.Threading.Tasks.Task> UpdateInboxWithHttpInfoAsync(Guid inboxId, UpdateInboxOptions updateInboxOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'updateInboxOptions' is set + if (updateInboxOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateInboxOptions' when calling InboxControllerApi->UpdateInbox"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = updateInboxOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.UpdateInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PatchAsync("/inboxes/{inboxId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// + public void UpdateSmtpAccess(UpdateSmtpAccessOptions updateSmtpAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + UpdateSmtpAccessWithHttpInfo(updateSmtpAccessOptions, inboxId); + } + + /// + /// Update SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse UpdateSmtpAccessWithHttpInfo(UpdateSmtpAccessOptions updateSmtpAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + // verify the required parameter 'updateSmtpAccessOptions' is set + if (updateSmtpAccessOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateSmtpAccessOptions' when calling InboxControllerApi->UpdateSmtpAccess"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = updateSmtpAccessOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.UpdateSmtpAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/inboxes/smtp-access", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateSmtpAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task UpdateSmtpAccessAsync(UpdateSmtpAccessOptions updateSmtpAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await UpdateSmtpAccessWithHttpInfoAsync(updateSmtpAccessOptions, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update SMTP access usernames and passwords + /// + /// Thrown when fails to make API call + /// + /// Inbox ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateSmtpAccessWithHttpInfoAsync(UpdateSmtpAccessOptions updateSmtpAccessOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'updateSmtpAccessOptions' is set + if (updateSmtpAccessOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateSmtpAccessOptions' when calling InboxControllerApi->UpdateSmtpAccess"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = updateSmtpAccessOptions; + + localVarRequestOptions.Operation = "InboxControllerApi.UpdateSmtpAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PatchAsync("/inboxes/smtp-access", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateSmtpAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/InboxForwarderControllerApi.cs b/src/mailslurp_netstandard_2x/Api/InboxForwarderControllerApi.cs new file mode 100644 index 00000000..d1a1e124 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/InboxForwarderControllerApi.cs @@ -0,0 +1,2952 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxForwarderControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create an inbox forwarder + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// Inbox id to attach forwarder to + /// + /// Index associated with the operation. + /// InboxForwarderDto + InboxForwarderDto CreateNewInboxForwarder(Guid inboxId, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0); + + /// + /// Create an inbox forwarder + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// Inbox id to attach forwarder to + /// + /// Index associated with the operation. + /// ApiResponse of InboxForwarderDto + ApiResponse CreateNewInboxForwarderWithHttpInfo(Guid inboxId, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0); + /// + /// Delete an inbox forwarder + /// + /// + /// Delete inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// + void DeleteInboxForwarder(Guid id, int operationIndex = 0); + + /// + /// Delete an inbox forwarder + /// + /// + /// Delete inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteInboxForwarderWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Delete inbox forwarders + /// + /// + /// Delete inbox forwarders. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach forwarder to (optional) + /// Index associated with the operation. + /// + void DeleteInboxForwarders(Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Delete inbox forwarders + /// + /// + /// Delete inbox forwarders. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach forwarder to (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteInboxForwardersWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Get all inbox forwarder events + /// + /// + /// Get all inbox forwarder events + /// + /// Thrown when fails to make API call + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional inbox ID to filter for (optional) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// PageInboxForwarderEvents + PageInboxForwarderEvents GetAllInboxForwarderEvents(int? page = default(int?), int? size = default(int?), Guid? inboxId = default(Guid?), string sort = default(string), int operationIndex = 0); + + /// + /// Get all inbox forwarder events + /// + /// + /// Get all inbox forwarder events + /// + /// Thrown when fails to make API call + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional inbox ID to filter for (optional) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// ApiResponse of PageInboxForwarderEvents + ApiResponse GetAllInboxForwarderEventsWithHttpInfo(int? page = default(int?), int? size = default(int?), Guid? inboxId = default(Guid?), string sort = default(string), int operationIndex = 0); + /// + /// Get a forwarder event + /// + /// + /// Get forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder event + /// Index associated with the operation. + /// InboxForwarderEventDto + InboxForwarderEventDto GetForwarderEvent(Guid eventId, int operationIndex = 0); + + /// + /// Get a forwarder event + /// + /// + /// Get forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder event + /// Index associated with the operation. + /// ApiResponse of InboxForwarderEventDto + ApiResponse GetForwarderEventWithHttpInfo(Guid eventId, int operationIndex = 0); + /// + /// Get an inbox forwarder + /// + /// + /// Get inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// InboxForwarderDto + InboxForwarderDto GetInboxForwarder(Guid id, int operationIndex = 0); + + /// + /// Get an inbox forwarder + /// + /// + /// Get inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// ApiResponse of InboxForwarderDto + ApiResponse GetInboxForwarderWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get an inbox forwarder event + /// + /// + /// Get inbox forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// ID of inbox forwarder event + /// Index associated with the operation. + /// InboxForwarderEventDto + InboxForwarderEventDto GetInboxForwarderEvent(Guid id, Guid eventId, int operationIndex = 0); + + /// + /// Get an inbox forwarder event + /// + /// + /// Get inbox forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// ID of inbox forwarder event + /// Index associated with the operation. + /// ApiResponse of InboxForwarderEventDto + ApiResponse GetInboxForwarderEventWithHttpInfo(Guid id, Guid eventId, int operationIndex = 0); + /// + /// Get an inbox forwarder event list + /// + /// + /// Get inbox forwarder events + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// PageInboxForwarderEvents + PageInboxForwarderEvents GetInboxForwarderEvents(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0); + + /// + /// Get an inbox forwarder event list + /// + /// + /// Get inbox forwarder events + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// ApiResponse of PageInboxForwarderEvents + ApiResponse GetInboxForwarderEventsWithHttpInfo(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0); + /// + /// List inbox forwarders + /// + /// + /// List all forwarders attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get forwarders from (optional) + /// Optional page index in inbox forwarder list pagination (optional, default to 0) + /// Optional page size in inbox forwarder list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageInboxForwarderDto + PageInboxForwarderDto GetInboxForwarders(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// List inbox forwarders + /// + /// + /// List all forwarders attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get forwarders from (optional) + /// Optional page index in inbox forwarder list pagination (optional, default to 0) + /// Optional page size in inbox forwarder list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxForwarderDto + ApiResponse GetInboxForwardersWithHttpInfo(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Test an inbox forwarder + /// + /// + /// Test an inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// InboxForwarderTestResult + InboxForwarderTestResult TestInboxForwarder(Guid id, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0); + + /// + /// Test an inbox forwarder + /// + /// + /// Test an inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// ApiResponse of InboxForwarderTestResult + ApiResponse TestInboxForwarderWithHttpInfo(Guid id, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0); + /// + /// Test inbox forwarders for inbox + /// + /// + /// Test inbox forwarders for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// InboxForwarderTestResult + InboxForwarderTestResult TestInboxForwardersForInbox(Guid inboxId, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0); + + /// + /// Test inbox forwarders for inbox + /// + /// + /// Test inbox forwarders for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// ApiResponse of InboxForwarderTestResult + ApiResponse TestInboxForwardersForInboxWithHttpInfo(Guid inboxId, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0); + /// + /// Test new inbox forwarder + /// + /// + /// Test new inbox forwarder + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxForwarderTestResult + InboxForwarderTestResult TestNewInboxForwarder(TestNewInboxForwarderOptions testNewInboxForwarderOptions, int operationIndex = 0); + + /// + /// Test new inbox forwarder + /// + /// + /// Test new inbox forwarder + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxForwarderTestResult + ApiResponse TestNewInboxForwarderWithHttpInfo(TestNewInboxForwarderOptions testNewInboxForwarderOptions, int operationIndex = 0); + /// + /// Update an inbox forwarder + /// + /// + /// Update inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// InboxForwarderDto + InboxForwarderDto UpdateInboxForwarder(Guid id, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0); + + /// + /// Update an inbox forwarder + /// + /// + /// Update inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// ApiResponse of InboxForwarderDto + ApiResponse UpdateInboxForwarderWithHttpInfo(Guid id, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxForwarderControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create an inbox forwarder + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// Inbox id to attach forwarder to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderDto + System.Threading.Tasks.Task CreateNewInboxForwarderAsync(Guid inboxId, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create an inbox forwarder + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// Inbox id to attach forwarder to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderDto) + System.Threading.Tasks.Task> CreateNewInboxForwarderWithHttpInfoAsync(Guid inboxId, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete an inbox forwarder + /// + /// + /// Delete inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteInboxForwarderAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete an inbox forwarder + /// + /// + /// Delete inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteInboxForwarderWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete inbox forwarders + /// + /// + /// Delete inbox forwarders. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach forwarder to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteInboxForwardersAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete inbox forwarders + /// + /// + /// Delete inbox forwarders. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach forwarder to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteInboxForwardersWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all inbox forwarder events + /// + /// + /// Get all inbox forwarder events + /// + /// Thrown when fails to make API call + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional inbox ID to filter for (optional) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxForwarderEvents + System.Threading.Tasks.Task GetAllInboxForwarderEventsAsync(int? page = default(int?), int? size = default(int?), Guid? inboxId = default(Guid?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all inbox forwarder events + /// + /// + /// Get all inbox forwarder events + /// + /// Thrown when fails to make API call + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional inbox ID to filter for (optional) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxForwarderEvents) + System.Threading.Tasks.Task> GetAllInboxForwarderEventsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), Guid? inboxId = default(Guid?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a forwarder event + /// + /// + /// Get forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder event + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderEventDto + System.Threading.Tasks.Task GetForwarderEventAsync(Guid eventId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a forwarder event + /// + /// + /// Get forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder event + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderEventDto) + System.Threading.Tasks.Task> GetForwarderEventWithHttpInfoAsync(Guid eventId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an inbox forwarder + /// + /// + /// Get inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderDto + System.Threading.Tasks.Task GetInboxForwarderAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an inbox forwarder + /// + /// + /// Get inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderDto) + System.Threading.Tasks.Task> GetInboxForwarderWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an inbox forwarder event + /// + /// + /// Get inbox forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// ID of inbox forwarder event + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderEventDto + System.Threading.Tasks.Task GetInboxForwarderEventAsync(Guid id, Guid eventId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an inbox forwarder event + /// + /// + /// Get inbox forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// ID of inbox forwarder event + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderEventDto) + System.Threading.Tasks.Task> GetInboxForwarderEventWithHttpInfoAsync(Guid id, Guid eventId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an inbox forwarder event list + /// + /// + /// Get inbox forwarder events + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxForwarderEvents + System.Threading.Tasks.Task GetInboxForwarderEventsAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an inbox forwarder event list + /// + /// + /// Get inbox forwarder events + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxForwarderEvents) + System.Threading.Tasks.Task> GetInboxForwarderEventsWithHttpInfoAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List inbox forwarders + /// + /// + /// List all forwarders attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get forwarders from (optional) + /// Optional page index in inbox forwarder list pagination (optional, default to 0) + /// Optional page size in inbox forwarder list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxForwarderDto + System.Threading.Tasks.Task GetInboxForwardersAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List inbox forwarders + /// + /// + /// List all forwarders attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get forwarders from (optional) + /// Optional page index in inbox forwarder list pagination (optional, default to 0) + /// Optional page size in inbox forwarder list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxForwarderDto) + System.Threading.Tasks.Task> GetInboxForwardersWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Test an inbox forwarder + /// + /// + /// Test an inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderTestResult + System.Threading.Tasks.Task TestInboxForwarderAsync(Guid id, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Test an inbox forwarder + /// + /// + /// Test an inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderTestResult) + System.Threading.Tasks.Task> TestInboxForwarderWithHttpInfoAsync(Guid id, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Test inbox forwarders for inbox + /// + /// + /// Test inbox forwarders for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderTestResult + System.Threading.Tasks.Task TestInboxForwardersForInboxAsync(Guid inboxId, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Test inbox forwarders for inbox + /// + /// + /// Test inbox forwarders for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderTestResult) + System.Threading.Tasks.Task> TestInboxForwardersForInboxWithHttpInfoAsync(Guid inboxId, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Test new inbox forwarder + /// + /// + /// Test new inbox forwarder + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderTestResult + System.Threading.Tasks.Task TestNewInboxForwarderAsync(TestNewInboxForwarderOptions testNewInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Test new inbox forwarder + /// + /// + /// Test new inbox forwarder + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderTestResult) + System.Threading.Tasks.Task> TestNewInboxForwarderWithHttpInfoAsync(TestNewInboxForwarderOptions testNewInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Update an inbox forwarder + /// + /// + /// Update inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderDto + System.Threading.Tasks.Task UpdateInboxForwarderAsync(Guid id, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update an inbox forwarder + /// + /// + /// Update inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderDto) + System.Threading.Tasks.Task> UpdateInboxForwarderWithHttpInfoAsync(Guid id, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxForwarderControllerApi : IInboxForwarderControllerApiSync, IInboxForwarderControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class InboxForwarderControllerApi : IInboxForwarderControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public InboxForwarderControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public InboxForwarderControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public InboxForwarderControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public InboxForwarderControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create an inbox forwarder Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// Inbox id to attach forwarder to + /// + /// Index associated with the operation. + /// InboxForwarderDto + public InboxForwarderDto CreateNewInboxForwarder(Guid inboxId, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateNewInboxForwarderWithHttpInfo(inboxId, createInboxForwarderOptions); + return localVarResponse.Data; + } + + /// + /// Create an inbox forwarder Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// Inbox id to attach forwarder to + /// + /// Index associated with the operation. + /// ApiResponse of InboxForwarderDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateNewInboxForwarderWithHttpInfo(Guid inboxId, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0) + { + // verify the required parameter 'createInboxForwarderOptions' is set + if (createInboxForwarderOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxForwarderOptions' when calling InboxForwarderControllerApi->CreateNewInboxForwarder"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.Data = createInboxForwarderOptions; + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.CreateNewInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/forwarders", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNewInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox forwarder Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// Inbox id to attach forwarder to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderDto + public async System.Threading.Tasks.Task CreateNewInboxForwarderAsync(Guid inboxId, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateNewInboxForwarderWithHttpInfoAsync(inboxId, createInboxForwarderOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create an inbox forwarder Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// Inbox id to attach forwarder to + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderDto) + public async System.Threading.Tasks.Task> CreateNewInboxForwarderWithHttpInfoAsync(Guid inboxId, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createInboxForwarderOptions' is set + if (createInboxForwarderOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxForwarderOptions' when calling InboxForwarderControllerApi->CreateNewInboxForwarder"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.Data = createInboxForwarderOptions; + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.CreateNewInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/forwarders", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNewInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox forwarder Delete inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// + public void DeleteInboxForwarder(Guid id, int operationIndex = 0) + { + DeleteInboxForwarderWithHttpInfo(id); + } + + /// + /// Delete an inbox forwarder Delete inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteInboxForwarderWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.DeleteInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/forwarders/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox forwarder Delete inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteInboxForwarderAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteInboxForwarderWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an inbox forwarder Delete inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteInboxForwarderWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.DeleteInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/forwarders/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inbox forwarders Delete inbox forwarders. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach forwarder to (optional) + /// Index associated with the operation. + /// + public void DeleteInboxForwarders(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + DeleteInboxForwardersWithHttpInfo(inboxId); + } + + /// + /// Delete inbox forwarders Delete inbox forwarders. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach forwarder to (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteInboxForwardersWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.DeleteInboxForwarders"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/forwarders", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxForwarders", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inbox forwarders Delete inbox forwarders. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach forwarder to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteInboxForwardersAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteInboxForwardersWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete inbox forwarders Delete inbox forwarders. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach forwarder to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteInboxForwardersWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.DeleteInboxForwarders"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/forwarders", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxForwarders", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all inbox forwarder events Get all inbox forwarder events + /// + /// Thrown when fails to make API call + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional inbox ID to filter for (optional) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// PageInboxForwarderEvents + public PageInboxForwarderEvents GetAllInboxForwarderEvents(int? page = default(int?), int? size = default(int?), Guid? inboxId = default(Guid?), string sort = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllInboxForwarderEventsWithHttpInfo(page, size, inboxId, sort); + return localVarResponse.Data; + } + + /// + /// Get all inbox forwarder events Get all inbox forwarder events + /// + /// Thrown when fails to make API call + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional inbox ID to filter for (optional) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// ApiResponse of PageInboxForwarderEvents + public mailslurp_netstandard_2x.Client.ApiResponse GetAllInboxForwarderEventsWithHttpInfo(int? page = default(int?), int? size = default(int?), Guid? inboxId = default(Guid?), string sort = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetAllInboxForwarderEvents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/forwarders/events", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllInboxForwarderEvents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all inbox forwarder events Get all inbox forwarder events + /// + /// Thrown when fails to make API call + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional inbox ID to filter for (optional) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxForwarderEvents + public async System.Threading.Tasks.Task GetAllInboxForwarderEventsAsync(int? page = default(int?), int? size = default(int?), Guid? inboxId = default(Guid?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllInboxForwarderEventsWithHttpInfoAsync(page, size, inboxId, sort, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all inbox forwarder events Get all inbox forwarder events + /// + /// Thrown when fails to make API call + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional inbox ID to filter for (optional) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxForwarderEvents) + public async System.Threading.Tasks.Task> GetAllInboxForwarderEventsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), Guid? inboxId = default(Guid?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetAllInboxForwarderEvents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/forwarders/events", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllInboxForwarderEvents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a forwarder event Get forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder event + /// Index associated with the operation. + /// InboxForwarderEventDto + public InboxForwarderEventDto GetForwarderEvent(Guid eventId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetForwarderEventWithHttpInfo(eventId); + return localVarResponse.Data; + } + + /// + /// Get a forwarder event Get forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder event + /// Index associated with the operation. + /// ApiResponse of InboxForwarderEventDto + public mailslurp_netstandard_2x.Client.ApiResponse GetForwarderEventWithHttpInfo(Guid eventId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("eventId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(eventId)); // path parameter + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetForwarderEvent"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/forwarders/events/{eventId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetForwarderEvent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a forwarder event Get forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder event + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderEventDto + public async System.Threading.Tasks.Task GetForwarderEventAsync(Guid eventId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetForwarderEventWithHttpInfoAsync(eventId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a forwarder event Get forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder event + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderEventDto) + public async System.Threading.Tasks.Task> GetForwarderEventWithHttpInfoAsync(Guid eventId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("eventId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(eventId)); // path parameter + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetForwarderEvent"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/forwarders/events/{eventId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetForwarderEvent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox forwarder Get inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// InboxForwarderDto + public InboxForwarderDto GetInboxForwarder(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxForwarderWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get an inbox forwarder Get inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// ApiResponse of InboxForwarderDto + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxForwarderWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/forwarders/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox forwarder Get inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderDto + public async System.Threading.Tasks.Task GetInboxForwarderAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxForwarderWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an inbox forwarder Get inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderDto) + public async System.Threading.Tasks.Task> GetInboxForwarderWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/forwarders/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox forwarder event Get inbox forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// ID of inbox forwarder event + /// Index associated with the operation. + /// InboxForwarderEventDto + public InboxForwarderEventDto GetInboxForwarderEvent(Guid id, Guid eventId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxForwarderEventWithHttpInfo(id, eventId); + return localVarResponse.Data; + } + + /// + /// Get an inbox forwarder event Get inbox forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// ID of inbox forwarder event + /// Index associated with the operation. + /// ApiResponse of InboxForwarderEventDto + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxForwarderEventWithHttpInfo(Guid id, Guid eventId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("eventId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(eventId)); // path parameter + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetInboxForwarderEvent"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/forwarders/{id}/events/{eventId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxForwarderEvent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox forwarder event Get inbox forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// ID of inbox forwarder event + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderEventDto + public async System.Threading.Tasks.Task GetInboxForwarderEventAsync(Guid id, Guid eventId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxForwarderEventWithHttpInfoAsync(id, eventId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an inbox forwarder event Get inbox forwarder event + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// ID of inbox forwarder event + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderEventDto) + public async System.Threading.Tasks.Task> GetInboxForwarderEventWithHttpInfoAsync(Guid id, Guid eventId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("eventId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(eventId)); // path parameter + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetInboxForwarderEvent"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/forwarders/{id}/events/{eventId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxForwarderEvent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox forwarder event list Get inbox forwarder events + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// PageInboxForwarderEvents + public PageInboxForwarderEvents GetInboxForwarderEvents(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxForwarderEventsWithHttpInfo(id, page, size, sort); + return localVarResponse.Data; + } + + /// + /// Get an inbox forwarder event list Get inbox forwarder events + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// ApiResponse of PageInboxForwarderEvents + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxForwarderEventsWithHttpInfo(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetInboxForwarderEvents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/forwarders/{id}/events", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxForwarderEvents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox forwarder event list Get inbox forwarder events + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxForwarderEvents + public async System.Threading.Tasks.Task GetInboxForwarderEventsAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxForwarderEventsWithHttpInfoAsync(id, page, size, sort, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an inbox forwarder event list Get inbox forwarder events + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// Optional page index in inbox forwarder event list pagination (optional, default to 0) + /// Optional page size in inbox forwarder event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxForwarderEvents) + public async System.Threading.Tasks.Task> GetInboxForwarderEventsWithHttpInfoAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetInboxForwarderEvents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/forwarders/{id}/events", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxForwarderEvents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List inbox forwarders List all forwarders attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get forwarders from (optional) + /// Optional page index in inbox forwarder list pagination (optional, default to 0) + /// Optional page size in inbox forwarder list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageInboxForwarderDto + public PageInboxForwarderDto GetInboxForwarders(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxForwardersWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// List inbox forwarders List all forwarders attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get forwarders from (optional) + /// Optional page index in inbox forwarder list pagination (optional, default to 0) + /// Optional page size in inbox forwarder list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxForwarderDto + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxForwardersWithHttpInfo(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetInboxForwarders"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/forwarders", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxForwarders", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List inbox forwarders List all forwarders attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get forwarders from (optional) + /// Optional page index in inbox forwarder list pagination (optional, default to 0) + /// Optional page size in inbox forwarder list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxForwarderDto + public async System.Threading.Tasks.Task GetInboxForwardersAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxForwardersWithHttpInfoAsync(inboxId, page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List inbox forwarders List all forwarders attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get forwarders from (optional) + /// Optional page index in inbox forwarder list pagination (optional, default to 0) + /// Optional page size in inbox forwarder list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxForwarderDto) + public async System.Threading.Tasks.Task> GetInboxForwardersWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.GetInboxForwarders"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/forwarders", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxForwarders", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test an inbox forwarder Test an inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// InboxForwarderTestResult + public InboxForwarderTestResult TestInboxForwarder(Guid id, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = TestInboxForwarderWithHttpInfo(id, inboxForwarderTestOptions); + return localVarResponse.Data; + } + + /// + /// Test an inbox forwarder Test an inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// ApiResponse of InboxForwarderTestResult + public mailslurp_netstandard_2x.Client.ApiResponse TestInboxForwarderWithHttpInfo(Guid id, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0) + { + // verify the required parameter 'inboxForwarderTestOptions' is set + if (inboxForwarderTestOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'inboxForwarderTestOptions' when calling InboxForwarderControllerApi->TestInboxForwarder"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = inboxForwarderTestOptions; + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.TestInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/forwarders/{id}/test", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test an inbox forwarder Test an inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderTestResult + public async System.Threading.Tasks.Task TestInboxForwarderAsync(Guid id, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await TestInboxForwarderWithHttpInfoAsync(id, inboxForwarderTestOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Test an inbox forwarder Test an inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderTestResult) + public async System.Threading.Tasks.Task> TestInboxForwarderWithHttpInfoAsync(Guid id, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'inboxForwarderTestOptions' is set + if (inboxForwarderTestOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'inboxForwarderTestOptions' when calling InboxForwarderControllerApi->TestInboxForwarder"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = inboxForwarderTestOptions; + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.TestInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/forwarders/{id}/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test inbox forwarders for inbox Test inbox forwarders for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// InboxForwarderTestResult + public InboxForwarderTestResult TestInboxForwardersForInbox(Guid inboxId, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = TestInboxForwardersForInboxWithHttpInfo(inboxId, inboxForwarderTestOptions); + return localVarResponse.Data; + } + + /// + /// Test inbox forwarders for inbox Test inbox forwarders for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// ApiResponse of InboxForwarderTestResult + public mailslurp_netstandard_2x.Client.ApiResponse TestInboxForwardersForInboxWithHttpInfo(Guid inboxId, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0) + { + // verify the required parameter 'inboxForwarderTestOptions' is set + if (inboxForwarderTestOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'inboxForwarderTestOptions' when calling InboxForwarderControllerApi->TestInboxForwardersForInbox"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.Data = inboxForwarderTestOptions; + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.TestInboxForwardersForInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/forwarders", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxForwardersForInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test inbox forwarders for inbox Test inbox forwarders for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderTestResult + public async System.Threading.Tasks.Task TestInboxForwardersForInboxAsync(Guid inboxId, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await TestInboxForwardersForInboxWithHttpInfoAsync(inboxId, inboxForwarderTestOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Test inbox forwarders for inbox Test inbox forwarders for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderTestResult) + public async System.Threading.Tasks.Task> TestInboxForwardersForInboxWithHttpInfoAsync(Guid inboxId, InboxForwarderTestOptions inboxForwarderTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'inboxForwarderTestOptions' is set + if (inboxForwarderTestOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'inboxForwarderTestOptions' when calling InboxForwarderControllerApi->TestInboxForwardersForInbox"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.Data = inboxForwarderTestOptions; + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.TestInboxForwardersForInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/forwarders", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxForwardersForInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test new inbox forwarder Test new inbox forwarder + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxForwarderTestResult + public InboxForwarderTestResult TestNewInboxForwarder(TestNewInboxForwarderOptions testNewInboxForwarderOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = TestNewInboxForwarderWithHttpInfo(testNewInboxForwarderOptions); + return localVarResponse.Data; + } + + /// + /// Test new inbox forwarder Test new inbox forwarder + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxForwarderTestResult + public mailslurp_netstandard_2x.Client.ApiResponse TestNewInboxForwarderWithHttpInfo(TestNewInboxForwarderOptions testNewInboxForwarderOptions, int operationIndex = 0) + { + // verify the required parameter 'testNewInboxForwarderOptions' is set + if (testNewInboxForwarderOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'testNewInboxForwarderOptions' when calling InboxForwarderControllerApi->TestNewInboxForwarder"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = testNewInboxForwarderOptions; + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.TestNewInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/forwarders", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestNewInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test new inbox forwarder Test new inbox forwarder + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderTestResult + public async System.Threading.Tasks.Task TestNewInboxForwarderAsync(TestNewInboxForwarderOptions testNewInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await TestNewInboxForwarderWithHttpInfoAsync(testNewInboxForwarderOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Test new inbox forwarder Test new inbox forwarder + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderTestResult) + public async System.Threading.Tasks.Task> TestNewInboxForwarderWithHttpInfoAsync(TestNewInboxForwarderOptions testNewInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'testNewInboxForwarderOptions' is set + if (testNewInboxForwarderOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'testNewInboxForwarderOptions' when calling InboxForwarderControllerApi->TestNewInboxForwarder"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = testNewInboxForwarderOptions; + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.TestNewInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PatchAsync("/forwarders", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestNewInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an inbox forwarder Update inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// InboxForwarderDto + public InboxForwarderDto UpdateInboxForwarder(Guid id, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = UpdateInboxForwarderWithHttpInfo(id, createInboxForwarderOptions); + return localVarResponse.Data; + } + + /// + /// Update an inbox forwarder Update inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// ApiResponse of InboxForwarderDto + public mailslurp_netstandard_2x.Client.ApiResponse UpdateInboxForwarderWithHttpInfo(Guid id, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0) + { + // verify the required parameter 'createInboxForwarderOptions' is set + if (createInboxForwarderOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxForwarderOptions' when calling InboxForwarderControllerApi->UpdateInboxForwarder"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createInboxForwarderOptions; + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.UpdateInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/forwarders/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an inbox forwarder Update inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxForwarderDto + public async System.Threading.Tasks.Task UpdateInboxForwarderAsync(Guid id, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await UpdateInboxForwarderWithHttpInfoAsync(id, createInboxForwarderOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update an inbox forwarder Update inbox forwarder + /// + /// Thrown when fails to make API call + /// ID of inbox forwarder + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxForwarderDto) + public async System.Threading.Tasks.Task> UpdateInboxForwarderWithHttpInfoAsync(Guid id, CreateInboxForwarderOptions createInboxForwarderOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createInboxForwarderOptions' is set + if (createInboxForwarderOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxForwarderOptions' when calling InboxForwarderControllerApi->UpdateInboxForwarder"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createInboxForwarderOptions; + + localVarRequestOptions.Operation = "InboxForwarderControllerApi.UpdateInboxForwarder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/forwarders/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateInboxForwarder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/InboxReplierControllerApi.cs b/src/mailslurp_netstandard_2x/Api/InboxReplierControllerApi.cs new file mode 100644 index 00000000..64eac86f --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/InboxReplierControllerApi.cs @@ -0,0 +1,1660 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxReplierControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create an inbox replier + /// + /// + /// Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxReplierDto + InboxReplierDto CreateNewInboxReplier(CreateInboxReplierOptions createInboxReplierOptions, int operationIndex = 0); + + /// + /// Create an inbox replier + /// + /// + /// Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxReplierDto + ApiResponse CreateNewInboxReplierWithHttpInfo(CreateInboxReplierOptions createInboxReplierOptions, int operationIndex = 0); + /// + /// Delete an inbox replier + /// + /// + /// Delete inbox replier + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// + void DeleteInboxReplier(Guid id, int operationIndex = 0); + + /// + /// Delete an inbox replier + /// + /// + /// Delete inbox replier + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteInboxReplierWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Delete inbox repliers + /// + /// + /// Delete inbox repliers. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach replier to (optional) + /// Index associated with the operation. + /// + void DeleteInboxRepliers(Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Delete inbox repliers + /// + /// + /// Delete inbox repliers. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach replier to (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteInboxRepliersWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Get an inbox replier + /// + /// + /// Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// InboxReplierDto + InboxReplierDto GetInboxReplier(Guid id, int operationIndex = 0); + + /// + /// Get an inbox replier + /// + /// + /// Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// ApiResponse of InboxReplierDto + ApiResponse GetInboxReplierWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get an inbox replier event list + /// + /// + /// Get inbox ruleset events + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Optional page index in inbox replier event list pagination (optional, default to 0) + /// Optional page size in inbox replier event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// PageInboxReplierEvents + PageInboxReplierEvents GetInboxReplierEvents(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0); + + /// + /// Get an inbox replier event list + /// + /// + /// Get inbox ruleset events + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Optional page index in inbox replier event list pagination (optional, default to 0) + /// Optional page size in inbox replier event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// ApiResponse of PageInboxReplierEvents + ApiResponse GetInboxReplierEventsWithHttpInfo(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0); + /// + /// List inbox repliers + /// + /// + /// List all repliers attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get repliers from (optional) + /// Optional page index in inbox replier list pagination (optional, default to 0) + /// Optional page size in inbox replier list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageInboxReplierDto + PageInboxReplierDto GetInboxRepliers(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// List inbox repliers + /// + /// + /// List all repliers attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get repliers from (optional) + /// Optional page index in inbox replier list pagination (optional, default to 0) + /// Optional page size in inbox replier list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxReplierDto + ApiResponse GetInboxRepliersWithHttpInfo(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Update an inbox replier + /// + /// + /// Update inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// + /// Index associated with the operation. + /// InboxReplierDto + InboxReplierDto UpdateInboxReplier(Guid id, UpdateInboxReplierOptions updateInboxReplierOptions, int operationIndex = 0); + + /// + /// Update an inbox replier + /// + /// + /// Update inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// + /// Index associated with the operation. + /// ApiResponse of InboxReplierDto + ApiResponse UpdateInboxReplierWithHttpInfo(Guid id, UpdateInboxReplierOptions updateInboxReplierOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxReplierControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create an inbox replier + /// + /// + /// Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxReplierDto + System.Threading.Tasks.Task CreateNewInboxReplierAsync(CreateInboxReplierOptions createInboxReplierOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create an inbox replier + /// + /// + /// Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxReplierDto) + System.Threading.Tasks.Task> CreateNewInboxReplierWithHttpInfoAsync(CreateInboxReplierOptions createInboxReplierOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete an inbox replier + /// + /// + /// Delete inbox replier + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteInboxReplierAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete an inbox replier + /// + /// + /// Delete inbox replier + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteInboxReplierWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete inbox repliers + /// + /// + /// Delete inbox repliers. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach replier to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteInboxRepliersAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete inbox repliers + /// + /// + /// Delete inbox repliers. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach replier to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteInboxRepliersWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an inbox replier + /// + /// + /// Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxReplierDto + System.Threading.Tasks.Task GetInboxReplierAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an inbox replier + /// + /// + /// Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxReplierDto) + System.Threading.Tasks.Task> GetInboxReplierWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an inbox replier event list + /// + /// + /// Get inbox ruleset events + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Optional page index in inbox replier event list pagination (optional, default to 0) + /// Optional page size in inbox replier event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxReplierEvents + System.Threading.Tasks.Task GetInboxReplierEventsAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an inbox replier event list + /// + /// + /// Get inbox ruleset events + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Optional page index in inbox replier event list pagination (optional, default to 0) + /// Optional page size in inbox replier event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxReplierEvents) + System.Threading.Tasks.Task> GetInboxReplierEventsWithHttpInfoAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List inbox repliers + /// + /// + /// List all repliers attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get repliers from (optional) + /// Optional page index in inbox replier list pagination (optional, default to 0) + /// Optional page size in inbox replier list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxReplierDto + System.Threading.Tasks.Task GetInboxRepliersAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List inbox repliers + /// + /// + /// List all repliers attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get repliers from (optional) + /// Optional page index in inbox replier list pagination (optional, default to 0) + /// Optional page size in inbox replier list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxReplierDto) + System.Threading.Tasks.Task> GetInboxRepliersWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Update an inbox replier + /// + /// + /// Update inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxReplierDto + System.Threading.Tasks.Task UpdateInboxReplierAsync(Guid id, UpdateInboxReplierOptions updateInboxReplierOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update an inbox replier + /// + /// + /// Update inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxReplierDto) + System.Threading.Tasks.Task> UpdateInboxReplierWithHttpInfoAsync(Guid id, UpdateInboxReplierOptions updateInboxReplierOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxReplierControllerApi : IInboxReplierControllerApiSync, IInboxReplierControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class InboxReplierControllerApi : IInboxReplierControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public InboxReplierControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public InboxReplierControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public InboxReplierControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public InboxReplierControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create an inbox replier Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxReplierDto + public InboxReplierDto CreateNewInboxReplier(CreateInboxReplierOptions createInboxReplierOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateNewInboxReplierWithHttpInfo(createInboxReplierOptions); + return localVarResponse.Data; + } + + /// + /// Create an inbox replier Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxReplierDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateNewInboxReplierWithHttpInfo(CreateInboxReplierOptions createInboxReplierOptions, int operationIndex = 0) + { + // verify the required parameter 'createInboxReplierOptions' is set + if (createInboxReplierOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxReplierOptions' when calling InboxReplierControllerApi->CreateNewInboxReplier"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createInboxReplierOptions; + + localVarRequestOptions.Operation = "InboxReplierControllerApi.CreateNewInboxReplier"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/repliers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNewInboxReplier", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox replier Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxReplierDto + public async System.Threading.Tasks.Task CreateNewInboxReplierAsync(CreateInboxReplierOptions createInboxReplierOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateNewInboxReplierWithHttpInfoAsync(createInboxReplierOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create an inbox replier Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxReplierDto) + public async System.Threading.Tasks.Task> CreateNewInboxReplierWithHttpInfoAsync(CreateInboxReplierOptions createInboxReplierOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createInboxReplierOptions' is set + if (createInboxReplierOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxReplierOptions' when calling InboxReplierControllerApi->CreateNewInboxReplier"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createInboxReplierOptions; + + localVarRequestOptions.Operation = "InboxReplierControllerApi.CreateNewInboxReplier"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/repliers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNewInboxReplier", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox replier Delete inbox replier + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// + public void DeleteInboxReplier(Guid id, int operationIndex = 0) + { + DeleteInboxReplierWithHttpInfo(id); + } + + /// + /// Delete an inbox replier Delete inbox replier + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteInboxReplierWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxReplierControllerApi.DeleteInboxReplier"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/repliers/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxReplier", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox replier Delete inbox replier + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteInboxReplierAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteInboxReplierWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an inbox replier Delete inbox replier + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteInboxReplierWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxReplierControllerApi.DeleteInboxReplier"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/repliers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxReplier", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inbox repliers Delete inbox repliers. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach replier to (optional) + /// Index associated with the operation. + /// + public void DeleteInboxRepliers(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + DeleteInboxRepliersWithHttpInfo(inboxId); + } + + /// + /// Delete inbox repliers Delete inbox repliers. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach replier to (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteInboxRepliersWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxReplierControllerApi.DeleteInboxRepliers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/repliers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxRepliers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inbox repliers Delete inbox repliers. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach replier to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteInboxRepliersAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteInboxRepliersWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete inbox repliers Delete inbox repliers. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach replier to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteInboxRepliersWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxReplierControllerApi.DeleteInboxRepliers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/repliers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxRepliers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox replier Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// InboxReplierDto + public InboxReplierDto GetInboxReplier(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxReplierWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get an inbox replier Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// ApiResponse of InboxReplierDto + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxReplierWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxReplierControllerApi.GetInboxReplier"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/repliers/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxReplier", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox replier Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxReplierDto + public async System.Threading.Tasks.Task GetInboxReplierAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxReplierWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an inbox replier Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxReplierDto) + public async System.Threading.Tasks.Task> GetInboxReplierWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxReplierControllerApi.GetInboxReplier"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/repliers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxReplier", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox replier event list Get inbox ruleset events + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Optional page index in inbox replier event list pagination (optional, default to 0) + /// Optional page size in inbox replier event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// PageInboxReplierEvents + public PageInboxReplierEvents GetInboxReplierEvents(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxReplierEventsWithHttpInfo(id, page, size, sort); + return localVarResponse.Data; + } + + /// + /// Get an inbox replier event list Get inbox ruleset events + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Optional page index in inbox replier event list pagination (optional, default to 0) + /// Optional page size in inbox replier event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// ApiResponse of PageInboxReplierEvents + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxReplierEventsWithHttpInfo(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + + localVarRequestOptions.Operation = "InboxReplierControllerApi.GetInboxReplierEvents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/repliers/{id}/events", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxReplierEvents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox replier event list Get inbox ruleset events + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Optional page index in inbox replier event list pagination (optional, default to 0) + /// Optional page size in inbox replier event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxReplierEvents + public async System.Threading.Tasks.Task GetInboxReplierEventsAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxReplierEventsWithHttpInfoAsync(id, page, size, sort, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an inbox replier event list Get inbox ruleset events + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// Optional page index in inbox replier event list pagination (optional, default to 0) + /// Optional page size in inbox replier event list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxReplierEvents) + public async System.Threading.Tasks.Task> GetInboxReplierEventsWithHttpInfoAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + + localVarRequestOptions.Operation = "InboxReplierControllerApi.GetInboxReplierEvents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/repliers/{id}/events", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxReplierEvents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List inbox repliers List all repliers attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get repliers from (optional) + /// Optional page index in inbox replier list pagination (optional, default to 0) + /// Optional page size in inbox replier list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageInboxReplierDto + public PageInboxReplierDto GetInboxRepliers(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxRepliersWithHttpInfo(inboxId, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// List inbox repliers List all repliers attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get repliers from (optional) + /// Optional page index in inbox replier list pagination (optional, default to 0) + /// Optional page size in inbox replier list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxReplierDto + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxRepliersWithHttpInfo(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxReplierControllerApi.GetInboxRepliers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/repliers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxRepliers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List inbox repliers List all repliers attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get repliers from (optional) + /// Optional page index in inbox replier list pagination (optional, default to 0) + /// Optional page size in inbox replier list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxReplierDto + public async System.Threading.Tasks.Task GetInboxRepliersAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxRepliersWithHttpInfoAsync(inboxId, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List inbox repliers List all repliers attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get repliers from (optional) + /// Optional page index in inbox replier list pagination (optional, default to 0) + /// Optional page size in inbox replier list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxReplierDto) + public async System.Threading.Tasks.Task> GetInboxRepliersWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxReplierControllerApi.GetInboxRepliers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/repliers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxRepliers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an inbox replier Update inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// + /// Index associated with the operation. + /// InboxReplierDto + public InboxReplierDto UpdateInboxReplier(Guid id, UpdateInboxReplierOptions updateInboxReplierOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = UpdateInboxReplierWithHttpInfo(id, updateInboxReplierOptions); + return localVarResponse.Data; + } + + /// + /// Update an inbox replier Update inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// + /// Index associated with the operation. + /// ApiResponse of InboxReplierDto + public mailslurp_netstandard_2x.Client.ApiResponse UpdateInboxReplierWithHttpInfo(Guid id, UpdateInboxReplierOptions updateInboxReplierOptions, int operationIndex = 0) + { + // verify the required parameter 'updateInboxReplierOptions' is set + if (updateInboxReplierOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateInboxReplierOptions' when calling InboxReplierControllerApi->UpdateInboxReplier"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateInboxReplierOptions; + + localVarRequestOptions.Operation = "InboxReplierControllerApi.UpdateInboxReplier"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/repliers/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateInboxReplier", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update an inbox replier Update inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxReplierDto + public async System.Threading.Tasks.Task UpdateInboxReplierAsync(Guid id, UpdateInboxReplierOptions updateInboxReplierOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await UpdateInboxReplierWithHttpInfoAsync(id, updateInboxReplierOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update an inbox replier Update inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox replier + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxReplierDto) + public async System.Threading.Tasks.Task> UpdateInboxReplierWithHttpInfoAsync(Guid id, UpdateInboxReplierOptions updateInboxReplierOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'updateInboxReplierOptions' is set + if (updateInboxReplierOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'updateInboxReplierOptions' when calling InboxReplierControllerApi->UpdateInboxReplier"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateInboxReplierOptions; + + localVarRequestOptions.Operation = "InboxReplierControllerApi.UpdateInboxReplier"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/repliers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateInboxReplier", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/InboxRulesetControllerApi.cs b/src/mailslurp_netstandard_2x/Api/InboxRulesetControllerApi.cs new file mode 100644 index 00000000..a50cbb91 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/InboxRulesetControllerApi.cs @@ -0,0 +1,2280 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxRulesetControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create an inbox ruleset + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// InboxRulesetDto + InboxRulesetDto CreateNewInboxRuleset(CreateInboxRulesetOptions createInboxRulesetOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Create an inbox ruleset + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// ApiResponse of InboxRulesetDto + ApiResponse CreateNewInboxRulesetWithHttpInfo(CreateInboxRulesetOptions createInboxRulesetOptions, Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Delete an inbox ruleset + /// + /// + /// Delete inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// + void DeleteInboxRuleset(Guid id, int operationIndex = 0); + + /// + /// Delete an inbox ruleset + /// + /// + /// Delete inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteInboxRulesetWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Delete inbox rulesets + /// + /// + /// Delete inbox rulesets. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// + void DeleteInboxRulesets(Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Delete inbox rulesets + /// + /// + /// Delete inbox rulesets. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteInboxRulesetsWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Get an inbox ruleset + /// + /// + /// Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// InboxRulesetDto + InboxRulesetDto GetInboxRuleset(Guid id, int operationIndex = 0); + + /// + /// Get an inbox ruleset + /// + /// + /// Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// ApiResponse of InboxRulesetDto + ApiResponse GetInboxRulesetWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// List inbox rulesets + /// + /// + /// List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get rulesets from (optional) + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageInboxRulesetDto + PageInboxRulesetDto GetInboxRulesets(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// List inbox rulesets + /// + /// + /// List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get rulesets from (optional) + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxRulesetDto + ApiResponse GetInboxRulesetsWithHttpInfo(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Test an inbox ruleset + /// + /// + /// Test an inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// + /// Index associated with the operation. + /// InboxRulesetTestResult + InboxRulesetTestResult TestInboxRuleset(Guid id, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0); + + /// + /// Test an inbox ruleset + /// + /// + /// Test an inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// + /// Index associated with the operation. + /// ApiResponse of InboxRulesetTestResult + ApiResponse TestInboxRulesetWithHttpInfo(Guid id, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0); + /// + /// Test receiving with inbox rulesets + /// + /// + /// Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// TestInboxRulesetReceivingResult + TestInboxRulesetReceivingResult TestInboxRulesetReceiving(TestInboxRulesetReceivingOptions testInboxRulesetReceivingOptions, int operationIndex = 0); + + /// + /// Test receiving with inbox rulesets + /// + /// + /// Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of TestInboxRulesetReceivingResult + ApiResponse TestInboxRulesetReceivingWithHttpInfo(TestInboxRulesetReceivingOptions testInboxRulesetReceivingOptions, int operationIndex = 0); + /// + /// Test sending with inbox rulesets + /// + /// + /// Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// TestInboxRulesetSendingResult + TestInboxRulesetSendingResult TestInboxRulesetSending(TestInboxRulesetSendingOptions testInboxRulesetSendingOptions, int operationIndex = 0); + + /// + /// Test sending with inbox rulesets + /// + /// + /// Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of TestInboxRulesetSendingResult + ApiResponse TestInboxRulesetSendingWithHttpInfo(TestInboxRulesetSendingOptions testInboxRulesetSendingOptions, int operationIndex = 0); + /// + /// Test inbox rulesets for inbox + /// + /// + /// Test inbox rulesets for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// InboxRulesetTestResult + InboxRulesetTestResult TestInboxRulesetsForInbox(Guid inboxId, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0); + + /// + /// Test inbox rulesets for inbox + /// + /// + /// Test inbox rulesets for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// ApiResponse of InboxRulesetTestResult + ApiResponse TestInboxRulesetsForInboxWithHttpInfo(Guid inboxId, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0); + /// + /// Test new inbox ruleset + /// + /// + /// Test new inbox ruleset + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxRulesetTestResult + InboxRulesetTestResult TestNewInboxRuleset(TestNewInboxRulesetOptions testNewInboxRulesetOptions, int operationIndex = 0); + + /// + /// Test new inbox ruleset + /// + /// + /// Test new inbox ruleset + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxRulesetTestResult + ApiResponse TestNewInboxRulesetWithHttpInfo(TestNewInboxRulesetOptions testNewInboxRulesetOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxRulesetControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create an inbox ruleset + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetDto + System.Threading.Tasks.Task CreateNewInboxRulesetAsync(CreateInboxRulesetOptions createInboxRulesetOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create an inbox ruleset + /// + /// + /// Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetDto) + System.Threading.Tasks.Task> CreateNewInboxRulesetWithHttpInfoAsync(CreateInboxRulesetOptions createInboxRulesetOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete an inbox ruleset + /// + /// + /// Delete inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteInboxRulesetAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete an inbox ruleset + /// + /// + /// Delete inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteInboxRulesetWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete inbox rulesets + /// + /// + /// Delete inbox rulesets. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteInboxRulesetsAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete inbox rulesets + /// + /// + /// Delete inbox rulesets. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteInboxRulesetsWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get an inbox ruleset + /// + /// + /// Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetDto + System.Threading.Tasks.Task GetInboxRulesetAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get an inbox ruleset + /// + /// + /// Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetDto) + System.Threading.Tasks.Task> GetInboxRulesetWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List inbox rulesets + /// + /// + /// List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get rulesets from (optional) + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxRulesetDto + System.Threading.Tasks.Task GetInboxRulesetsAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List inbox rulesets + /// + /// + /// List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get rulesets from (optional) + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxRulesetDto) + System.Threading.Tasks.Task> GetInboxRulesetsWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Test an inbox ruleset + /// + /// + /// Test an inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetTestResult + System.Threading.Tasks.Task TestInboxRulesetAsync(Guid id, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Test an inbox ruleset + /// + /// + /// Test an inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetTestResult) + System.Threading.Tasks.Task> TestInboxRulesetWithHttpInfoAsync(Guid id, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Test receiving with inbox rulesets + /// + /// + /// Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TestInboxRulesetReceivingResult + System.Threading.Tasks.Task TestInboxRulesetReceivingAsync(TestInboxRulesetReceivingOptions testInboxRulesetReceivingOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Test receiving with inbox rulesets + /// + /// + /// Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TestInboxRulesetReceivingResult) + System.Threading.Tasks.Task> TestInboxRulesetReceivingWithHttpInfoAsync(TestInboxRulesetReceivingOptions testInboxRulesetReceivingOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Test sending with inbox rulesets + /// + /// + /// Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TestInboxRulesetSendingResult + System.Threading.Tasks.Task TestInboxRulesetSendingAsync(TestInboxRulesetSendingOptions testInboxRulesetSendingOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Test sending with inbox rulesets + /// + /// + /// Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TestInboxRulesetSendingResult) + System.Threading.Tasks.Task> TestInboxRulesetSendingWithHttpInfoAsync(TestInboxRulesetSendingOptions testInboxRulesetSendingOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Test inbox rulesets for inbox + /// + /// + /// Test inbox rulesets for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetTestResult + System.Threading.Tasks.Task TestInboxRulesetsForInboxAsync(Guid inboxId, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Test inbox rulesets for inbox + /// + /// + /// Test inbox rulesets for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetTestResult) + System.Threading.Tasks.Task> TestInboxRulesetsForInboxWithHttpInfoAsync(Guid inboxId, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Test new inbox ruleset + /// + /// + /// Test new inbox ruleset + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetTestResult + System.Threading.Tasks.Task TestNewInboxRulesetAsync(TestNewInboxRulesetOptions testNewInboxRulesetOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Test new inbox ruleset + /// + /// + /// Test new inbox ruleset + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetTestResult) + System.Threading.Tasks.Task> TestNewInboxRulesetWithHttpInfoAsync(TestNewInboxRulesetOptions testNewInboxRulesetOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInboxRulesetControllerApi : IInboxRulesetControllerApiSync, IInboxRulesetControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class InboxRulesetControllerApi : IInboxRulesetControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public InboxRulesetControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public InboxRulesetControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public InboxRulesetControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public InboxRulesetControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// InboxRulesetDto + public InboxRulesetDto CreateNewInboxRuleset(CreateInboxRulesetOptions createInboxRulesetOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateNewInboxRulesetWithHttpInfo(createInboxRulesetOptions, inboxId); + return localVarResponse.Data; + } + + /// + /// Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// ApiResponse of InboxRulesetDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateNewInboxRulesetWithHttpInfo(CreateInboxRulesetOptions createInboxRulesetOptions, Guid? inboxId = default(Guid?), int operationIndex = 0) + { + // verify the required parameter 'createInboxRulesetOptions' is set + if (createInboxRulesetOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxRulesetOptions' when calling InboxRulesetControllerApi->CreateNewInboxRuleset"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = createInboxRulesetOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.CreateNewInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/rulesets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNewInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetDto + public async System.Threading.Tasks.Task CreateNewInboxRulesetAsync(CreateInboxRulesetOptions createInboxRulesetOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateNewInboxRulesetWithHttpInfoAsync(createInboxRulesetOptions, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving + /// + /// Thrown when fails to make API call + /// + /// Inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetDto) + public async System.Threading.Tasks.Task> CreateNewInboxRulesetWithHttpInfoAsync(CreateInboxRulesetOptions createInboxRulesetOptions, Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createInboxRulesetOptions' is set + if (createInboxRulesetOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createInboxRulesetOptions' when calling InboxRulesetControllerApi->CreateNewInboxRuleset"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + localVarRequestOptions.Data = createInboxRulesetOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.CreateNewInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/rulesets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNewInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox ruleset Delete inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// + public void DeleteInboxRuleset(Guid id, int operationIndex = 0) + { + DeleteInboxRulesetWithHttpInfo(id); + } + + /// + /// Delete an inbox ruleset Delete inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteInboxRulesetWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.DeleteInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/rulesets/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete an inbox ruleset Delete inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteInboxRulesetAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteInboxRulesetWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an inbox ruleset Delete inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteInboxRulesetWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.DeleteInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/rulesets/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inbox rulesets Delete inbox rulesets. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// + public void DeleteInboxRulesets(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + DeleteInboxRulesetsWithHttpInfo(inboxId); + } + + /// + /// Delete inbox rulesets Delete inbox rulesets. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteInboxRulesetsWithHttpInfo(Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.DeleteInboxRulesets"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/rulesets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxRulesets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete inbox rulesets Delete inbox rulesets. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteInboxRulesetsAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteInboxRulesetsWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete inbox rulesets Delete inbox rulesets. Accepts optional inboxId filter. + /// + /// Thrown when fails to make API call + /// Optional inbox id to attach ruleset to (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteInboxRulesetsWithHttpInfoAsync(Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.DeleteInboxRulesets"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/rulesets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteInboxRulesets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox ruleset Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// InboxRulesetDto + public InboxRulesetDto GetInboxRuleset(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxRulesetWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get an inbox ruleset Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// ApiResponse of InboxRulesetDto + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxRulesetWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.GetInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/rulesets/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get an inbox ruleset Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetDto + public async System.Threading.Tasks.Task GetInboxRulesetAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxRulesetWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get an inbox ruleset Get inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetDto) + public async System.Threading.Tasks.Task> GetInboxRulesetWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.GetInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/rulesets/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List inbox rulesets List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get rulesets from (optional) + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageInboxRulesetDto + public PageInboxRulesetDto GetInboxRulesets(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxRulesetsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// List inbox rulesets List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get rulesets from (optional) + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageInboxRulesetDto + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxRulesetsWithHttpInfo(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.GetInboxRulesets"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/rulesets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxRulesets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List inbox rulesets List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get rulesets from (optional) + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageInboxRulesetDto + public async System.Threading.Tasks.Task GetInboxRulesetsAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxRulesetsWithHttpInfoAsync(inboxId, page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List inbox rulesets List all rulesets attached to an inbox + /// + /// Thrown when fails to make API call + /// Optional inbox id to get rulesets from (optional) + /// Optional page index in inbox ruleset list pagination (optional, default to 0) + /// Optional page size in inbox ruleset list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageInboxRulesetDto) + public async System.Threading.Tasks.Task> GetInboxRulesetsWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.GetInboxRulesets"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/rulesets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxRulesets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test an inbox ruleset Test an inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// + /// Index associated with the operation. + /// InboxRulesetTestResult + public InboxRulesetTestResult TestInboxRuleset(Guid id, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = TestInboxRulesetWithHttpInfo(id, inboxRulesetTestOptions); + return localVarResponse.Data; + } + + /// + /// Test an inbox ruleset Test an inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// + /// Index associated with the operation. + /// ApiResponse of InboxRulesetTestResult + public mailslurp_netstandard_2x.Client.ApiResponse TestInboxRulesetWithHttpInfo(Guid id, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0) + { + // verify the required parameter 'inboxRulesetTestOptions' is set + if (inboxRulesetTestOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'inboxRulesetTestOptions' when calling InboxRulesetControllerApi->TestInboxRuleset"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = inboxRulesetTestOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.TestInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/rulesets/{id}/test", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test an inbox ruleset Test an inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetTestResult + public async System.Threading.Tasks.Task TestInboxRulesetAsync(Guid id, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await TestInboxRulesetWithHttpInfoAsync(id, inboxRulesetTestOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Test an inbox ruleset Test an inbox ruleset + /// + /// Thrown when fails to make API call + /// ID of inbox ruleset + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetTestResult) + public async System.Threading.Tasks.Task> TestInboxRulesetWithHttpInfoAsync(Guid id, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'inboxRulesetTestOptions' is set + if (inboxRulesetTestOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'inboxRulesetTestOptions' when calling InboxRulesetControllerApi->TestInboxRuleset"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = inboxRulesetTestOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.TestInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/rulesets/{id}/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test receiving with inbox rulesets Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// TestInboxRulesetReceivingResult + public TestInboxRulesetReceivingResult TestInboxRulesetReceiving(TestInboxRulesetReceivingOptions testInboxRulesetReceivingOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = TestInboxRulesetReceivingWithHttpInfo(testInboxRulesetReceivingOptions); + return localVarResponse.Data; + } + + /// + /// Test receiving with inbox rulesets Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of TestInboxRulesetReceivingResult + public mailslurp_netstandard_2x.Client.ApiResponse TestInboxRulesetReceivingWithHttpInfo(TestInboxRulesetReceivingOptions testInboxRulesetReceivingOptions, int operationIndex = 0) + { + // verify the required parameter 'testInboxRulesetReceivingOptions' is set + if (testInboxRulesetReceivingOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'testInboxRulesetReceivingOptions' when calling InboxRulesetControllerApi->TestInboxRulesetReceiving"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = testInboxRulesetReceivingOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.TestInboxRulesetReceiving"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/rulesets/test-receiving", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxRulesetReceiving", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test receiving with inbox rulesets Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TestInboxRulesetReceivingResult + public async System.Threading.Tasks.Task TestInboxRulesetReceivingAsync(TestInboxRulesetReceivingOptions testInboxRulesetReceivingOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await TestInboxRulesetReceivingWithHttpInfoAsync(testInboxRulesetReceivingOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Test receiving with inbox rulesets Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TestInboxRulesetReceivingResult) + public async System.Threading.Tasks.Task> TestInboxRulesetReceivingWithHttpInfoAsync(TestInboxRulesetReceivingOptions testInboxRulesetReceivingOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'testInboxRulesetReceivingOptions' is set + if (testInboxRulesetReceivingOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'testInboxRulesetReceivingOptions' when calling InboxRulesetControllerApi->TestInboxRulesetReceiving"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = testInboxRulesetReceivingOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.TestInboxRulesetReceiving"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/rulesets/test-receiving", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxRulesetReceiving", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test sending with inbox rulesets Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// TestInboxRulesetSendingResult + public TestInboxRulesetSendingResult TestInboxRulesetSending(TestInboxRulesetSendingOptions testInboxRulesetSendingOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = TestInboxRulesetSendingWithHttpInfo(testInboxRulesetSendingOptions); + return localVarResponse.Data; + } + + /// + /// Test sending with inbox rulesets Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of TestInboxRulesetSendingResult + public mailslurp_netstandard_2x.Client.ApiResponse TestInboxRulesetSendingWithHttpInfo(TestInboxRulesetSendingOptions testInboxRulesetSendingOptions, int operationIndex = 0) + { + // verify the required parameter 'testInboxRulesetSendingOptions' is set + if (testInboxRulesetSendingOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'testInboxRulesetSendingOptions' when calling InboxRulesetControllerApi->TestInboxRulesetSending"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = testInboxRulesetSendingOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.TestInboxRulesetSending"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/rulesets/test-sending", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxRulesetSending", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test sending with inbox rulesets Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TestInboxRulesetSendingResult + public async System.Threading.Tasks.Task TestInboxRulesetSendingAsync(TestInboxRulesetSendingOptions testInboxRulesetSendingOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await TestInboxRulesetSendingWithHttpInfoAsync(testInboxRulesetSendingOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Test sending with inbox rulesets Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TestInboxRulesetSendingResult) + public async System.Threading.Tasks.Task> TestInboxRulesetSendingWithHttpInfoAsync(TestInboxRulesetSendingOptions testInboxRulesetSendingOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'testInboxRulesetSendingOptions' is set + if (testInboxRulesetSendingOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'testInboxRulesetSendingOptions' when calling InboxRulesetControllerApi->TestInboxRulesetSending"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = testInboxRulesetSendingOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.TestInboxRulesetSending"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/rulesets/test-sending", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxRulesetSending", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test inbox rulesets for inbox Test inbox rulesets for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// InboxRulesetTestResult + public InboxRulesetTestResult TestInboxRulesetsForInbox(Guid inboxId, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = TestInboxRulesetsForInboxWithHttpInfo(inboxId, inboxRulesetTestOptions); + return localVarResponse.Data; + } + + /// + /// Test inbox rulesets for inbox Test inbox rulesets for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// ApiResponse of InboxRulesetTestResult + public mailslurp_netstandard_2x.Client.ApiResponse TestInboxRulesetsForInboxWithHttpInfo(Guid inboxId, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0) + { + // verify the required parameter 'inboxRulesetTestOptions' is set + if (inboxRulesetTestOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'inboxRulesetTestOptions' when calling InboxRulesetControllerApi->TestInboxRulesetsForInbox"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.Data = inboxRulesetTestOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.TestInboxRulesetsForInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/rulesets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxRulesetsForInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test inbox rulesets for inbox Test inbox rulesets for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetTestResult + public async System.Threading.Tasks.Task TestInboxRulesetsForInboxAsync(Guid inboxId, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await TestInboxRulesetsForInboxWithHttpInfoAsync(inboxId, inboxRulesetTestOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Test inbox rulesets for inbox Test inbox rulesets for inbox + /// + /// Thrown when fails to make API call + /// ID of inbox + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetTestResult) + public async System.Threading.Tasks.Task> TestInboxRulesetsForInboxWithHttpInfoAsync(Guid inboxId, InboxRulesetTestOptions inboxRulesetTestOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'inboxRulesetTestOptions' is set + if (inboxRulesetTestOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'inboxRulesetTestOptions' when calling InboxRulesetControllerApi->TestInboxRulesetsForInbox"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.Data = inboxRulesetTestOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.TestInboxRulesetsForInbox"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/rulesets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestInboxRulesetsForInbox", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test new inbox ruleset Test new inbox ruleset + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// InboxRulesetTestResult + public InboxRulesetTestResult TestNewInboxRuleset(TestNewInboxRulesetOptions testNewInboxRulesetOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = TestNewInboxRulesetWithHttpInfo(testNewInboxRulesetOptions); + return localVarResponse.Data; + } + + /// + /// Test new inbox ruleset Test new inbox ruleset + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of InboxRulesetTestResult + public mailslurp_netstandard_2x.Client.ApiResponse TestNewInboxRulesetWithHttpInfo(TestNewInboxRulesetOptions testNewInboxRulesetOptions, int operationIndex = 0) + { + // verify the required parameter 'testNewInboxRulesetOptions' is set + if (testNewInboxRulesetOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'testNewInboxRulesetOptions' when calling InboxRulesetControllerApi->TestNewInboxRuleset"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = testNewInboxRulesetOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.TestNewInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/rulesets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestNewInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Test new inbox ruleset Test new inbox ruleset + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InboxRulesetTestResult + public async System.Threading.Tasks.Task TestNewInboxRulesetAsync(TestNewInboxRulesetOptions testNewInboxRulesetOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await TestNewInboxRulesetWithHttpInfoAsync(testNewInboxRulesetOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Test new inbox ruleset Test new inbox ruleset + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InboxRulesetTestResult) + public async System.Threading.Tasks.Task> TestNewInboxRulesetWithHttpInfoAsync(TestNewInboxRulesetOptions testNewInboxRulesetOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'testNewInboxRulesetOptions' is set + if (testNewInboxRulesetOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'testNewInboxRulesetOptions' when calling InboxRulesetControllerApi->TestNewInboxRuleset"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = testNewInboxRulesetOptions; + + localVarRequestOptions.Operation = "InboxRulesetControllerApi.TestNewInboxRuleset"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PatchAsync("/rulesets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestNewInboxRuleset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/MailServerControllerApi.cs b/src/mailslurp_netstandard_2x/Api/MailServerControllerApi.cs new file mode 100644 index 00000000..f9856112 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/MailServerControllerApi.cs @@ -0,0 +1,1171 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMailServerControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get DNS Mail Server records for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DescribeMailServerDomainResult + DescribeMailServerDomainResult DescribeMailServerDomain(DescribeDomainOptions describeDomainOptions, int operationIndex = 0); + + /// + /// Get DNS Mail Server records for a domain + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DescribeMailServerDomainResult + ApiResponse DescribeMailServerDomainWithHttpInfo(DescribeDomainOptions describeDomainOptions, int operationIndex = 0); + /// + /// Lookup DNS records for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DNSLookupResults + DNSLookupResults GetDnsLookup(DNSLookupOptions dNSLookupOptions, int operationIndex = 0); + + /// + /// Lookup DNS records for a domain + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DNSLookupResults + ApiResponse GetDnsLookupWithHttpInfo(DNSLookupOptions dNSLookupOptions, int operationIndex = 0); + /// + /// Lookup DNS records for multiple domains + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DNSLookupResults + DNSLookupResults GetDnsLookups(DNSLookupsOptions dNSLookupsOptions, int operationIndex = 0); + + /// + /// Lookup DNS records for multiple domains + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DNSLookupResults + ApiResponse GetDnsLookupsWithHttpInfo(DNSLookupsOptions dNSLookupsOptions, int operationIndex = 0); + /// + /// Get IP address for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// IPAddressResult + IPAddressResult GetIpAddress(string name, int operationIndex = 0); + + /// + /// Get IP address for a domain + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of IPAddressResult + ApiResponse GetIpAddressWithHttpInfo(string name, int operationIndex = 0); + /// + /// Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmailVerificationResult + [Obsolete] + EmailVerificationResult VerifyEmailAddress(VerifyEmailAddressOptions verifyEmailAddressOptions, int operationIndex = 0); + + /// + /// Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmailVerificationResult + [Obsolete] + ApiResponse VerifyEmailAddressWithHttpInfo(VerifyEmailAddressOptions verifyEmailAddressOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMailServerControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get DNS Mail Server records for a domain + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DescribeMailServerDomainResult + System.Threading.Tasks.Task DescribeMailServerDomainAsync(DescribeDomainOptions describeDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get DNS Mail Server records for a domain + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DescribeMailServerDomainResult) + System.Threading.Tasks.Task> DescribeMailServerDomainWithHttpInfoAsync(DescribeDomainOptions describeDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Lookup DNS records for a domain + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DNSLookupResults + System.Threading.Tasks.Task GetDnsLookupAsync(DNSLookupOptions dNSLookupOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Lookup DNS records for a domain + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DNSLookupResults) + System.Threading.Tasks.Task> GetDnsLookupWithHttpInfoAsync(DNSLookupOptions dNSLookupOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Lookup DNS records for multiple domains + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DNSLookupResults + System.Threading.Tasks.Task GetDnsLookupsAsync(DNSLookupsOptions dNSLookupsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Lookup DNS records for multiple domains + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DNSLookupResults) + System.Threading.Tasks.Task> GetDnsLookupsWithHttpInfoAsync(DNSLookupsOptions dNSLookupsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get IP address for a domain + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of IPAddressResult + System.Threading.Tasks.Task GetIpAddressAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get IP address for a domain + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (IPAddressResult) + System.Threading.Tasks.Task> GetIpAddressWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailVerificationResult + [Obsolete] + System.Threading.Tasks.Task VerifyEmailAddressAsync(VerifyEmailAddressOptions verifyEmailAddressOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailVerificationResult) + [Obsolete] + System.Threading.Tasks.Task> VerifyEmailAddressWithHttpInfoAsync(VerifyEmailAddressOptions verifyEmailAddressOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMailServerControllerApi : IMailServerControllerApiSync, IMailServerControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MailServerControllerApi : IMailServerControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MailServerControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public MailServerControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MailServerControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public MailServerControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get DNS Mail Server records for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DescribeMailServerDomainResult + public DescribeMailServerDomainResult DescribeMailServerDomain(DescribeDomainOptions describeDomainOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = DescribeMailServerDomainWithHttpInfo(describeDomainOptions); + return localVarResponse.Data; + } + + /// + /// Get DNS Mail Server records for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DescribeMailServerDomainResult + public mailslurp_netstandard_2x.Client.ApiResponse DescribeMailServerDomainWithHttpInfo(DescribeDomainOptions describeDomainOptions, int operationIndex = 0) + { + // verify the required parameter 'describeDomainOptions' is set + if (describeDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'describeDomainOptions' when calling MailServerControllerApi->DescribeMailServerDomain"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = describeDomainOptions; + + localVarRequestOptions.Operation = "MailServerControllerApi.DescribeMailServerDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/mail-server/describe/domain", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DescribeMailServerDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get DNS Mail Server records for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DescribeMailServerDomainResult + public async System.Threading.Tasks.Task DescribeMailServerDomainAsync(DescribeDomainOptions describeDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await DescribeMailServerDomainWithHttpInfoAsync(describeDomainOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get DNS Mail Server records for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DescribeMailServerDomainResult) + public async System.Threading.Tasks.Task> DescribeMailServerDomainWithHttpInfoAsync(DescribeDomainOptions describeDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'describeDomainOptions' is set + if (describeDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'describeDomainOptions' when calling MailServerControllerApi->DescribeMailServerDomain"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = describeDomainOptions; + + localVarRequestOptions.Operation = "MailServerControllerApi.DescribeMailServerDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/mail-server/describe/domain", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DescribeMailServerDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup DNS records for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DNSLookupResults + public DNSLookupResults GetDnsLookup(DNSLookupOptions dNSLookupOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetDnsLookupWithHttpInfo(dNSLookupOptions); + return localVarResponse.Data; + } + + /// + /// Lookup DNS records for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DNSLookupResults + public mailslurp_netstandard_2x.Client.ApiResponse GetDnsLookupWithHttpInfo(DNSLookupOptions dNSLookupOptions, int operationIndex = 0) + { + // verify the required parameter 'dNSLookupOptions' is set + if (dNSLookupOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'dNSLookupOptions' when calling MailServerControllerApi->GetDnsLookup"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = dNSLookupOptions; + + localVarRequestOptions.Operation = "MailServerControllerApi.GetDnsLookup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/mail-server/describe/dns-lookup", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDnsLookup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup DNS records for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DNSLookupResults + public async System.Threading.Tasks.Task GetDnsLookupAsync(DNSLookupOptions dNSLookupOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetDnsLookupWithHttpInfoAsync(dNSLookupOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Lookup DNS records for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DNSLookupResults) + public async System.Threading.Tasks.Task> GetDnsLookupWithHttpInfoAsync(DNSLookupOptions dNSLookupOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'dNSLookupOptions' is set + if (dNSLookupOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'dNSLookupOptions' when calling MailServerControllerApi->GetDnsLookup"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = dNSLookupOptions; + + localVarRequestOptions.Operation = "MailServerControllerApi.GetDnsLookup"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/mail-server/describe/dns-lookup", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDnsLookup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup DNS records for multiple domains + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DNSLookupResults + public DNSLookupResults GetDnsLookups(DNSLookupsOptions dNSLookupsOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetDnsLookupsWithHttpInfo(dNSLookupsOptions); + return localVarResponse.Data; + } + + /// + /// Lookup DNS records for multiple domains + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DNSLookupResults + public mailslurp_netstandard_2x.Client.ApiResponse GetDnsLookupsWithHttpInfo(DNSLookupsOptions dNSLookupsOptions, int operationIndex = 0) + { + // verify the required parameter 'dNSLookupsOptions' is set + if (dNSLookupsOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'dNSLookupsOptions' when calling MailServerControllerApi->GetDnsLookups"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = dNSLookupsOptions; + + localVarRequestOptions.Operation = "MailServerControllerApi.GetDnsLookups"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/mail-server/describe/dns-lookups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDnsLookups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup DNS records for multiple domains + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DNSLookupResults + public async System.Threading.Tasks.Task GetDnsLookupsAsync(DNSLookupsOptions dNSLookupsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetDnsLookupsWithHttpInfoAsync(dNSLookupsOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Lookup DNS records for multiple domains + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DNSLookupResults) + public async System.Threading.Tasks.Task> GetDnsLookupsWithHttpInfoAsync(DNSLookupsOptions dNSLookupsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'dNSLookupsOptions' is set + if (dNSLookupsOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'dNSLookupsOptions' when calling MailServerControllerApi->GetDnsLookups"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = dNSLookupsOptions; + + localVarRequestOptions.Operation = "MailServerControllerApi.GetDnsLookups"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/mail-server/describe/dns-lookups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDnsLookups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get IP address for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// IPAddressResult + public IPAddressResult GetIpAddress(string name, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetIpAddressWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// Get IP address for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of IPAddressResult + public mailslurp_netstandard_2x.Client.ApiResponse GetIpAddressWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'name' when calling MailServerControllerApi->GetIpAddress"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + + localVarRequestOptions.Operation = "MailServerControllerApi.GetIpAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/mail-server/describe/ip-address", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetIpAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get IP address for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of IPAddressResult + public async System.Threading.Tasks.Task GetIpAddressAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetIpAddressWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get IP address for a domain + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (IPAddressResult) + public async System.Threading.Tasks.Task> GetIpAddressWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'name' when calling MailServerControllerApi->GetIpAddress"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "name", name)); + + localVarRequestOptions.Operation = "MailServerControllerApi.GetIpAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/mail-server/describe/ip-address", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetIpAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmailVerificationResult + [Obsolete] + public EmailVerificationResult VerifyEmailAddress(VerifyEmailAddressOptions verifyEmailAddressOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = VerifyEmailAddressWithHttpInfo(verifyEmailAddressOptions); + return localVarResponse.Data; + } + + /// + /// Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmailVerificationResult + [Obsolete] + public mailslurp_netstandard_2x.Client.ApiResponse VerifyEmailAddressWithHttpInfo(VerifyEmailAddressOptions verifyEmailAddressOptions, int operationIndex = 0) + { + // verify the required parameter 'verifyEmailAddressOptions' is set + if (verifyEmailAddressOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'verifyEmailAddressOptions' when calling MailServerControllerApi->VerifyEmailAddress"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = verifyEmailAddressOptions; + + localVarRequestOptions.Operation = "MailServerControllerApi.VerifyEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/mail-server/verify/email-address", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("VerifyEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailVerificationResult + [Obsolete] + public async System.Threading.Tasks.Task VerifyEmailAddressAsync(VerifyEmailAddressOptions verifyEmailAddressOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await VerifyEmailAddressWithHttpInfoAsync(verifyEmailAddressOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailVerificationResult) + [Obsolete] + public async System.Threading.Tasks.Task> VerifyEmailAddressWithHttpInfoAsync(VerifyEmailAddressOptions verifyEmailAddressOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'verifyEmailAddressOptions' is set + if (verifyEmailAddressOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'verifyEmailAddressOptions' when calling MailServerControllerApi->VerifyEmailAddress"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = verifyEmailAddressOptions; + + localVarRequestOptions.Operation = "MailServerControllerApi.VerifyEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/mail-server/verify/email-address", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("VerifyEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/MissedEmailControllerApi.cs b/src/mailslurp_netstandard_2x/Api/MissedEmailControllerApi.cs new file mode 100644 index 00000000..37ec3a46 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/MissedEmailControllerApi.cs @@ -0,0 +1,1361 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMissedEmailControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get all MissedEmails in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// PageMissedEmailProjection + PageMissedEmailProjection GetAllMissedEmails(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Get all MissedEmails in paginated format + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of PageMissedEmailProjection + ApiResponse GetAllMissedEmailsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Get all unknown missed emails in paginated format + /// + /// + /// Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// PageUnknownMissedEmailProjection + PageUnknownMissedEmailProjection GetAllUnknownMissedEmails(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0); + + /// + /// Get all unknown missed emails in paginated format + /// + /// + /// Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of PageUnknownMissedEmailProjection + ApiResponse GetAllUnknownMissedEmailsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0); + /// + /// Get MissedEmail + /// + /// + /// List emails that were missed due to plan limits. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// MissedEmailDto + MissedEmailDto GetMissedEmail(Guid missedEmailId, int operationIndex = 0); + + /// + /// Get MissedEmail + /// + /// + /// List emails that were missed due to plan limits. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of MissedEmailDto + ApiResponse GetMissedEmailWithHttpInfo(Guid missedEmailId, int operationIndex = 0); + /// + /// Restore missed emails + /// + /// + /// If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + void RestoreMissedEmails(int operationIndex = 0); + + /// + /// Restore missed emails + /// + /// + /// If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse RestoreMissedEmailsWithHttpInfo(int operationIndex = 0); + /// + /// Wait for Nth missed email + /// + /// + /// Wait for 0 based index missed email + /// + /// Thrown when fails to make API call + /// Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1 + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// MissedEmailDto + MissedEmailDto WaitForNthMissedEmail(int index, Guid? inboxId = default(Guid?), long? timeout = default(long?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Wait for Nth missed email + /// + /// + /// Wait for 0 based index missed email + /// + /// Thrown when fails to make API call + /// Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1 + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of MissedEmailDto + ApiResponse WaitForNthMissedEmailWithHttpInfo(int index, Guid? inboxId = default(Guid?), long? timeout = default(long?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMissedEmailControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get all MissedEmails in paginated format + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageMissedEmailProjection + System.Threading.Tasks.Task GetAllMissedEmailsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all MissedEmails in paginated format + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageMissedEmailProjection) + System.Threading.Tasks.Task> GetAllMissedEmailsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all unknown missed emails in paginated format + /// + /// + /// Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageUnknownMissedEmailProjection + System.Threading.Tasks.Task GetAllUnknownMissedEmailsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all unknown missed emails in paginated format + /// + /// + /// Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageUnknownMissedEmailProjection) + System.Threading.Tasks.Task> GetAllUnknownMissedEmailsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get MissedEmail + /// + /// + /// List emails that were missed due to plan limits. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of MissedEmailDto + System.Threading.Tasks.Task GetMissedEmailAsync(Guid missedEmailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get MissedEmail + /// + /// + /// List emails that were missed due to plan limits. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MissedEmailDto) + System.Threading.Tasks.Task> GetMissedEmailWithHttpInfoAsync(Guid missedEmailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Restore missed emails + /// + /// + /// If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task RestoreMissedEmailsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Restore missed emails + /// + /// + /// If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> RestoreMissedEmailsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Wait for Nth missed email + /// + /// + /// Wait for 0 based index missed email + /// + /// Thrown when fails to make API call + /// Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1 + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of MissedEmailDto + System.Threading.Tasks.Task WaitForNthMissedEmailAsync(int index, Guid? inboxId = default(Guid?), long? timeout = default(long?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Wait for Nth missed email + /// + /// + /// Wait for 0 based index missed email + /// + /// Thrown when fails to make API call + /// Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1 + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MissedEmailDto) + System.Threading.Tasks.Task> WaitForNthMissedEmailWithHttpInfoAsync(int index, Guid? inboxId = default(Guid?), long? timeout = default(long?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMissedEmailControllerApi : IMissedEmailControllerApiSync, IMissedEmailControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MissedEmailControllerApi : IMissedEmailControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MissedEmailControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public MissedEmailControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MissedEmailControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public MissedEmailControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get all MissedEmails in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// PageMissedEmailProjection + public PageMissedEmailProjection GetAllMissedEmails(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllMissedEmailsWithHttpInfo(page, size, sort, searchFilter, since, before, inboxId); + return localVarResponse.Data; + } + + /// + /// Get all MissedEmails in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of PageMissedEmailProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAllMissedEmailsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "MissedEmailControllerApi.GetAllMissedEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/missed-emails", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllMissedEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all MissedEmails in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageMissedEmailProjection + public async System.Threading.Tasks.Task GetAllMissedEmailsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllMissedEmailsWithHttpInfoAsync(page, size, sort, searchFilter, since, before, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all MissedEmails in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageMissedEmailProjection) + public async System.Threading.Tasks.Task> GetAllMissedEmailsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "MissedEmailControllerApi.GetAllMissedEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/missed-emails", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllMissedEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all unknown missed emails in paginated format Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// PageUnknownMissedEmailProjection + public PageUnknownMissedEmailProjection GetAllUnknownMissedEmails(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllUnknownMissedEmailsWithHttpInfo(page, size, sort, searchFilter, since, before, inboxId); + return localVarResponse.Data; + } + + /// + /// Get all unknown missed emails in paginated format Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// ApiResponse of PageUnknownMissedEmailProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAllUnknownMissedEmailsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "MissedEmailControllerApi.GetAllUnknownMissedEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/missed-emails/unknown", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllUnknownMissedEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all unknown missed emails in paginated format Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageUnknownMissedEmailProjection + public async System.Threading.Tasks.Task GetAllUnknownMissedEmailsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllUnknownMissedEmailsWithHttpInfoAsync(page, size, sort, searchFilter, since, before, inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all unknown missed emails in paginated format Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Optional inbox ID filter (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageUnknownMissedEmailProjection) + public async System.Threading.Tasks.Task> GetAllUnknownMissedEmailsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), Guid? inboxId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + + localVarRequestOptions.Operation = "MissedEmailControllerApi.GetAllUnknownMissedEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/missed-emails/unknown", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllUnknownMissedEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get MissedEmail List emails that were missed due to plan limits. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// MissedEmailDto + public MissedEmailDto GetMissedEmail(Guid missedEmailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetMissedEmailWithHttpInfo(missedEmailId); + return localVarResponse.Data; + } + + /// + /// Get MissedEmail List emails that were missed due to plan limits. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of MissedEmailDto + public mailslurp_netstandard_2x.Client.ApiResponse GetMissedEmailWithHttpInfo(Guid missedEmailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("missedEmailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(missedEmailId)); // path parameter + + localVarRequestOptions.Operation = "MissedEmailControllerApi.GetMissedEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/missed-emails/{missedEmailId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMissedEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get MissedEmail List emails that were missed due to plan limits. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of MissedEmailDto + public async System.Threading.Tasks.Task GetMissedEmailAsync(Guid missedEmailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetMissedEmailWithHttpInfoAsync(missedEmailId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get MissedEmail List emails that were missed due to plan limits. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MissedEmailDto) + public async System.Threading.Tasks.Task> GetMissedEmailWithHttpInfoAsync(Guid missedEmailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("missedEmailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(missedEmailId)); // path parameter + + localVarRequestOptions.Operation = "MissedEmailControllerApi.GetMissedEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/missed-emails/{missedEmailId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMissedEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Restore missed emails If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + public void RestoreMissedEmails(int operationIndex = 0) + { + RestoreMissedEmailsWithHttpInfo(); + } + + /// + /// Restore missed emails If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse RestoreMissedEmailsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "MissedEmailControllerApi.RestoreMissedEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/missed-emails/restore", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RestoreMissedEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Restore missed emails If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task RestoreMissedEmailsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await RestoreMissedEmailsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Restore missed emails If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RestoreMissedEmailsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "MissedEmailControllerApi.RestoreMissedEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/missed-emails/restore", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RestoreMissedEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for Nth missed email Wait for 0 based index missed email + /// + /// Thrown when fails to make API call + /// Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1 + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// MissedEmailDto + public MissedEmailDto WaitForNthMissedEmail(int index, Guid? inboxId = default(Guid?), long? timeout = default(long?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = WaitForNthMissedEmailWithHttpInfo(index, inboxId, timeout, since, before); + return localVarResponse.Data; + } + + /// + /// Wait for Nth missed email Wait for 0 based index missed email + /// + /// Thrown when fails to make API call + /// Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1 + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of MissedEmailDto + public mailslurp_netstandard_2x.Client.ApiResponse WaitForNthMissedEmailWithHttpInfo(int index, Guid? inboxId = default(Guid?), long? timeout = default(long?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "index", index)); + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "MissedEmailControllerApi.WaitForNthMissedEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/missed-emails/waitForNthMissedEmail", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForNthMissedEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for Nth missed email Wait for 0 based index missed email + /// + /// Thrown when fails to make API call + /// Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1 + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of MissedEmailDto + public async System.Threading.Tasks.Task WaitForNthMissedEmailAsync(int index, Guid? inboxId = default(Guid?), long? timeout = default(long?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await WaitForNthMissedEmailWithHttpInfoAsync(index, inboxId, timeout, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Wait for Nth missed email Wait for 0 based index missed email + /// + /// Thrown when fails to make API call + /// Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1 + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MissedEmailDto) + public async System.Threading.Tasks.Task> WaitForNthMissedEmailWithHttpInfoAsync(int index, Guid? inboxId = default(Guid?), long? timeout = default(long?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "index", index)); + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "MissedEmailControllerApi.WaitForNthMissedEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/missed-emails/waitForNthMissedEmail", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForNthMissedEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/PhoneControllerApi.cs b/src/mailslurp_netstandard_2x/Api/PhoneControllerApi.cs new file mode 100644 index 00000000..e1989497 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/PhoneControllerApi.cs @@ -0,0 +1,1955 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPhoneControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmergencyAddress + EmergencyAddress CreateEmergencyAddress(CreateEmergencyAddressOptions createEmergencyAddressOptions, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmergencyAddress + ApiResponse CreateEmergencyAddressWithHttpInfo(CreateEmergencyAddressOptions createEmergencyAddressOptions, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmptyResponseDto + EmptyResponseDto DeleteEmergencyAddress(Guid addressId, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmptyResponseDto + ApiResponse DeleteEmergencyAddressWithHttpInfo(Guid addressId, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeletePhoneNumber(Guid phoneNumberId, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeletePhoneNumberWithHttpInfo(Guid phoneNumberId, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmergencyAddress + EmergencyAddress GetEmergencyAddress(Guid addressId, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmergencyAddress + ApiResponse GetEmergencyAddressWithHttpInfo(Guid addressId, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<EmergencyAddressDto> + List GetEmergencyAddresses(int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<EmergencyAddressDto> + ApiResponse> GetEmergencyAddressesWithHttpInfo(int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// PhoneNumberDto + PhoneNumberDto GetPhoneNumber(Guid phoneNumberId, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of PhoneNumberDto + ApiResponse GetPhoneNumberWithHttpInfo(Guid phoneNumberId, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// Optional phone country (optional) + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PagePhoneNumberProjection + PagePhoneNumberProjection GetPhoneNumbers(string phoneCountry = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional phone country (optional) + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PagePhoneNumberProjection + ApiResponse GetPhoneNumbersWithHttpInfo(string phoneCountry = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<PhonePlanDto> + List GetPhonePlans(int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<PhonePlanDto> + ApiResponse> GetPhonePlansWithHttpInfo(int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// + void TestPhoneNumberSendSms(Guid phoneNumberId, TestPhoneNumberOptions testPhoneNumberOptions, string xTestId = default(string), int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse TestPhoneNumberSendSmsWithHttpInfo(Guid phoneNumberId, TestPhoneNumberOptions testPhoneNumberOptions, string xTestId = default(string), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPhoneControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmergencyAddress + System.Threading.Tasks.Task CreateEmergencyAddressAsync(CreateEmergencyAddressOptions createEmergencyAddressOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmergencyAddress) + System.Threading.Tasks.Task> CreateEmergencyAddressWithHttpInfoAsync(CreateEmergencyAddressOptions createEmergencyAddressOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmptyResponseDto + System.Threading.Tasks.Task DeleteEmergencyAddressAsync(Guid addressId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmptyResponseDto) + System.Threading.Tasks.Task> DeleteEmergencyAddressWithHttpInfoAsync(Guid addressId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeletePhoneNumberAsync(Guid phoneNumberId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeletePhoneNumberWithHttpInfoAsync(Guid phoneNumberId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmergencyAddress + System.Threading.Tasks.Task GetEmergencyAddressAsync(Guid addressId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmergencyAddress) + System.Threading.Tasks.Task> GetEmergencyAddressWithHttpInfoAsync(Guid addressId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<EmergencyAddressDto> + System.Threading.Tasks.Task> GetEmergencyAddressesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<EmergencyAddressDto>) + System.Threading.Tasks.Task>> GetEmergencyAddressesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PhoneNumberDto + System.Threading.Tasks.Task GetPhoneNumberAsync(Guid phoneNumberId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PhoneNumberDto) + System.Threading.Tasks.Task> GetPhoneNumberWithHttpInfoAsync(Guid phoneNumberId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional phone country (optional) + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PagePhoneNumberProjection + System.Threading.Tasks.Task GetPhoneNumbersAsync(string phoneCountry = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional phone country (optional) + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PagePhoneNumberProjection) + System.Threading.Tasks.Task> GetPhoneNumbersWithHttpInfoAsync(string phoneCountry = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<PhonePlanDto> + System.Threading.Tasks.Task> GetPhonePlansAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<PhonePlanDto>) + System.Threading.Tasks.Task>> GetPhonePlansWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task TestPhoneNumberSendSmsAsync(Guid phoneNumberId, TestPhoneNumberOptions testPhoneNumberOptions, string xTestId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> TestPhoneNumberSendSmsWithHttpInfoAsync(Guid phoneNumberId, TestPhoneNumberOptions testPhoneNumberOptions, string xTestId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPhoneControllerApi : IPhoneControllerApiSync, IPhoneControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PhoneControllerApi : IPhoneControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public PhoneControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public PhoneControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public PhoneControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public PhoneControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmergencyAddress + public EmergencyAddress CreateEmergencyAddress(CreateEmergencyAddressOptions createEmergencyAddressOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateEmergencyAddressWithHttpInfo(createEmergencyAddressOptions); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmergencyAddress + public mailslurp_netstandard_2x.Client.ApiResponse CreateEmergencyAddressWithHttpInfo(CreateEmergencyAddressOptions createEmergencyAddressOptions, int operationIndex = 0) + { + // verify the required parameter 'createEmergencyAddressOptions' is set + if (createEmergencyAddressOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createEmergencyAddressOptions' when calling PhoneControllerApi->CreateEmergencyAddress"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createEmergencyAddressOptions; + + localVarRequestOptions.Operation = "PhoneControllerApi.CreateEmergencyAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/phone/emergency-addresses", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateEmergencyAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmergencyAddress + public async System.Threading.Tasks.Task CreateEmergencyAddressAsync(CreateEmergencyAddressOptions createEmergencyAddressOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateEmergencyAddressWithHttpInfoAsync(createEmergencyAddressOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmergencyAddress) + public async System.Threading.Tasks.Task> CreateEmergencyAddressWithHttpInfoAsync(CreateEmergencyAddressOptions createEmergencyAddressOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createEmergencyAddressOptions' is set + if (createEmergencyAddressOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createEmergencyAddressOptions' when calling PhoneControllerApi->CreateEmergencyAddress"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createEmergencyAddressOptions; + + localVarRequestOptions.Operation = "PhoneControllerApi.CreateEmergencyAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/phone/emergency-addresses", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateEmergencyAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmptyResponseDto + public EmptyResponseDto DeleteEmergencyAddress(Guid addressId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = DeleteEmergencyAddressWithHttpInfo(addressId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmptyResponseDto + public mailslurp_netstandard_2x.Client.ApiResponse DeleteEmergencyAddressWithHttpInfo(Guid addressId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("addressId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(addressId)); // path parameter + + localVarRequestOptions.Operation = "PhoneControllerApi.DeleteEmergencyAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/phone/emergency-addresses/{addressId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteEmergencyAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmptyResponseDto + public async System.Threading.Tasks.Task DeleteEmergencyAddressAsync(Guid addressId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await DeleteEmergencyAddressWithHttpInfoAsync(addressId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmptyResponseDto) + public async System.Threading.Tasks.Task> DeleteEmergencyAddressWithHttpInfoAsync(Guid addressId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("addressId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(addressId)); // path parameter + + localVarRequestOptions.Operation = "PhoneControllerApi.DeleteEmergencyAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/phone/emergency-addresses/{addressId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteEmergencyAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeletePhoneNumber(Guid phoneNumberId, int operationIndex = 0) + { + DeletePhoneNumberWithHttpInfo(phoneNumberId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeletePhoneNumberWithHttpInfo(Guid phoneNumberId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("phoneNumberId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(phoneNumberId)); // path parameter + + localVarRequestOptions.Operation = "PhoneControllerApi.DeletePhoneNumber"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/phone/numbers/{phoneNumberId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeletePhoneNumber", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeletePhoneNumberAsync(Guid phoneNumberId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeletePhoneNumberWithHttpInfoAsync(phoneNumberId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeletePhoneNumberWithHttpInfoAsync(Guid phoneNumberId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("phoneNumberId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(phoneNumberId)); // path parameter + + localVarRequestOptions.Operation = "PhoneControllerApi.DeletePhoneNumber"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/phone/numbers/{phoneNumberId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeletePhoneNumber", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmergencyAddress + public EmergencyAddress GetEmergencyAddress(Guid addressId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetEmergencyAddressWithHttpInfo(addressId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmergencyAddress + public mailslurp_netstandard_2x.Client.ApiResponse GetEmergencyAddressWithHttpInfo(Guid addressId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("addressId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(addressId)); // path parameter + + localVarRequestOptions.Operation = "PhoneControllerApi.GetEmergencyAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/phone/emergency-addresses/{addressId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmergencyAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmergencyAddress + public async System.Threading.Tasks.Task GetEmergencyAddressAsync(Guid addressId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetEmergencyAddressWithHttpInfoAsync(addressId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmergencyAddress) + public async System.Threading.Tasks.Task> GetEmergencyAddressWithHttpInfoAsync(Guid addressId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("addressId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(addressId)); // path parameter + + localVarRequestOptions.Operation = "PhoneControllerApi.GetEmergencyAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/phone/emergency-addresses/{addressId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmergencyAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<EmergencyAddressDto> + public List GetEmergencyAddresses(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetEmergencyAddressesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<EmergencyAddressDto> + public mailslurp_netstandard_2x.Client.ApiResponse> GetEmergencyAddressesWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "PhoneControllerApi.GetEmergencyAddresses"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/phone/emergency-addresses", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmergencyAddresses", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<EmergencyAddressDto> + public async System.Threading.Tasks.Task> GetEmergencyAddressesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetEmergencyAddressesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<EmergencyAddressDto>) + public async System.Threading.Tasks.Task>> GetEmergencyAddressesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "PhoneControllerApi.GetEmergencyAddresses"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/phone/emergency-addresses", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetEmergencyAddresses", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// PhoneNumberDto + public PhoneNumberDto GetPhoneNumber(Guid phoneNumberId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetPhoneNumberWithHttpInfo(phoneNumberId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of PhoneNumberDto + public mailslurp_netstandard_2x.Client.ApiResponse GetPhoneNumberWithHttpInfo(Guid phoneNumberId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("phoneNumberId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(phoneNumberId)); // path parameter + + localVarRequestOptions.Operation = "PhoneControllerApi.GetPhoneNumber"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/phone/numbers/{phoneNumberId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPhoneNumber", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PhoneNumberDto + public async System.Threading.Tasks.Task GetPhoneNumberAsync(Guid phoneNumberId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetPhoneNumberWithHttpInfoAsync(phoneNumberId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PhoneNumberDto) + public async System.Threading.Tasks.Task> GetPhoneNumberWithHttpInfoAsync(Guid phoneNumberId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("phoneNumberId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(phoneNumberId)); // path parameter + + localVarRequestOptions.Operation = "PhoneControllerApi.GetPhoneNumber"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/phone/numbers/{phoneNumberId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPhoneNumber", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Optional phone country (optional) + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PagePhoneNumberProjection + public PagePhoneNumberProjection GetPhoneNumbers(string phoneCountry = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetPhoneNumbersWithHttpInfo(phoneCountry, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Optional phone country (optional) + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PagePhoneNumberProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetPhoneNumbersWithHttpInfo(string phoneCountry = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (phoneCountry != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneCountry", phoneCountry)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "PhoneControllerApi.GetPhoneNumbers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/phone/numbers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPhoneNumbers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Optional phone country (optional) + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PagePhoneNumberProjection + public async System.Threading.Tasks.Task GetPhoneNumbersAsync(string phoneCountry = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetPhoneNumbersWithHttpInfoAsync(phoneCountry, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Optional phone country (optional) + /// Optional page index for list pagination (optional, default to 0) + /// Optional page size for list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PagePhoneNumberProjection) + public async System.Threading.Tasks.Task> GetPhoneNumbersWithHttpInfoAsync(string phoneCountry = default(string), int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (phoneCountry != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneCountry", phoneCountry)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "PhoneControllerApi.GetPhoneNumbers"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/phone/numbers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPhoneNumbers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<PhonePlanDto> + public List GetPhonePlans(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetPhonePlansWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<PhonePlanDto> + public mailslurp_netstandard_2x.Client.ApiResponse> GetPhonePlansWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "PhoneControllerApi.GetPhonePlans"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/phone/plans", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPhonePlans", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<PhonePlanDto> + public async System.Threading.Tasks.Task> GetPhonePlansAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetPhonePlansWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<PhonePlanDto>) + public async System.Threading.Tasks.Task>> GetPhonePlansWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "PhoneControllerApi.GetPhonePlans"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/phone/plans", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPhonePlans", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// + public void TestPhoneNumberSendSms(Guid phoneNumberId, TestPhoneNumberOptions testPhoneNumberOptions, string xTestId = default(string), int operationIndex = 0) + { + TestPhoneNumberSendSmsWithHttpInfo(phoneNumberId, testPhoneNumberOptions, xTestId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse TestPhoneNumberSendSmsWithHttpInfo(Guid phoneNumberId, TestPhoneNumberOptions testPhoneNumberOptions, string xTestId = default(string), int operationIndex = 0) + { + // verify the required parameter 'testPhoneNumberOptions' is set + if (testPhoneNumberOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'testPhoneNumberOptions' when calling PhoneControllerApi->TestPhoneNumberSendSms"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("phoneNumberId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(phoneNumberId)); // path parameter + if (xTestId != null) + { + localVarRequestOptions.HeaderParameters.Add("x-test-id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(xTestId)); // header parameter + } + localVarRequestOptions.Data = testPhoneNumberOptions; + + localVarRequestOptions.Operation = "PhoneControllerApi.TestPhoneNumberSendSms"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/phone/numbers/{phoneNumberId}/test", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestPhoneNumberSendSms", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task TestPhoneNumberSendSmsAsync(Guid phoneNumberId, TestPhoneNumberOptions testPhoneNumberOptions, string xTestId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await TestPhoneNumberSendSmsWithHttpInfoAsync(phoneNumberId, testPhoneNumberOptions, xTestId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> TestPhoneNumberSendSmsWithHttpInfoAsync(Guid phoneNumberId, TestPhoneNumberOptions testPhoneNumberOptions, string xTestId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'testPhoneNumberOptions' is set + if (testPhoneNumberOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'testPhoneNumberOptions' when calling PhoneControllerApi->TestPhoneNumberSendSms"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("phoneNumberId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(phoneNumberId)); // path parameter + if (xTestId != null) + { + localVarRequestOptions.HeaderParameters.Add("x-test-id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(xTestId)); // header parameter + } + localVarRequestOptions.Data = testPhoneNumberOptions; + + localVarRequestOptions.Operation = "PhoneControllerApi.TestPhoneNumberSendSms"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/phone/numbers/{phoneNumberId}/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("TestPhoneNumberSendSms", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/SentEmailsControllerApi.cs b/src/mailslurp_netstandard_2x/Api/SentEmailsControllerApi.cs new file mode 100644 index 00000000..a1423811 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/SentEmailsControllerApi.cs @@ -0,0 +1,3852 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISentEmailsControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Delete all sent email receipts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + void DeleteAllSentEmails(int operationIndex = 0); + + /// + /// Delete all sent email receipts + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAllSentEmailsWithHttpInfo(int operationIndex = 0); + /// + /// Delete sent email receipt + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteSentEmail(Guid id, int operationIndex = 0); + + /// + /// Delete sent email receipt + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteSentEmailWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// + /// + /// + /// Get all sent email tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageTrackingPixelProjection + PageTrackingPixelProjection GetAllSentTrackingPixels(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// + /// + /// + /// Get all sent email tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageTrackingPixelProjection + ApiResponse GetAllSentTrackingPixelsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get raw sent email string. Returns unparsed raw SMTP message with headers and body. + /// + /// + /// Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// + void GetRawSentEmailContents(Guid emailId, int operationIndex = 0); + + /// + /// Get raw sent email string. Returns unparsed raw SMTP message with headers and body. + /// + /// + /// Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse GetRawSentEmailContentsWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. + /// + /// + /// Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// RawEmailJson + RawEmailJson GetRawSentEmailJson(Guid emailId, int operationIndex = 0); + + /// + /// Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. + /// + /// + /// Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of RawEmailJson + ApiResponse GetRawSentEmailJsonWithHttpInfo(Guid emailId, int operationIndex = 0); + /// + /// + /// + /// + /// Get a sent email delivery status + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DeliveryStatusDto + DeliveryStatusDto GetSentDeliveryStatus(Guid deliveryId, int operationIndex = 0); + + /// + /// + /// + /// + /// Get a sent email delivery status + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DeliveryStatusDto + ApiResponse GetSentDeliveryStatusWithHttpInfo(Guid deliveryId, int operationIndex = 0); + /// + /// + /// + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageDeliveryStatus + PageDeliveryStatus GetSentDeliveryStatuses(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// + /// + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageDeliveryStatus + ApiResponse GetSentDeliveryStatusesWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// + /// + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// ID of the sent email that you want to get the delivery status of. Sent email object is returned when sending an email + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageDeliveryStatus + PageDeliveryStatus GetSentDeliveryStatusesBySentId(Guid sentId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// + /// + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// ID of the sent email that you want to get the delivery status of. Sent email object is returned when sending an email + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageDeliveryStatus + ApiResponse GetSentDeliveryStatusesBySentIdWithHttpInfo(Guid sentId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get sent email receipt + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// SentEmailDto + SentEmailDto GetSentEmail(Guid id, int operationIndex = 0); + + /// + /// Get sent email receipt + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + ApiResponse GetSentEmailWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get sent email HTML content + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// string + string GetSentEmailHTMLContent(Guid id, int operationIndex = 0); + + /// + /// Get sent email HTML content + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of string + ApiResponse GetSentEmailHTMLContentWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// Get sent email URL for viewing in browser or downloading + /// + /// + /// Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmailPreviewUrls + EmailPreviewUrls GetSentEmailPreviewURLs(Guid id, int operationIndex = 0); + + /// + /// Get sent email URL for viewing in browser or downloading + /// + /// + /// Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmailPreviewUrls + ApiResponse GetSentEmailPreviewURLsWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// + /// + /// + /// Get all tracking pixels for a sent email in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageTrackingPixelProjection + PageTrackingPixelProjection GetSentEmailTrackingPixels(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// + /// + /// + /// Get all tracking pixels for a sent email in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageTrackingPixelProjection + ApiResponse GetSentEmailTrackingPixelsWithHttpInfo(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get all sent emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageSentEmailProjection + PageSentEmailProjection GetSentEmails(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get all sent emails in paginated form + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageSentEmailProjection + ApiResponse GetSentEmailsWithHttpInfo(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get results of email sent with queues in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageSentEmailWithQueueProjection + PageSentEmailWithQueueProjection GetSentEmailsWithQueueResults(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get results of email sent with queues in paginated form + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageSentEmailWithQueueProjection + ApiResponse GetSentEmailsWithQueueResultsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// + /// + /// + /// Get all sent organization emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in sent email list pagination (optional, default to 0) + /// Optional page size in sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageSentEmailProjection + PageSentEmailProjection GetSentOrganizationEmails(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// + /// + /// + /// Get all sent organization emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in sent email list pagination (optional, default to 0) + /// Optional page size in sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageSentEmailProjection + ApiResponse GetSentOrganizationEmailsWithHttpInfo(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// + /// + /// + /// Wait for delivery statuses + /// + /// Thrown when fails to make API call + /// Optional sent email ID filter (optional) + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index=1 (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// DeliveryStatusDto + DeliveryStatusDto WaitForDeliveryStatuses(Guid? sentId = default(Guid?), Guid? inboxId = default(Guid?), long? timeout = default(long?), int? index = default(int?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// + /// + /// + /// Wait for delivery statuses + /// + /// Thrown when fails to make API call + /// Optional sent email ID filter (optional) + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index=1 (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of DeliveryStatusDto + ApiResponse WaitForDeliveryStatusesWithHttpInfo(Guid? sentId = default(Guid?), Guid? inboxId = default(Guid?), long? timeout = default(long?), int? index = default(int?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISentEmailsControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Delete all sent email receipts + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAllSentEmailsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete all sent email receipts + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAllSentEmailsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete sent email receipt + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteSentEmailAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete sent email receipt + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteSentEmailWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get all sent email tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageTrackingPixelProjection + System.Threading.Tasks.Task GetAllSentTrackingPixelsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get all sent email tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageTrackingPixelProjection) + System.Threading.Tasks.Task> GetAllSentTrackingPixelsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get raw sent email string. Returns unparsed raw SMTP message with headers and body. + /// + /// + /// Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task GetRawSentEmailContentsAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get raw sent email string. Returns unparsed raw SMTP message with headers and body. + /// + /// + /// Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> GetRawSentEmailContentsWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. + /// + /// + /// Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of RawEmailJson + System.Threading.Tasks.Task GetRawSentEmailJsonAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. + /// + /// + /// Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (RawEmailJson) + System.Threading.Tasks.Task> GetRawSentEmailJsonWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get a sent email delivery status + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DeliveryStatusDto + System.Threading.Tasks.Task GetSentDeliveryStatusAsync(Guid deliveryId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get a sent email delivery status + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DeliveryStatusDto) + System.Threading.Tasks.Task> GetSentDeliveryStatusWithHttpInfoAsync(Guid deliveryId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageDeliveryStatus + System.Threading.Tasks.Task GetSentDeliveryStatusesAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageDeliveryStatus) + System.Threading.Tasks.Task> GetSentDeliveryStatusesWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// ID of the sent email that you want to get the delivery status of. Sent email object is returned when sending an email + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageDeliveryStatus + System.Threading.Tasks.Task GetSentDeliveryStatusesBySentIdAsync(Guid sentId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// ID of the sent email that you want to get the delivery status of. Sent email object is returned when sending an email + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageDeliveryStatus) + System.Threading.Tasks.Task> GetSentDeliveryStatusesBySentIdWithHttpInfoAsync(Guid sentId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get sent email receipt + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + System.Threading.Tasks.Task GetSentEmailAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get sent email receipt + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + System.Threading.Tasks.Task> GetSentEmailWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get sent email HTML content + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + System.Threading.Tasks.Task GetSentEmailHTMLContentAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get sent email HTML content + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> GetSentEmailHTMLContentWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get sent email URL for viewing in browser or downloading + /// + /// + /// Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailPreviewUrls + System.Threading.Tasks.Task GetSentEmailPreviewURLsAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get sent email URL for viewing in browser or downloading + /// + /// + /// Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailPreviewUrls) + System.Threading.Tasks.Task> GetSentEmailPreviewURLsWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get all tracking pixels for a sent email in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageTrackingPixelProjection + System.Threading.Tasks.Task GetSentEmailTrackingPixelsAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get all tracking pixels for a sent email in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageTrackingPixelProjection) + System.Threading.Tasks.Task> GetSentEmailTrackingPixelsWithHttpInfoAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all sent emails in paginated form + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageSentEmailProjection + System.Threading.Tasks.Task GetSentEmailsAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all sent emails in paginated form + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageSentEmailProjection) + System.Threading.Tasks.Task> GetSentEmailsWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get results of email sent with queues in paginated form + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageSentEmailWithQueueProjection + System.Threading.Tasks.Task GetSentEmailsWithQueueResultsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get results of email sent with queues in paginated form + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageSentEmailWithQueueProjection) + System.Threading.Tasks.Task> GetSentEmailsWithQueueResultsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get all sent organization emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in sent email list pagination (optional, default to 0) + /// Optional page size in sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageSentEmailProjection + System.Threading.Tasks.Task GetSentOrganizationEmailsAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get all sent organization emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in sent email list pagination (optional, default to 0) + /// Optional page size in sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageSentEmailProjection) + System.Threading.Tasks.Task> GetSentOrganizationEmailsWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Wait for delivery statuses + /// + /// Thrown when fails to make API call + /// Optional sent email ID filter (optional) + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index=1 (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DeliveryStatusDto + System.Threading.Tasks.Task WaitForDeliveryStatusesAsync(Guid? sentId = default(Guid?), Guid? inboxId = default(Guid?), long? timeout = default(long?), int? index = default(int?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Wait for delivery statuses + /// + /// Thrown when fails to make API call + /// Optional sent email ID filter (optional) + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index=1 (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DeliveryStatusDto) + System.Threading.Tasks.Task> WaitForDeliveryStatusesWithHttpInfoAsync(Guid? sentId = default(Guid?), Guid? inboxId = default(Guid?), long? timeout = default(long?), int? index = default(int?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISentEmailsControllerApi : ISentEmailsControllerApiSync, ISentEmailsControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class SentEmailsControllerApi : ISentEmailsControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public SentEmailsControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public SentEmailsControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public SentEmailsControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public SentEmailsControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Delete all sent email receipts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// + public void DeleteAllSentEmails(int operationIndex = 0) + { + DeleteAllSentEmailsWithHttpInfo(); + } + + /// + /// Delete all sent email receipts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAllSentEmailsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "SentEmailsControllerApi.DeleteAllSentEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/sent", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllSentEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all sent email receipts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAllSentEmailsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAllSentEmailsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete all sent email receipts + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAllSentEmailsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "SentEmailsControllerApi.DeleteAllSentEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/sent", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllSentEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete sent email receipt + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteSentEmail(Guid id, int operationIndex = 0) + { + DeleteSentEmailWithHttpInfo(id); + } + + /// + /// Delete sent email receipt + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteSentEmailWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.DeleteSentEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/sent/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteSentEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete sent email receipt + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteSentEmailAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteSentEmailWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete sent email receipt + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteSentEmailWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.DeleteSentEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/sent/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteSentEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all sent email tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageTrackingPixelProjection + public PageTrackingPixelProjection GetAllSentTrackingPixels(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllSentTrackingPixelsWithHttpInfo(page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// Get all sent email tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageTrackingPixelProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAllSentTrackingPixelsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetAllSentTrackingPixels"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/tracking-pixels", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllSentTrackingPixels", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all sent email tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageTrackingPixelProjection + public async System.Threading.Tasks.Task GetAllSentTrackingPixelsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllSentTrackingPixelsWithHttpInfoAsync(page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all sent email tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageTrackingPixelProjection) + public async System.Threading.Tasks.Task> GetAllSentTrackingPixelsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetAllSentTrackingPixels"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/tracking-pixels", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllSentTrackingPixels", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get raw sent email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// + public void GetRawSentEmailContents(Guid emailId, int operationIndex = 0) + { + GetRawSentEmailContentsWithHttpInfo(emailId); + } + + /// + /// Get raw sent email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse GetRawSentEmailContentsWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetRawSentEmailContents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/{emailId}/raw", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetRawSentEmailContents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get raw sent email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task GetRawSentEmailContentsAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await GetRawSentEmailContentsWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get raw sent email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> GetRawSentEmailContentsWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetRawSentEmailContents"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/{emailId}/raw", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetRawSentEmailContents", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// RawEmailJson + public RawEmailJson GetRawSentEmailJson(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetRawSentEmailJsonWithHttpInfo(emailId); + return localVarResponse.Data; + } + + /// + /// Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// ApiResponse of RawEmailJson + public mailslurp_netstandard_2x.Client.ApiResponse GetRawSentEmailJsonWithHttpInfo(Guid emailId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetRawSentEmailJson"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/{emailId}/raw/json", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetRawSentEmailJson", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of RawEmailJson + public async System.Threading.Tasks.Task GetRawSentEmailJsonAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetRawSentEmailJsonWithHttpInfoAsync(emailId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response + /// + /// Thrown when fails to make API call + /// ID of email + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (RawEmailJson) + public async System.Threading.Tasks.Task> GetRawSentEmailJsonWithHttpInfoAsync(Guid emailId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("emailId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(emailId)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetRawSentEmailJson"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/{emailId}/raw/json", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetRawSentEmailJson", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a sent email delivery status + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// DeliveryStatusDto + public DeliveryStatusDto GetSentDeliveryStatus(Guid deliveryId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSentDeliveryStatusWithHttpInfo(deliveryId); + return localVarResponse.Data; + } + + /// + /// Get a sent email delivery status + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of DeliveryStatusDto + public mailslurp_netstandard_2x.Client.ApiResponse GetSentDeliveryStatusWithHttpInfo(Guid deliveryId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("deliveryId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(deliveryId)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentDeliveryStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/delivery-status/{deliveryId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentDeliveryStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a sent email delivery status + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DeliveryStatusDto + public async System.Threading.Tasks.Task GetSentDeliveryStatusAsync(Guid deliveryId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSentDeliveryStatusWithHttpInfoAsync(deliveryId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a sent email delivery status + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DeliveryStatusDto) + public async System.Threading.Tasks.Task> GetSentDeliveryStatusWithHttpInfoAsync(Guid deliveryId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("deliveryId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(deliveryId)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentDeliveryStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/delivery-status/{deliveryId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentDeliveryStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageDeliveryStatus + public PageDeliveryStatus GetSentDeliveryStatuses(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSentDeliveryStatusesWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageDeliveryStatus + public mailslurp_netstandard_2x.Client.ApiResponse GetSentDeliveryStatusesWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentDeliveryStatuses"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/delivery-status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentDeliveryStatuses", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageDeliveryStatus + public async System.Threading.Tasks.Task GetSentDeliveryStatusesAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSentDeliveryStatusesWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageDeliveryStatus) + public async System.Threading.Tasks.Task> GetSentDeliveryStatusesWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentDeliveryStatuses"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/delivery-status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentDeliveryStatuses", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// ID of the sent email that you want to get the delivery status of. Sent email object is returned when sending an email + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageDeliveryStatus + public PageDeliveryStatus GetSentDeliveryStatusesBySentId(Guid sentId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSentDeliveryStatusesBySentIdWithHttpInfo(sentId, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// ID of the sent email that you want to get the delivery status of. Sent email object is returned when sending an email + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageDeliveryStatus + public mailslurp_netstandard_2x.Client.ApiResponse GetSentDeliveryStatusesBySentIdWithHttpInfo(Guid sentId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(sentId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentDeliveryStatusesBySentId"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/{sentId}/delivery-status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentDeliveryStatusesBySentId", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// ID of the sent email that you want to get the delivery status of. Sent email object is returned when sending an email + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageDeliveryStatus + public async System.Threading.Tasks.Task GetSentDeliveryStatusesBySentIdAsync(Guid sentId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSentDeliveryStatusesBySentIdWithHttpInfoAsync(sentId, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all sent email delivery statuses + /// + /// Thrown when fails to make API call + /// ID of the sent email that you want to get the delivery status of. Sent email object is returned when sending an email + /// Optional page index in delivery status list pagination (optional, default to 0) + /// Optional page size in delivery status list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageDeliveryStatus) + public async System.Threading.Tasks.Task> GetSentDeliveryStatusesBySentIdWithHttpInfoAsync(Guid sentId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sentId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(sentId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentDeliveryStatusesBySentId"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/{sentId}/delivery-status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentDeliveryStatusesBySentId", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get sent email receipt + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// SentEmailDto + public SentEmailDto GetSentEmail(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSentEmailWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get sent email receipt + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of SentEmailDto + public mailslurp_netstandard_2x.Client.ApiResponse GetSentEmailWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get sent email receipt + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentEmailDto + public async System.Threading.Tasks.Task GetSentEmailAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSentEmailWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get sent email receipt + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentEmailDto) + public async System.Threading.Tasks.Task> GetSentEmailWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get sent email HTML content + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// string + public string GetSentEmailHTMLContent(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSentEmailHTMLContentWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get sent email HTML content + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of string + public mailslurp_netstandard_2x.Client.ApiResponse GetSentEmailHTMLContentWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/html" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmailHTMLContent"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/{id}/html", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmailHTMLContent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get sent email HTML content + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + public async System.Threading.Tasks.Task GetSentEmailHTMLContentAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSentEmailHTMLContentWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get sent email HTML content + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> GetSentEmailHTMLContentWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/html" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmailHTMLContent"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/{id}/html", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmailHTMLContent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get sent email URL for viewing in browser or downloading Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// EmailPreviewUrls + public EmailPreviewUrls GetSentEmailPreviewURLs(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSentEmailPreviewURLsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get sent email URL for viewing in browser or downloading Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of EmailPreviewUrls + public mailslurp_netstandard_2x.Client.ApiResponse GetSentEmailPreviewURLsWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmailPreviewURLs"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/{id}/urls", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmailPreviewURLs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get sent email URL for viewing in browser or downloading Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of EmailPreviewUrls + public async System.Threading.Tasks.Task GetSentEmailPreviewURLsAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSentEmailPreviewURLsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get sent email URL for viewing in browser or downloading Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (EmailPreviewUrls) + public async System.Threading.Tasks.Task> GetSentEmailPreviewURLsWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmailPreviewURLs"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/{id}/urls", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmailPreviewURLs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all tracking pixels for a sent email in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageTrackingPixelProjection + public PageTrackingPixelProjection GetSentEmailTrackingPixels(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSentEmailTrackingPixelsWithHttpInfo(id, page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// Get all tracking pixels for a sent email in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageTrackingPixelProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetSentEmailTrackingPixelsWithHttpInfo(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmailTrackingPixels"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/{id}/tracking-pixels", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmailTrackingPixels", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all tracking pixels for a sent email in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageTrackingPixelProjection + public async System.Threading.Tasks.Task GetSentEmailTrackingPixelsAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSentEmailTrackingPixelsWithHttpInfoAsync(id, page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all tracking pixels for a sent email in paginated form + /// + /// Thrown when fails to make API call + /// + /// Optional page index in sent email tracking pixel list pagination (optional, default to 0) + /// Optional page size in sent email tracking pixel list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageTrackingPixelProjection) + public async System.Threading.Tasks.Task> GetSentEmailTrackingPixelsWithHttpInfoAsync(Guid id, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmailTrackingPixels"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/{id}/tracking-pixels", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmailTrackingPixels", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all sent emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageSentEmailProjection + public PageSentEmailProjection GetSentEmails(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSentEmailsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// Get all sent emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageSentEmailProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetSentEmailsWithHttpInfo(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all sent emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageSentEmailProjection + public async System.Threading.Tasks.Task GetSentEmailsAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSentEmailsWithHttpInfoAsync(inboxId, page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all sent emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageSentEmailProjection) + public async System.Threading.Tasks.Task> GetSentEmailsWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get results of email sent with queues in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageSentEmailWithQueueProjection + public PageSentEmailWithQueueProjection GetSentEmailsWithQueueResults(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSentEmailsWithQueueResultsWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get results of email sent with queues in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageSentEmailWithQueueProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetSentEmailsWithQueueResultsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmailsWithQueueResults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/queue-results", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmailsWithQueueResults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get results of email sent with queues in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageSentEmailWithQueueProjection + public async System.Threading.Tasks.Task GetSentEmailsWithQueueResultsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSentEmailsWithQueueResultsWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get results of email sent with queues in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in inbox sent email list pagination (optional, default to 0) + /// Optional page size in inbox sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageSentEmailWithQueueProjection) + public async System.Threading.Tasks.Task> GetSentEmailsWithQueueResultsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentEmailsWithQueueResults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/queue-results", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentEmailsWithQueueResults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all sent organization emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in sent email list pagination (optional, default to 0) + /// Optional page size in sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageSentEmailProjection + public PageSentEmailProjection GetSentOrganizationEmails(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSentOrganizationEmailsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// Get all sent organization emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in sent email list pagination (optional, default to 0) + /// Optional page size in sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageSentEmailProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetSentOrganizationEmailsWithHttpInfo(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentOrganizationEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/organization", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentOrganizationEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all sent organization emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in sent email list pagination (optional, default to 0) + /// Optional page size in sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageSentEmailProjection + public async System.Threading.Tasks.Task GetSentOrganizationEmailsAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSentOrganizationEmailsWithHttpInfoAsync(inboxId, page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all sent organization emails in paginated form + /// + /// Thrown when fails to make API call + /// Optional inboxId to filter sender of sent emails by (optional) + /// Optional page index in sent email list pagination (optional, default to 0) + /// Optional page size in sent email list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageSentEmailProjection) + public async System.Threading.Tasks.Task> GetSentOrganizationEmailsWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.GetSentOrganizationEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/organization", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSentOrganizationEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for delivery statuses + /// + /// Thrown when fails to make API call + /// Optional sent email ID filter (optional) + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index=1 (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// DeliveryStatusDto + public DeliveryStatusDto WaitForDeliveryStatuses(Guid? sentId = default(Guid?), Guid? inboxId = default(Guid?), long? timeout = default(long?), int? index = default(int?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = WaitForDeliveryStatusesWithHttpInfo(sentId, inboxId, timeout, index, since, before); + return localVarResponse.Data; + } + + /// + /// Wait for delivery statuses + /// + /// Thrown when fails to make API call + /// Optional sent email ID filter (optional) + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index=1 (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of DeliveryStatusDto + public mailslurp_netstandard_2x.Client.ApiResponse WaitForDeliveryStatusesWithHttpInfo(Guid? sentId = default(Guid?), Guid? inboxId = default(Guid?), long? timeout = default(long?), int? index = default(int?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (sentId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sentId", sentId)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (index != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "index", index)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.WaitForDeliveryStatuses"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sent/delivery-status/wait-for", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForDeliveryStatuses", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for delivery statuses + /// + /// Thrown when fails to make API call + /// Optional sent email ID filter (optional) + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index=1 (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of DeliveryStatusDto + public async System.Threading.Tasks.Task WaitForDeliveryStatusesAsync(Guid? sentId = default(Guid?), Guid? inboxId = default(Guid?), long? timeout = default(long?), int? index = default(int?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await WaitForDeliveryStatusesWithHttpInfoAsync(sentId, inboxId, timeout, index, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Wait for delivery statuses + /// + /// Thrown when fails to make API call + /// Optional sent email ID filter (optional) + /// Optional inbox ID filter (optional) + /// Optional timeout milliseconds (optional) + /// Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index=1 (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (DeliveryStatusDto) + public async System.Threading.Tasks.Task> WaitForDeliveryStatusesWithHttpInfoAsync(Guid? sentId = default(Guid?), Guid? inboxId = default(Guid?), long? timeout = default(long?), int? index = default(int?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (sentId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sentId", sentId)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (index != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "index", index)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SentEmailsControllerApi.WaitForDeliveryStatuses"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sent/delivery-status/wait-for", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForDeliveryStatuses", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/SmsControllerApi.cs b/src/mailslurp_netstandard_2x/Api/SmsControllerApi.cs new file mode 100644 index 00000000..4d13d590 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/SmsControllerApi.cs @@ -0,0 +1,1784 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISmsControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Delete SMS message. + /// + /// + /// Delete an SMS message + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteSmsMessage(Guid smsId, int operationIndex = 0); + + /// + /// Delete SMS message. + /// + /// + /// Delete an SMS message + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteSmsMessageWithHttpInfo(Guid smsId, int operationIndex = 0); + /// + /// Delete all SMS messages + /// + /// + /// Delete all SMS messages or all messages for a given phone number + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + void DeleteSmsMessages(Guid? phoneNumberId = default(Guid?), int operationIndex = 0); + + /// + /// Delete all SMS messages + /// + /// + /// Delete all SMS messages or all messages for a given phone number + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteSmsMessagesWithHttpInfo(Guid? phoneNumberId = default(Guid?), int operationIndex = 0); + /// + /// Get reply for an SMS message + /// + /// + /// Get reply for an SMS message. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ReplyForSms + ReplyForSms GetReplyForSmsMessage(Guid smsId, int operationIndex = 0); + + /// + /// Get reply for an SMS message + /// + /// + /// Get reply for an SMS message. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ReplyForSms + ApiResponse GetReplyForSmsMessageWithHttpInfo(Guid smsId, int operationIndex = 0); + /// + /// Get SMS count + /// + /// + /// Get number of SMS + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// CountDto + CountDto GetSmsCount(int operationIndex = 0); + + /// + /// Get SMS count + /// + /// + /// Get number of SMS + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of CountDto + ApiResponse GetSmsCountWithHttpInfo(int operationIndex = 0); + /// + /// Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. + /// + /// + /// Returns a SMS summary object with content. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// SmsDto + SmsDto GetSmsMessage(Guid smsId, int operationIndex = 0); + + /// + /// Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. + /// + /// + /// Returns a SMS summary object with content. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of SmsDto + ApiResponse GetSmsMessageWithHttpInfo(Guid smsId, int operationIndex = 0); + /// + /// Get all SMS messages in all phone numbers in paginated form. . + /// + /// + /// By default returns all SMS messages across all phone numbers sorted by ascending created at date. Responses are paginated. You can restrict results to a list of phone number IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional receiving phone number to filter SMS messages for (optional) + /// Optional page index in SMS list pagination (optional, default to 0) + /// Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional filter SMSs received after given date time (optional) + /// Optional filter SMSs received before given date time (optional) + /// Index associated with the operation. + /// PageSmsProjection + PageSmsProjection GetSmsMessagesPaginated(Guid? phoneNumber = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get all SMS messages in all phone numbers in paginated form. . + /// + /// + /// By default returns all SMS messages across all phone numbers sorted by ascending created at date. Responses are paginated. You can restrict results to a list of phone number IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional receiving phone number to filter SMS messages for (optional) + /// Optional page index in SMS list pagination (optional, default to 0) + /// Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional filter SMSs received after given date time (optional) + /// Optional filter SMSs received before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageSmsProjection + ApiResponse GetSmsMessagesPaginatedWithHttpInfo(Guid? phoneNumber = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get unread SMS count + /// + /// + /// Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// UnreadCount + UnreadCount GetUnreadSmsCount(int operationIndex = 0); + + /// + /// Get unread SMS count + /// + /// + /// Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of UnreadCount + ApiResponse GetUnreadSmsCountWithHttpInfo(int operationIndex = 0); + /// + /// Send a reply to a received SMS message. Replies are sent from the receiving number. + /// + /// + /// Reply to an SMS message. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// SentSmsDto + SentSmsDto ReplyToSmsMessage(Guid smsId, SmsReplyOptions smsReplyOptions, int operationIndex = 0); + + /// + /// Send a reply to a received SMS message. Replies are sent from the receiving number. + /// + /// + /// Reply to an SMS message. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of SentSmsDto + ApiResponse ReplyToSmsMessageWithHttpInfo(Guid smsId, SmsReplyOptions smsReplyOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISmsControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Delete SMS message. + /// + /// + /// Delete an SMS message + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteSmsMessageAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete SMS message. + /// + /// + /// Delete an SMS message + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteSmsMessageWithHttpInfoAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete all SMS messages + /// + /// + /// Delete all SMS messages or all messages for a given phone number + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteSmsMessagesAsync(Guid? phoneNumberId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete all SMS messages + /// + /// + /// Delete all SMS messages or all messages for a given phone number + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteSmsMessagesWithHttpInfoAsync(Guid? phoneNumberId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get reply for an SMS message + /// + /// + /// Get reply for an SMS message. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ReplyForSms + System.Threading.Tasks.Task GetReplyForSmsMessageAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get reply for an SMS message + /// + /// + /// Get reply for an SMS message. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ReplyForSms) + System.Threading.Tasks.Task> GetReplyForSmsMessageWithHttpInfoAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get SMS count + /// + /// + /// Get number of SMS + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CountDto + System.Threading.Tasks.Task GetSmsCountAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get SMS count + /// + /// + /// Get number of SMS + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CountDto) + System.Threading.Tasks.Task> GetSmsCountWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. + /// + /// + /// Returns a SMS summary object with content. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SmsDto + System.Threading.Tasks.Task GetSmsMessageAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. + /// + /// + /// Returns a SMS summary object with content. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SmsDto) + System.Threading.Tasks.Task> GetSmsMessageWithHttpInfoAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all SMS messages in all phone numbers in paginated form. . + /// + /// + /// By default returns all SMS messages across all phone numbers sorted by ascending created at date. Responses are paginated. You can restrict results to a list of phone number IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional receiving phone number to filter SMS messages for (optional) + /// Optional page index in SMS list pagination (optional, default to 0) + /// Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional filter SMSs received after given date time (optional) + /// Optional filter SMSs received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageSmsProjection + System.Threading.Tasks.Task GetSmsMessagesPaginatedAsync(Guid? phoneNumber = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all SMS messages in all phone numbers in paginated form. . + /// + /// + /// By default returns all SMS messages across all phone numbers sorted by ascending created at date. Responses are paginated. You can restrict results to a list of phone number IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional receiving phone number to filter SMS messages for (optional) + /// Optional page index in SMS list pagination (optional, default to 0) + /// Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional filter SMSs received after given date time (optional) + /// Optional filter SMSs received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageSmsProjection) + System.Threading.Tasks.Task> GetSmsMessagesPaginatedWithHttpInfoAsync(Guid? phoneNumber = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get unread SMS count + /// + /// + /// Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UnreadCount + System.Threading.Tasks.Task GetUnreadSmsCountAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get unread SMS count + /// + /// + /// Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UnreadCount) + System.Threading.Tasks.Task> GetUnreadSmsCountWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send a reply to a received SMS message. Replies are sent from the receiving number. + /// + /// + /// Reply to an SMS message. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentSmsDto + System.Threading.Tasks.Task ReplyToSmsMessageAsync(Guid smsId, SmsReplyOptions smsReplyOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send a reply to a received SMS message. Replies are sent from the receiving number. + /// + /// + /// Reply to an SMS message. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentSmsDto) + System.Threading.Tasks.Task> ReplyToSmsMessageWithHttpInfoAsync(Guid smsId, SmsReplyOptions smsReplyOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISmsControllerApi : ISmsControllerApiSync, ISmsControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class SmsControllerApi : ISmsControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public SmsControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public SmsControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public SmsControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public SmsControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Delete SMS message. Delete an SMS message + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteSmsMessage(Guid smsId, int operationIndex = 0) + { + DeleteSmsMessageWithHttpInfo(smsId); + } + + /// + /// Delete SMS message. Delete an SMS message + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteSmsMessageWithHttpInfo(Guid smsId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("smsId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(smsId)); // path parameter + + localVarRequestOptions.Operation = "SmsControllerApi.DeleteSmsMessage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/sms/{smsId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteSmsMessage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete SMS message. Delete an SMS message + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteSmsMessageAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteSmsMessageWithHttpInfoAsync(smsId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete SMS message. Delete an SMS message + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteSmsMessageWithHttpInfoAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("smsId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(smsId)); // path parameter + + localVarRequestOptions.Operation = "SmsControllerApi.DeleteSmsMessage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/sms/{smsId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteSmsMessage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all SMS messages Delete all SMS messages or all messages for a given phone number + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// + public void DeleteSmsMessages(Guid? phoneNumberId = default(Guid?), int operationIndex = 0) + { + DeleteSmsMessagesWithHttpInfo(phoneNumberId); + } + + /// + /// Delete all SMS messages Delete all SMS messages or all messages for a given phone number + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteSmsMessagesWithHttpInfo(Guid? phoneNumberId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (phoneNumberId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneNumberId", phoneNumberId)); + } + + localVarRequestOptions.Operation = "SmsControllerApi.DeleteSmsMessages"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/sms", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteSmsMessages", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all SMS messages Delete all SMS messages or all messages for a given phone number + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteSmsMessagesAsync(Guid? phoneNumberId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteSmsMessagesWithHttpInfoAsync(phoneNumberId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete all SMS messages Delete all SMS messages or all messages for a given phone number + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteSmsMessagesWithHttpInfoAsync(Guid? phoneNumberId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (phoneNumberId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneNumberId", phoneNumberId)); + } + + localVarRequestOptions.Operation = "SmsControllerApi.DeleteSmsMessages"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/sms", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteSmsMessages", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get reply for an SMS message Get reply for an SMS message. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ReplyForSms + public ReplyForSms GetReplyForSmsMessage(Guid smsId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetReplyForSmsMessageWithHttpInfo(smsId); + return localVarResponse.Data; + } + + /// + /// Get reply for an SMS message Get reply for an SMS message. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of ReplyForSms + public mailslurp_netstandard_2x.Client.ApiResponse GetReplyForSmsMessageWithHttpInfo(Guid smsId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("smsId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(smsId)); // path parameter + + localVarRequestOptions.Operation = "SmsControllerApi.GetReplyForSmsMessage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sms/{smsId}/reply", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetReplyForSmsMessage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get reply for an SMS message Get reply for an SMS message. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ReplyForSms + public async System.Threading.Tasks.Task GetReplyForSmsMessageAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetReplyForSmsMessageWithHttpInfoAsync(smsId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get reply for an SMS message Get reply for an SMS message. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ReplyForSms) + public async System.Threading.Tasks.Task> GetReplyForSmsMessageWithHttpInfoAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("smsId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(smsId)); // path parameter + + localVarRequestOptions.Operation = "SmsControllerApi.GetReplyForSmsMessage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sms/{smsId}/reply", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetReplyForSmsMessage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get SMS count Get number of SMS + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// CountDto + public CountDto GetSmsCount(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSmsCountWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get SMS count Get number of SMS + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of CountDto + public mailslurp_netstandard_2x.Client.ApiResponse GetSmsCountWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "SmsControllerApi.GetSmsCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sms/count", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSmsCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get SMS count Get number of SMS + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CountDto + public async System.Threading.Tasks.Task GetSmsCountAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSmsCountWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get SMS count Get number of SMS + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CountDto) + public async System.Threading.Tasks.Task> GetSmsCountWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "SmsControllerApi.GetSmsCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sms/count", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSmsCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. Returns a SMS summary object with content. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// SmsDto + public SmsDto GetSmsMessage(Guid smsId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSmsMessageWithHttpInfo(smsId); + return localVarResponse.Data; + } + + /// + /// Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. Returns a SMS summary object with content. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of SmsDto + public mailslurp_netstandard_2x.Client.ApiResponse GetSmsMessageWithHttpInfo(Guid smsId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("smsId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(smsId)); // path parameter + + localVarRequestOptions.Operation = "SmsControllerApi.GetSmsMessage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sms/{smsId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSmsMessage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. Returns a SMS summary object with content. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SmsDto + public async System.Threading.Tasks.Task GetSmsMessageAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSmsMessageWithHttpInfoAsync(smsId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController. Returns a SMS summary object with content. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SmsDto) + public async System.Threading.Tasks.Task> GetSmsMessageWithHttpInfoAsync(Guid smsId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("smsId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(smsId)); // path parameter + + localVarRequestOptions.Operation = "SmsControllerApi.GetSmsMessage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sms/{smsId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSmsMessage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all SMS messages in all phone numbers in paginated form. . By default returns all SMS messages across all phone numbers sorted by ascending created at date. Responses are paginated. You can restrict results to a list of phone number IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional receiving phone number to filter SMS messages for (optional) + /// Optional page index in SMS list pagination (optional, default to 0) + /// Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional filter SMSs received after given date time (optional) + /// Optional filter SMSs received before given date time (optional) + /// Index associated with the operation. + /// PageSmsProjection + public PageSmsProjection GetSmsMessagesPaginated(Guid? phoneNumber = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetSmsMessagesPaginatedWithHttpInfo(phoneNumber, page, size, sort, unreadOnly, since, before); + return localVarResponse.Data; + } + + /// + /// Get all SMS messages in all phone numbers in paginated form. . By default returns all SMS messages across all phone numbers sorted by ascending created at date. Responses are paginated. You can restrict results to a list of phone number IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional receiving phone number to filter SMS messages for (optional) + /// Optional page index in SMS list pagination (optional, default to 0) + /// Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional filter SMSs received after given date time (optional) + /// Optional filter SMSs received before given date time (optional) + /// Index associated with the operation. + /// ApiResponse of PageSmsProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetSmsMessagesPaginatedWithHttpInfo(Guid? phoneNumber = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (phoneNumber != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneNumber", phoneNumber)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SmsControllerApi.GetSmsMessagesPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sms", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSmsMessagesPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all SMS messages in all phone numbers in paginated form. . By default returns all SMS messages across all phone numbers sorted by ascending created at date. Responses are paginated. You can restrict results to a list of phone number IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional receiving phone number to filter SMS messages for (optional) + /// Optional page index in SMS list pagination (optional, default to 0) + /// Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional filter SMSs received after given date time (optional) + /// Optional filter SMSs received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageSmsProjection + public async System.Threading.Tasks.Task GetSmsMessagesPaginatedAsync(Guid? phoneNumber = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetSmsMessagesPaginatedWithHttpInfoAsync(phoneNumber, page, size, sort, unreadOnly, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all SMS messages in all phone numbers in paginated form. . By default returns all SMS messages across all phone numbers sorted by ascending created at date. Responses are paginated. You can restrict results to a list of phone number IDs. You can also filter out read messages + /// + /// Thrown when fails to make API call + /// Optional receiving phone number to filter SMS messages for (optional) + /// Optional page index in SMS list pagination (optional, default to 0) + /// Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional filter for unread SMS only. All SMS are considered unread until they are viewed in the dashboard or requested directly (optional, default to false) + /// Optional filter SMSs received after given date time (optional) + /// Optional filter SMSs received before given date time (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageSmsProjection) + public async System.Threading.Tasks.Task> GetSmsMessagesPaginatedWithHttpInfoAsync(Guid? phoneNumber = default(Guid?), int? page = default(int?), int? size = default(int?), string sort = default(string), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (phoneNumber != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneNumber", phoneNumber)); + } + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "SmsControllerApi.GetSmsMessagesPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sms", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSmsMessagesPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get unread SMS count Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// UnreadCount + public UnreadCount GetUnreadSmsCount(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetUnreadSmsCountWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get unread SMS count Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of UnreadCount + public mailslurp_netstandard_2x.Client.ApiResponse GetUnreadSmsCountWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "SmsControllerApi.GetUnreadSmsCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/sms/unreadCount", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUnreadSmsCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get unread SMS count Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UnreadCount + public async System.Threading.Tasks.Task GetUnreadSmsCountAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetUnreadSmsCountWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get unread SMS count Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UnreadCount) + public async System.Threading.Tasks.Task> GetUnreadSmsCountWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "SmsControllerApi.GetUnreadSmsCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/sms/unreadCount", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUnreadSmsCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send a reply to a received SMS message. Replies are sent from the receiving number. Reply to an SMS message. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// SentSmsDto + public SentSmsDto ReplyToSmsMessage(Guid smsId, SmsReplyOptions smsReplyOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = ReplyToSmsMessageWithHttpInfo(smsId, smsReplyOptions); + return localVarResponse.Data; + } + + /// + /// Send a reply to a received SMS message. Replies are sent from the receiving number. Reply to an SMS message. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of SentSmsDto + public mailslurp_netstandard_2x.Client.ApiResponse ReplyToSmsMessageWithHttpInfo(Guid smsId, SmsReplyOptions smsReplyOptions, int operationIndex = 0) + { + // verify the required parameter 'smsReplyOptions' is set + if (smsReplyOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'smsReplyOptions' when calling SmsControllerApi->ReplyToSmsMessage"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("smsId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(smsId)); // path parameter + localVarRequestOptions.Data = smsReplyOptions; + + localVarRequestOptions.Operation = "SmsControllerApi.ReplyToSmsMessage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/sms/{smsId}/reply", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ReplyToSmsMessage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send a reply to a received SMS message. Replies are sent from the receiving number. Reply to an SMS message. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SentSmsDto + public async System.Threading.Tasks.Task ReplyToSmsMessageAsync(Guid smsId, SmsReplyOptions smsReplyOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await ReplyToSmsMessageWithHttpInfoAsync(smsId, smsReplyOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Send a reply to a received SMS message. Replies are sent from the receiving number. Reply to an SMS message. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SentSmsDto) + public async System.Threading.Tasks.Task> ReplyToSmsMessageWithHttpInfoAsync(Guid smsId, SmsReplyOptions smsReplyOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'smsReplyOptions' is set + if (smsReplyOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'smsReplyOptions' when calling SmsControllerApi->ReplyToSmsMessage"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("smsId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(smsId)); // path parameter + localVarRequestOptions.Data = smsReplyOptions; + + localVarRequestOptions.Operation = "SmsControllerApi.ReplyToSmsMessage"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/sms/{smsId}/reply", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ReplyToSmsMessage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/TemplateControllerApi.cs b/src/mailslurp_netstandard_2x/Api/TemplateControllerApi.cs new file mode 100644 index 00000000..958b5343 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/TemplateControllerApi.cs @@ -0,0 +1,1776 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITemplateControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create a Template + /// + /// + /// Create an email template with variables for use with templated transactional emails. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// TemplateDto + TemplateDto CreateTemplate(CreateTemplateOptions createTemplateOptions, int operationIndex = 0); + + /// + /// Create a Template + /// + /// + /// Create an email template with variables for use with templated transactional emails. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of TemplateDto + ApiResponse CreateTemplateWithHttpInfo(CreateTemplateOptions createTemplateOptions, int operationIndex = 0); + /// + /// Delete email template + /// + /// + /// Delete template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// + void DeleteTemplate(Guid templateId, int operationIndex = 0); + + /// + /// Delete email template + /// + /// + /// Delete template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteTemplateWithHttpInfo(Guid templateId, int operationIndex = 0); + /// + /// List templates + /// + /// + /// Get all templates in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageTemplateProjection + PageTemplateProjection GetAllTemplates(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// List templates + /// + /// + /// Get all templates in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageTemplateProjection + ApiResponse GetAllTemplatesWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get template + /// + /// + /// Get email template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// TemplateDto + TemplateDto GetTemplate(Guid templateId, int operationIndex = 0); + + /// + /// Get template + /// + /// + /// Get email template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// ApiResponse of TemplateDto + ApiResponse GetTemplateWithHttpInfo(Guid templateId, int operationIndex = 0); + /// + /// Get template preview HTML + /// + /// + /// Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// string + string GetTemplatePreviewHtml(Guid templateId, int operationIndex = 0); + + /// + /// Get template preview HTML + /// + /// + /// Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// ApiResponse of string + ApiResponse GetTemplatePreviewHtmlWithHttpInfo(Guid templateId, int operationIndex = 0); + /// + /// Get template preview Json + /// + /// + /// Get email template preview with passed template variables in JSON format. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// TemplatePreview + TemplatePreview GetTemplatePreviewJson(Guid templateId, int operationIndex = 0); + + /// + /// Get template preview Json + /// + /// + /// Get email template preview with passed template variables in JSON format. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// ApiResponse of TemplatePreview + ApiResponse GetTemplatePreviewJsonWithHttpInfo(Guid templateId, int operationIndex = 0); + /// + /// List templates + /// + /// + /// Get all templates + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<TemplateProjection> + List GetTemplates(int operationIndex = 0); + + /// + /// List templates + /// + /// + /// Get all templates + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<TemplateProjection> + ApiResponse> GetTemplatesWithHttpInfo(int operationIndex = 0); + /// + /// Update template + /// + /// + /// Update email template + /// + /// Thrown when fails to make API call + /// Template ID + /// + /// Index associated with the operation. + /// TemplateDto + TemplateDto UpdateTemplate(Guid templateId, CreateTemplateOptions createTemplateOptions, int operationIndex = 0); + + /// + /// Update template + /// + /// + /// Update email template + /// + /// Thrown when fails to make API call + /// Template ID + /// + /// Index associated with the operation. + /// ApiResponse of TemplateDto + ApiResponse UpdateTemplateWithHttpInfo(Guid templateId, CreateTemplateOptions createTemplateOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITemplateControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create a Template + /// + /// + /// Create an email template with variables for use with templated transactional emails. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TemplateDto + System.Threading.Tasks.Task CreateTemplateAsync(CreateTemplateOptions createTemplateOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create a Template + /// + /// + /// Create an email template with variables for use with templated transactional emails. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TemplateDto) + System.Threading.Tasks.Task> CreateTemplateWithHttpInfoAsync(CreateTemplateOptions createTemplateOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete email template + /// + /// + /// Delete template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteTemplateAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete email template + /// + /// + /// Delete template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteTemplateWithHttpInfoAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List templates + /// + /// + /// Get all templates in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageTemplateProjection + System.Threading.Tasks.Task GetAllTemplatesAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List templates + /// + /// + /// Get all templates in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageTemplateProjection) + System.Threading.Tasks.Task> GetAllTemplatesWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get template + /// + /// + /// Get email template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TemplateDto + System.Threading.Tasks.Task GetTemplateAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get template + /// + /// + /// Get email template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TemplateDto) + System.Threading.Tasks.Task> GetTemplateWithHttpInfoAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get template preview HTML + /// + /// + /// Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + System.Threading.Tasks.Task GetTemplatePreviewHtmlAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get template preview HTML + /// + /// + /// Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> GetTemplatePreviewHtmlWithHttpInfoAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get template preview Json + /// + /// + /// Get email template preview with passed template variables in JSON format. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TemplatePreview + System.Threading.Tasks.Task GetTemplatePreviewJsonAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get template preview Json + /// + /// + /// Get email template preview with passed template variables in JSON format. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TemplatePreview) + System.Threading.Tasks.Task> GetTemplatePreviewJsonWithHttpInfoAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List templates + /// + /// + /// Get all templates + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<TemplateProjection> + System.Threading.Tasks.Task> GetTemplatesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List templates + /// + /// + /// Get all templates + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<TemplateProjection>) + System.Threading.Tasks.Task>> GetTemplatesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Update template + /// + /// + /// Update email template + /// + /// Thrown when fails to make API call + /// Template ID + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TemplateDto + System.Threading.Tasks.Task UpdateTemplateAsync(Guid templateId, CreateTemplateOptions createTemplateOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update template + /// + /// + /// Update email template + /// + /// Thrown when fails to make API call + /// Template ID + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TemplateDto) + System.Threading.Tasks.Task> UpdateTemplateWithHttpInfoAsync(Guid templateId, CreateTemplateOptions createTemplateOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITemplateControllerApi : ITemplateControllerApiSync, ITemplateControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class TemplateControllerApi : ITemplateControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public TemplateControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public TemplateControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public TemplateControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public TemplateControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create a Template Create an email template with variables for use with templated transactional emails. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// TemplateDto + public TemplateDto CreateTemplate(CreateTemplateOptions createTemplateOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateTemplateWithHttpInfo(createTemplateOptions); + return localVarResponse.Data; + } + + /// + /// Create a Template Create an email template with variables for use with templated transactional emails. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of TemplateDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateTemplateWithHttpInfo(CreateTemplateOptions createTemplateOptions, int operationIndex = 0) + { + // verify the required parameter 'createTemplateOptions' is set + if (createTemplateOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createTemplateOptions' when calling TemplateControllerApi->CreateTemplate"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createTemplateOptions; + + localVarRequestOptions.Operation = "TemplateControllerApi.CreateTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/templates", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a Template Create an email template with variables for use with templated transactional emails. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TemplateDto + public async System.Threading.Tasks.Task CreateTemplateAsync(CreateTemplateOptions createTemplateOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateTemplateWithHttpInfoAsync(createTemplateOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a Template Create an email template with variables for use with templated transactional emails. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TemplateDto) + public async System.Threading.Tasks.Task> CreateTemplateWithHttpInfoAsync(CreateTemplateOptions createTemplateOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createTemplateOptions' is set + if (createTemplateOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createTemplateOptions' when calling TemplateControllerApi->CreateTemplate"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createTemplateOptions; + + localVarRequestOptions.Operation = "TemplateControllerApi.CreateTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/templates", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete email template Delete template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// + public void DeleteTemplate(Guid templateId, int operationIndex = 0) + { + DeleteTemplateWithHttpInfo(templateId); + } + + /// + /// Delete email template Delete template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteTemplateWithHttpInfo(Guid templateId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("templateId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(templateId)); // path parameter + + localVarRequestOptions.Operation = "TemplateControllerApi.DeleteTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/templates/{templateId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete email template Delete template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteTemplateAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteTemplateWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete email template Delete template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteTemplateWithHttpInfoAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("templateId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(templateId)); // path parameter + + localVarRequestOptions.Operation = "TemplateControllerApi.DeleteTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/templates/{templateId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List templates Get all templates in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageTemplateProjection + public PageTemplateProjection GetAllTemplates(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllTemplatesWithHttpInfo(page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// List templates Get all templates in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageTemplateProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAllTemplatesWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "TemplateControllerApi.GetAllTemplates"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/templates/paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllTemplates", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List templates Get all templates in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageTemplateProjection + public async System.Threading.Tasks.Task GetAllTemplatesAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllTemplatesWithHttpInfoAsync(page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List templates Get all templates in paginated format + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageTemplateProjection) + public async System.Threading.Tasks.Task> GetAllTemplatesWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "TemplateControllerApi.GetAllTemplates"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/templates/paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllTemplates", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get template Get email template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// TemplateDto + public TemplateDto GetTemplate(Guid templateId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTemplateWithHttpInfo(templateId); + return localVarResponse.Data; + } + + /// + /// Get template Get email template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// ApiResponse of TemplateDto + public mailslurp_netstandard_2x.Client.ApiResponse GetTemplateWithHttpInfo(Guid templateId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("templateId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(templateId)); // path parameter + + localVarRequestOptions.Operation = "TemplateControllerApi.GetTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/templates/{templateId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get template Get email template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TemplateDto + public async System.Threading.Tasks.Task GetTemplateAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTemplateWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get template Get email template + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TemplateDto) + public async System.Threading.Tasks.Task> GetTemplateWithHttpInfoAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("templateId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(templateId)); // path parameter + + localVarRequestOptions.Operation = "TemplateControllerApi.GetTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/templates/{templateId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get template preview HTML Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// string + public string GetTemplatePreviewHtml(Guid templateId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTemplatePreviewHtmlWithHttpInfo(templateId); + return localVarResponse.Data; + } + + /// + /// Get template preview HTML Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// ApiResponse of string + public mailslurp_netstandard_2x.Client.ApiResponse GetTemplatePreviewHtmlWithHttpInfo(Guid templateId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/html;charset=utf-8", + "text/html" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("templateId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(templateId)); // path parameter + + localVarRequestOptions.Operation = "TemplateControllerApi.GetTemplatePreviewHtml"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/templates/{templateId}/preview/html", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplatePreviewHtml", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get template preview HTML Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + public async System.Threading.Tasks.Task GetTemplatePreviewHtmlAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTemplatePreviewHtmlWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get template preview HTML Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> GetTemplatePreviewHtmlWithHttpInfoAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/html;charset=utf-8", + "text/html" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("templateId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(templateId)); // path parameter + + localVarRequestOptions.Operation = "TemplateControllerApi.GetTemplatePreviewHtml"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/templates/{templateId}/preview/html", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplatePreviewHtml", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get template preview Json Get email template preview with passed template variables in JSON format. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// TemplatePreview + public TemplatePreview GetTemplatePreviewJson(Guid templateId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTemplatePreviewJsonWithHttpInfo(templateId); + return localVarResponse.Data; + } + + /// + /// Get template preview Json Get email template preview with passed template variables in JSON format. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// ApiResponse of TemplatePreview + public mailslurp_netstandard_2x.Client.ApiResponse GetTemplatePreviewJsonWithHttpInfo(Guid templateId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("templateId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(templateId)); // path parameter + + localVarRequestOptions.Operation = "TemplateControllerApi.GetTemplatePreviewJson"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/templates/{templateId}/preview/json", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplatePreviewJson", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get template preview Json Get email template preview with passed template variables in JSON format. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TemplatePreview + public async System.Threading.Tasks.Task GetTemplatePreviewJsonAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTemplatePreviewJsonWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get template preview Json Get email template preview with passed template variables in JSON format. Pass template variables as query params. + /// + /// Thrown when fails to make API call + /// Template ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TemplatePreview) + public async System.Threading.Tasks.Task> GetTemplatePreviewJsonWithHttpInfoAsync(Guid templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("templateId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(templateId)); // path parameter + + localVarRequestOptions.Operation = "TemplateControllerApi.GetTemplatePreviewJson"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/templates/{templateId}/preview/json", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplatePreviewJson", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List templates Get all templates + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// List<TemplateProjection> + public List GetTemplates(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetTemplatesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// List templates Get all templates + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of List<TemplateProjection> + public mailslurp_netstandard_2x.Client.ApiResponse> GetTemplatesWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TemplateControllerApi.GetTemplates"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/templates", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplates", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List templates Get all templates + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<TemplateProjection> + public async System.Threading.Tasks.Task> GetTemplatesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetTemplatesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List templates Get all templates + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<TemplateProjection>) + public async System.Threading.Tasks.Task>> GetTemplatesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "TemplateControllerApi.GetTemplates"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/templates", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplates", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update template Update email template + /// + /// Thrown when fails to make API call + /// Template ID + /// + /// Index associated with the operation. + /// TemplateDto + public TemplateDto UpdateTemplate(Guid templateId, CreateTemplateOptions createTemplateOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = UpdateTemplateWithHttpInfo(templateId, createTemplateOptions); + return localVarResponse.Data; + } + + /// + /// Update template Update email template + /// + /// Thrown when fails to make API call + /// Template ID + /// + /// Index associated with the operation. + /// ApiResponse of TemplateDto + public mailslurp_netstandard_2x.Client.ApiResponse UpdateTemplateWithHttpInfo(Guid templateId, CreateTemplateOptions createTemplateOptions, int operationIndex = 0) + { + // verify the required parameter 'createTemplateOptions' is set + if (createTemplateOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createTemplateOptions' when calling TemplateControllerApi->UpdateTemplate"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("templateId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Data = createTemplateOptions; + + localVarRequestOptions.Operation = "TemplateControllerApi.UpdateTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/templates/{templateId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update template Update email template + /// + /// Thrown when fails to make API call + /// Template ID + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TemplateDto + public async System.Threading.Tasks.Task UpdateTemplateAsync(Guid templateId, CreateTemplateOptions createTemplateOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await UpdateTemplateWithHttpInfoAsync(templateId, createTemplateOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update template Update email template + /// + /// Thrown when fails to make API call + /// Template ID + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TemplateDto) + public async System.Threading.Tasks.Task> UpdateTemplateWithHttpInfoAsync(Guid templateId, CreateTemplateOptions createTemplateOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createTemplateOptions' is set + if (createTemplateOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createTemplateOptions' when calling TemplateControllerApi->UpdateTemplate"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("templateId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(templateId)); // path parameter + localVarRequestOptions.Data = createTemplateOptions; + + localVarRequestOptions.Operation = "TemplateControllerApi.UpdateTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/templates/{templateId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/ToolsControllerApi.cs b/src/mailslurp_netstandard_2x/Api/ToolsControllerApi.cs new file mode 100644 index 00000000..73142914 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/ToolsControllerApi.cs @@ -0,0 +1,2548 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IToolsControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Check email client support for email HTML and CSS features + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// CheckEmailFeaturesClientSupportResults + CheckEmailFeaturesClientSupportResults CheckEmailFeaturesClientSupport(CheckEmailFeaturesClientSupportOptions checkEmailFeaturesClientSupportOptions, int operationIndex = 0); + + /// + /// Check email client support for email HTML and CSS features + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of CheckEmailFeaturesClientSupportResults + ApiResponse CheckEmailFeaturesClientSupportWithHttpInfo(CheckEmailFeaturesClientSupportOptions checkEmailFeaturesClientSupportOptions, int operationIndex = 0); + /// + /// Create a new email address using the fake email domains + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// NewFakeEmailAddressResult + NewFakeEmailAddressResult CreateNewFakeEmailAddress(int operationIndex = 0); + + /// + /// Create a new email address using the fake email domains + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of NewFakeEmailAddressResult + ApiResponse CreateNewFakeEmailAddressWithHttpInfo(int operationIndex = 0); + /// + /// Create a BIMI record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GenerateBimiRecordResults + GenerateBimiRecordResults GenerateBimiRecord(GenerateBimiRecordOptions generateBimiRecordOptions, int operationIndex = 0); + + /// + /// Create a BIMI record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GenerateBimiRecordResults + ApiResponse GenerateBimiRecordWithHttpInfo(GenerateBimiRecordOptions generateBimiRecordOptions, int operationIndex = 0); + /// + /// Create a DMARC record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GenerateDmarcRecordResults + GenerateDmarcRecordResults GenerateDmarcRecord(GenerateDmarcRecordOptions generateDmarcRecordOptions, int operationIndex = 0); + + /// + /// Create a DMARC record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GenerateDmarcRecordResults + ApiResponse GenerateDmarcRecordWithHttpInfo(GenerateDmarcRecordOptions generateDmarcRecordOptions, int operationIndex = 0); + /// + /// Create a TLS reporting record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GenerateMtaStsRecordResults + GenerateMtaStsRecordResults GenerateMtaStsRecord(GenerateMtaStsRecordOptions generateMtaStsRecordOptions, int operationIndex = 0); + + /// + /// Create a TLS reporting record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GenerateMtaStsRecordResults + ApiResponse GenerateMtaStsRecordWithHttpInfo(GenerateMtaStsRecordOptions generateMtaStsRecordOptions, int operationIndex = 0); + /// + /// Create a TLS reporting record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GenerateTlsReportingRecordResults + GenerateTlsReportingRecordResults GenerateTlsReportingRecord(GenerateTlsReportingRecordOptions generateTlsReportingRecordOptions, int operationIndex = 0); + + /// + /// Create a TLS reporting record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GenerateTlsReportingRecordResults + ApiResponse GenerateTlsReportingRecordWithHttpInfo(GenerateTlsReportingRecordOptions generateTlsReportingRecordOptions, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// FakeEmailResult + FakeEmailResult GetFakeEmailById(Guid id, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of FakeEmailResult + ApiResponse GetFakeEmailByIdWithHttpInfo(Guid id, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// List<FakeEmailPreview> + List GetFakeEmailsForAddress(string emailAddress, int? page = default(int?), int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<FakeEmailPreview> + ApiResponse> GetFakeEmailsForAddressWithHttpInfo(string emailAddress, int? page = default(int?), int operationIndex = 0); + /// + /// Lookup a BIMI record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// LookupBimiDomainResults + LookupBimiDomainResults LookupBimiDomain(LookupBimiDomainOptions lookupBimiDomainOptions, int operationIndex = 0); + + /// + /// Lookup a BIMI record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of LookupBimiDomainResults + ApiResponse LookupBimiDomainWithHttpInfo(LookupBimiDomainOptions lookupBimiDomainOptions, int operationIndex = 0); + /// + /// Lookup a DMARC record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// LookupDmarcDomainResults + LookupDmarcDomainResults LookupDmarcDomain(LookupDmarcDomainOptions lookupDmarcDomainOptions, int operationIndex = 0); + + /// + /// Lookup a DMARC record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of LookupDmarcDomainResults + ApiResponse LookupDmarcDomainWithHttpInfo(LookupDmarcDomainOptions lookupDmarcDomainOptions, int operationIndex = 0); + /// + /// Lookup a MTA-STS domain policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// LookupMtaStsDomainResults + LookupMtaStsDomainResults LookupMtaStsDomain(LookupMtaStsDomainOptions lookupMtaStsDomainOptions, int operationIndex = 0); + + /// + /// Lookup a MTA-STS domain policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of LookupMtaStsDomainResults + ApiResponse LookupMtaStsDomainWithHttpInfo(LookupMtaStsDomainOptions lookupMtaStsDomainOptions, int operationIndex = 0); + /// + /// Lookup a TLS reporting domain policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// LookupTlsReportingDomainResults + LookupTlsReportingDomainResults LookupTlsReportingDomain(LookupTlsReportingDomainOptions lookupTlsReportingDomainOptions, int operationIndex = 0); + + /// + /// Lookup a TLS reporting domain policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of LookupTlsReportingDomainResults + ApiResponse LookupTlsReportingDomainWithHttpInfo(LookupTlsReportingDomainOptions lookupTlsReportingDomainOptions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IToolsControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Check email client support for email HTML and CSS features + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CheckEmailFeaturesClientSupportResults + System.Threading.Tasks.Task CheckEmailFeaturesClientSupportAsync(CheckEmailFeaturesClientSupportOptions checkEmailFeaturesClientSupportOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Check email client support for email HTML and CSS features + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CheckEmailFeaturesClientSupportResults) + System.Threading.Tasks.Task> CheckEmailFeaturesClientSupportWithHttpInfoAsync(CheckEmailFeaturesClientSupportOptions checkEmailFeaturesClientSupportOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create a new email address using the fake email domains + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of NewFakeEmailAddressResult + System.Threading.Tasks.Task CreateNewFakeEmailAddressAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create a new email address using the fake email domains + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (NewFakeEmailAddressResult) + System.Threading.Tasks.Task> CreateNewFakeEmailAddressWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create a BIMI record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GenerateBimiRecordResults + System.Threading.Tasks.Task GenerateBimiRecordAsync(GenerateBimiRecordOptions generateBimiRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create a BIMI record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GenerateBimiRecordResults) + System.Threading.Tasks.Task> GenerateBimiRecordWithHttpInfoAsync(GenerateBimiRecordOptions generateBimiRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create a DMARC record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GenerateDmarcRecordResults + System.Threading.Tasks.Task GenerateDmarcRecordAsync(GenerateDmarcRecordOptions generateDmarcRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create a DMARC record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GenerateDmarcRecordResults) + System.Threading.Tasks.Task> GenerateDmarcRecordWithHttpInfoAsync(GenerateDmarcRecordOptions generateDmarcRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create a TLS reporting record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GenerateMtaStsRecordResults + System.Threading.Tasks.Task GenerateMtaStsRecordAsync(GenerateMtaStsRecordOptions generateMtaStsRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create a TLS reporting record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GenerateMtaStsRecordResults) + System.Threading.Tasks.Task> GenerateMtaStsRecordWithHttpInfoAsync(GenerateMtaStsRecordOptions generateMtaStsRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create a TLS reporting record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GenerateTlsReportingRecordResults + System.Threading.Tasks.Task GenerateTlsReportingRecordAsync(GenerateTlsReportingRecordOptions generateTlsReportingRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create a TLS reporting record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GenerateTlsReportingRecordResults) + System.Threading.Tasks.Task> GenerateTlsReportingRecordWithHttpInfoAsync(GenerateTlsReportingRecordOptions generateTlsReportingRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of FakeEmailResult + System.Threading.Tasks.Task GetFakeEmailByIdAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (FakeEmailResult) + System.Threading.Tasks.Task> GetFakeEmailByIdWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<FakeEmailPreview> + System.Threading.Tasks.Task> GetFakeEmailsForAddressAsync(string emailAddress, int? page = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<FakeEmailPreview>) + System.Threading.Tasks.Task>> GetFakeEmailsForAddressWithHttpInfoAsync(string emailAddress, int? page = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Lookup a BIMI record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of LookupBimiDomainResults + System.Threading.Tasks.Task LookupBimiDomainAsync(LookupBimiDomainOptions lookupBimiDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Lookup a BIMI record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (LookupBimiDomainResults) + System.Threading.Tasks.Task> LookupBimiDomainWithHttpInfoAsync(LookupBimiDomainOptions lookupBimiDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Lookup a DMARC record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of LookupDmarcDomainResults + System.Threading.Tasks.Task LookupDmarcDomainAsync(LookupDmarcDomainOptions lookupDmarcDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Lookup a DMARC record policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (LookupDmarcDomainResults) + System.Threading.Tasks.Task> LookupDmarcDomainWithHttpInfoAsync(LookupDmarcDomainOptions lookupDmarcDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Lookup a MTA-STS domain policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of LookupMtaStsDomainResults + System.Threading.Tasks.Task LookupMtaStsDomainAsync(LookupMtaStsDomainOptions lookupMtaStsDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Lookup a MTA-STS domain policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (LookupMtaStsDomainResults) + System.Threading.Tasks.Task> LookupMtaStsDomainWithHttpInfoAsync(LookupMtaStsDomainOptions lookupMtaStsDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Lookup a TLS reporting domain policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of LookupTlsReportingDomainResults + System.Threading.Tasks.Task LookupTlsReportingDomainAsync(LookupTlsReportingDomainOptions lookupTlsReportingDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Lookup a TLS reporting domain policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (LookupTlsReportingDomainResults) + System.Threading.Tasks.Task> LookupTlsReportingDomainWithHttpInfoAsync(LookupTlsReportingDomainOptions lookupTlsReportingDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IToolsControllerApi : IToolsControllerApiSync, IToolsControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ToolsControllerApi : IToolsControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ToolsControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public ToolsControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ToolsControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public ToolsControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Check email client support for email HTML and CSS features + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// CheckEmailFeaturesClientSupportResults + public CheckEmailFeaturesClientSupportResults CheckEmailFeaturesClientSupport(CheckEmailFeaturesClientSupportOptions checkEmailFeaturesClientSupportOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CheckEmailFeaturesClientSupportWithHttpInfo(checkEmailFeaturesClientSupportOptions); + return localVarResponse.Data; + } + + /// + /// Check email client support for email HTML and CSS features + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of CheckEmailFeaturesClientSupportResults + public mailslurp_netstandard_2x.Client.ApiResponse CheckEmailFeaturesClientSupportWithHttpInfo(CheckEmailFeaturesClientSupportOptions checkEmailFeaturesClientSupportOptions, int operationIndex = 0) + { + // verify the required parameter 'checkEmailFeaturesClientSupportOptions' is set + if (checkEmailFeaturesClientSupportOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'checkEmailFeaturesClientSupportOptions' when calling ToolsControllerApi->CheckEmailFeaturesClientSupport"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = checkEmailFeaturesClientSupportOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.CheckEmailFeaturesClientSupport"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/tools/check-email-features-client-support", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CheckEmailFeaturesClientSupport", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Check email client support for email HTML and CSS features + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CheckEmailFeaturesClientSupportResults + public async System.Threading.Tasks.Task CheckEmailFeaturesClientSupportAsync(CheckEmailFeaturesClientSupportOptions checkEmailFeaturesClientSupportOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CheckEmailFeaturesClientSupportWithHttpInfoAsync(checkEmailFeaturesClientSupportOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Check email client support for email HTML and CSS features + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CheckEmailFeaturesClientSupportResults) + public async System.Threading.Tasks.Task> CheckEmailFeaturesClientSupportWithHttpInfoAsync(CheckEmailFeaturesClientSupportOptions checkEmailFeaturesClientSupportOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'checkEmailFeaturesClientSupportOptions' is set + if (checkEmailFeaturesClientSupportOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'checkEmailFeaturesClientSupportOptions' when calling ToolsControllerApi->CheckEmailFeaturesClientSupport"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = checkEmailFeaturesClientSupportOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.CheckEmailFeaturesClientSupport"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/tools/check-email-features-client-support", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CheckEmailFeaturesClientSupport", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new email address using the fake email domains + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// NewFakeEmailAddressResult + public NewFakeEmailAddressResult CreateNewFakeEmailAddress(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateNewFakeEmailAddressWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Create a new email address using the fake email domains + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of NewFakeEmailAddressResult + public mailslurp_netstandard_2x.Client.ApiResponse CreateNewFakeEmailAddressWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ToolsControllerApi.CreateNewFakeEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/tools/fake-email", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNewFakeEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a new email address using the fake email domains + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of NewFakeEmailAddressResult + public async System.Threading.Tasks.Task CreateNewFakeEmailAddressAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateNewFakeEmailAddressWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a new email address using the fake email domains + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (NewFakeEmailAddressResult) + public async System.Threading.Tasks.Task> CreateNewFakeEmailAddressWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ToolsControllerApi.CreateNewFakeEmailAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/tools/fake-email", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNewFakeEmailAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a BIMI record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GenerateBimiRecordResults + public GenerateBimiRecordResults GenerateBimiRecord(GenerateBimiRecordOptions generateBimiRecordOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GenerateBimiRecordWithHttpInfo(generateBimiRecordOptions); + return localVarResponse.Data; + } + + /// + /// Create a BIMI record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GenerateBimiRecordResults + public mailslurp_netstandard_2x.Client.ApiResponse GenerateBimiRecordWithHttpInfo(GenerateBimiRecordOptions generateBimiRecordOptions, int operationIndex = 0) + { + // verify the required parameter 'generateBimiRecordOptions' is set + if (generateBimiRecordOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'generateBimiRecordOptions' when calling ToolsControllerApi->GenerateBimiRecord"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = generateBimiRecordOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.GenerateBimiRecord"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/tools/generate-bimi-record", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateBimiRecord", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a BIMI record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GenerateBimiRecordResults + public async System.Threading.Tasks.Task GenerateBimiRecordAsync(GenerateBimiRecordOptions generateBimiRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GenerateBimiRecordWithHttpInfoAsync(generateBimiRecordOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a BIMI record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GenerateBimiRecordResults) + public async System.Threading.Tasks.Task> GenerateBimiRecordWithHttpInfoAsync(GenerateBimiRecordOptions generateBimiRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'generateBimiRecordOptions' is set + if (generateBimiRecordOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'generateBimiRecordOptions' when calling ToolsControllerApi->GenerateBimiRecord"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = generateBimiRecordOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.GenerateBimiRecord"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/tools/generate-bimi-record", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateBimiRecord", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a DMARC record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GenerateDmarcRecordResults + public GenerateDmarcRecordResults GenerateDmarcRecord(GenerateDmarcRecordOptions generateDmarcRecordOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GenerateDmarcRecordWithHttpInfo(generateDmarcRecordOptions); + return localVarResponse.Data; + } + + /// + /// Create a DMARC record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GenerateDmarcRecordResults + public mailslurp_netstandard_2x.Client.ApiResponse GenerateDmarcRecordWithHttpInfo(GenerateDmarcRecordOptions generateDmarcRecordOptions, int operationIndex = 0) + { + // verify the required parameter 'generateDmarcRecordOptions' is set + if (generateDmarcRecordOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'generateDmarcRecordOptions' when calling ToolsControllerApi->GenerateDmarcRecord"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = generateDmarcRecordOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.GenerateDmarcRecord"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/tools/generate-dmarc-record", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateDmarcRecord", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a DMARC record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GenerateDmarcRecordResults + public async System.Threading.Tasks.Task GenerateDmarcRecordAsync(GenerateDmarcRecordOptions generateDmarcRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GenerateDmarcRecordWithHttpInfoAsync(generateDmarcRecordOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a DMARC record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GenerateDmarcRecordResults) + public async System.Threading.Tasks.Task> GenerateDmarcRecordWithHttpInfoAsync(GenerateDmarcRecordOptions generateDmarcRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'generateDmarcRecordOptions' is set + if (generateDmarcRecordOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'generateDmarcRecordOptions' when calling ToolsControllerApi->GenerateDmarcRecord"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = generateDmarcRecordOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.GenerateDmarcRecord"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/tools/generate-dmarc-record", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateDmarcRecord", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a TLS reporting record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GenerateMtaStsRecordResults + public GenerateMtaStsRecordResults GenerateMtaStsRecord(GenerateMtaStsRecordOptions generateMtaStsRecordOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GenerateMtaStsRecordWithHttpInfo(generateMtaStsRecordOptions); + return localVarResponse.Data; + } + + /// + /// Create a TLS reporting record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GenerateMtaStsRecordResults + public mailslurp_netstandard_2x.Client.ApiResponse GenerateMtaStsRecordWithHttpInfo(GenerateMtaStsRecordOptions generateMtaStsRecordOptions, int operationIndex = 0) + { + // verify the required parameter 'generateMtaStsRecordOptions' is set + if (generateMtaStsRecordOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'generateMtaStsRecordOptions' when calling ToolsControllerApi->GenerateMtaStsRecord"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = generateMtaStsRecordOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.GenerateMtaStsRecord"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/tools/generate-mta-sts-record", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateMtaStsRecord", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a TLS reporting record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GenerateMtaStsRecordResults + public async System.Threading.Tasks.Task GenerateMtaStsRecordAsync(GenerateMtaStsRecordOptions generateMtaStsRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GenerateMtaStsRecordWithHttpInfoAsync(generateMtaStsRecordOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a TLS reporting record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GenerateMtaStsRecordResults) + public async System.Threading.Tasks.Task> GenerateMtaStsRecordWithHttpInfoAsync(GenerateMtaStsRecordOptions generateMtaStsRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'generateMtaStsRecordOptions' is set + if (generateMtaStsRecordOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'generateMtaStsRecordOptions' when calling ToolsControllerApi->GenerateMtaStsRecord"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = generateMtaStsRecordOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.GenerateMtaStsRecord"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/tools/generate-mta-sts-record", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateMtaStsRecord", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a TLS reporting record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// GenerateTlsReportingRecordResults + public GenerateTlsReportingRecordResults GenerateTlsReportingRecord(GenerateTlsReportingRecordOptions generateTlsReportingRecordOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GenerateTlsReportingRecordWithHttpInfo(generateTlsReportingRecordOptions); + return localVarResponse.Data; + } + + /// + /// Create a TLS reporting record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of GenerateTlsReportingRecordResults + public mailslurp_netstandard_2x.Client.ApiResponse GenerateTlsReportingRecordWithHttpInfo(GenerateTlsReportingRecordOptions generateTlsReportingRecordOptions, int operationIndex = 0) + { + // verify the required parameter 'generateTlsReportingRecordOptions' is set + if (generateTlsReportingRecordOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'generateTlsReportingRecordOptions' when calling ToolsControllerApi->GenerateTlsReportingRecord"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = generateTlsReportingRecordOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.GenerateTlsReportingRecord"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/tools/generate-tls-reporting-record", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateTlsReportingRecord", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create a TLS reporting record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GenerateTlsReportingRecordResults + public async System.Threading.Tasks.Task GenerateTlsReportingRecordAsync(GenerateTlsReportingRecordOptions generateTlsReportingRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GenerateTlsReportingRecordWithHttpInfoAsync(generateTlsReportingRecordOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a TLS reporting record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GenerateTlsReportingRecordResults) + public async System.Threading.Tasks.Task> GenerateTlsReportingRecordWithHttpInfoAsync(GenerateTlsReportingRecordOptions generateTlsReportingRecordOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'generateTlsReportingRecordOptions' is set + if (generateTlsReportingRecordOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'generateTlsReportingRecordOptions' when calling ToolsControllerApi->GenerateTlsReportingRecord"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = generateTlsReportingRecordOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.GenerateTlsReportingRecord"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/tools/generate-tls-reporting-record", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GenerateTlsReportingRecord", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// FakeEmailResult + public FakeEmailResult GetFakeEmailById(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetFakeEmailByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of FakeEmailResult + public mailslurp_netstandard_2x.Client.ApiResponse GetFakeEmailByIdWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "id", id)); + + localVarRequestOptions.Operation = "ToolsControllerApi.GetFakeEmailById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/tools/fake-email", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetFakeEmailById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of FakeEmailResult + public async System.Threading.Tasks.Task GetFakeEmailByIdAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetFakeEmailByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (FakeEmailResult) + public async System.Threading.Tasks.Task> GetFakeEmailByIdWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "id", id)); + + localVarRequestOptions.Operation = "ToolsControllerApi.GetFakeEmailById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/tools/fake-email", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetFakeEmailById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// List<FakeEmailPreview> + public List GetFakeEmailsForAddress(string emailAddress, int? page = default(int?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetFakeEmailsForAddressWithHttpInfo(emailAddress, page); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of List<FakeEmailPreview> + public mailslurp_netstandard_2x.Client.ApiResponse> GetFakeEmailsForAddressWithHttpInfo(string emailAddress, int? page = default(int?), int operationIndex = 0) + { + // verify the required parameter 'emailAddress' is set + if (emailAddress == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'emailAddress' when calling ToolsControllerApi->GetFakeEmailsForAddress"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + + localVarRequestOptions.Operation = "ToolsControllerApi.GetFakeEmailsForAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/tools/fake-emails", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetFakeEmailsForAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<FakeEmailPreview> + public async System.Threading.Tasks.Task> GetFakeEmailsForAddressAsync(string emailAddress, int? page = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetFakeEmailsForAddressWithHttpInfoAsync(emailAddress, page, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<FakeEmailPreview>) + public async System.Threading.Tasks.Task>> GetFakeEmailsForAddressWithHttpInfoAsync(string emailAddress, int? page = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'emailAddress' is set + if (emailAddress == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'emailAddress' when calling ToolsControllerApi->GetFakeEmailsForAddress"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailAddress", emailAddress)); + + localVarRequestOptions.Operation = "ToolsControllerApi.GetFakeEmailsForAddress"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/tools/fake-emails", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetFakeEmailsForAddress", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup a BIMI record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// LookupBimiDomainResults + public LookupBimiDomainResults LookupBimiDomain(LookupBimiDomainOptions lookupBimiDomainOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = LookupBimiDomainWithHttpInfo(lookupBimiDomainOptions); + return localVarResponse.Data; + } + + /// + /// Lookup a BIMI record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of LookupBimiDomainResults + public mailslurp_netstandard_2x.Client.ApiResponse LookupBimiDomainWithHttpInfo(LookupBimiDomainOptions lookupBimiDomainOptions, int operationIndex = 0) + { + // verify the required parameter 'lookupBimiDomainOptions' is set + if (lookupBimiDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'lookupBimiDomainOptions' when calling ToolsControllerApi->LookupBimiDomain"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = lookupBimiDomainOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.LookupBimiDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/tools/lookup-bimi-domain", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LookupBimiDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup a BIMI record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of LookupBimiDomainResults + public async System.Threading.Tasks.Task LookupBimiDomainAsync(LookupBimiDomainOptions lookupBimiDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await LookupBimiDomainWithHttpInfoAsync(lookupBimiDomainOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Lookup a BIMI record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (LookupBimiDomainResults) + public async System.Threading.Tasks.Task> LookupBimiDomainWithHttpInfoAsync(LookupBimiDomainOptions lookupBimiDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'lookupBimiDomainOptions' is set + if (lookupBimiDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'lookupBimiDomainOptions' when calling ToolsControllerApi->LookupBimiDomain"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = lookupBimiDomainOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.LookupBimiDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/tools/lookup-bimi-domain", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LookupBimiDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup a DMARC record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// LookupDmarcDomainResults + public LookupDmarcDomainResults LookupDmarcDomain(LookupDmarcDomainOptions lookupDmarcDomainOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = LookupDmarcDomainWithHttpInfo(lookupDmarcDomainOptions); + return localVarResponse.Data; + } + + /// + /// Lookup a DMARC record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of LookupDmarcDomainResults + public mailslurp_netstandard_2x.Client.ApiResponse LookupDmarcDomainWithHttpInfo(LookupDmarcDomainOptions lookupDmarcDomainOptions, int operationIndex = 0) + { + // verify the required parameter 'lookupDmarcDomainOptions' is set + if (lookupDmarcDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'lookupDmarcDomainOptions' when calling ToolsControllerApi->LookupDmarcDomain"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = lookupDmarcDomainOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.LookupDmarcDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/tools/lookup-dmarc-domain", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LookupDmarcDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup a DMARC record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of LookupDmarcDomainResults + public async System.Threading.Tasks.Task LookupDmarcDomainAsync(LookupDmarcDomainOptions lookupDmarcDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await LookupDmarcDomainWithHttpInfoAsync(lookupDmarcDomainOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Lookup a DMARC record policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (LookupDmarcDomainResults) + public async System.Threading.Tasks.Task> LookupDmarcDomainWithHttpInfoAsync(LookupDmarcDomainOptions lookupDmarcDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'lookupDmarcDomainOptions' is set + if (lookupDmarcDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'lookupDmarcDomainOptions' when calling ToolsControllerApi->LookupDmarcDomain"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = lookupDmarcDomainOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.LookupDmarcDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/tools/lookup-dmarc-domain", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LookupDmarcDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup a MTA-STS domain policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// LookupMtaStsDomainResults + public LookupMtaStsDomainResults LookupMtaStsDomain(LookupMtaStsDomainOptions lookupMtaStsDomainOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = LookupMtaStsDomainWithHttpInfo(lookupMtaStsDomainOptions); + return localVarResponse.Data; + } + + /// + /// Lookup a MTA-STS domain policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of LookupMtaStsDomainResults + public mailslurp_netstandard_2x.Client.ApiResponse LookupMtaStsDomainWithHttpInfo(LookupMtaStsDomainOptions lookupMtaStsDomainOptions, int operationIndex = 0) + { + // verify the required parameter 'lookupMtaStsDomainOptions' is set + if (lookupMtaStsDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'lookupMtaStsDomainOptions' when calling ToolsControllerApi->LookupMtaStsDomain"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = lookupMtaStsDomainOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.LookupMtaStsDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/tools/lookup-mta-sts-domain", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LookupMtaStsDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup a MTA-STS domain policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of LookupMtaStsDomainResults + public async System.Threading.Tasks.Task LookupMtaStsDomainAsync(LookupMtaStsDomainOptions lookupMtaStsDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await LookupMtaStsDomainWithHttpInfoAsync(lookupMtaStsDomainOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Lookup a MTA-STS domain policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (LookupMtaStsDomainResults) + public async System.Threading.Tasks.Task> LookupMtaStsDomainWithHttpInfoAsync(LookupMtaStsDomainOptions lookupMtaStsDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'lookupMtaStsDomainOptions' is set + if (lookupMtaStsDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'lookupMtaStsDomainOptions' when calling ToolsControllerApi->LookupMtaStsDomain"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = lookupMtaStsDomainOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.LookupMtaStsDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/tools/lookup-mta-sts-domain", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LookupMtaStsDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup a TLS reporting domain policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// LookupTlsReportingDomainResults + public LookupTlsReportingDomainResults LookupTlsReportingDomain(LookupTlsReportingDomainOptions lookupTlsReportingDomainOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = LookupTlsReportingDomainWithHttpInfo(lookupTlsReportingDomainOptions); + return localVarResponse.Data; + } + + /// + /// Lookup a TLS reporting domain policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of LookupTlsReportingDomainResults + public mailslurp_netstandard_2x.Client.ApiResponse LookupTlsReportingDomainWithHttpInfo(LookupTlsReportingDomainOptions lookupTlsReportingDomainOptions, int operationIndex = 0) + { + // verify the required parameter 'lookupTlsReportingDomainOptions' is set + if (lookupTlsReportingDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'lookupTlsReportingDomainOptions' when calling ToolsControllerApi->LookupTlsReportingDomain"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = lookupTlsReportingDomainOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.LookupTlsReportingDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/tools/lookup-tls-reporting-domain", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LookupTlsReportingDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Lookup a TLS reporting domain policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of LookupTlsReportingDomainResults + public async System.Threading.Tasks.Task LookupTlsReportingDomainAsync(LookupTlsReportingDomainOptions lookupTlsReportingDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await LookupTlsReportingDomainWithHttpInfoAsync(lookupTlsReportingDomainOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Lookup a TLS reporting domain policy + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (LookupTlsReportingDomainResults) + public async System.Threading.Tasks.Task> LookupTlsReportingDomainWithHttpInfoAsync(LookupTlsReportingDomainOptions lookupTlsReportingDomainOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'lookupTlsReportingDomainOptions' is set + if (lookupTlsReportingDomainOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'lookupTlsReportingDomainOptions' when calling ToolsControllerApi->LookupTlsReportingDomain"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = lookupTlsReportingDomainOptions; + + localVarRequestOptions.Operation = "ToolsControllerApi.LookupTlsReportingDomain"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/tools/lookup-tls-reporting-domain", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LookupTlsReportingDomain", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/TrackingControllerApi.cs b/src/mailslurp_netstandard_2x/Api/TrackingControllerApi.cs new file mode 100644 index 00000000..ec0151a5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/TrackingControllerApi.cs @@ -0,0 +1,827 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITrackingControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create tracking pixel + /// + /// + /// Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// TrackingPixelDto + TrackingPixelDto CreateTrackingPixel(CreateTrackingPixelOptions createTrackingPixelOptions, int operationIndex = 0); + + /// + /// Create tracking pixel + /// + /// + /// Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of TrackingPixelDto + ApiResponse CreateTrackingPixelWithHttpInfo(CreateTrackingPixelOptions createTrackingPixelOptions, int operationIndex = 0); + /// + /// Get tracking pixels + /// + /// + /// List tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageTrackingPixelProjection + PageTrackingPixelProjection GetAllTrackingPixels(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get tracking pixels + /// + /// + /// List tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageTrackingPixelProjection + ApiResponse GetAllTrackingPixelsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get pixel + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// TrackingPixelDto + TrackingPixelDto GetTrackingPixel(Guid id, int operationIndex = 0); + + /// + /// Get pixel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of TrackingPixelDto + ApiResponse GetTrackingPixelWithHttpInfo(Guid id, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITrackingControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create tracking pixel + /// + /// + /// Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TrackingPixelDto + System.Threading.Tasks.Task CreateTrackingPixelAsync(CreateTrackingPixelOptions createTrackingPixelOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create tracking pixel + /// + /// + /// Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TrackingPixelDto) + System.Threading.Tasks.Task> CreateTrackingPixelWithHttpInfoAsync(CreateTrackingPixelOptions createTrackingPixelOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get tracking pixels + /// + /// + /// List tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageTrackingPixelProjection + System.Threading.Tasks.Task GetAllTrackingPixelsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get tracking pixels + /// + /// + /// List tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageTrackingPixelProjection) + System.Threading.Tasks.Task> GetAllTrackingPixelsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get pixel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TrackingPixelDto + System.Threading.Tasks.Task GetTrackingPixelAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get pixel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TrackingPixelDto) + System.Threading.Tasks.Task> GetTrackingPixelWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITrackingControllerApi : ITrackingControllerApiSync, ITrackingControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class TrackingControllerApi : ITrackingControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public TrackingControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public TrackingControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public TrackingControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public TrackingControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create tracking pixel Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// TrackingPixelDto + public TrackingPixelDto CreateTrackingPixel(CreateTrackingPixelOptions createTrackingPixelOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateTrackingPixelWithHttpInfo(createTrackingPixelOptions); + return localVarResponse.Data; + } + + /// + /// Create tracking pixel Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of TrackingPixelDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateTrackingPixelWithHttpInfo(CreateTrackingPixelOptions createTrackingPixelOptions, int operationIndex = 0) + { + // verify the required parameter 'createTrackingPixelOptions' is set + if (createTrackingPixelOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createTrackingPixelOptions' when calling TrackingControllerApi->CreateTrackingPixel"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createTrackingPixelOptions; + + localVarRequestOptions.Operation = "TrackingControllerApi.CreateTrackingPixel"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/tracking/pixels", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateTrackingPixel", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Create tracking pixel Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TrackingPixelDto + public async System.Threading.Tasks.Task CreateTrackingPixelAsync(CreateTrackingPixelOptions createTrackingPixelOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateTrackingPixelWithHttpInfoAsync(createTrackingPixelOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create tracking pixel Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TrackingPixelDto) + public async System.Threading.Tasks.Task> CreateTrackingPixelWithHttpInfoAsync(CreateTrackingPixelOptions createTrackingPixelOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createTrackingPixelOptions' is set + if (createTrackingPixelOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createTrackingPixelOptions' when calling TrackingControllerApi->CreateTrackingPixel"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createTrackingPixelOptions; + + localVarRequestOptions.Operation = "TrackingControllerApi.CreateTrackingPixel"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/tracking/pixels", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateTrackingPixel", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get tracking pixels List tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageTrackingPixelProjection + public PageTrackingPixelProjection GetAllTrackingPixels(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllTrackingPixelsWithHttpInfo(page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// Get tracking pixels List tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageTrackingPixelProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAllTrackingPixelsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "TrackingControllerApi.GetAllTrackingPixels"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/tracking/pixels", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllTrackingPixels", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get tracking pixels List tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageTrackingPixelProjection + public async System.Threading.Tasks.Task GetAllTrackingPixelsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllTrackingPixelsWithHttpInfoAsync(page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get tracking pixels List tracking pixels in paginated form + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageTrackingPixelProjection) + public async System.Threading.Tasks.Task> GetAllTrackingPixelsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "TrackingControllerApi.GetAllTrackingPixels"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/tracking/pixels", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllTrackingPixels", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get pixel + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// TrackingPixelDto + public TrackingPixelDto GetTrackingPixel(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTrackingPixelWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get pixel + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of TrackingPixelDto + public mailslurp_netstandard_2x.Client.ApiResponse GetTrackingPixelWithHttpInfo(Guid id, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TrackingControllerApi.GetTrackingPixel"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/tracking/pixels/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTrackingPixel", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get pixel + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of TrackingPixelDto + public async System.Threading.Tasks.Task GetTrackingPixelAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTrackingPixelWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get pixel + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TrackingPixelDto) + public async System.Threading.Tasks.Task> GetTrackingPixelWithHttpInfoAsync(Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TrackingControllerApi.GetTrackingPixel"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/tracking/pixels/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTrackingPixel", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/UserControllerApi.cs b/src/mailslurp_netstandard_2x/Api/UserControllerApi.cs new file mode 100644 index 00000000..ac8e122d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/UserControllerApi.cs @@ -0,0 +1,566 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IUserControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// Utility function to extract properties from JSON objects in language where this is cumbersome. + /// + /// Thrown when fails to make API call + /// JSON property name or dot separated path selector such as `a.b.c` + /// + /// Index associated with the operation. + /// string + string GetJsonPropertyAsString(string property, Object body, int operationIndex = 0); + + /// + /// + /// + /// + /// Utility function to extract properties from JSON objects in language where this is cumbersome. + /// + /// Thrown when fails to make API call + /// JSON property name or dot separated path selector such as `a.b.c` + /// + /// Index associated with the operation. + /// ApiResponse of string + ApiResponse GetJsonPropertyAsStringWithHttpInfo(string property, Object body, int operationIndex = 0); + /// + /// + /// + /// + /// Get account information for your user + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// UserInfoDto + UserInfoDto GetUserInfo(int operationIndex = 0); + + /// + /// + /// + /// + /// Get account information for your user + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of UserInfoDto + ApiResponse GetUserInfoWithHttpInfo(int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IUserControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// + /// + /// + /// Utility function to extract properties from JSON objects in language where this is cumbersome. + /// + /// Thrown when fails to make API call + /// JSON property name or dot separated path selector such as `a.b.c` + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + System.Threading.Tasks.Task GetJsonPropertyAsStringAsync(string property, Object body, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Utility function to extract properties from JSON objects in language where this is cumbersome. + /// + /// Thrown when fails to make API call + /// JSON property name or dot separated path selector such as `a.b.c` + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> GetJsonPropertyAsStringWithHttpInfoAsync(string property, Object body, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get account information for your user + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UserInfoDto + System.Threading.Tasks.Task GetUserInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get account information for your user + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UserInfoDto) + System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IUserControllerApi : IUserControllerApiSync, IUserControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class UserControllerApi : IUserControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public UserControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public UserControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public UserControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public UserControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Utility function to extract properties from JSON objects in language where this is cumbersome. + /// + /// Thrown when fails to make API call + /// JSON property name or dot separated path selector such as `a.b.c` + /// + /// Index associated with the operation. + /// string + public string GetJsonPropertyAsString(string property, Object body, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetJsonPropertyAsStringWithHttpInfo(property, body); + return localVarResponse.Data; + } + + /// + /// Utility function to extract properties from JSON objects in language where this is cumbersome. + /// + /// Thrown when fails to make API call + /// JSON property name or dot separated path selector such as `a.b.c` + /// + /// Index associated with the operation. + /// ApiResponse of string + public mailslurp_netstandard_2x.Client.ApiResponse GetJsonPropertyAsStringWithHttpInfo(string property, Object body, int operationIndex = 0) + { + // verify the required parameter 'property' is set + if (property == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'property' when calling UserControllerApi->GetJsonPropertyAsString"); + } + + // verify the required parameter 'body' is set + if (body == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'body' when calling UserControllerApi->GetJsonPropertyAsString"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "property", property)); + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "UserControllerApi.GetJsonPropertyAsString"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/user/json/pluck", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJsonPropertyAsString", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Utility function to extract properties from JSON objects in language where this is cumbersome. + /// + /// Thrown when fails to make API call + /// JSON property name or dot separated path selector such as `a.b.c` + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of string + public async System.Threading.Tasks.Task GetJsonPropertyAsStringAsync(string property, Object body, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetJsonPropertyAsStringWithHttpInfoAsync(property, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Utility function to extract properties from JSON objects in language where this is cumbersome. + /// + /// Thrown when fails to make API call + /// JSON property name or dot separated path selector such as `a.b.c` + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> GetJsonPropertyAsStringWithHttpInfoAsync(string property, Object body, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'property' is set + if (property == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'property' when calling UserControllerApi->GetJsonPropertyAsString"); + } + + // verify the required parameter 'body' is set + if (body == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'body' when calling UserControllerApi->GetJsonPropertyAsString"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "property", property)); + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "UserControllerApi.GetJsonPropertyAsString"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/user/json/pluck", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJsonPropertyAsString", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get account information for your user + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// UserInfoDto + public UserInfoDto GetUserInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetUserInfoWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get account information for your user + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of UserInfoDto + public mailslurp_netstandard_2x.Client.ApiResponse GetUserInfoWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "UserControllerApi.GetUserInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/user/info", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get account information for your user + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UserInfoDto + public async System.Threading.Tasks.Task GetUserInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetUserInfoWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get account information for your user + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UserInfoDto) + public async System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "UserControllerApi.GetUserInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/user/info", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/WaitForControllerApi.cs b/src/mailslurp_netstandard_2x/Api/WaitForControllerApi.cs new file mode 100644 index 00000000..abd307f9 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/WaitForControllerApi.cs @@ -0,0 +1,2298 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IWaitForControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Wait for an email to match the provided filter conditions such as subject contains keyword. + /// + /// + /// Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<EmailPreview> + List WaitFor(WaitForConditions waitForConditions, int operationIndex = 0); + + /// + /// Wait for an email to match the provided filter conditions such as subject contains keyword. + /// + /// + /// Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<EmailPreview> + ApiResponse> WaitForWithHttpInfo(WaitForConditions waitForConditions, int operationIndex = 0); + /// + /// Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs + /// + /// + /// If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater that 1 + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// List<EmailPreview> + List WaitForEmailCount(Guid inboxId, int count, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0); + + /// + /// Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs + /// + /// + /// If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater that 1 + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// ApiResponse of List<EmailPreview> + ApiResponse> WaitForEmailCountWithHttpInfo(Guid inboxId, int count, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0); + /// + /// Fetch inbox's latest email or if empty wait for an email to arrive + /// + /// + /// Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only. (optional, default to false) + /// Filter for emails that were before after the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Email + Email WaitForLatestEmail(Guid? inboxId = default(Guid?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0); + + /// + /// Fetch inbox's latest email or if empty wait for an email to arrive + /// + /// + /// Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only. (optional, default to false) + /// Filter for emails that were before after the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// ApiResponse of Email + ApiResponse WaitForLatestEmailWithHttpInfo(Guid? inboxId = default(Guid?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0); + /// + /// Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. + /// + /// + /// Wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// SmsDto + SmsDto WaitForLatestSms(WaitForSingleSmsOptions waitForSingleSmsOptions, int operationIndex = 0); + + /// + /// Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. + /// + /// + /// Wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of SmsDto + ApiResponse WaitForLatestSmsWithHttpInfo(WaitForSingleSmsOptions waitForSingleSmsOptions, int operationIndex = 0); + /// + /// Wait or return list of emails that match simple matching patterns + /// + /// + /// Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater or equal to 1 + /// + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Index associated with the operation. + /// List<EmailPreview> + List WaitForMatchingEmails(Guid inboxId, int count, MatchOptions matchOptions, DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), long? timeout = default(long?), bool? unreadOnly = default(bool?), int operationIndex = 0); + + /// + /// Wait or return list of emails that match simple matching patterns + /// + /// + /// Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater or equal to 1 + /// + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Index associated with the operation. + /// ApiResponse of List<EmailPreview> + ApiResponse> WaitForMatchingEmailsWithHttpInfo(Guid inboxId, int count, MatchOptions matchOptions, DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), long? timeout = default(long?), bool? unreadOnly = default(bool?), int operationIndex = 0); + /// + /// Wait for or return the first email that matches provided MatchOptions array + /// + /// + /// Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are matching an email for + /// + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Email + Email WaitForMatchingFirstEmail(Guid inboxId, MatchOptions matchOptions, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0); + + /// + /// Wait for or return the first email that matches provided MatchOptions array + /// + /// + /// Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are matching an email for + /// + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// ApiResponse of Email + ApiResponse WaitForMatchingFirstEmailWithHttpInfo(Guid inboxId, MatchOptions matchOptions, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0); + /// + /// Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. + /// + /// + /// If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned. + /// + /// Thrown when fails to make API call + /// Id of the inbox you are fetching emails from (optional) + /// Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0) + /// Max milliseconds to wait for the nth email if not already present (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Email + Email WaitForNthEmail(Guid? inboxId = default(Guid?), int? index = default(int?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0); + + /// + /// Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. + /// + /// + /// If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned. + /// + /// Thrown when fails to make API call + /// Id of the inbox you are fetching emails from (optional) + /// Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0) + /// Max milliseconds to wait for the nth email if not already present (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// ApiResponse of Email + ApiResponse WaitForNthEmailWithHttpInfo(Guid? inboxId = default(Guid?), int? index = default(int?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0); + /// + /// Wait for an SMS message to match the provided filter conditions such as body contains keyword. + /// + /// + /// Generic waitFor method that will wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<SmsPreview> + List WaitForSms(WaitForSmsConditions waitForSmsConditions, int operationIndex = 0); + + /// + /// Wait for an SMS message to match the provided filter conditions such as body contains keyword. + /// + /// + /// Generic waitFor method that will wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<SmsPreview> + ApiResponse> WaitForSmsWithHttpInfo(WaitForSmsConditions waitForSmsConditions, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IWaitForControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Wait for an email to match the provided filter conditions such as subject contains keyword. + /// + /// + /// Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<EmailPreview> + System.Threading.Tasks.Task> WaitForAsync(WaitForConditions waitForConditions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Wait for an email to match the provided filter conditions such as subject contains keyword. + /// + /// + /// Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<EmailPreview>) + System.Threading.Tasks.Task>> WaitForWithHttpInfoAsync(WaitForConditions waitForConditions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs + /// + /// + /// If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater that 1 + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<EmailPreview> + System.Threading.Tasks.Task> WaitForEmailCountAsync(Guid inboxId, int count, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs + /// + /// + /// If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater that 1 + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<EmailPreview>) + System.Threading.Tasks.Task>> WaitForEmailCountWithHttpInfoAsync(Guid inboxId, int count, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Fetch inbox's latest email or if empty wait for an email to arrive + /// + /// + /// Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only. (optional, default to false) + /// Filter for emails that were before after the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + System.Threading.Tasks.Task WaitForLatestEmailAsync(Guid? inboxId = default(Guid?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Fetch inbox's latest email or if empty wait for an email to arrive + /// + /// + /// Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only. (optional, default to false) + /// Filter for emails that were before after the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + System.Threading.Tasks.Task> WaitForLatestEmailWithHttpInfoAsync(Guid? inboxId = default(Guid?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. + /// + /// + /// Wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SmsDto + System.Threading.Tasks.Task WaitForLatestSmsAsync(WaitForSingleSmsOptions waitForSingleSmsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. + /// + /// + /// Wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SmsDto) + System.Threading.Tasks.Task> WaitForLatestSmsWithHttpInfoAsync(WaitForSingleSmsOptions waitForSingleSmsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Wait or return list of emails that match simple matching patterns + /// + /// + /// Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater or equal to 1 + /// + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<EmailPreview> + System.Threading.Tasks.Task> WaitForMatchingEmailsAsync(Guid inboxId, int count, MatchOptions matchOptions, DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), long? timeout = default(long?), bool? unreadOnly = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Wait or return list of emails that match simple matching patterns + /// + /// + /// Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater or equal to 1 + /// + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<EmailPreview>) + System.Threading.Tasks.Task>> WaitForMatchingEmailsWithHttpInfoAsync(Guid inboxId, int count, MatchOptions matchOptions, DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), long? timeout = default(long?), bool? unreadOnly = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Wait for or return the first email that matches provided MatchOptions array + /// + /// + /// Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are matching an email for + /// + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + System.Threading.Tasks.Task WaitForMatchingFirstEmailAsync(Guid inboxId, MatchOptions matchOptions, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Wait for or return the first email that matches provided MatchOptions array + /// + /// + /// Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are matching an email for + /// + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + System.Threading.Tasks.Task> WaitForMatchingFirstEmailWithHttpInfoAsync(Guid inboxId, MatchOptions matchOptions, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. + /// + /// + /// If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned. + /// + /// Thrown when fails to make API call + /// Id of the inbox you are fetching emails from (optional) + /// Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0) + /// Max milliseconds to wait for the nth email if not already present (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + System.Threading.Tasks.Task WaitForNthEmailAsync(Guid? inboxId = default(Guid?), int? index = default(int?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. + /// + /// + /// If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned. + /// + /// Thrown when fails to make API call + /// Id of the inbox you are fetching emails from (optional) + /// Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0) + /// Max milliseconds to wait for the nth email if not already present (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + System.Threading.Tasks.Task> WaitForNthEmailWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? index = default(int?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Wait for an SMS message to match the provided filter conditions such as body contains keyword. + /// + /// + /// Generic waitFor method that will wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<SmsPreview> + System.Threading.Tasks.Task> WaitForSmsAsync(WaitForSmsConditions waitForSmsConditions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Wait for an SMS message to match the provided filter conditions such as body contains keyword. + /// + /// + /// Generic waitFor method that will wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<SmsPreview>) + System.Threading.Tasks.Task>> WaitForSmsWithHttpInfoAsync(WaitForSmsConditions waitForSmsConditions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IWaitForControllerApi : IWaitForControllerApiSync, IWaitForControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class WaitForControllerApi : IWaitForControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public WaitForControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public WaitForControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public WaitForControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public WaitForControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Wait for an email to match the provided filter conditions such as subject contains keyword. Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<EmailPreview> + public List WaitFor(WaitForConditions waitForConditions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = WaitForWithHttpInfo(waitForConditions); + return localVarResponse.Data; + } + + /// + /// Wait for an email to match the provided filter conditions such as subject contains keyword. Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<EmailPreview> + public mailslurp_netstandard_2x.Client.ApiResponse> WaitForWithHttpInfo(WaitForConditions waitForConditions, int operationIndex = 0) + { + // verify the required parameter 'waitForConditions' is set + if (waitForConditions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'waitForConditions' when calling WaitForControllerApi->WaitFor"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = waitForConditions; + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitFor"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/waitFor", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitFor", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for an email to match the provided filter conditions such as subject contains keyword. Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<EmailPreview> + public async System.Threading.Tasks.Task> WaitForAsync(WaitForConditions waitForConditions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await WaitForWithHttpInfoAsync(waitForConditions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Wait for an email to match the provided filter conditions such as subject contains keyword. Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<EmailPreview>) + public async System.Threading.Tasks.Task>> WaitForWithHttpInfoAsync(WaitForConditions waitForConditions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'waitForConditions' is set + if (waitForConditions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'waitForConditions' when calling WaitForControllerApi->WaitFor"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = waitForConditions; + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitFor"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync>("/waitFor", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitFor", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater that 1 + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// List<EmailPreview> + public List WaitForEmailCount(Guid inboxId, int count, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = WaitForEmailCountWithHttpInfo(inboxId, count, timeout, unreadOnly, before, since, sort, delay); + return localVarResponse.Data; + } + + /// + /// Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater that 1 + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// ApiResponse of List<EmailPreview> + public mailslurp_netstandard_2x.Client.ApiResponse> WaitForEmailCountWithHttpInfo(Guid inboxId, int count, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "count", count)); + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (delay != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delay", delay)); + } + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForEmailCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/waitForEmailCount", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForEmailCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater that 1 + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<EmailPreview> + public async System.Threading.Tasks.Task> WaitForEmailCountAsync(Guid inboxId, int count, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await WaitForEmailCountWithHttpInfoAsync(inboxId, count, timeout, unreadOnly, before, since, sort, delay, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater that 1 + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<EmailPreview>) + public async System.Threading.Tasks.Task>> WaitForEmailCountWithHttpInfoAsync(Guid inboxId, int count, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "count", count)); + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (delay != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delay", delay)); + } + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForEmailCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/waitForEmailCount", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForEmailCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Fetch inbox's latest email or if empty wait for an email to arrive Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only. (optional, default to false) + /// Filter for emails that were before after the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Email + public Email WaitForLatestEmail(Guid? inboxId = default(Guid?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = WaitForLatestEmailWithHttpInfo(inboxId, timeout, unreadOnly, before, since, sort, delay); + return localVarResponse.Data; + } + + /// + /// Fetch inbox's latest email or if empty wait for an email to arrive Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only. (optional, default to false) + /// Filter for emails that were before after the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// ApiResponse of Email + public mailslurp_netstandard_2x.Client.ApiResponse WaitForLatestEmailWithHttpInfo(Guid? inboxId = default(Guid?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (delay != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delay", delay)); + } + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForLatestEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/waitForLatestEmail", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForLatestEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Fetch inbox's latest email or if empty wait for an email to arrive Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only. (optional, default to false) + /// Filter for emails that were before after the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + public async System.Threading.Tasks.Task WaitForLatestEmailAsync(Guid? inboxId = default(Guid?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await WaitForLatestEmailWithHttpInfoAsync(inboxId, timeout, unreadOnly, before, since, sort, delay, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Fetch inbox's latest email or if empty wait for an email to arrive Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only. (optional, default to false) + /// Filter for emails that were before after the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + public async System.Threading.Tasks.Task> WaitForLatestEmailWithHttpInfoAsync(Guid? inboxId = default(Guid?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (delay != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delay", delay)); + } + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForLatestEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/waitForLatestEmail", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForLatestEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. Wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// SmsDto + public SmsDto WaitForLatestSms(WaitForSingleSmsOptions waitForSingleSmsOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = WaitForLatestSmsWithHttpInfo(waitForSingleSmsOptions); + return localVarResponse.Data; + } + + /// + /// Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. Wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of SmsDto + public mailslurp_netstandard_2x.Client.ApiResponse WaitForLatestSmsWithHttpInfo(WaitForSingleSmsOptions waitForSingleSmsOptions, int operationIndex = 0) + { + // verify the required parameter 'waitForSingleSmsOptions' is set + if (waitForSingleSmsOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'waitForSingleSmsOptions' when calling WaitForControllerApi->WaitForLatestSms"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = waitForSingleSmsOptions; + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForLatestSms"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/waitForLatestSms", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForLatestSms", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. Wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of SmsDto + public async System.Threading.Tasks.Task WaitForLatestSmsAsync(WaitForSingleSmsOptions waitForSingleSmsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await WaitForLatestSmsWithHttpInfoAsync(waitForSingleSmsOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Wait for the latest SMS message to match the provided filter conditions such as body contains keyword. Wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SmsDto) + public async System.Threading.Tasks.Task> WaitForLatestSmsWithHttpInfoAsync(WaitForSingleSmsOptions waitForSingleSmsOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'waitForSingleSmsOptions' is set + if (waitForSingleSmsOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'waitForSingleSmsOptions' when calling WaitForControllerApi->WaitForLatestSms"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = waitForSingleSmsOptions; + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForLatestSms"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/waitForLatestSms", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForLatestSms", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait or return list of emails that match simple matching patterns Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater or equal to 1 + /// + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Index associated with the operation. + /// List<EmailPreview> + public List WaitForMatchingEmails(Guid inboxId, int count, MatchOptions matchOptions, DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), long? timeout = default(long?), bool? unreadOnly = default(bool?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = WaitForMatchingEmailsWithHttpInfo(inboxId, count, matchOptions, before, since, sort, delay, timeout, unreadOnly); + return localVarResponse.Data; + } + + /// + /// Wait or return list of emails that match simple matching patterns Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater or equal to 1 + /// + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Index associated with the operation. + /// ApiResponse of List<EmailPreview> + public mailslurp_netstandard_2x.Client.ApiResponse> WaitForMatchingEmailsWithHttpInfo(Guid inboxId, int count, MatchOptions matchOptions, DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), long? timeout = default(long?), bool? unreadOnly = default(bool?), int operationIndex = 0) + { + // verify the required parameter 'matchOptions' is set + if (matchOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'matchOptions' when calling WaitForControllerApi->WaitForMatchingEmails"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "count", count)); + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (delay != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delay", delay)); + } + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + localVarRequestOptions.Data = matchOptions; + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForMatchingEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/waitForMatchingEmails", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForMatchingEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait or return list of emails that match simple matching patterns Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater or equal to 1 + /// + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<EmailPreview> + public async System.Threading.Tasks.Task> WaitForMatchingEmailsAsync(Guid inboxId, int count, MatchOptions matchOptions, DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), long? timeout = default(long?), bool? unreadOnly = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await WaitForMatchingEmailsWithHttpInfoAsync(inboxId, count, matchOptions, before, since, sort, delay, timeout, unreadOnly, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Wait or return list of emails that match simple matching patterns Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are fetching emails from + /// Number of emails to wait for. Must be greater or equal to 1 + /// + /// Filter for emails that were received before the given timestamp (optional) + /// Filter for emails that were received after the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<EmailPreview>) + public async System.Threading.Tasks.Task>> WaitForMatchingEmailsWithHttpInfoAsync(Guid inboxId, int count, MatchOptions matchOptions, DateTime? before = default(DateTime?), DateTime? since = default(DateTime?), string sort = default(string), long? delay = default(long?), long? timeout = default(long?), bool? unreadOnly = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'matchOptions' is set + if (matchOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'matchOptions' when calling WaitForControllerApi->WaitForMatchingEmails"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "count", count)); + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (delay != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delay", delay)); + } + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + localVarRequestOptions.Data = matchOptions; + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForMatchingEmails"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync>("/waitForMatchingEmails", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForMatchingEmails", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for or return the first email that matches provided MatchOptions array Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are matching an email for + /// + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Email + public Email WaitForMatchingFirstEmail(Guid inboxId, MatchOptions matchOptions, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = WaitForMatchingFirstEmailWithHttpInfo(inboxId, matchOptions, timeout, unreadOnly, since, before, sort, delay); + return localVarResponse.Data; + } + + /// + /// Wait for or return the first email that matches provided MatchOptions array Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are matching an email for + /// + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// ApiResponse of Email + public mailslurp_netstandard_2x.Client.ApiResponse WaitForMatchingFirstEmailWithHttpInfo(Guid inboxId, MatchOptions matchOptions, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0) + { + // verify the required parameter 'matchOptions' is set + if (matchOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'matchOptions' when calling WaitForControllerApi->WaitForMatchingFirstEmail"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (delay != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delay", delay)); + } + localVarRequestOptions.Data = matchOptions; + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForMatchingFirstEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/waitForMatchingFirstEmail", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForMatchingFirstEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for or return the first email that matches provided MatchOptions array Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are matching an email for + /// + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + public async System.Threading.Tasks.Task WaitForMatchingFirstEmailAsync(Guid inboxId, MatchOptions matchOptions, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await WaitForMatchingFirstEmailWithHttpInfoAsync(inboxId, matchOptions, timeout, unreadOnly, since, before, sort, delay, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Wait for or return the first email that matches provided MatchOptions array Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method. + /// + /// Thrown when fails to make API call + /// Id of the inbox we are matching an email for + /// + /// Max milliseconds to wait (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + public async System.Threading.Tasks.Task> WaitForMatchingFirstEmailWithHttpInfoAsync(Guid inboxId, MatchOptions matchOptions, long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'matchOptions' is set + if (matchOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'matchOptions' when calling WaitForControllerApi->WaitForMatchingFirstEmail"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (delay != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delay", delay)); + } + localVarRequestOptions.Data = matchOptions; + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForMatchingFirstEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/waitForMatchingFirstEmail", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForMatchingFirstEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned. + /// + /// Thrown when fails to make API call + /// Id of the inbox you are fetching emails from (optional) + /// Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0) + /// Max milliseconds to wait for the nth email if not already present (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Email + public Email WaitForNthEmail(Guid? inboxId = default(Guid?), int? index = default(int?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = WaitForNthEmailWithHttpInfo(inboxId, index, timeout, unreadOnly, since, before, sort, delay); + return localVarResponse.Data; + } + + /// + /// Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned. + /// + /// Thrown when fails to make API call + /// Id of the inbox you are fetching emails from (optional) + /// Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0) + /// Max milliseconds to wait for the nth email if not already present (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// ApiResponse of Email + public mailslurp_netstandard_2x.Client.ApiResponse WaitForNthEmailWithHttpInfo(Guid? inboxId = default(Guid?), int? index = default(int?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (index != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "index", index)); + } + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (delay != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delay", delay)); + } + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForNthEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/waitForNthEmail", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForNthEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned. + /// + /// Thrown when fails to make API call + /// Id of the inbox you are fetching emails from (optional) + /// Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0) + /// Max milliseconds to wait for the nth email if not already present (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Email + public async System.Threading.Tasks.Task WaitForNthEmailAsync(Guid? inboxId = default(Guid?), int? index = default(int?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await WaitForNthEmailWithHttpInfoAsync(inboxId, index, timeout, unreadOnly, since, before, sort, delay, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur. If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned. + /// + /// Thrown when fails to make API call + /// Id of the inbox you are fetching emails from (optional) + /// Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0) + /// Max milliseconds to wait for the nth email if not already present (optional) + /// Optional filter for unread only (optional, default to false) + /// Filter for emails that were received after the given timestamp (optional) + /// Filter for emails that were received before the given timestamp (optional) + /// Sort direction (optional) + /// Max milliseconds delay between calls (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Email) + public async System.Threading.Tasks.Task> WaitForNthEmailWithHttpInfoAsync(Guid? inboxId = default(Guid?), int? index = default(int?), long? timeout = default(long?), bool? unreadOnly = default(bool?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), string sort = default(string), long? delay = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (index != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "index", index)); + } + if (timeout != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + } + if (unreadOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unreadOnly", unreadOnly)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (delay != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "delay", delay)); + } + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForNthEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/waitForNthEmail", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForNthEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for an SMS message to match the provided filter conditions such as body contains keyword. Generic waitFor method that will wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<SmsPreview> + public List WaitForSms(WaitForSmsConditions waitForSmsConditions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = WaitForSmsWithHttpInfo(waitForSmsConditions); + return localVarResponse.Data; + } + + /// + /// Wait for an SMS message to match the provided filter conditions such as body contains keyword. Generic waitFor method that will wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<SmsPreview> + public mailslurp_netstandard_2x.Client.ApiResponse> WaitForSmsWithHttpInfo(WaitForSmsConditions waitForSmsConditions, int operationIndex = 0) + { + // verify the required parameter 'waitForSmsConditions' is set + if (waitForSmsConditions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'waitForSmsConditions' when calling WaitForControllerApi->WaitForSms"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = waitForSmsConditions; + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForSms"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/waitForSms", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForSms", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for an SMS message to match the provided filter conditions such as body contains keyword. Generic waitFor method that will wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<SmsPreview> + public async System.Threading.Tasks.Task> WaitForSmsAsync(WaitForSmsConditions waitForSmsConditions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await WaitForSmsWithHttpInfoAsync(waitForSmsConditions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Wait for an SMS message to match the provided filter conditions such as body contains keyword. Generic waitFor method that will wait until a phone number meets given conditions or return immediately if already met + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<SmsPreview>) + public async System.Threading.Tasks.Task>> WaitForSmsWithHttpInfoAsync(WaitForSmsConditions waitForSmsConditions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'waitForSmsConditions' is set + if (waitForSmsConditions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'waitForSmsConditions' when calling WaitForControllerApi->WaitForSms"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = waitForSmsConditions; + + localVarRequestOptions.Operation = "WaitForControllerApi.WaitForSms"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync>("/waitForSms", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForSms", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Api/WebhookControllerApi.cs b/src/mailslurp_netstandard_2x/Api/WebhookControllerApi.cs new file mode 100644 index 00000000..f7ee65b4 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Api/WebhookControllerApi.cs @@ -0,0 +1,7862 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using mailslurp_netstandard_2x.Client; +using mailslurp_netstandard_2x.Model; + +namespace mailslurp_netstandard_2x.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IWebhookControllerApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Attach a WebHook URL to an inbox + /// + /// + /// Get notified of account level events such as bounce and bounce recipient. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// WebhookDto + WebhookDto CreateAccountWebhook(CreateWebhookOptions createWebhookOptions, int operationIndex = 0); + + /// + /// Attach a WebHook URL to an inbox + /// + /// + /// Get notified of account level events such as bounce and bounce recipient. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of WebhookDto + ApiResponse CreateAccountWebhookWithHttpInfo(CreateWebhookOptions createWebhookOptions, int operationIndex = 0); + /// + /// Attach a WebHook URL to an inbox + /// + /// + /// Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// WebhookDto + WebhookDto CreateWebhook(Guid inboxId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0); + + /// + /// Attach a WebHook URL to an inbox + /// + /// + /// Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of WebhookDto + ApiResponse CreateWebhookWithHttpInfo(Guid inboxId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0); + /// + /// Attach a WebHook URL to a phone number + /// + /// + /// Get notified whenever a phone number receives an SMS via a WebHook URL. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// WebhookDto + WebhookDto CreateWebhookForPhoneNumber(Guid phoneNumberId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0); + + /// + /// Attach a WebHook URL to a phone number + /// + /// + /// Get notified whenever a phone number receives an SMS via a WebHook URL. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of WebhookDto + ApiResponse CreateWebhookForPhoneNumberWithHttpInfo(Guid phoneNumberId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0); + /// + /// Delete all webhooks + /// + /// Thrown when fails to make API call + /// before (optional) + /// Index associated with the operation. + /// + void DeleteAllWebhooks(DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Delete all webhooks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// before (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteAllWebhooksWithHttpInfo(DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Delete and disable a Webhook for an Inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// + void DeleteWebhook(Guid inboxId, Guid webhookId, int operationIndex = 0); + + /// + /// Delete and disable a Webhook for an Inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteWebhookWithHttpInfo(Guid inboxId, Guid webhookId, int operationIndex = 0); + /// + /// Delete a webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + void DeleteWebhookById(Guid webhookId, int operationIndex = 0); + + /// + /// Delete a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + ApiResponse DeleteWebhookByIdWithHttpInfo(Guid webhookId, int operationIndex = 0); + /// + /// List account webhooks Paginated + /// + /// + /// List account webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional event type (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageWebhookProjection + PageWebhookProjection GetAllAccountWebhooks(int? page = default(int?), int? size = default(int?), string sort = default(string), string eventType = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// List account webhooks Paginated + /// + /// + /// List account webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional event type (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookProjection + ApiResponse GetAllAccountWebhooksWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string eventType = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get results for all webhooks + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// PageWebhookResult + PageWebhookResult GetAllWebhookResults(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0); + + /// + /// Get results for all webhooks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookResult + ApiResponse GetAllWebhookResultsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0); + /// + /// List Webhooks Paginated + /// + /// + /// List webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by inboxId (optional) + /// Filter by phoneId (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageWebhookProjection + PageWebhookProjection GetAllWebhooks(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), Guid? inboxId = default(Guid?), Guid? phoneId = default(Guid?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// List Webhooks Paginated + /// + /// + /// List webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by inboxId (optional) + /// Filter by phoneId (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookProjection + ApiResponse GetAllWebhooksWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), Guid? inboxId = default(Guid?), Guid? phoneId = default(Guid?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// Get paginated webhooks for an Inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageWebhookProjection + PageWebhookProjection GetInboxWebhooksPaginated(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get paginated webhooks for an Inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookProjection + ApiResponse GetInboxWebhooksPaginatedWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// + /// + /// + /// Get JSON Schema definition for webhook payload by event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// JSONSchemaDto + JSONSchemaDto GetJsonSchemaForWebhookEvent(string _event, int operationIndex = 0); + + /// + /// + /// + /// + /// Get JSON Schema definition for webhook payload by event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of JSONSchemaDto + ApiResponse GetJsonSchemaForWebhookEventWithHttpInfo(string _event, int operationIndex = 0); + /// + /// + /// + /// + /// Get JSON Schema definition for webhook payload + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// JSONSchemaDto + JSONSchemaDto GetJsonSchemaForWebhookPayload(Guid webhookId, int operationIndex = 0); + + /// + /// + /// + /// + /// Get JSON Schema definition for webhook payload + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of JSONSchemaDto + ApiResponse GetJsonSchemaForWebhookPayloadWithHttpInfo(Guid webhookId, int operationIndex = 0); + /// + /// Get paginated webhooks for a phone number + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageWebhookProjection + PageWebhookProjection GetPhoneNumberWebhooksPaginated(Guid phoneId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + + /// + /// Get paginated webhooks for a phone number + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookProjection + ApiResponse GetPhoneNumberWebhooksPaginatedWithHttpInfo(Guid phoneId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0); + /// + /// + /// + /// + /// Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// AbstractWebhookPayload + AbstractWebhookPayload GetTestWebhookPayload(string eventName = default(string), int operationIndex = 0); + + /// + /// + /// + /// + /// Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of AbstractWebhookPayload + ApiResponse GetTestWebhookPayloadWithHttpInfo(string eventName = default(string), int operationIndex = 0); + /// + /// + /// + /// + /// Get webhook test payload for bounce + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookBouncePayload + WebhookBouncePayload GetTestWebhookPayloadBounce(int operationIndex = 0); + + /// + /// + /// + /// + /// Get webhook test payload for bounce + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookBouncePayload + ApiResponse GetTestWebhookPayloadBounceWithHttpInfo(int operationIndex = 0); + /// + /// + /// + /// + /// Get webhook test payload for bounce recipient + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookBounceRecipientPayload + WebhookBounceRecipientPayload GetTestWebhookPayloadBounceRecipient(int operationIndex = 0); + + /// + /// + /// + /// + /// Get webhook test payload for bounce recipient + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookBounceRecipientPayload + ApiResponse GetTestWebhookPayloadBounceRecipientWithHttpInfo(int operationIndex = 0); + /// + /// Get webhook test payload for delivery status event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookDeliveryStatusPayload + WebhookDeliveryStatusPayload GetTestWebhookPayloadDeliveryStatus(int operationIndex = 0); + + /// + /// Get webhook test payload for delivery status event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookDeliveryStatusPayload + ApiResponse GetTestWebhookPayloadDeliveryStatusWithHttpInfo(int operationIndex = 0); + /// + /// + /// + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookEmailOpenedPayload + WebhookEmailOpenedPayload GetTestWebhookPayloadEmailOpened(int operationIndex = 0); + + /// + /// + /// + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookEmailOpenedPayload + ApiResponse GetTestWebhookPayloadEmailOpenedWithHttpInfo(int operationIndex = 0); + /// + /// + /// + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookEmailReadPayload + WebhookEmailReadPayload GetTestWebhookPayloadEmailRead(int operationIndex = 0); + + /// + /// + /// + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookEmailReadPayload + ApiResponse GetTestWebhookPayloadEmailReadWithHttpInfo(int operationIndex = 0); + /// + /// + /// + /// + /// Get example payload for webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// AbstractWebhookPayload + AbstractWebhookPayload GetTestWebhookPayloadForWebhook(Guid webhookId, int operationIndex = 0); + + /// + /// + /// + /// + /// Get example payload for webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of AbstractWebhookPayload + ApiResponse GetTestWebhookPayloadForWebhookWithHttpInfo(Guid webhookId, int operationIndex = 0); + /// + /// Get webhook test payload for new attachment event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookNewAttachmentPayload + WebhookNewAttachmentPayload GetTestWebhookPayloadNewAttachment(int operationIndex = 0); + + /// + /// Get webhook test payload for new attachment event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookNewAttachmentPayload + ApiResponse GetTestWebhookPayloadNewAttachmentWithHttpInfo(int operationIndex = 0); + /// + /// Get webhook test payload for new contact event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookNewContactPayload + WebhookNewContactPayload GetTestWebhookPayloadNewContact(int operationIndex = 0); + + /// + /// Get webhook test payload for new contact event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookNewContactPayload + ApiResponse GetTestWebhookPayloadNewContactWithHttpInfo(int operationIndex = 0); + /// + /// Get webhook test payload for new email event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookNewEmailPayload + WebhookNewEmailPayload GetTestWebhookPayloadNewEmail(int operationIndex = 0); + + /// + /// Get webhook test payload for new email event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookNewEmailPayload + ApiResponse GetTestWebhookPayloadNewEmailWithHttpInfo(int operationIndex = 0); + /// + /// Get webhook test payload for new sms event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookNewSmsPayload + WebhookNewSmsPayload GetTestWebhookPayloadNewSms(int operationIndex = 0); + + /// + /// Get webhook test payload for new sms event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookNewSmsPayload + ApiResponse GetTestWebhookPayloadNewSmsWithHttpInfo(int operationIndex = 0); + /// + /// Get a webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// WebhookDto + WebhookDto GetWebhook(Guid webhookId, int operationIndex = 0); + + /// + /// Get a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of WebhookDto + ApiResponse GetWebhookWithHttpInfo(Guid webhookId, int operationIndex = 0); + /// + /// Get a webhook result for a webhook + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// WebhookResultDto + WebhookResultDto GetWebhookResult(Guid webhookResultId, int operationIndex = 0); + + /// + /// Get a webhook result for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// ApiResponse of WebhookResultDto + ApiResponse GetWebhookResultWithHttpInfo(Guid webhookResultId, int operationIndex = 0); + /// + /// Get a webhook results for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// PageWebhookResult + PageWebhookResult GetWebhookResults(Guid webhookId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0); + + /// + /// Get a webhook results for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookResult + ApiResponse GetWebhookResultsWithHttpInfo(Guid webhookId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0); + /// + /// Get a webhook results count for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Index associated with the operation. + /// CountDto + CountDto GetWebhookResultsCount(Guid webhookId, int operationIndex = 0); + + /// + /// Get a webhook results count for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Index associated with the operation. + /// ApiResponse of CountDto + ApiResponse GetWebhookResultsCountWithHttpInfo(Guid webhookId, int operationIndex = 0); + /// + /// Get count of unseen webhook results with error status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// UnseenErrorCountDto + UnseenErrorCountDto GetWebhookResultsUnseenErrorCount(int operationIndex = 0); + + /// + /// Get count of unseen webhook results with error status + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of UnseenErrorCountDto + ApiResponse GetWebhookResultsUnseenErrorCountWithHttpInfo(int operationIndex = 0); + /// + /// Get all webhooks for an Inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<WebhookDto> + [Obsolete] + List GetWebhooks(Guid inboxId, int operationIndex = 0); + + /// + /// Get all webhooks for an Inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<WebhookDto> + [Obsolete] + ApiResponse> GetWebhooksWithHttpInfo(Guid inboxId, int operationIndex = 0); + /// + /// Redrive all webhook results that have failed status + /// + /// + /// Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookRedriveAllResult + WebhookRedriveAllResult RedriveAllWebhookResults(int operationIndex = 0); + + /// + /// Redrive all webhook results that have failed status + /// + /// + /// Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookRedriveAllResult + ApiResponse RedriveAllWebhookResultsWithHttpInfo(int operationIndex = 0); + /// + /// Get a webhook result and try to resend the original webhook payload + /// + /// + /// Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// WebhookRedriveResult + WebhookRedriveResult RedriveWebhookResult(Guid webhookResultId, int operationIndex = 0); + + /// + /// Get a webhook result and try to resend the original webhook payload + /// + /// + /// Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// ApiResponse of WebhookRedriveResult + ApiResponse RedriveWebhookResultWithHttpInfo(Guid webhookResultId, int operationIndex = 0); + /// + /// Send webhook test data + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// WebhookTestResult + WebhookTestResult SendTestData(Guid webhookId, int operationIndex = 0); + + /// + /// Send webhook test data + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of WebhookTestResult + ApiResponse SendTestDataWithHttpInfo(Guid webhookId, int operationIndex = 0); + /// + /// Update a webhook request headers + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// WebhookDto + WebhookDto UpdateWebhookHeaders(Guid webhookId, WebhookHeaders webhookHeaders, int operationIndex = 0); + + /// + /// Update a webhook request headers + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of WebhookDto + ApiResponse UpdateWebhookHeadersWithHttpInfo(Guid webhookId, WebhookHeaders webhookHeaders, int operationIndex = 0); + /// + /// Verify a webhook payload signature + /// + /// + /// Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// VerifyWebhookSignatureResults + VerifyWebhookSignatureResults VerifyWebhookSignature(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, int operationIndex = 0); + + /// + /// Verify a webhook payload signature + /// + /// + /// Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of VerifyWebhookSignatureResults + ApiResponse VerifyWebhookSignatureWithHttpInfo(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, int operationIndex = 0); + /// + /// Wait for webhook results for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Expected result count + /// Max time to wait in milliseconds + /// Index associated with the operation. + /// List<WebhookResultDto> + List WaitForWebhookResults(Guid webhookId, int expectedCount, int timeout, int operationIndex = 0); + + /// + /// Wait for webhook results for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Expected result count + /// Max time to wait in milliseconds + /// Index associated with the operation. + /// ApiResponse of List<WebhookResultDto> + ApiResponse> WaitForWebhookResultsWithHttpInfo(Guid webhookId, int expectedCount, int timeout, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IWebhookControllerApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Attach a WebHook URL to an inbox + /// + /// + /// Get notified of account level events such as bounce and bounce recipient. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDto + System.Threading.Tasks.Task CreateAccountWebhookAsync(CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Attach a WebHook URL to an inbox + /// + /// + /// Get notified of account level events such as bounce and bounce recipient. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDto) + System.Threading.Tasks.Task> CreateAccountWebhookWithHttpInfoAsync(CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Attach a WebHook URL to an inbox + /// + /// + /// Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDto + System.Threading.Tasks.Task CreateWebhookAsync(Guid inboxId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Attach a WebHook URL to an inbox + /// + /// + /// Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDto) + System.Threading.Tasks.Task> CreateWebhookWithHttpInfoAsync(Guid inboxId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Attach a WebHook URL to a phone number + /// + /// + /// Get notified whenever a phone number receives an SMS via a WebHook URL. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDto + System.Threading.Tasks.Task CreateWebhookForPhoneNumberAsync(Guid phoneNumberId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Attach a WebHook URL to a phone number + /// + /// + /// Get notified whenever a phone number receives an SMS via a WebHook URL. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDto) + System.Threading.Tasks.Task> CreateWebhookForPhoneNumberWithHttpInfoAsync(Guid phoneNumberId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete all webhooks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// before (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteAllWebhooksAsync(DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete all webhooks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// before (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteAllWebhooksWithHttpInfoAsync(DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete and disable a Webhook for an Inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteWebhookAsync(Guid inboxId, Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete and disable a Webhook for an Inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteWebhookWithHttpInfoAsync(Guid inboxId, Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteWebhookByIdAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteWebhookByIdWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List account webhooks Paginated + /// + /// + /// List account webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional event type (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookProjection + System.Threading.Tasks.Task GetAllAccountWebhooksAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string eventType = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List account webhooks Paginated + /// + /// + /// List account webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional event type (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookProjection) + System.Threading.Tasks.Task> GetAllAccountWebhooksWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string eventType = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get results for all webhooks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookResult + System.Threading.Tasks.Task GetAllWebhookResultsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get results for all webhooks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookResult) + System.Threading.Tasks.Task> GetAllWebhookResultsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// List Webhooks Paginated + /// + /// + /// List webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by inboxId (optional) + /// Filter by phoneId (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookProjection + System.Threading.Tasks.Task GetAllWebhooksAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), Guid? inboxId = default(Guid?), Guid? phoneId = default(Guid?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List Webhooks Paginated + /// + /// + /// List webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by inboxId (optional) + /// Filter by phoneId (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookProjection) + System.Threading.Tasks.Task> GetAllWebhooksWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), Guid? inboxId = default(Guid?), Guid? phoneId = default(Guid?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get paginated webhooks for an Inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookProjection + System.Threading.Tasks.Task GetInboxWebhooksPaginatedAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get paginated webhooks for an Inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookProjection) + System.Threading.Tasks.Task> GetInboxWebhooksPaginatedWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get JSON Schema definition for webhook payload by event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of JSONSchemaDto + System.Threading.Tasks.Task GetJsonSchemaForWebhookEventAsync(string _event, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get JSON Schema definition for webhook payload by event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (JSONSchemaDto) + System.Threading.Tasks.Task> GetJsonSchemaForWebhookEventWithHttpInfoAsync(string _event, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get JSON Schema definition for webhook payload + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of JSONSchemaDto + System.Threading.Tasks.Task GetJsonSchemaForWebhookPayloadAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get JSON Schema definition for webhook payload + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (JSONSchemaDto) + System.Threading.Tasks.Task> GetJsonSchemaForWebhookPayloadWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get paginated webhooks for a phone number + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookProjection + System.Threading.Tasks.Task GetPhoneNumberWebhooksPaginatedAsync(Guid phoneId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get paginated webhooks for a phone number + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookProjection) + System.Threading.Tasks.Task> GetPhoneNumberWebhooksPaginatedWithHttpInfoAsync(Guid phoneId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AbstractWebhookPayload + System.Threading.Tasks.Task GetTestWebhookPayloadAsync(string eventName = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AbstractWebhookPayload) + System.Threading.Tasks.Task> GetTestWebhookPayloadWithHttpInfoAsync(string eventName = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get webhook test payload for bounce + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookBouncePayload + System.Threading.Tasks.Task GetTestWebhookPayloadBounceAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get webhook test payload for bounce + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookBouncePayload) + System.Threading.Tasks.Task> GetTestWebhookPayloadBounceWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get webhook test payload for bounce recipient + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookBounceRecipientPayload + System.Threading.Tasks.Task GetTestWebhookPayloadBounceRecipientAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get webhook test payload for bounce recipient + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookBounceRecipientPayload) + System.Threading.Tasks.Task> GetTestWebhookPayloadBounceRecipientWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get webhook test payload for delivery status event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDeliveryStatusPayload + System.Threading.Tasks.Task GetTestWebhookPayloadDeliveryStatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get webhook test payload for delivery status event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDeliveryStatusPayload) + System.Threading.Tasks.Task> GetTestWebhookPayloadDeliveryStatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookEmailOpenedPayload + System.Threading.Tasks.Task GetTestWebhookPayloadEmailOpenedAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookEmailOpenedPayload) + System.Threading.Tasks.Task> GetTestWebhookPayloadEmailOpenedWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookEmailReadPayload + System.Threading.Tasks.Task GetTestWebhookPayloadEmailReadAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookEmailReadPayload) + System.Threading.Tasks.Task> GetTestWebhookPayloadEmailReadWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// Get example payload for webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AbstractWebhookPayload + System.Threading.Tasks.Task GetTestWebhookPayloadForWebhookAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// Get example payload for webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AbstractWebhookPayload) + System.Threading.Tasks.Task> GetTestWebhookPayloadForWebhookWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get webhook test payload for new attachment event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookNewAttachmentPayload + System.Threading.Tasks.Task GetTestWebhookPayloadNewAttachmentAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get webhook test payload for new attachment event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookNewAttachmentPayload) + System.Threading.Tasks.Task> GetTestWebhookPayloadNewAttachmentWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get webhook test payload for new contact event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookNewContactPayload + System.Threading.Tasks.Task GetTestWebhookPayloadNewContactAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get webhook test payload for new contact event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookNewContactPayload) + System.Threading.Tasks.Task> GetTestWebhookPayloadNewContactWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get webhook test payload for new email event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookNewEmailPayload + System.Threading.Tasks.Task GetTestWebhookPayloadNewEmailAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get webhook test payload for new email event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookNewEmailPayload) + System.Threading.Tasks.Task> GetTestWebhookPayloadNewEmailWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get webhook test payload for new sms event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookNewSmsPayload + System.Threading.Tasks.Task GetTestWebhookPayloadNewSmsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get webhook test payload for new sms event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookNewSmsPayload) + System.Threading.Tasks.Task> GetTestWebhookPayloadNewSmsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDto + System.Threading.Tasks.Task GetWebhookAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDto) + System.Threading.Tasks.Task> GetWebhookWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a webhook result for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookResultDto + System.Threading.Tasks.Task GetWebhookResultAsync(Guid webhookResultId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a webhook result for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookResultDto) + System.Threading.Tasks.Task> GetWebhookResultWithHttpInfoAsync(Guid webhookResultId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a webhook results for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookResult + System.Threading.Tasks.Task GetWebhookResultsAsync(Guid webhookId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a webhook results for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookResult) + System.Threading.Tasks.Task> GetWebhookResultsWithHttpInfoAsync(Guid webhookId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a webhook results count for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CountDto + System.Threading.Tasks.Task GetWebhookResultsCountAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a webhook results count for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CountDto) + System.Threading.Tasks.Task> GetWebhookResultsCountWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get count of unseen webhook results with error status + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UnseenErrorCountDto + System.Threading.Tasks.Task GetWebhookResultsUnseenErrorCountAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get count of unseen webhook results with error status + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UnseenErrorCountDto) + System.Threading.Tasks.Task> GetWebhookResultsUnseenErrorCountWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get all webhooks for an Inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<WebhookDto> + [Obsolete] + System.Threading.Tasks.Task> GetWebhooksAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get all webhooks for an Inbox + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<WebhookDto>) + [Obsolete] + System.Threading.Tasks.Task>> GetWebhooksWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Redrive all webhook results that have failed status + /// + /// + /// Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookRedriveAllResult + System.Threading.Tasks.Task RedriveAllWebhookResultsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Redrive all webhook results that have failed status + /// + /// + /// Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookRedriveAllResult) + System.Threading.Tasks.Task> RedriveAllWebhookResultsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get a webhook result and try to resend the original webhook payload + /// + /// + /// Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookRedriveResult + System.Threading.Tasks.Task RedriveWebhookResultAsync(Guid webhookResultId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a webhook result and try to resend the original webhook payload + /// + /// + /// Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookRedriveResult) + System.Threading.Tasks.Task> RedriveWebhookResultWithHttpInfoAsync(Guid webhookResultId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Send webhook test data + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookTestResult + System.Threading.Tasks.Task SendTestDataAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Send webhook test data + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookTestResult) + System.Threading.Tasks.Task> SendTestDataWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Update a webhook request headers + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDto + System.Threading.Tasks.Task UpdateWebhookHeadersAsync(Guid webhookId, WebhookHeaders webhookHeaders, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update a webhook request headers + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDto) + System.Threading.Tasks.Task> UpdateWebhookHeadersWithHttpInfoAsync(Guid webhookId, WebhookHeaders webhookHeaders, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Verify a webhook payload signature + /// + /// + /// Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of VerifyWebhookSignatureResults + System.Threading.Tasks.Task VerifyWebhookSignatureAsync(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Verify a webhook payload signature + /// + /// + /// Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (VerifyWebhookSignatureResults) + System.Threading.Tasks.Task> VerifyWebhookSignatureWithHttpInfoAsync(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Wait for webhook results for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Expected result count + /// Max time to wait in milliseconds + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<WebhookResultDto> + System.Threading.Tasks.Task> WaitForWebhookResultsAsync(Guid webhookId, int expectedCount, int timeout, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Wait for webhook results for a webhook + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Expected result count + /// Max time to wait in milliseconds + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<WebhookResultDto>) + System.Threading.Tasks.Task>> WaitForWebhookResultsWithHttpInfoAsync(Guid webhookId, int expectedCount, int timeout, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IWebhookControllerApi : IWebhookControllerApiSync, IWebhookControllerApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class WebhookControllerApi : IWebhookControllerApi + { + private mailslurp_netstandard_2x.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public WebhookControllerApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public WebhookControllerApi(string basePath) + { + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + new mailslurp_netstandard_2x.Client.Configuration { BasePath = basePath } + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public WebhookControllerApi(mailslurp_netstandard_2x.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = mailslurp_netstandard_2x.Client.Configuration.MergeConfigurations( + mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new mailslurp_netstandard_2x.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public WebhookControllerApi(mailslurp_netstandard_2x.Client.ISynchronousClient client, mailslurp_netstandard_2x.Client.IAsynchronousClient asyncClient, mailslurp_netstandard_2x.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = mailslurp_netstandard_2x.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public mailslurp_netstandard_2x.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public mailslurp_netstandard_2x.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public mailslurp_netstandard_2x.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public mailslurp_netstandard_2x.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Attach a WebHook URL to an inbox Get notified of account level events such as bounce and bounce recipient. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// WebhookDto + public WebhookDto CreateAccountWebhook(CreateWebhookOptions createWebhookOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateAccountWebhookWithHttpInfo(createWebhookOptions); + return localVarResponse.Data; + } + + /// + /// Attach a WebHook URL to an inbox Get notified of account level events such as bounce and bounce recipient. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of WebhookDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateAccountWebhookWithHttpInfo(CreateWebhookOptions createWebhookOptions, int operationIndex = 0) + { + // verify the required parameter 'createWebhookOptions' is set + if (createWebhookOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createWebhookOptions' when calling WebhookControllerApi->CreateAccountWebhook"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createWebhookOptions; + + localVarRequestOptions.Operation = "WebhookControllerApi.CreateAccountWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/webhooks", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccountWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Attach a WebHook URL to an inbox Get notified of account level events such as bounce and bounce recipient. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDto + public async System.Threading.Tasks.Task CreateAccountWebhookAsync(CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateAccountWebhookWithHttpInfoAsync(createWebhookOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Attach a WebHook URL to an inbox Get notified of account level events such as bounce and bounce recipient. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDto) + public async System.Threading.Tasks.Task> CreateAccountWebhookWithHttpInfoAsync(CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createWebhookOptions' is set + if (createWebhookOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createWebhookOptions' when calling WebhookControllerApi->CreateAccountWebhook"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createWebhookOptions; + + localVarRequestOptions.Operation = "WebhookControllerApi.CreateAccountWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/webhooks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccountWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Attach a WebHook URL to an inbox Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// WebhookDto + public WebhookDto CreateWebhook(Guid inboxId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateWebhookWithHttpInfo(inboxId, createWebhookOptions); + return localVarResponse.Data; + } + + /// + /// Attach a WebHook URL to an inbox Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of WebhookDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateWebhookWithHttpInfo(Guid inboxId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0) + { + // verify the required parameter 'createWebhookOptions' is set + if (createWebhookOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createWebhookOptions' when calling WebhookControllerApi->CreateWebhook"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = createWebhookOptions; + + localVarRequestOptions.Operation = "WebhookControllerApi.CreateWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/inboxes/{inboxId}/webhooks", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Attach a WebHook URL to an inbox Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDto + public async System.Threading.Tasks.Task CreateWebhookAsync(Guid inboxId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateWebhookWithHttpInfoAsync(inboxId, createWebhookOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Attach a WebHook URL to an inbox Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDto) + public async System.Threading.Tasks.Task> CreateWebhookWithHttpInfoAsync(Guid inboxId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createWebhookOptions' is set + if (createWebhookOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createWebhookOptions' when calling WebhookControllerApi->CreateWebhook"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.Data = createWebhookOptions; + + localVarRequestOptions.Operation = "WebhookControllerApi.CreateWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/inboxes/{inboxId}/webhooks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Attach a WebHook URL to a phone number Get notified whenever a phone number receives an SMS via a WebHook URL. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// WebhookDto + public WebhookDto CreateWebhookForPhoneNumber(Guid phoneNumberId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = CreateWebhookForPhoneNumberWithHttpInfo(phoneNumberId, createWebhookOptions); + return localVarResponse.Data; + } + + /// + /// Attach a WebHook URL to a phone number Get notified whenever a phone number receives an SMS via a WebHook URL. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of WebhookDto + public mailslurp_netstandard_2x.Client.ApiResponse CreateWebhookForPhoneNumberWithHttpInfo(Guid phoneNumberId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0) + { + // verify the required parameter 'createWebhookOptions' is set + if (createWebhookOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createWebhookOptions' when calling WebhookControllerApi->CreateWebhookForPhoneNumber"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("phoneNumberId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(phoneNumberId)); // path parameter + localVarRequestOptions.Data = createWebhookOptions; + + localVarRequestOptions.Operation = "WebhookControllerApi.CreateWebhookForPhoneNumber"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/phone/numbers/{phoneNumberId}/webhooks", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateWebhookForPhoneNumber", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Attach a WebHook URL to a phone number Get notified whenever a phone number receives an SMS via a WebHook URL. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDto + public async System.Threading.Tasks.Task CreateWebhookForPhoneNumberAsync(Guid phoneNumberId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await CreateWebhookForPhoneNumberWithHttpInfoAsync(phoneNumberId, createWebhookOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Attach a WebHook URL to a phone number Get notified whenever a phone number receives an SMS via a WebHook URL. + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDto) + public async System.Threading.Tasks.Task> CreateWebhookForPhoneNumberWithHttpInfoAsync(Guid phoneNumberId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'createWebhookOptions' is set + if (createWebhookOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'createWebhookOptions' when calling WebhookControllerApi->CreateWebhookForPhoneNumber"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("phoneNumberId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(phoneNumberId)); // path parameter + localVarRequestOptions.Data = createWebhookOptions; + + localVarRequestOptions.Operation = "WebhookControllerApi.CreateWebhookForPhoneNumber"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/phone/numbers/{phoneNumberId}/webhooks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateWebhookForPhoneNumber", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all webhooks + /// + /// Thrown when fails to make API call + /// before (optional) + /// Index associated with the operation. + /// + public void DeleteAllWebhooks(DateTime? before = default(DateTime?), int operationIndex = 0) + { + DeleteAllWebhooksWithHttpInfo(before); + } + + /// + /// Delete all webhooks + /// + /// Thrown when fails to make API call + /// before (optional) + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteAllWebhooksWithHttpInfo(DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.DeleteAllWebhooks"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/webhooks", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllWebhooks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete all webhooks + /// + /// Thrown when fails to make API call + /// before (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteAllWebhooksAsync(DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteAllWebhooksWithHttpInfoAsync(before, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete all webhooks + /// + /// Thrown when fails to make API call + /// before (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteAllWebhooksWithHttpInfoAsync(DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.DeleteAllWebhooks"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/webhooks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAllWebhooks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete and disable a Webhook for an Inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// + public void DeleteWebhook(Guid inboxId, Guid webhookId, int operationIndex = 0) + { + DeleteWebhookWithHttpInfo(inboxId, webhookId); + } + + /// + /// Delete and disable a Webhook for an Inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteWebhookWithHttpInfo(Guid inboxId, Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.DeleteWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/inboxes/{inboxId}/webhooks/{webhookId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete and disable a Webhook for an Inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteWebhookAsync(Guid inboxId, Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteWebhookWithHttpInfoAsync(inboxId, webhookId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete and disable a Webhook for an Inbox + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteWebhookWithHttpInfoAsync(Guid inboxId, Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.DeleteWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/inboxes/{inboxId}/webhooks/{webhookId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// + public void DeleteWebhookById(Guid webhookId, int operationIndex = 0) + { + DeleteWebhookByIdWithHttpInfo(webhookId); + } + + /// + /// Delete a webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Object(void) + public mailslurp_netstandard_2x.Client.ApiResponse DeleteWebhookByIdWithHttpInfo(Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.DeleteWebhookById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/webhooks/{webhookId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteWebhookById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Delete a webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteWebhookByIdAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteWebhookByIdWithHttpInfoAsync(webhookId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteWebhookByIdWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.DeleteWebhookById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/webhooks/{webhookId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteWebhookById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List account webhooks Paginated List account webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional event type (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageWebhookProjection + public PageWebhookProjection GetAllAccountWebhooks(int? page = default(int?), int? size = default(int?), string sort = default(string), string eventType = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllAccountWebhooksWithHttpInfo(page, size, sort, eventType, since, before); + return localVarResponse.Data; + } + + /// + /// List account webhooks Paginated List account webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional event type (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAllAccountWebhooksWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string eventType = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (eventType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "eventType", eventType)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetAllAccountWebhooks"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/account/paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllAccountWebhooks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List account webhooks Paginated List account webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional event type (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookProjection + public async System.Threading.Tasks.Task GetAllAccountWebhooksAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string eventType = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllAccountWebhooksWithHttpInfoAsync(page, size, sort, eventType, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List account webhooks Paginated List account webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional event type (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookProjection) + public async System.Threading.Tasks.Task> GetAllAccountWebhooksWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string eventType = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (eventType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "eventType", eventType)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetAllAccountWebhooks"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/account/paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllAccountWebhooks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get results for all webhooks + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// PageWebhookResult + public PageWebhookResult GetAllWebhookResults(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllWebhookResultsWithHttpInfo(page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId); + return localVarResponse.Data; + } + + /// + /// Get results for all webhooks + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookResult + public mailslurp_netstandard_2x.Client.ApiResponse GetAllWebhookResultsWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (unseenOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unseenOnly", unseenOnly)); + } + if (resultType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "resultType", resultType)); + } + if (eventName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "eventName", eventName)); + } + if (minStatusCode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "minStatusCode", minStatusCode)); + } + if (maxStatusCode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "maxStatusCode", maxStatusCode)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (smsId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "smsId", smsId)); + } + if (attachmentId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "attachmentId", attachmentId)); + } + if (emailId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailId", emailId)); + } + if (phoneId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneId", phoneId)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetAllWebhookResults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/results", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllWebhookResults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get results for all webhooks + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookResult + public async System.Threading.Tasks.Task GetAllWebhookResultsAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllWebhookResultsWithHttpInfoAsync(page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get results for all webhooks + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookResult) + public async System.Threading.Tasks.Task> GetAllWebhookResultsWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (unseenOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unseenOnly", unseenOnly)); + } + if (resultType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "resultType", resultType)); + } + if (eventName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "eventName", eventName)); + } + if (minStatusCode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "minStatusCode", minStatusCode)); + } + if (maxStatusCode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "maxStatusCode", maxStatusCode)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (smsId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "smsId", smsId)); + } + if (attachmentId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "attachmentId", attachmentId)); + } + if (emailId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailId", emailId)); + } + if (phoneId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneId", phoneId)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetAllWebhookResults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/results", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllWebhookResults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List Webhooks Paginated List webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by inboxId (optional) + /// Filter by phoneId (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageWebhookProjection + public PageWebhookProjection GetAllWebhooks(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), Guid? inboxId = default(Guid?), Guid? phoneId = default(Guid?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetAllWebhooksWithHttpInfo(page, size, sort, searchFilter, since, inboxId, phoneId, before); + return localVarResponse.Data; + } + + /// + /// List Webhooks Paginated List webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by inboxId (optional) + /// Filter by phoneId (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetAllWebhooksWithHttpInfo(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), Guid? inboxId = default(Guid?), Guid? phoneId = default(Guid?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (phoneId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneId", phoneId)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetAllWebhooks"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllWebhooks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// List Webhooks Paginated List webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by inboxId (optional) + /// Filter by phoneId (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookProjection + public async System.Threading.Tasks.Task GetAllWebhooksAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), Guid? inboxId = default(Guid?), Guid? phoneId = default(Guid?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetAllWebhooksWithHttpInfoAsync(page, size, sort, searchFilter, since, inboxId, phoneId, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List Webhooks Paginated List webhooks in paginated form. Allows for page index, page size, and sort direction. + /// + /// Thrown when fails to make API call + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size for paginated result list. (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to DESC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by inboxId (optional) + /// Filter by phoneId (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookProjection) + public async System.Threading.Tasks.Task> GetAllWebhooksWithHttpInfoAsync(int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), Guid? inboxId = default(Guid?), Guid? phoneId = default(Guid?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (phoneId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneId", phoneId)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetAllWebhooks"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllWebhooks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated webhooks for an Inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageWebhookProjection + public PageWebhookProjection GetInboxWebhooksPaginated(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetInboxWebhooksPaginatedWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); + return localVarResponse.Data; + } + + /// + /// Get paginated webhooks for an Inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetInboxWebhooksPaginatedWithHttpInfo(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetInboxWebhooksPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/inboxes/{inboxId}/webhooks/paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxWebhooksPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated webhooks for an Inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookProjection + public async System.Threading.Tasks.Task GetInboxWebhooksPaginatedAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetInboxWebhooksPaginatedWithHttpInfoAsync(inboxId, page, size, sort, searchFilter, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get paginated webhooks for an Inbox + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookProjection) + public async System.Threading.Tasks.Task> GetInboxWebhooksPaginatedWithHttpInfoAsync(Guid inboxId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetInboxWebhooksPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/inboxes/{inboxId}/webhooks/paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetInboxWebhooksPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get JSON Schema definition for webhook payload by event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// JSONSchemaDto + public JSONSchemaDto GetJsonSchemaForWebhookEvent(string _event, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetJsonSchemaForWebhookEventWithHttpInfo(_event); + return localVarResponse.Data; + } + + /// + /// Get JSON Schema definition for webhook payload by event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of JSONSchemaDto + public mailslurp_netstandard_2x.Client.ApiResponse GetJsonSchemaForWebhookEventWithHttpInfo(string _event, int operationIndex = 0) + { + // verify the required parameter '_event' is set + if (_event == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter '_event' when calling WebhookControllerApi->GetJsonSchemaForWebhookEvent"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "event", _event)); + + localVarRequestOptions.Operation = "WebhookControllerApi.GetJsonSchemaForWebhookEvent"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/webhooks/schema", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJsonSchemaForWebhookEvent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get JSON Schema definition for webhook payload by event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of JSONSchemaDto + public async System.Threading.Tasks.Task GetJsonSchemaForWebhookEventAsync(string _event, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetJsonSchemaForWebhookEventWithHttpInfoAsync(_event, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get JSON Schema definition for webhook payload by event + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (JSONSchemaDto) + public async System.Threading.Tasks.Task> GetJsonSchemaForWebhookEventWithHttpInfoAsync(string _event, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter '_event' is set + if (_event == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter '_event' when calling WebhookControllerApi->GetJsonSchemaForWebhookEvent"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "event", _event)); + + localVarRequestOptions.Operation = "WebhookControllerApi.GetJsonSchemaForWebhookEvent"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/webhooks/schema", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJsonSchemaForWebhookEvent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get JSON Schema definition for webhook payload + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// JSONSchemaDto + public JSONSchemaDto GetJsonSchemaForWebhookPayload(Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetJsonSchemaForWebhookPayloadWithHttpInfo(webhookId); + return localVarResponse.Data; + } + + /// + /// Get JSON Schema definition for webhook payload + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of JSONSchemaDto + public mailslurp_netstandard_2x.Client.ApiResponse GetJsonSchemaForWebhookPayloadWithHttpInfo(Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetJsonSchemaForWebhookPayload"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/webhooks/{webhookId}/schema", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJsonSchemaForWebhookPayload", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get JSON Schema definition for webhook payload + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of JSONSchemaDto + public async System.Threading.Tasks.Task GetJsonSchemaForWebhookPayloadAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetJsonSchemaForWebhookPayloadWithHttpInfoAsync(webhookId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get JSON Schema definition for webhook payload + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (JSONSchemaDto) + public async System.Threading.Tasks.Task> GetJsonSchemaForWebhookPayloadWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetJsonSchemaForWebhookPayload"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/webhooks/{webhookId}/schema", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJsonSchemaForWebhookPayload", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated webhooks for a phone number + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// PageWebhookProjection + public PageWebhookProjection GetPhoneNumberWebhooksPaginated(Guid phoneId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetPhoneNumberWebhooksPaginatedWithHttpInfo(phoneId, page, size, sort, since, before); + return localVarResponse.Data; + } + + /// + /// Get paginated webhooks for a phone number + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookProjection + public mailslurp_netstandard_2x.Client.ApiResponse GetPhoneNumberWebhooksPaginatedWithHttpInfo(Guid phoneId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("phoneId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(phoneId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetPhoneNumberWebhooksPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/phone/numbers/{phoneId}/webhooks/paginated", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPhoneNumberWebhooksPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get paginated webhooks for a phone number + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookProjection + public async System.Threading.Tasks.Task GetPhoneNumberWebhooksPaginatedAsync(Guid phoneId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetPhoneNumberWebhooksPaginatedWithHttpInfoAsync(phoneId, page, size, sort, since, before, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get paginated webhooks for a phone number + /// + /// Thrown when fails to make API call + /// + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookProjection) + public async System.Threading.Tasks.Task> GetPhoneNumberWebhooksPaginatedWithHttpInfoAsync(Guid phoneId, int? page = default(int?), int? size = default(int?), string sort = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("phoneId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(phoneId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetPhoneNumberWebhooksPaginated"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/phone/numbers/{phoneId}/webhooks/paginated", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPhoneNumberWebhooksPaginated", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// AbstractWebhookPayload + public AbstractWebhookPayload GetTestWebhookPayload(string eventName = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTestWebhookPayloadWithHttpInfo(eventName); + return localVarResponse.Data; + } + + /// + /// Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of AbstractWebhookPayload + public mailslurp_netstandard_2x.Client.ApiResponse GetTestWebhookPayloadWithHttpInfo(string eventName = default(string), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (eventName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "eventName", eventName)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayload"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/test", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayload", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AbstractWebhookPayload + public async System.Threading.Tasks.Task GetTestWebhookPayloadAsync(string eventName = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTestWebhookPayloadWithHttpInfoAsync(eventName, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AbstractWebhookPayload) + public async System.Threading.Tasks.Task> GetTestWebhookPayloadWithHttpInfoAsync(string eventName = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (eventName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "eventName", eventName)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayload"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayload", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for bounce + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookBouncePayload + public WebhookBouncePayload GetTestWebhookPayloadBounce(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTestWebhookPayloadBounceWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for bounce + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookBouncePayload + public mailslurp_netstandard_2x.Client.ApiResponse GetTestWebhookPayloadBounceWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadBounce"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/test/email-bounce-payload", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadBounce", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for bounce + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookBouncePayload + public async System.Threading.Tasks.Task GetTestWebhookPayloadBounceAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTestWebhookPayloadBounceWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for bounce + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookBouncePayload) + public async System.Threading.Tasks.Task> GetTestWebhookPayloadBounceWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadBounce"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/test/email-bounce-payload", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadBounce", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for bounce recipient + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookBounceRecipientPayload + public WebhookBounceRecipientPayload GetTestWebhookPayloadBounceRecipient(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTestWebhookPayloadBounceRecipientWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for bounce recipient + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookBounceRecipientPayload + public mailslurp_netstandard_2x.Client.ApiResponse GetTestWebhookPayloadBounceRecipientWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadBounceRecipient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/test/email-bounce-recipient-payload", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadBounceRecipient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for bounce recipient + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookBounceRecipientPayload + public async System.Threading.Tasks.Task GetTestWebhookPayloadBounceRecipientAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTestWebhookPayloadBounceRecipientWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for bounce recipient + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookBounceRecipientPayload) + public async System.Threading.Tasks.Task> GetTestWebhookPayloadBounceRecipientWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadBounceRecipient"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/test/email-bounce-recipient-payload", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadBounceRecipient", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for delivery status event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookDeliveryStatusPayload + public WebhookDeliveryStatusPayload GetTestWebhookPayloadDeliveryStatus(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTestWebhookPayloadDeliveryStatusWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for delivery status event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookDeliveryStatusPayload + public mailslurp_netstandard_2x.Client.ApiResponse GetTestWebhookPayloadDeliveryStatusWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadDeliveryStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/test/delivery-status-payload", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadDeliveryStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for delivery status event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDeliveryStatusPayload + public async System.Threading.Tasks.Task GetTestWebhookPayloadDeliveryStatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTestWebhookPayloadDeliveryStatusWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for delivery status event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDeliveryStatusPayload) + public async System.Threading.Tasks.Task> GetTestWebhookPayloadDeliveryStatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadDeliveryStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/test/delivery-status-payload", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadDeliveryStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookEmailOpenedPayload + public WebhookEmailOpenedPayload GetTestWebhookPayloadEmailOpened(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTestWebhookPayloadEmailOpenedWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookEmailOpenedPayload + public mailslurp_netstandard_2x.Client.ApiResponse GetTestWebhookPayloadEmailOpenedWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadEmailOpened"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/test/email-opened-payload", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadEmailOpened", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookEmailOpenedPayload + public async System.Threading.Tasks.Task GetTestWebhookPayloadEmailOpenedAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTestWebhookPayloadEmailOpenedWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookEmailOpenedPayload) + public async System.Threading.Tasks.Task> GetTestWebhookPayloadEmailOpenedWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadEmailOpened"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/test/email-opened-payload", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadEmailOpened", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookEmailReadPayload + public WebhookEmailReadPayload GetTestWebhookPayloadEmailRead(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTestWebhookPayloadEmailReadWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookEmailReadPayload + public mailslurp_netstandard_2x.Client.ApiResponse GetTestWebhookPayloadEmailReadWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadEmailRead"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/test/email-read-payload", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadEmailRead", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookEmailReadPayload + public async System.Threading.Tasks.Task GetTestWebhookPayloadEmailReadAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTestWebhookPayloadEmailReadWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for email opened event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookEmailReadPayload) + public async System.Threading.Tasks.Task> GetTestWebhookPayloadEmailReadWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadEmailRead"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/test/email-read-payload", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadEmailRead", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get example payload for webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// AbstractWebhookPayload + public AbstractWebhookPayload GetTestWebhookPayloadForWebhook(Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTestWebhookPayloadForWebhookWithHttpInfo(webhookId); + return localVarResponse.Data; + } + + /// + /// Get example payload for webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of AbstractWebhookPayload + public mailslurp_netstandard_2x.Client.ApiResponse GetTestWebhookPayloadForWebhookWithHttpInfo(Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadForWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/webhooks/{webhookId}/example", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadForWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get example payload for webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of AbstractWebhookPayload + public async System.Threading.Tasks.Task GetTestWebhookPayloadForWebhookAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTestWebhookPayloadForWebhookWithHttpInfoAsync(webhookId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get example payload for webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (AbstractWebhookPayload) + public async System.Threading.Tasks.Task> GetTestWebhookPayloadForWebhookWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadForWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/webhooks/{webhookId}/example", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadForWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for new attachment event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookNewAttachmentPayload + public WebhookNewAttachmentPayload GetTestWebhookPayloadNewAttachment(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTestWebhookPayloadNewAttachmentWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for new attachment event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookNewAttachmentPayload + public mailslurp_netstandard_2x.Client.ApiResponse GetTestWebhookPayloadNewAttachmentWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadNewAttachment"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/test/new-attachment-payload", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadNewAttachment", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for new attachment event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookNewAttachmentPayload + public async System.Threading.Tasks.Task GetTestWebhookPayloadNewAttachmentAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTestWebhookPayloadNewAttachmentWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for new attachment event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookNewAttachmentPayload) + public async System.Threading.Tasks.Task> GetTestWebhookPayloadNewAttachmentWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadNewAttachment"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/test/new-attachment-payload", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadNewAttachment", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for new contact event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookNewContactPayload + public WebhookNewContactPayload GetTestWebhookPayloadNewContact(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTestWebhookPayloadNewContactWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for new contact event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookNewContactPayload + public mailslurp_netstandard_2x.Client.ApiResponse GetTestWebhookPayloadNewContactWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadNewContact"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/test/new-contact-payload", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadNewContact", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for new contact event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookNewContactPayload + public async System.Threading.Tasks.Task GetTestWebhookPayloadNewContactAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTestWebhookPayloadNewContactWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for new contact event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookNewContactPayload) + public async System.Threading.Tasks.Task> GetTestWebhookPayloadNewContactWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadNewContact"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/test/new-contact-payload", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadNewContact", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for new email event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookNewEmailPayload + public WebhookNewEmailPayload GetTestWebhookPayloadNewEmail(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTestWebhookPayloadNewEmailWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for new email event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookNewEmailPayload + public mailslurp_netstandard_2x.Client.ApiResponse GetTestWebhookPayloadNewEmailWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadNewEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/test/new-email-payload", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadNewEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for new email event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookNewEmailPayload + public async System.Threading.Tasks.Task GetTestWebhookPayloadNewEmailAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTestWebhookPayloadNewEmailWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for new email event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookNewEmailPayload) + public async System.Threading.Tasks.Task> GetTestWebhookPayloadNewEmailWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadNewEmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/test/new-email-payload", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadNewEmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for new sms event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookNewSmsPayload + public WebhookNewSmsPayload GetTestWebhookPayloadNewSms(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetTestWebhookPayloadNewSmsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for new sms event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookNewSmsPayload + public mailslurp_netstandard_2x.Client.ApiResponse GetTestWebhookPayloadNewSmsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadNewSms"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/test/new-sms-payload", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadNewSms", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get webhook test payload for new sms event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookNewSmsPayload + public async System.Threading.Tasks.Task GetTestWebhookPayloadNewSmsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetTestWebhookPayloadNewSmsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get webhook test payload for new sms event + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookNewSmsPayload) + public async System.Threading.Tasks.Task> GetTestWebhookPayloadNewSmsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetTestWebhookPayloadNewSms"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/test/new-sms-payload", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTestWebhookPayloadNewSms", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// WebhookDto + public WebhookDto GetWebhook(Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetWebhookWithHttpInfo(webhookId); + return localVarResponse.Data; + } + + /// + /// Get a webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of WebhookDto + public mailslurp_netstandard_2x.Client.ApiResponse GetWebhookWithHttpInfo(Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/{webhookId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDto + public async System.Threading.Tasks.Task GetWebhookAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetWebhookWithHttpInfoAsync(webhookId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a webhook + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDto) + public async System.Threading.Tasks.Task> GetWebhookWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/{webhookId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a webhook result for a webhook + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// WebhookResultDto + public WebhookResultDto GetWebhookResult(Guid webhookResultId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetWebhookResultWithHttpInfo(webhookResultId); + return localVarResponse.Data; + } + + /// + /// Get a webhook result for a webhook + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// ApiResponse of WebhookResultDto + public mailslurp_netstandard_2x.Client.ApiResponse GetWebhookResultWithHttpInfo(Guid webhookResultId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookResultId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookResultId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhookResult"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/results/{webhookResultId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhookResult", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a webhook result for a webhook + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookResultDto + public async System.Threading.Tasks.Task GetWebhookResultAsync(Guid webhookResultId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetWebhookResultWithHttpInfoAsync(webhookResultId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a webhook result for a webhook + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookResultDto) + public async System.Threading.Tasks.Task> GetWebhookResultWithHttpInfoAsync(Guid webhookResultId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookResultId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookResultId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhookResult"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/results/{webhookResultId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhookResult", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a webhook results for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// PageWebhookResult + public PageWebhookResult GetWebhookResults(Guid webhookId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetWebhookResultsWithHttpInfo(webhookId, page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId); + return localVarResponse.Data; + } + + /// + /// Get a webhook results for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// ApiResponse of PageWebhookResult + public mailslurp_netstandard_2x.Client.ApiResponse GetWebhookResultsWithHttpInfo(Guid webhookId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (unseenOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unseenOnly", unseenOnly)); + } + if (resultType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "resultType", resultType)); + } + if (eventName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "eventName", eventName)); + } + if (minStatusCode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "minStatusCode", minStatusCode)); + } + if (maxStatusCode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "maxStatusCode", maxStatusCode)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (smsId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "smsId", smsId)); + } + if (attachmentId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "attachmentId", attachmentId)); + } + if (emailId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailId", emailId)); + } + if (phoneId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneId", phoneId)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhookResults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/{webhookId}/results", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhookResults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a webhook results for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of PageWebhookResult + public async System.Threading.Tasks.Task GetWebhookResultsAsync(Guid webhookId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetWebhookResultsWithHttpInfoAsync(webhookId, page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a webhook results for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Optional page index in list pagination (optional, default to 0) + /// Optional page size in list pagination (optional, default to 20) + /// Optional createdAt sort direction ASC or DESC (optional, default to ASC) + /// Optional search filter (optional) + /// Filter by created at after the given timestamp (optional) + /// Filter by created at before the given timestamp (optional) + /// Filter for unseen exceptions only (optional) + /// Filter by result type (optional) + /// Filter by event name (optional) + /// Minimum response status (optional) + /// Maximum response status (optional) + /// Inbox ID (optional) + /// Sms ID (optional) + /// Attachment ID (optional) + /// Email ID (optional) + /// Phone ID (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PageWebhookResult) + public async System.Threading.Tasks.Task> GetWebhookResultsWithHttpInfoAsync(Guid webhookId, int? page = default(int?), int? size = default(int?), string sort = default(string), string searchFilter = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), bool? unseenOnly = default(bool?), string resultType = default(string), string eventName = default(string), int? minStatusCode = default(int?), int? maxStatusCode = default(int?), Guid? inboxId = default(Guid?), Guid? smsId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? emailId = default(Guid?), Guid? phoneId = default(Guid?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (size != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "size", size)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (searchFilter != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "searchFilter", searchFilter)); + } + if (since != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "since", since)); + } + if (before != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "before", before)); + } + if (unseenOnly != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "unseenOnly", unseenOnly)); + } + if (resultType != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "resultType", resultType)); + } + if (eventName != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "eventName", eventName)); + } + if (minStatusCode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "minStatusCode", minStatusCode)); + } + if (maxStatusCode != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "maxStatusCode", maxStatusCode)); + } + if (inboxId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "inboxId", inboxId)); + } + if (smsId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "smsId", smsId)); + } + if (attachmentId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "attachmentId", attachmentId)); + } + if (emailId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "emailId", emailId)); + } + if (phoneId != null) + { + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "phoneId", phoneId)); + } + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhookResults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/{webhookId}/results", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhookResults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a webhook results count for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Index associated with the operation. + /// CountDto + public CountDto GetWebhookResultsCount(Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetWebhookResultsCountWithHttpInfo(webhookId); + return localVarResponse.Data; + } + + /// + /// Get a webhook results count for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Index associated with the operation. + /// ApiResponse of CountDto + public mailslurp_netstandard_2x.Client.ApiResponse GetWebhookResultsCountWithHttpInfo(Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhookResultsCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/{webhookId}/results/count", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhookResultsCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a webhook results count for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CountDto + public async System.Threading.Tasks.Task GetWebhookResultsCountAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetWebhookResultsCountWithHttpInfoAsync(webhookId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a webhook results count for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CountDto) + public async System.Threading.Tasks.Task> GetWebhookResultsCountWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhookResultsCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/{webhookId}/results/count", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhookResultsCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get count of unseen webhook results with error status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// UnseenErrorCountDto + public UnseenErrorCountDto GetWebhookResultsUnseenErrorCount(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = GetWebhookResultsUnseenErrorCountWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get count of unseen webhook results with error status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of UnseenErrorCountDto + public mailslurp_netstandard_2x.Client.ApiResponse GetWebhookResultsUnseenErrorCountWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhookResultsUnseenErrorCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/webhooks/results/unseen-count", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhookResultsUnseenErrorCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get count of unseen webhook results with error status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UnseenErrorCountDto + public async System.Threading.Tasks.Task GetWebhookResultsUnseenErrorCountAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await GetWebhookResultsUnseenErrorCountWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get count of unseen webhook results with error status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UnseenErrorCountDto) + public async System.Threading.Tasks.Task> GetWebhookResultsUnseenErrorCountWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhookResultsUnseenErrorCount"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/webhooks/results/unseen-count", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhookResultsUnseenErrorCount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all webhooks for an Inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// List<WebhookDto> + [Obsolete] + public List GetWebhooks(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = GetWebhooksWithHttpInfo(inboxId); + return localVarResponse.Data; + } + + /// + /// Get all webhooks for an Inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of List<WebhookDto> + [Obsolete] + public mailslurp_netstandard_2x.Client.ApiResponse> GetWebhooksWithHttpInfo(Guid inboxId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhooks"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/inboxes/{inboxId}/webhooks", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhooks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get all webhooks for an Inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<WebhookDto> + [Obsolete] + public async System.Threading.Tasks.Task> GetWebhooksAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await GetWebhooksWithHttpInfoAsync(inboxId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get all webhooks for an Inbox + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<WebhookDto>) + [Obsolete] + public async System.Threading.Tasks.Task>> GetWebhooksWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("inboxId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(inboxId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.GetWebhooks"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/inboxes/{inboxId}/webhooks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetWebhooks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Redrive all webhook results that have failed status Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// WebhookRedriveAllResult + public WebhookRedriveAllResult RedriveAllWebhookResults(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = RedriveAllWebhookResultsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Redrive all webhook results that have failed status Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of WebhookRedriveAllResult + public mailslurp_netstandard_2x.Client.ApiResponse RedriveAllWebhookResultsWithHttpInfo(int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.RedriveAllWebhookResults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/webhooks/results/redrive", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RedriveAllWebhookResults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Redrive all webhook results that have failed status Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookRedriveAllResult + public async System.Threading.Tasks.Task RedriveAllWebhookResultsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await RedriveAllWebhookResultsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Redrive all webhook results that have failed status Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookRedriveAllResult) + public async System.Threading.Tasks.Task> RedriveAllWebhookResultsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "WebhookControllerApi.RedriveAllWebhookResults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/webhooks/results/redrive", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RedriveAllWebhookResults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a webhook result and try to resend the original webhook payload Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// WebhookRedriveResult + public WebhookRedriveResult RedriveWebhookResult(Guid webhookResultId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = RedriveWebhookResultWithHttpInfo(webhookResultId); + return localVarResponse.Data; + } + + /// + /// Get a webhook result and try to resend the original webhook payload Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// ApiResponse of WebhookRedriveResult + public mailslurp_netstandard_2x.Client.ApiResponse RedriveWebhookResultWithHttpInfo(Guid webhookResultId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookResultId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookResultId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.RedriveWebhookResult"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/webhooks/results/{webhookResultId}/redrive", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RedriveWebhookResult", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a webhook result and try to resend the original webhook payload Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookRedriveResult + public async System.Threading.Tasks.Task RedriveWebhookResultAsync(Guid webhookResultId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await RedriveWebhookResultWithHttpInfoAsync(webhookResultId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a webhook result and try to resend the original webhook payload Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. + /// + /// Thrown when fails to make API call + /// Webhook Result ID + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookRedriveResult) + public async System.Threading.Tasks.Task> RedriveWebhookResultWithHttpInfoAsync(Guid webhookResultId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookResultId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookResultId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.RedriveWebhookResult"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/webhooks/results/{webhookResultId}/redrive", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RedriveWebhookResult", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send webhook test data + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// WebhookTestResult + public WebhookTestResult SendTestData(Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = SendTestDataWithHttpInfo(webhookId); + return localVarResponse.Data; + } + + /// + /// Send webhook test data + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of WebhookTestResult + public mailslurp_netstandard_2x.Client.ApiResponse SendTestDataWithHttpInfo(Guid webhookId, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.SendTestData"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/webhooks/{webhookId}/test", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendTestData", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Send webhook test data + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookTestResult + public async System.Threading.Tasks.Task SendTestDataAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await SendTestDataWithHttpInfoAsync(webhookId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Send webhook test data + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookTestResult) + public async System.Threading.Tasks.Task> SendTestDataWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + + localVarRequestOptions.Operation = "WebhookControllerApi.SendTestData"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/webhooks/{webhookId}/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SendTestData", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a webhook request headers + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// WebhookDto + public WebhookDto UpdateWebhookHeaders(Guid webhookId, WebhookHeaders webhookHeaders, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = UpdateWebhookHeadersWithHttpInfo(webhookId, webhookHeaders); + return localVarResponse.Data; + } + + /// + /// Update a webhook request headers + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// ApiResponse of WebhookDto + public mailslurp_netstandard_2x.Client.ApiResponse UpdateWebhookHeadersWithHttpInfo(Guid webhookId, WebhookHeaders webhookHeaders, int operationIndex = 0) + { + // verify the required parameter 'webhookHeaders' is set + if (webhookHeaders == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'webhookHeaders' when calling WebhookControllerApi->UpdateWebhookHeaders"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + localVarRequestOptions.Data = webhookHeaders; + + localVarRequestOptions.Operation = "WebhookControllerApi.UpdateWebhookHeaders"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/webhooks/{webhookId}/headers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateWebhookHeaders", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Update a webhook request headers + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of WebhookDto + public async System.Threading.Tasks.Task UpdateWebhookHeadersAsync(Guid webhookId, WebhookHeaders webhookHeaders, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await UpdateWebhookHeadersWithHttpInfoAsync(webhookId, webhookHeaders, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update a webhook request headers + /// + /// Thrown when fails to make API call + /// + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (WebhookDto) + public async System.Threading.Tasks.Task> UpdateWebhookHeadersWithHttpInfoAsync(Guid webhookId, WebhookHeaders webhookHeaders, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'webhookHeaders' is set + if (webhookHeaders == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'webhookHeaders' when calling WebhookControllerApi->UpdateWebhookHeaders"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + localVarRequestOptions.Data = webhookHeaders; + + localVarRequestOptions.Operation = "WebhookControllerApi.UpdateWebhookHeaders"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/webhooks/{webhookId}/headers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateWebhookHeaders", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Verify a webhook payload signature Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// VerifyWebhookSignatureResults + public VerifyWebhookSignatureResults VerifyWebhookSignature(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = VerifyWebhookSignatureWithHttpInfo(verifyWebhookSignatureOptions); + return localVarResponse.Data; + } + + /// + /// Verify a webhook payload signature Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of VerifyWebhookSignatureResults + public mailslurp_netstandard_2x.Client.ApiResponse VerifyWebhookSignatureWithHttpInfo(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, int operationIndex = 0) + { + // verify the required parameter 'verifyWebhookSignatureOptions' is set + if (verifyWebhookSignatureOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'verifyWebhookSignatureOptions' when calling WebhookControllerApi->VerifyWebhookSignature"); + } + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = verifyWebhookSignatureOptions; + + localVarRequestOptions.Operation = "WebhookControllerApi.VerifyWebhookSignature"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/webhooks/verify", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("VerifyWebhookSignature", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Verify a webhook payload signature Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of VerifyWebhookSignatureResults + public async System.Threading.Tasks.Task VerifyWebhookSignatureAsync(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse localVarResponse = await VerifyWebhookSignatureWithHttpInfoAsync(verifyWebhookSignatureOptions, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Verify a webhook payload signature Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (VerifyWebhookSignatureResults) + public async System.Threading.Tasks.Task> VerifyWebhookSignatureWithHttpInfoAsync(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'verifyWebhookSignatureOptions' is set + if (verifyWebhookSignatureOptions == null) + { + throw new mailslurp_netstandard_2x.Client.ApiException(400, "Missing required parameter 'verifyWebhookSignatureOptions' when calling WebhookControllerApi->VerifyWebhookSignature"); + } + + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = verifyWebhookSignatureOptions; + + localVarRequestOptions.Operation = "WebhookControllerApi.VerifyWebhookSignature"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/webhooks/verify", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("VerifyWebhookSignature", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for webhook results for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Expected result count + /// Max time to wait in milliseconds + /// Index associated with the operation. + /// List<WebhookResultDto> + public List WaitForWebhookResults(Guid webhookId, int expectedCount, int timeout, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = WaitForWebhookResultsWithHttpInfo(webhookId, expectedCount, timeout); + return localVarResponse.Data; + } + + /// + /// Wait for webhook results for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Expected result count + /// Max time to wait in milliseconds + /// Index associated with the operation. + /// ApiResponse of List<WebhookResultDto> + public mailslurp_netstandard_2x.Client.ApiResponse> WaitForWebhookResultsWithHttpInfo(Guid webhookId, int expectedCount, int timeout, int operationIndex = 0) + { + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expectedCount", expectedCount)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + + localVarRequestOptions.Operation = "WebhookControllerApi.WaitForWebhookResults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/webhooks/{webhookId}/wait", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForWebhookResults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Wait for webhook results for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Expected result count + /// Max time to wait in milliseconds + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<WebhookResultDto> + public async System.Threading.Tasks.Task> WaitForWebhookResultsAsync(Guid webhookId, int expectedCount, int timeout, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + mailslurp_netstandard_2x.Client.ApiResponse> localVarResponse = await WaitForWebhookResultsWithHttpInfoAsync(webhookId, expectedCount, timeout, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Wait for webhook results for a webhook + /// + /// Thrown when fails to make API call + /// ID of webhook to get results for + /// Expected result count + /// Max time to wait in milliseconds + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<WebhookResultDto>) + public async System.Threading.Tasks.Task>> WaitForWebhookResultsWithHttpInfoAsync(Guid webhookId, int expectedCount, int timeout, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + mailslurp_netstandard_2x.Client.RequestOptions localVarRequestOptions = new mailslurp_netstandard_2x.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "*/*" + }; + + var localVarContentType = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = mailslurp_netstandard_2x.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("webhookId", mailslurp_netstandard_2x.Client.ClientUtils.ParameterToString(webhookId)); // path parameter + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "expectedCount", expectedCount)); + localVarRequestOptions.QueryParameters.Add(mailslurp_netstandard_2x.Client.ClientUtils.ParameterToMultiMap("", "timeout", timeout)); + + localVarRequestOptions.Operation = "WebhookControllerApi.WaitForWebhookResults"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (API_KEY) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-api-key", this.Configuration.GetApiKeyWithPrefix("x-api-key")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/webhooks/{webhookId}/wait", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("WaitForWebhookResults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/mailslurp_netstandard_2x/Client/ApiClient.cs b/src/mailslurp_netstandard_2x/Client/ApiClient.cs new file mode 100644 index 00000000..b2ad70df --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/ApiClient.cs @@ -0,0 +1,834 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Net; +using System.Reflection; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Formatters; +using System.Text; +using System.Threading; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using Newtonsoft.Json; +using Newtonsoft.Json.Serialization; +using RestSharp; +using RestSharp.Serializers; +using RestSharpMethod = RestSharp.Method; +using Polly; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// Allows RestSharp to Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON. + /// + internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer + { + private readonly IReadableConfiguration _configuration; + private static readonly string _contentType = "application/json"; + private readonly JsonSerializerSettings _serializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + public CustomJsonCodec(IReadableConfiguration configuration) + { + _configuration = configuration; + } + + public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfiguration configuration) + { + _serializerSettings = serializerSettings; + _configuration = configuration; + } + + /// + /// Serialize the object into a JSON string. + /// + /// Object to be serialized. + /// A JSON string. + public string Serialize(object obj) + { + if (obj != null && obj is mailslurp_netstandard_2x.Model.AbstractOpenAPISchema) + { + // the object to be serialized is an oneOf/anyOf schema + return ((mailslurp_netstandard_2x.Model.AbstractOpenAPISchema)obj).ToJson(); + } + else + { + return JsonConvert.SerializeObject(obj, _serializerSettings); + } + } + + public string Serialize(Parameter bodyParameter) => Serialize(bodyParameter.Value); + + public T Deserialize(RestResponse response) + { + var result = (T)Deserialize(response, typeof(T)); + return result; + } + + /// + /// Deserialize the JSON string into a proper object. + /// + /// The HTTP response. + /// Object type. + /// Object representation of the JSON string. + internal object Deserialize(RestResponse response, Type type) + { + if (type == typeof(byte[])) // return byte array + { + return response.RawBytes; + } + + // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) + if (type == typeof(Stream)) + { + var bytes = response.RawBytes; + if (response.Headers != null) + { + var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath) + ? Path.GetTempPath() + : _configuration.TempFolderPath; + var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); + foreach (var header in response.Headers) + { + var match = regex.Match(header.ToString()); + if (match.Success) + { + string fileName = filePath + ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); + File.WriteAllBytes(fileName, bytes); + return new FileStream(fileName, FileMode.Open); + } + } + } + var stream = new MemoryStream(bytes); + return stream; + } + + if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object + { + return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind); + } + + if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type + { + return Convert.ChangeType(response.Content, type); + } + + // at this point, it must be a model (json) + try + { + return JsonConvert.DeserializeObject(response.Content, type, _serializerSettings); + } + catch (Exception e) + { + throw new ApiException(500, e.Message); + } + } + + public ISerializer Serializer => this; + public IDeserializer Deserializer => this; + + public string[] AcceptedContentTypes => RestSharp.Serializers.ContentType.JsonAccept; + + public SupportsContentType SupportsContentType => contentType => + contentType.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) || + contentType.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase); + + public string ContentType + { + get { return _contentType; } + set { throw new InvalidOperationException("Not allowed to set content type."); } + } + + public DataFormat DataFormat => DataFormat.Json; + } + /// + /// Provides a default implementation of an Api client (both synchronous and asynchronous implementations), + /// encapsulating general REST accessor use cases. + /// + public partial class ApiClient : ISynchronousClient, IAsynchronousClient + { + private readonly string _baseUrl; + + /// + /// Specifies the settings on a object. + /// These settings can be adjusted to accommodate custom serialization rules. + /// + public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + /// + /// Allows for extending request processing for generated code. + /// + /// The RestSharp request object + partial void InterceptRequest(RestRequest request); + + /// + /// Allows for extending response processing for generated code. + /// + /// The RestSharp request object + /// The RestSharp response object + partial void InterceptResponse(RestRequest request, RestResponse response); + + /// + /// Initializes a new instance of the , defaulting to the global configurations' base url. + /// + public ApiClient() + { + _baseUrl = mailslurp_netstandard_2x.Client.GlobalConfiguration.Instance.BasePath; + } + + /// + /// Initializes a new instance of the + /// + /// The target service's base path in URL format. + /// + public ApiClient(string basePath) + { + if (string.IsNullOrEmpty(basePath)) + throw new ArgumentException("basePath cannot be empty"); + + _baseUrl = basePath; + } + + /// + /// Constructs the RestSharp version of an http method + /// + /// Swagger Client Custom HttpMethod + /// RestSharp's HttpMethod instance. + /// + private RestSharpMethod Method(HttpMethod method) + { + RestSharpMethod other; + switch (method) + { + case HttpMethod.Get: + other = RestSharpMethod.Get; + break; + case HttpMethod.Post: + other = RestSharpMethod.Post; + break; + case HttpMethod.Put: + other = RestSharpMethod.Put; + break; + case HttpMethod.Delete: + other = RestSharpMethod.Delete; + break; + case HttpMethod.Head: + other = RestSharpMethod.Head; + break; + case HttpMethod.Options: + other = RestSharpMethod.Options; + break; + case HttpMethod.Patch: + other = RestSharpMethod.Patch; + break; + default: + throw new ArgumentOutOfRangeException("method", method, null); + } + + return other; + } + + /// + /// Provides all logic for constructing a new RestSharp . + /// At this point, all information for querying the service is known. Here, it is simply + /// mapped into the RestSharp request. + /// + /// The http verb. + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// [private] A new RestRequest instance. + /// + private RestRequest NewRequest( + HttpMethod method, + string path, + RequestOptions options, + IReadableConfiguration configuration) + { + if (path == null) throw new ArgumentNullException("path"); + if (options == null) throw new ArgumentNullException("options"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + RestRequest request = new RestRequest(path, Method(method)); + + if (options.PathParameters != null) + { + foreach (var pathParam in options.PathParameters) + { + request.AddParameter(pathParam.Key, pathParam.Value, ParameterType.UrlSegment); + } + } + + if (options.QueryParameters != null) + { + foreach (var queryParam in options.QueryParameters) + { + foreach (var value in queryParam.Value) + { + request.AddQueryParameter(queryParam.Key, value); + } + } + } + + if (configuration.DefaultHeaders != null) + { + foreach (var headerParam in configuration.DefaultHeaders) + { + request.AddHeader(headerParam.Key, headerParam.Value); + } + } + + if (options.HeaderParameters != null) + { + foreach (var headerParam in options.HeaderParameters) + { + foreach (var value in headerParam.Value) + { + request.AddHeader(headerParam.Key, value); + } + } + } + + if (options.FormParameters != null) + { + foreach (var formParam in options.FormParameters) + { + request.AddParameter(formParam.Key, formParam.Value); + } + } + + if (options.Data != null) + { + if (options.Data is Stream stream) + { + var contentType = "application/octet-stream"; + if (options.HeaderParameters != null) + { + var contentTypes = options.HeaderParameters["Content-Type"]; + contentType = contentTypes[0]; + } + + var bytes = ClientUtils.ReadAsBytes(stream); + request.AddParameter(contentType, bytes, ParameterType.RequestBody); + } + else + { + if (options.HeaderParameters != null) + { + var contentTypes = options.HeaderParameters["Content-Type"]; + if (contentTypes == null || contentTypes.Any(header => header.Contains("application/json"))) + { + request.RequestFormat = DataFormat.Json; + } + else + { + // TODO: Generated client user should add additional handlers. RestSharp only supports XML and JSON, with XML as default. + } + } + else + { + // Here, we'll assume JSON APIs are more common. XML can be forced by adding produces/consumes to openapi spec explicitly. + request.RequestFormat = DataFormat.Json; + } + + request.AddJsonBody(options.Data); + } + } + + if (options.FileParameters != null) + { + foreach (var fileParam in options.FileParameters) + { + foreach (var file in fileParam.Value) + { + var bytes = ClientUtils.ReadAsBytes(file); + var fileStream = file as FileStream; + if (fileStream != null) + request.AddFile(fileParam.Key, bytes, System.IO.Path.GetFileName(fileStream.Name)); + else + request.AddFile(fileParam.Key, bytes, "no_file_name_provided"); + } + } + } + + return request; + } + + private ApiResponse ToApiResponse(RestResponse response) + { + T result = response.Data; + string rawContent = response.Content; + + var transformed = new ApiResponse(response.StatusCode, new Multimap(), result, rawContent) + { + ErrorText = response.ErrorMessage, + Cookies = new List() + }; + + if (response.Headers != null) + { + foreach (var responseHeader in response.Headers) + { + transformed.Headers.Add(responseHeader.Name, ClientUtils.ParameterToString(responseHeader.Value)); + } + } + + if (response.ContentHeaders != null) + { + foreach (var responseHeader in response.ContentHeaders) + { + transformed.Headers.Add(responseHeader.Name, ClientUtils.ParameterToString(responseHeader.Value)); + } + } + + if (response.Cookies != null) + { + foreach (var responseCookies in response.Cookies.Cast()) + { + transformed.Cookies.Add( + new Cookie( + responseCookies.Name, + responseCookies.Value, + responseCookies.Path, + responseCookies.Domain) + ); + } + } + + return transformed; + } + + private ApiResponse Exec(RestRequest req, RequestOptions options, IReadableConfiguration configuration) + { + var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; + + var cookies = new CookieContainer(); + + if (options.Cookies != null && options.Cookies.Count > 0) + { + foreach (var cookie in options.Cookies) + { + cookies.Add(new Cookie(cookie.Name, cookie.Value)); + } + } + + var clientOptions = new RestClientOptions(baseUrl) + { + ClientCertificates = configuration.ClientCertificates, + CookieContainer = cookies, + MaxTimeout = configuration.Timeout, + Proxy = configuration.Proxy, + UserAgent = configuration.UserAgent + }; + + RestClient client = new RestClient(clientOptions) + .UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)); + + InterceptRequest(req); + + RestResponse response; + if (RetryConfiguration.RetryPolicy != null) + { + var policy = RetryConfiguration.RetryPolicy; + var policyResult = policy.ExecuteAndCapture(() => client.Execute(req)); + response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse + { + Request = req, + ErrorException = policyResult.FinalException + }; + } + else + { + response = client.Execute(req); + } + + // if the response type is oneOf/anyOf, call FromJSON to deserialize the data + if (typeof(mailslurp_netstandard_2x.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + { + try + { + response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); + } + catch (Exception ex) + { + throw ex.InnerException != null ? ex.InnerException : ex; + } + } + else if (typeof(T).Name == "Stream") // for binary response + { + response.Data = (T)(object)new MemoryStream(response.RawBytes); + } + else if (typeof(T).Name == "Byte[]") // for byte response + { + response.Data = (T)(object)response.RawBytes; + } + else if (typeof(T).Name == "String") // for string response + { + response.Data = (T)(object)response.Content; + } + + InterceptResponse(req, response); + + var result = ToApiResponse(response); + if (response.ErrorMessage != null) + { + result.ErrorText = response.ErrorMessage; + } + + if (response.Cookies != null && response.Cookies.Count > 0) + { + if (result.Cookies == null) result.Cookies = new List(); + foreach (var restResponseCookie in response.Cookies.Cast()) + { + var cookie = new Cookie( + restResponseCookie.Name, + restResponseCookie.Value, + restResponseCookie.Path, + restResponseCookie.Domain + ) + { + Comment = restResponseCookie.Comment, + CommentUri = restResponseCookie.CommentUri, + Discard = restResponseCookie.Discard, + Expired = restResponseCookie.Expired, + Expires = restResponseCookie.Expires, + HttpOnly = restResponseCookie.HttpOnly, + Port = restResponseCookie.Port, + Secure = restResponseCookie.Secure, + Version = restResponseCookie.Version + }; + + result.Cookies.Add(cookie); + } + } + return result; + } + + private async Task> ExecAsync(RestRequest req, RequestOptions options, IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; + + var clientOptions = new RestClientOptions(baseUrl) + { + ClientCertificates = configuration.ClientCertificates, + MaxTimeout = configuration.Timeout, + Proxy = configuration.Proxy, + UserAgent = configuration.UserAgent + }; + + RestClient client = new RestClient(clientOptions) + .UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)); + + InterceptRequest(req); + + RestResponse response; + if (RetryConfiguration.AsyncRetryPolicy != null) + { + var policy = RetryConfiguration.AsyncRetryPolicy; + var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(req, ct), cancellationToken).ConfigureAwait(false); + response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse + { + Request = req, + ErrorException = policyResult.FinalException + }; + } + else + { + response = await client.ExecuteAsync(req, cancellationToken).ConfigureAwait(false); + } + + // if the response type is oneOf/anyOf, call FromJSON to deserialize the data + if (typeof(mailslurp_netstandard_2x.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + { + response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); + } + else if (typeof(T).Name == "Stream") // for binary response + { + response.Data = (T)(object)new MemoryStream(response.RawBytes); + } + else if (typeof(T).Name == "Byte[]") // for byte response + { + response.Data = (T)(object)response.RawBytes; + } + + InterceptResponse(req, response); + + var result = ToApiResponse(response); + if (response.ErrorMessage != null) + { + result.ErrorText = response.ErrorMessage; + } + + if (response.Cookies != null && response.Cookies.Count > 0) + { + if (result.Cookies == null) result.Cookies = new List(); + foreach (var restResponseCookie in response.Cookies.Cast()) + { + var cookie = new Cookie( + restResponseCookie.Name, + restResponseCookie.Value, + restResponseCookie.Path, + restResponseCookie.Domain + ) + { + Comment = restResponseCookie.Comment, + CommentUri = restResponseCookie.CommentUri, + Discard = restResponseCookie.Discard, + Expired = restResponseCookie.Expired, + Expires = restResponseCookie.Expires, + HttpOnly = restResponseCookie.HttpOnly, + Port = restResponseCookie.Port, + Secure = restResponseCookie.Secure, + Version = restResponseCookie.Version + }; + + result.Cookies.Add(cookie); + } + } + return result; + } + + #region IAsynchronousClient + /// + /// Make a HTTP GET request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP POST request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP PUT request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP DELETE request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP HEAD request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP OPTION request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP PATCH request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Patch, path, options, config), options, config, cancellationToken); + } + #endregion IAsynchronousClient + + #region ISynchronousClient + /// + /// Make a HTTP GET request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Get, path, options, config), options, config); + } + + /// + /// Make a HTTP POST request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Post, path, options, config), options, config); + } + + /// + /// Make a HTTP PUT request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Put, path, options, config), options, config); + } + + /// + /// Make a HTTP DELETE request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Delete, path, options, config), options, config); + } + + /// + /// Make a HTTP HEAD request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Head, path, options, config), options, config); + } + + /// + /// Make a HTTP OPTION request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Options, path, options, config), options, config); + } + + /// + /// Make a HTTP PATCH request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Patch, path, options, config), options, config); + } + #endregion ISynchronousClient + } +} diff --git a/src/mailslurp_netstandard_2x/Client/ApiException.cs b/src/mailslurp_netstandard_2x/Client/ApiException.cs new file mode 100644 index 00000000..6079dec1 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/ApiException.cs @@ -0,0 +1,69 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// API Exception + /// + public class ApiException : Exception + { + /// + /// Gets or sets the error code (HTTP status code) + /// + /// The error code (HTTP status code). + public int ErrorCode { get; set; } + + /// + /// Gets or sets the error content (body json object) + /// + /// The error content (Http response body). + public object ErrorContent { get; private set; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + public Multimap Headers { get; private set; } + + /// + /// Initializes a new instance of the class. + /// + public ApiException() { } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Error message. + public ApiException(int errorCode, string message) : base(message) + { + this.ErrorCode = errorCode; + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Error message. + /// Error content. + /// HTTP Headers. + public ApiException(int errorCode, string message, object errorContent = null, Multimap headers = null) : base(message) + { + this.ErrorCode = errorCode; + this.ErrorContent = errorContent; + this.Headers = headers; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Client/ApiResponse.cs b/src/mailslurp_netstandard_2x/Client/ApiResponse.cs new file mode 100644 index 00000000..b44554ba --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/ApiResponse.cs @@ -0,0 +1,167 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Net; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// Provides a non-generic contract for the ApiResponse wrapper. + /// + public interface IApiResponse + { + /// + /// The data type of + /// + Type ResponseType { get; } + + /// + /// The content of this response + /// + Object Content { get; } + + /// + /// Gets or sets the status code (HTTP status code) + /// + /// The status code. + HttpStatusCode StatusCode { get; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + Multimap Headers { get; } + + /// + /// Gets or sets any error text defined by the calling client. + /// + string ErrorText { get; set; } + + /// + /// Gets or sets any cookies passed along on the response. + /// + List Cookies { get; set; } + + /// + /// The raw content of this response + /// + string RawContent { get; } + } + + /// + /// API Response + /// + public class ApiResponse : IApiResponse + { + #region Properties + + /// + /// Gets or sets the status code (HTTP status code) + /// + /// The status code. + public HttpStatusCode StatusCode { get; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + public Multimap Headers { get; } + + /// + /// Gets or sets the data (parsed HTTP body) + /// + /// The data. + public T Data { get; } + + /// + /// Gets or sets any error text defined by the calling client. + /// + public string ErrorText { get; set; } + + /// + /// Gets or sets any cookies passed along on the response. + /// + public List Cookies { get; set; } + + /// + /// The content of this response + /// + public Type ResponseType + { + get { return typeof(T); } + } + + /// + /// The data type of + /// + public object Content + { + get { return Data; } + } + + /// + /// The raw content + /// + public string RawContent { get; } + + #endregion Properties + + #region Constructors + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// HTTP headers. + /// Data (parsed HTTP body) + /// Raw content. + public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data, string rawContent) + { + StatusCode = statusCode; + Headers = headers; + Data = data; + RawContent = rawContent; + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// HTTP headers. + /// Data (parsed HTTP body) + public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data) : this(statusCode, headers, data, null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Data (parsed HTTP body) + /// Raw content. + public ApiResponse(HttpStatusCode statusCode, T data, string rawContent) : this(statusCode, null, data, rawContent) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Data (parsed HTTP body) + public ApiResponse(HttpStatusCode statusCode, T data) : this(statusCode, data, null) + { + } + + #endregion Constructors + } +} diff --git a/src/mailslurp_netstandard_2x/Client/ClientUtils.cs b/src/mailslurp_netstandard_2x/Client/ClientUtils.cs new file mode 100644 index 00000000..bd65e7f5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/ClientUtils.cs @@ -0,0 +1,243 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// Utility functions providing some benefit to API client consumers. + /// + public static class ClientUtils + { + /// + /// Sanitize filename by removing the path + /// + /// Filename + /// Filename + public static string SanitizeFilename(string filename) + { + Match match = Regex.Match(filename, @".*[/\\](.*)$"); + return match.Success ? match.Groups[1].Value : filename; + } + + /// + /// Convert params to key/value pairs. + /// Use collectionFormat to properly format lists and collections. + /// + /// The swagger-supported collection format, one of: csv, tsv, ssv, pipes, multi + /// Key name. + /// Value object. + /// A multimap of keys with 1..n associated values. + public static Multimap ParameterToMultiMap(string collectionFormat, string name, object value) + { + var parameters = new Multimap(); + + if (value is ICollection collection && collectionFormat == "multi") + { + foreach (var item in collection) + { + parameters.Add(name, ParameterToString(item)); + } + } + else if (value is IDictionary dictionary) + { + if(collectionFormat == "deepObject") { + foreach (DictionaryEntry entry in dictionary) + { + parameters.Add(name + "[" + entry.Key + "]", ParameterToString(entry.Value)); + } + } + else { + foreach (DictionaryEntry entry in dictionary) + { + parameters.Add(entry.Key.ToString(), ParameterToString(entry.Value)); + } + } + } + else + { + parameters.Add(name, ParameterToString(value)); + } + + return parameters; + } + + /// + /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime. + /// If parameter is a list, join the list with ",". + /// Otherwise just return the string. + /// + /// The parameter (header, path, query, form). + /// An optional configuration instance, providing formatting options used in processing. + /// Formatted string. + public static string ParameterToString(object obj, IReadableConfiguration configuration = null) + { + if (obj is DateTime dateTime) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15T13:45:30.0000000 + return dateTime.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); + if (obj is DateTimeOffset dateTimeOffset) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15T13:45:30.0000000 + return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); + if (obj is bool boolean) + return boolean ? "true" : "false"; + if (obj is ICollection collection) + return string.Join(",", collection.Cast()); + if (obj is Enum && HasEnumMemberAttrValue(obj)) + return GetEnumMemberAttrValue(obj); + + return Convert.ToString(obj, CultureInfo.InvariantCulture); + } + + /// + /// Serializes the given object when not null. Otherwise return null. + /// + /// The object to serialize. + /// Serialized string. + public static string Serialize(object obj) + { + return obj != null ? Newtonsoft.Json.JsonConvert.SerializeObject(obj) : null; + } + + /// + /// Encode string in base64 format. + /// + /// string to be encoded. + /// Encoded string. + public static string Base64Encode(string text) + { + return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text)); + } + + /// + /// Convert stream to byte array + /// + /// Input stream to be converted + /// Byte array + public static byte[] ReadAsBytes(Stream inputStream) + { + using (var ms = new MemoryStream()) + { + inputStream.CopyTo(ms); + return ms.ToArray(); + } + } + + /// + /// Select the Content-Type header's value from the given content-type array: + /// if JSON type exists in the given array, use it; + /// otherwise use the first one defined in 'consumes' + /// + /// The Content-Type array to select from. + /// The Content-Type header to use. + public static string SelectHeaderContentType(string[] contentTypes) + { + if (contentTypes.Length == 0) + return null; + + foreach (var contentType in contentTypes) + { + if (IsJsonMime(contentType)) + return contentType; + } + + return contentTypes[0]; // use the first content type specified in 'consumes' + } + + /// + /// Select the Accept header's value from the given accepts array: + /// if JSON exists in the given array, use it; + /// otherwise use all of them (joining into a string) + /// + /// The accepts array to select from. + /// The Accept header to use. + public static string SelectHeaderAccept(string[] accepts) + { + if (accepts.Length == 0) + return null; + + if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase)) + return "application/json"; + + return string.Join(",", accepts); + } + + /// + /// Provides a case-insensitive check that a provided content type is a known JSON-like content type. + /// + public static readonly Regex JsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); + + /// + /// Check if the given MIME is a JSON MIME. + /// JSON MIME examples: + /// application/json + /// application/json; charset=UTF8 + /// APPLICATION/JSON + /// application/vnd.company+json + /// + /// MIME + /// Returns True if MIME type is json. + public static bool IsJsonMime(string mime) + { + if (string.IsNullOrWhiteSpace(mime)) return false; + + return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json"); + } + + /// + /// Is the Enum decorated with EnumMember Attribute + /// + /// + /// true if found + private static bool HasEnumMemberAttrValue(object enumVal) + { + if (enumVal == null) + throw new ArgumentNullException(nameof(enumVal)); + var enumType = enumVal.GetType(); + var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); + var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); + if (attr != null) return true; + return false; + } + + /// + /// Get the EnumMember value + /// + /// + /// EnumMember value as string otherwise null + private static string GetEnumMemberAttrValue(object enumVal) + { + if (enumVal == null) + throw new ArgumentNullException(nameof(enumVal)); + var enumType = enumVal.GetType(); + var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); + var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); + if (attr != null) + { + return attr.Value; + } + return null; + } + } +} diff --git a/src/mailslurp_netstandard_2x/Client/Configuration.cs b/src/mailslurp_netstandard_2x/Client/Configuration.cs new file mode 100644 index 00000000..82e00fd0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/Configuration.cs @@ -0,0 +1,588 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Net; +using System.Reflection; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Net.Http; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// Represents a set of configuration settings + /// + public class Configuration : IReadableConfiguration + { + #region Constants + + /// + /// Version of the package. + /// + /// Version of the package. + public const string Version = "15.19.14"; + + /// + /// Identifier for ISO 8601 DateTime Format + /// + /// See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information. + // ReSharper disable once InconsistentNaming + public const string ISO8601_DATETIME_FORMAT = "o"; + + #endregion Constants + + #region Static Members + + /// + /// Default creation of exceptions for a given method name and response object + /// + public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) => + { + var status = (int)response.StatusCode; + if (status >= 400) + { + return new ApiException(status, + string.Format("Error calling {0}: {1}", methodName, response.RawContent), + response.RawContent, response.Headers); + } + return null; + }; + + #endregion Static Members + + #region Private Members + + /// + /// Defines the base path of the target API server. + /// Example: http://localhost:3000/v1/ + /// + private string _basePath; + + /// + /// Gets or sets the API key based on the authentication name. + /// This is the key and value comprising the "secret" for accessing an API. + /// + /// The API key. + private IDictionary _apiKey; + + /// + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// + /// The prefix of the API key. + private IDictionary _apiKeyPrefix; + + private string _dateTimeFormat = ISO8601_DATETIME_FORMAT; + private string _tempFolderPath = Path.GetTempPath(); + + /// + /// Gets or sets the servers defined in the OpenAPI spec. + /// + /// The servers + private IList> _servers; + + /// + /// Gets or sets the operation servers defined in the OpenAPI spec. + /// + /// The operation servers + private IReadOnlyDictionary>> _operationServers; + + #endregion Private Members + + #region Constructors + + /// + /// Initializes a new instance of the class + /// + [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + public Configuration() + { + Proxy = null; + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/15.19.14/csharp"); + BasePath = "https://csharp.api.mailslurp.com"; + DefaultHeaders = new ConcurrentDictionary(); + ApiKey = new ConcurrentDictionary(); + ApiKeyPrefix = new ConcurrentDictionary(); + Servers = new List>() + { + { + new Dictionary { + {"url", "https://csharp.api.mailslurp.com"}, + {"description", "MailSlurp API Server"}, + } + } + }; + OperationServers = new Dictionary>>() + { + }; + + // Setting Timeout has side effects (forces ApiClient creation). + Timeout = 100000; + } + + /// + /// Initializes a new instance of the class + /// + [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + public Configuration( + IDictionary defaultHeaders, + IDictionary apiKey, + IDictionary apiKeyPrefix, + string basePath = "https://csharp.api.mailslurp.com") : this() + { + if (string.IsNullOrWhiteSpace(basePath)) + throw new ArgumentException("The provided basePath is invalid.", "basePath"); + if (defaultHeaders == null) + throw new ArgumentNullException("defaultHeaders"); + if (apiKey == null) + throw new ArgumentNullException("apiKey"); + if (apiKeyPrefix == null) + throw new ArgumentNullException("apiKeyPrefix"); + + BasePath = basePath; + + foreach (var keyValuePair in defaultHeaders) + { + DefaultHeaders.Add(keyValuePair); + } + + foreach (var keyValuePair in apiKey) + { + ApiKey.Add(keyValuePair); + } + + foreach (var keyValuePair in apiKeyPrefix) + { + ApiKeyPrefix.Add(keyValuePair); + } + } + + #endregion Constructors + + #region Properties + + /// + /// Gets or sets the base path for API access. + /// + public virtual string BasePath { + get { return _basePath; } + set { _basePath = value; } + } + + /// + /// Gets or sets the default header. + /// + [Obsolete("Use DefaultHeaders instead.")] + public virtual IDictionary DefaultHeader + { + get + { + return DefaultHeaders; + } + set + { + DefaultHeaders = value; + } + } + + /// + /// Gets or sets the default headers. + /// + public virtual IDictionary DefaultHeaders { get; set; } + + /// + /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds. + /// + public virtual int Timeout { get; set; } + + /// + /// Gets or sets the proxy + /// + /// Proxy. + public virtual WebProxy Proxy { get; set; } + + /// + /// Gets or sets the HTTP user agent. + /// + /// Http user agent. + public virtual string UserAgent { get; set; } + + /// + /// Gets or sets the username (HTTP basic authentication). + /// + /// The username. + public virtual string Username { get; set; } + + /// + /// Gets or sets the password (HTTP basic authentication). + /// + /// The password. + public virtual string Password { get; set; } + + /// + /// Gets the API key with prefix. + /// + /// API key identifier (authentication scheme). + /// API key with prefix. + public string GetApiKeyWithPrefix(string apiKeyIdentifier) + { + string apiKeyValue; + ApiKey.TryGetValue(apiKeyIdentifier, out apiKeyValue); + string apiKeyPrefix; + if (ApiKeyPrefix.TryGetValue(apiKeyIdentifier, out apiKeyPrefix)) + { + return apiKeyPrefix + " " + apiKeyValue; + } + + return apiKeyValue; + } + + /// + /// Gets or sets certificate collection to be sent with requests. + /// + /// X509 Certificate collection. + public X509CertificateCollection ClientCertificates { get; set; } + + /// + /// Gets or sets the access token for OAuth2 authentication. + /// + /// This helper property simplifies code generation. + /// + /// The access token. + public virtual string AccessToken { get; set; } + + /// + /// Gets or sets the temporary folder path to store the files downloaded from the server. + /// + /// Folder path. + public virtual string TempFolderPath + { + get { return _tempFolderPath; } + + set + { + if (string.IsNullOrEmpty(value)) + { + _tempFolderPath = Path.GetTempPath(); + return; + } + + // create the directory if it does not exist + if (!Directory.Exists(value)) + { + Directory.CreateDirectory(value); + } + + // check if the path contains directory separator at the end + if (value[value.Length - 1] == Path.DirectorySeparatorChar) + { + _tempFolderPath = value; + } + else + { + _tempFolderPath = value + Path.DirectorySeparatorChar; + } + } + } + + /// + /// Gets or sets the date time format used when serializing in the ApiClient + /// By default, it's set to ISO 8601 - "o", for others see: + /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx + /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx + /// No validation is done to ensure that the string you're providing is valid + /// + /// The DateTimeFormat string + public virtual string DateTimeFormat + { + get { return _dateTimeFormat; } + set + { + if (string.IsNullOrEmpty(value)) + { + // Never allow a blank or null string, go back to the default + _dateTimeFormat = ISO8601_DATETIME_FORMAT; + return; + } + + // Caution, no validation when you choose date time format other than ISO 8601 + // Take a look at the above links + _dateTimeFormat = value; + } + } + + /// + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// + /// Whatever you set here will be prepended to the value defined in AddApiKey. + /// + /// An example invocation here might be: + /// + /// ApiKeyPrefix["Authorization"] = "Bearer"; + /// + /// … where ApiKey["Authorization"] would then be used to set the value of your bearer token. + /// + /// + /// OAuth2 workflows should set tokens via AccessToken. + /// + /// + /// The prefix of the API key. + public virtual IDictionary ApiKeyPrefix + { + get { return _apiKeyPrefix; } + set + { + if (value == null) + { + throw new InvalidOperationException("ApiKeyPrefix collection may not be null."); + } + _apiKeyPrefix = value; + } + } + + /// + /// Gets or sets the API key based on the authentication name. + /// + /// The API key. + public virtual IDictionary ApiKey + { + get { return _apiKey; } + set + { + if (value == null) + { + throw new InvalidOperationException("ApiKey collection may not be null."); + } + _apiKey = value; + } + } + + /// + /// Gets or sets the servers. + /// + /// The servers. + public virtual IList> Servers + { + get { return _servers; } + set + { + if (value == null) + { + throw new InvalidOperationException("Servers may not be null."); + } + _servers = value; + } + } + + /// + /// Gets or sets the operation servers. + /// + /// The operation servers. + public virtual IReadOnlyDictionary>> OperationServers + { + get { return _operationServers; } + set + { + if (value == null) + { + throw new InvalidOperationException("Operation servers may not be null."); + } + _operationServers = value; + } + } + + /// + /// Returns URL based on server settings without providing values + /// for the variables + /// + /// Array index of the server settings. + /// The server URL. + public string GetServerUrl(int index) + { + return GetServerUrl(Servers, index, null); + } + + /// + /// Returns URL based on server settings. + /// + /// Array index of the server settings. + /// Dictionary of the variables and the corresponding values. + /// The server URL. + public string GetServerUrl(int index, Dictionary inputVariables) + { + return GetServerUrl(Servers, index, inputVariables); + } + + /// + /// Returns URL based on operation server settings. + /// + /// Operation associated with the request path. + /// Array index of the server settings. + /// The operation server URL. + public string GetOperationServerUrl(string operation, int index) + { + return GetOperationServerUrl(operation, index, null); + } + + /// + /// Returns URL based on operation server settings. + /// + /// Operation associated with the request path. + /// Array index of the server settings. + /// Dictionary of the variables and the corresponding values. + /// The operation server URL. + public string GetOperationServerUrl(string operation, int index, Dictionary inputVariables) + { + if (OperationServers.TryGetValue(operation, out var operationServer)) + { + return GetServerUrl(operationServer, index, inputVariables); + } + + return null; + } + + /// + /// Returns URL based on server settings. + /// + /// Dictionary of server settings. + /// Array index of the server settings. + /// Dictionary of the variables and the corresponding values. + /// The server URL. + private string GetServerUrl(IList> servers, int index, Dictionary inputVariables) + { + if (index < 0 || index >= servers.Count) + { + throw new InvalidOperationException($"Invalid index {index} when selecting the server. Must be less than {servers.Count}."); + } + + if (inputVariables == null) + { + inputVariables = new Dictionary(); + } + + IReadOnlyDictionary server = servers[index]; + string url = (string)server["url"]; + + if (server.ContainsKey("variables")) + { + // go through each variable and assign a value + foreach (KeyValuePair variable in (IReadOnlyDictionary)server["variables"]) + { + + IReadOnlyDictionary serverVariables = (IReadOnlyDictionary)(variable.Value); + + if (inputVariables.ContainsKey(variable.Key)) + { + if (((List)serverVariables["enum_values"]).Contains(inputVariables[variable.Key])) + { + url = url.Replace("{" + variable.Key + "}", inputVariables[variable.Key]); + } + else + { + throw new InvalidOperationException($"The variable `{variable.Key}` in the server URL has invalid value #{inputVariables[variable.Key]}. Must be {(List)serverVariables["enum_values"]}"); + } + } + else + { + // use default value + url = url.Replace("{" + variable.Key + "}", (string)serverVariables["default_value"]); + } + } + } + + return url; + } + + #endregion Properties + + #region Methods + + /// + /// Returns a string with essential information for debugging. + /// + public static string ToDebugReport() + { + string report = "C# SDK (mailslurp_netstandard_2x) Debug Report:\n"; + report += " OS: " + System.Environment.OSVersion + "\n"; + report += " .NET Framework Version: " + System.Environment.Version + "\n"; + report += " Version of the API: 6.5.2\n"; + report += " SDK Package Version: 15.19.14\n"; + + return report; + } + + /// + /// Add Api Key Header. + /// + /// Api Key name. + /// Api Key value. + /// + public void AddApiKey(string key, string value) + { + ApiKey[key] = value; + } + + /// + /// Sets the API key prefix. + /// + /// Api Key name. + /// Api Key value. + public void AddApiKeyPrefix(string key, string value) + { + ApiKeyPrefix[key] = value; + } + + #endregion Methods + + #region Static Members + /// + /// Merge configurations. + /// + /// First configuration. + /// Second configuration. + /// Merged configuration. + public static IReadableConfiguration MergeConfigurations(IReadableConfiguration first, IReadableConfiguration second) + { + if (second == null) return first ?? GlobalConfiguration.Instance; + + Dictionary apiKey = first.ApiKey.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + Dictionary apiKeyPrefix = first.ApiKeyPrefix.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + Dictionary defaultHeaders = first.DefaultHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + + foreach (var kvp in second.ApiKey) apiKey[kvp.Key] = kvp.Value; + foreach (var kvp in second.ApiKeyPrefix) apiKeyPrefix[kvp.Key] = kvp.Value; + foreach (var kvp in second.DefaultHeaders) defaultHeaders[kvp.Key] = kvp.Value; + + var config = new Configuration + { + ApiKey = apiKey, + ApiKeyPrefix = apiKeyPrefix, + DefaultHeaders = defaultHeaders, + BasePath = second.BasePath ?? first.BasePath, + Timeout = second.Timeout, + Proxy = second.Proxy ?? first.Proxy, + UserAgent = second.UserAgent ?? first.UserAgent, + Username = second.Username ?? first.Username, + Password = second.Password ?? first.Password, + AccessToken = second.AccessToken ?? first.AccessToken, + TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + ClientCertificates = second.ClientCertificates ?? first.ClientCertificates, + }; + return config; + } + #endregion Static Members + } +} diff --git a/src/mailslurp_netstandard_2x/Client/ExceptionFactory.cs b/src/mailslurp_netstandard_2x/Client/ExceptionFactory.cs new file mode 100644 index 00000000..4691dc76 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/ExceptionFactory.cs @@ -0,0 +1,23 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// A delegate to ExceptionFactory method + /// + /// Method name + /// Response + /// Exceptions + public delegate Exception ExceptionFactory(string methodName, IApiResponse response); +} diff --git a/src/mailslurp_netstandard_2x/Client/GlobalConfiguration.cs b/src/mailslurp_netstandard_2x/Client/GlobalConfiguration.cs new file mode 100644 index 00000000..e4b9eebc --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/GlobalConfiguration.cs @@ -0,0 +1,68 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System.Collections.Generic; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// provides a compile-time extension point for globally configuring + /// API Clients. + /// + /// + /// A customized implementation via partial class may reside in another file and may + /// be excluded from automatic generation via a .openapi-generator-ignore file. + /// + public partial class GlobalConfiguration : Configuration + { + #region Private Members + + private static readonly object GlobalConfigSync = new { }; + private static IReadableConfiguration _globalConfiguration; + + #endregion Private Members + + #region Constructors + + /// + private GlobalConfiguration() + { + } + + /// + public GlobalConfiguration(IDictionary defaultHeader, IDictionary apiKey, IDictionary apiKeyPrefix, string basePath = "http://localhost:3000/api") : base(defaultHeader, apiKey, apiKeyPrefix, basePath) + { + } + + static GlobalConfiguration() + { + Instance = new GlobalConfiguration(); + } + + #endregion Constructors + + /// + /// Gets or sets the default Configuration. + /// + /// Configuration. + public static IReadableConfiguration Instance + { + get { return _globalConfiguration; } + set + { + lock (GlobalConfigSync) + { + _globalConfiguration = value; + } + } + } + } +} diff --git a/src/mailslurp_netstandard_2x/Client/HttpMethod.cs b/src/mailslurp_netstandard_2x/Client/HttpMethod.cs new file mode 100644 index 00000000..f698afd0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/HttpMethod.cs @@ -0,0 +1,34 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// Http methods supported by swagger + /// + public enum HttpMethod + { + /// HTTP GET request. + Get, + /// HTTP POST request. + Post, + /// HTTP PUT request. + Put, + /// HTTP DELETE request. + Delete, + /// HTTP HEAD request. + Head, + /// HTTP OPTIONS request. + Options, + /// HTTP PATCH request. + Patch + } +} diff --git a/src/mailslurp_netstandard_2x/Client/IApiAccessor.cs b/src/mailslurp_netstandard_2x/Client/IApiAccessor.cs new file mode 100644 index 00000000..d1721995 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/IApiAccessor.cs @@ -0,0 +1,38 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// Represents configuration aspects required to interact with the API endpoints. + /// + public interface IApiAccessor + { + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + IReadableConfiguration Configuration { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + string GetBasePath(); + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + ExceptionFactory ExceptionFactory { get; set; } + } +} diff --git a/src/mailslurp_netstandard_2x/Client/IAsynchronousClient.cs b/src/mailslurp_netstandard_2x/Client/IAsynchronousClient.cs new file mode 100644 index 00000000..e69be9b5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/IAsynchronousClient.cs @@ -0,0 +1,101 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Threading.Tasks; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// Contract for Asynchronous RESTful API interactions. + /// + /// This interface allows consumers to provide a custom API accessor client. + /// + public interface IAsynchronousClient + { + /// + /// Executes a non-blocking call to some using the GET http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the POST http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the PUT http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the DELETE http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the HEAD http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the OPTIONS http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the PATCH http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + } +} diff --git a/src/mailslurp_netstandard_2x/Client/IReadableConfiguration.cs b/src/mailslurp_netstandard_2x/Client/IReadableConfiguration.cs new file mode 100644 index 00000000..b48937c5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/IReadableConfiguration.cs @@ -0,0 +1,130 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Net; +using System.Security.Cryptography.X509Certificates; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// Represents a readable-only configuration contract. + /// + public interface IReadableConfiguration + { + /// + /// Gets the access token. + /// + /// Access token. + string AccessToken { get; } + + /// + /// Gets the API key. + /// + /// API key. + IDictionary ApiKey { get; } + + /// + /// Gets the API key prefix. + /// + /// API key prefix. + IDictionary ApiKeyPrefix { get; } + + /// + /// Gets the base path. + /// + /// Base path. + string BasePath { get; } + + /// + /// Gets the date time format. + /// + /// Date time format. + string DateTimeFormat { get; } + + /// + /// Gets the default header. + /// + /// Default header. + [Obsolete("Use DefaultHeaders instead.")] + IDictionary DefaultHeader { get; } + + /// + /// Gets the default headers. + /// + /// Default headers. + IDictionary DefaultHeaders { get; } + + /// + /// Gets the temp folder path. + /// + /// Temp folder path. + string TempFolderPath { get; } + + /// + /// Gets the HTTP connection timeout (in milliseconds) + /// + /// HTTP connection timeout. + int Timeout { get; } + + /// + /// Gets the proxy. + /// + /// Proxy. + WebProxy Proxy { get; } + + /// + /// Gets the user agent. + /// + /// User agent. + string UserAgent { get; } + + /// + /// Gets the username. + /// + /// Username. + string Username { get; } + + /// + /// Gets the password. + /// + /// Password. + string Password { get; } + + /// + /// Get the servers associated with the operation. + /// + /// Operation servers. + IReadOnlyDictionary>> OperationServers { get; } + + /// + /// Gets the API key with prefix. + /// + /// API key identifier (authentication scheme). + /// API key with prefix. + string GetApiKeyWithPrefix(string apiKeyIdentifier); + + /// + /// Gets the Operation server url at the provided index. + /// + /// Operation server name. + /// Index of the operation server settings. + /// + string GetOperationServerUrl(string operation, int index); + + /// + /// Gets certificate collection to be sent with requests. + /// + /// X509 Certificate collection. + X509CertificateCollection ClientCertificates { get; } + } +} diff --git a/src/mailslurp_netstandard_2x/Client/ISynchronousClient.cs b/src/mailslurp_netstandard_2x/Client/ISynchronousClient.cs new file mode 100644 index 00000000..44a845f0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/ISynchronousClient.cs @@ -0,0 +1,94 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.IO; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// Contract for Synchronous RESTful API interactions. + /// + /// This interface allows consumers to provide a custom API accessor client. + /// + public interface ISynchronousClient + { + /// + /// Executes a blocking call to some using the GET http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the POST http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the PUT http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the DELETE http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the HEAD http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the OPTIONS http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the PATCH http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null); + } +} diff --git a/src/mailslurp_netstandard_2x/Client/Multimap.cs b/src/mailslurp_netstandard_2x/Client/Multimap.cs new file mode 100644 index 00000000..1902ca09 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/Multimap.cs @@ -0,0 +1,296 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// A dictionary in which one key has many associated values. + /// + /// The type of the key + /// The type of the value associated with the key. + public class Multimap : IDictionary> + { + #region Private Fields + + private readonly Dictionary> _dictionary; + + #endregion Private Fields + + #region Constructors + + /// + /// Empty Constructor. + /// + public Multimap() + { + _dictionary = new Dictionary>(); + } + + /// + /// Constructor with comparer. + /// + /// + public Multimap(IEqualityComparer comparer) + { + _dictionary = new Dictionary>(comparer); + } + + #endregion Constructors + + #region Enumerators + + /// + /// To get the enumerator. + /// + /// Enumerator + public IEnumerator>> GetEnumerator() + { + return _dictionary.GetEnumerator(); + } + + /// + /// To get the enumerator. + /// + /// Enumerator + IEnumerator IEnumerable.GetEnumerator() + { + return _dictionary.GetEnumerator(); + } + + #endregion Enumerators + + #region Public Members + /// + /// Add values to Multimap + /// + /// Key value pair + public void Add(KeyValuePair> item) + { + if (!TryAdd(item.Key, item.Value)) + throw new InvalidOperationException("Could not add values to Multimap."); + } + + /// + /// Add Multimap to Multimap + /// + /// Multimap + public void Add(Multimap multimap) + { + foreach (var item in multimap) + { + if (!TryAdd(item.Key, item.Value)) + throw new InvalidOperationException("Could not add values to Multimap."); + } + } + + /// + /// Clear Multimap + /// + public void Clear() + { + _dictionary.Clear(); + } + + /// + /// Determines whether Multimap contains the specified item. + /// + /// Key value pair + /// Method needs to be implemented + /// true if the Multimap contains the item; otherwise, false. + public bool Contains(KeyValuePair> item) + { + throw new NotImplementedException(); + } + + /// + /// Copy items of the Multimap to an array, + /// starting at a particular array index. + /// + /// The array that is the destination of the items copied + /// from Multimap. The array must have zero-based indexing. + /// The zero-based index in array at which copying begins. + /// Method needs to be implemented + public void CopyTo(KeyValuePair>[] array, int arrayIndex) + { + throw new NotImplementedException(); + } + + /// + /// Removes the specified item from the Multimap. + /// + /// Key value pair + /// true if the item is successfully removed; otherwise, false. + /// Method needs to be implemented + public bool Remove(KeyValuePair> item) + { + throw new NotImplementedException(); + } + + /// + /// Gets the number of items contained in the Multimap. + /// + public int Count => _dictionary.Count; + + /// + /// Gets a value indicating whether the Multimap is read-only. + /// + public bool IsReadOnly => false; + + /// + /// Adds an item with the provided key and value to the Multimap. + /// + /// The object to use as the key of the item to add. + /// The object to use as the value of the item to add. + /// Thrown when couldn't add the value to Multimap. + public void Add(TKey key, IList value) + { + if (value != null && value.Count > 0) + { + if (_dictionary.TryGetValue(key, out var list)) + { + foreach (var k in value) list.Add(k); + } + else + { + list = new List(value); + if (!TryAdd(key, list)) + throw new InvalidOperationException("Could not add values to Multimap."); + } + } + } + + /// + /// Determines whether the Multimap contains an item with the specified key. + /// + /// The key to locate in the Multimap. + /// true if the Multimap contains an item with + /// the key; otherwise, false. + public bool ContainsKey(TKey key) + { + return _dictionary.ContainsKey(key); + } + + /// + /// Removes item with the specified key from the Multimap. + /// + /// The key to locate in the Multimap. + /// true if the item is successfully removed; otherwise, false. + public bool Remove(TKey key) + { + return TryRemove(key, out var _); + } + + /// + /// Gets the value associated with the specified key. + /// + /// The key whose value to get. + /// When this method returns, the value associated with the specified key, if the + /// key is found; otherwise, the default value for the type of the value parameter. + /// This parameter is passed uninitialized. + /// true if the object that implements Multimap contains + /// an item with the specified key; otherwise, false. + public bool TryGetValue(TKey key, out IList value) + { + return _dictionary.TryGetValue(key, out value); + } + + /// + /// Gets or sets the item with the specified key. + /// + /// The key of the item to get or set. + /// The value of the specified key. + public IList this[TKey key] + { + get => _dictionary[key]; + set => _dictionary[key] = value; + } + + /// + /// Gets a System.Collections.Generic.ICollection containing the keys of the Multimap. + /// + public ICollection Keys => _dictionary.Keys; + + /// + /// Gets a System.Collections.Generic.ICollection containing the values of the Multimap. + /// + public ICollection> Values => _dictionary.Values; + + /// + /// Copy the items of the Multimap to an System.Array, + /// starting at a particular System.Array index. + /// + /// The one-dimensional System.Array that is the destination of the items copied + /// from Multimap. The System.Array must have zero-based indexing. + /// The zero-based index in array at which copying begins. + public void CopyTo(Array array, int index) + { + ((ICollection)_dictionary).CopyTo(array, index); + } + + /// + /// Adds an item with the provided key and value to the Multimap. + /// + /// The object to use as the key of the item to add. + /// The object to use as the value of the item to add. + /// Thrown when couldn't add value to Multimap. + public void Add(TKey key, TValue value) + { + if (value != null) + { + if (_dictionary.TryGetValue(key, out var list)) + { + list.Add(value); + } + else + { + list = new List { value }; + if (!TryAdd(key, list)) + throw new InvalidOperationException("Could not add value to Multimap."); + } + } + } + + #endregion Public Members + + #region Private Members + + /** + * Helper method to encapsulate generator differences between dictionary types. + */ + private bool TryRemove(TKey key, out IList value) + { + _dictionary.TryGetValue(key, out value); + return _dictionary.Remove(key); + } + + /** + * Helper method to encapsulate generator differences between dictionary types. + */ + private bool TryAdd(TKey key, IList value) + { + try + { + _dictionary.Add(key, value); + } + catch (ArgumentException) + { + return false; + } + + return true; + } + #endregion Private Members + } +} diff --git a/src/mailslurp_netstandard_2x/Client/OpenAPIDateConverter.cs b/src/mailslurp_netstandard_2x/Client/OpenAPIDateConverter.cs new file mode 100644 index 00000000..26817344 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/OpenAPIDateConverter.cs @@ -0,0 +1,30 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using Newtonsoft.Json.Converters; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 + /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types + /// + public class OpenAPIDateConverter : IsoDateTimeConverter + { + /// + /// Initializes a new instance of the class. + /// + public OpenAPIDateConverter() + { + // full-date = date-fullyear "-" date-month "-" date-mday + DateTimeFormat = "yyyy-MM-dd"; + } + } +} diff --git a/src/mailslurp_netstandard_2x/Client/RequestOptions.cs b/src/mailslurp_netstandard_2x/Client/RequestOptions.cs new file mode 100644 index 00000000..db57c354 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/RequestOptions.cs @@ -0,0 +1,85 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.IO; +using System.Net; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// A container for generalized request inputs. This type allows consumers to extend the request functionality + /// by abstracting away from the default (built-in) request framework (e.g. RestSharp). + /// + public class RequestOptions + { + /// + /// Parameters to be bound to path parts of the Request's URL + /// + public Dictionary PathParameters { get; set; } + + /// + /// Query parameters to be applied to the request. + /// Keys may have 1 or more values associated. + /// + public Multimap QueryParameters { get; set; } + + /// + /// Header parameters to be applied to to the request. + /// Keys may have 1 or more values associated. + /// + public Multimap HeaderParameters { get; set; } + + /// + /// Form parameters to be sent along with the request. + /// + public Dictionary FormParameters { get; set; } + + /// + /// File parameters to be sent along with the request. + /// + public Multimap FileParameters { get; set; } + + /// + /// Cookies to be sent along with the request. + /// + public List Cookies { get; set; } + + /// + /// Operation associated with the request path. + /// + public string Operation { get; set; } + + /// + /// Index associated with the operation. + /// + public int OperationIndex { get; set; } + + /// + /// Any data associated with a request body. + /// + public Object Data { get; set; } + + /// + /// Constructs a new instance of + /// + public RequestOptions() + { + PathParameters = new Dictionary(); + QueryParameters = new Multimap(); + HeaderParameters = new Multimap(); + FormParameters = new Dictionary(); + FileParameters = new Multimap(); + Cookies = new List(); + } + } +} diff --git a/src/mailslurp_netstandard_2x/Client/RetryConfiguration.cs b/src/mailslurp_netstandard_2x/Client/RetryConfiguration.cs new file mode 100644 index 00000000..c065e10d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Client/RetryConfiguration.cs @@ -0,0 +1,32 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Polly; +using RestSharp; + +namespace mailslurp_netstandard_2x.Client +{ + /// + /// Configuration class to set the polly retry policies to be applied to the requests. + /// + public static class RetryConfiguration + { + /// + /// Retry policy + /// + public static Policy RetryPolicy { get; set; } + + /// + /// Async retry policy + /// + public static AsyncPolicy AsyncRetryPolicy { get; set; } + } +} diff --git a/src/mailslurp_netstandard_2x/Model/AbstractOpenAPISchema.cs b/src/mailslurp_netstandard_2x/Model/AbstractOpenAPISchema.cs new file mode 100644 index 00000000..56d691ab --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/AbstractOpenAPISchema.cs @@ -0,0 +1,77 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using Newtonsoft.Json; +using Newtonsoft.Json.Serialization; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification + /// + public abstract partial class AbstractOpenAPISchema + { + /// + /// Custom JSON serializer + /// + static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + MissingMemberHandling = MissingMemberHandling.Error, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + /// + /// Custom JSON serializer for objects with additional properties + /// + static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + MissingMemberHandling = MissingMemberHandling.Ignore, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + /// + /// Gets or Sets the actual instance + /// + public abstract Object ActualInstance { get; set; } + + /// + /// Gets or Sets IsNullable to indicate whether the instance is nullable + /// + public bool IsNullable { get; protected set; } + + /// + /// Gets or Sets the schema type, which can be either `oneOf` or `anyOf` + /// + public string SchemaType { get; protected set; } + + /// + /// Converts the instance into JSON string. + /// + public abstract string ToJson(); + } +} diff --git a/src/mailslurp_netstandard_2x/Model/AbstractWebhookPayload.cs b/src/mailslurp_netstandard_2x/Model/AbstractWebhookPayload.cs new file mode 100644 index 00000000..3b7d74a0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/AbstractWebhookPayload.cs @@ -0,0 +1,257 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Abstract webhook payload. Use the correct payload type for your webhook event type in order to access all the specific properties for that event. See the `NEW_EMAIL`,`NEW_CONTACT`, `NEW_ATTACHMENT` and `EMAIL_OPENED` payloads for the properties available for those events. + /// + [DataContract(Name = "AbstractWebhookPayload")] + public partial class AbstractWebhookPayload : IEquatable, IValidatableObject + { + /// + /// Defines EventName + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Gets or Sets EventName + /// + [DataMember(Name = "eventName", IsRequired = true, EmitDefaultValue = true)] + public EventNameEnum EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AbstractWebhookPayload() { } + /// + /// Initializes a new instance of the class. + /// + /// eventName (required). + /// messageId (required). + /// webhookId (required). + /// webhookName. + public AbstractWebhookPayload(EventNameEnum eventName = default(EventNameEnum), string messageId = default(string), Guid webhookId = default(Guid), string webhookName = default(string)) + { + this.EventName = eventName; + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for AbstractWebhookPayload and cannot be null"); + } + this.MessageId = messageId; + this.WebhookId = webhookId; + this.WebhookName = webhookName; + } + + /// + /// Gets or Sets MessageId + /// + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// Gets or Sets WebhookId + /// + [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookId { get; set; } + + /// + /// Gets or Sets WebhookName + /// + [DataMember(Name = "webhookName", EmitDefaultValue = false)] + public string WebhookName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AbstractWebhookPayload {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" WebhookId: ").Append(WebhookId).Append("\n"); + sb.Append(" WebhookName: ").Append(WebhookName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AbstractWebhookPayload); + } + + /// + /// Returns true if AbstractWebhookPayload instances are equal + /// + /// Instance of AbstractWebhookPayload to be compared + /// Boolean + public bool Equals(AbstractWebhookPayload input) + { + if (input == null) + { + return false; + } + return + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.WebhookId == input.WebhookId || + (this.WebhookId != null && + this.WebhookId.Equals(input.WebhookId)) + ) && + ( + this.WebhookName == input.WebhookName || + (this.WebhookName != null && + this.WebhookName.Equals(input.WebhookName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.WebhookId != null) + { + hashCode = (hashCode * 59) + this.WebhookId.GetHashCode(); + } + if (this.WebhookName != null) + { + hashCode = (hashCode * 59) + this.WebhookName.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/AccountBounceBlockDto.cs b/src/mailslurp_netstandard_2x/Model/AccountBounceBlockDto.cs new file mode 100644 index 00000000..b8e6c5ad --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/AccountBounceBlockDto.cs @@ -0,0 +1,186 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// AccountBounceBlockDto + /// + [DataContract(Name = "AccountBounceBlockDto")] + public partial class AccountBounceBlockDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AccountBounceBlockDto() { } + /// + /// Initializes a new instance of the class. + /// + /// isSendingBlocked (required). + /// bounceCount (required). + /// bounceCountToday (required). + /// maximumDailyBounces (required). + /// maximumAccountBounces (required). + public AccountBounceBlockDto(bool isSendingBlocked = default(bool), long bounceCount = default(long), long bounceCountToday = default(long), long maximumDailyBounces = default(long), long maximumAccountBounces = default(long)) + { + this.IsSendingBlocked = isSendingBlocked; + this.BounceCount = bounceCount; + this.BounceCountToday = bounceCountToday; + this.MaximumDailyBounces = maximumDailyBounces; + this.MaximumAccountBounces = maximumAccountBounces; + } + + /// + /// Gets or Sets IsSendingBlocked + /// + [DataMember(Name = "isSendingBlocked", IsRequired = true, EmitDefaultValue = true)] + public bool IsSendingBlocked { get; set; } + + /// + /// Gets or Sets BounceCount + /// + [DataMember(Name = "bounceCount", IsRequired = true, EmitDefaultValue = true)] + public long BounceCount { get; set; } + + /// + /// Gets or Sets BounceCountToday + /// + [DataMember(Name = "bounceCountToday", IsRequired = true, EmitDefaultValue = true)] + public long BounceCountToday { get; set; } + + /// + /// Gets or Sets MaximumDailyBounces + /// + [DataMember(Name = "maximumDailyBounces", IsRequired = true, EmitDefaultValue = true)] + public long MaximumDailyBounces { get; set; } + + /// + /// Gets or Sets MaximumAccountBounces + /// + [DataMember(Name = "maximumAccountBounces", IsRequired = true, EmitDefaultValue = true)] + public long MaximumAccountBounces { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AccountBounceBlockDto {\n"); + sb.Append(" IsSendingBlocked: ").Append(IsSendingBlocked).Append("\n"); + sb.Append(" BounceCount: ").Append(BounceCount).Append("\n"); + sb.Append(" BounceCountToday: ").Append(BounceCountToday).Append("\n"); + sb.Append(" MaximumDailyBounces: ").Append(MaximumDailyBounces).Append("\n"); + sb.Append(" MaximumAccountBounces: ").Append(MaximumAccountBounces).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccountBounceBlockDto); + } + + /// + /// Returns true if AccountBounceBlockDto instances are equal + /// + /// Instance of AccountBounceBlockDto to be compared + /// Boolean + public bool Equals(AccountBounceBlockDto input) + { + if (input == null) + { + return false; + } + return + ( + this.IsSendingBlocked == input.IsSendingBlocked || + this.IsSendingBlocked.Equals(input.IsSendingBlocked) + ) && + ( + this.BounceCount == input.BounceCount || + this.BounceCount.Equals(input.BounceCount) + ) && + ( + this.BounceCountToday == input.BounceCountToday || + this.BounceCountToday.Equals(input.BounceCountToday) + ) && + ( + this.MaximumDailyBounces == input.MaximumDailyBounces || + this.MaximumDailyBounces.Equals(input.MaximumDailyBounces) + ) && + ( + this.MaximumAccountBounces == input.MaximumAccountBounces || + this.MaximumAccountBounces.Equals(input.MaximumAccountBounces) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.IsSendingBlocked.GetHashCode(); + hashCode = (hashCode * 59) + this.BounceCount.GetHashCode(); + hashCode = (hashCode * 59) + this.BounceCountToday.GetHashCode(); + hashCode = (hashCode * 59) + this.MaximumDailyBounces.GetHashCode(); + hashCode = (hashCode * 59) + this.MaximumAccountBounces.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/AliasDto.cs b/src/mailslurp_netstandard_2x/Model/AliasDto.cs new file mode 100644 index 00000000..63e56a73 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/AliasDto.cs @@ -0,0 +1,321 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Email alias representation + /// + [DataContract(Name = "AliasDto")] + public partial class AliasDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AliasDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// The alias's email address for receiving email (required). + /// The underlying email address that is hidden and will received forwarded email. + /// userId (required). + /// Inbox that is associated with the alias (required). + /// name. + /// If alias will generate response threads or not when email are received by it. + /// Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account (required). + /// Domain ID associated with the alias. + /// createdAt. + /// updatedAt. + public AliasDto(Guid id = default(Guid), string emailAddress = default(string), string maskedEmailAddress = default(string), Guid userId = default(Guid), Guid inboxId = default(Guid), string name = default(string), bool? useThreads = default(bool?), bool isVerified = default(bool), Guid? domainId = default(Guid?), DateTime? createdAt = default(DateTime?), DateTime? updatedAt = default(DateTime?)) + { + this.Id = id; + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for AliasDto and cannot be null"); + } + this.EmailAddress = emailAddress; + this.UserId = userId; + this.InboxId = inboxId; + this.IsVerified = isVerified; + this.MaskedEmailAddress = maskedEmailAddress; + this.Name = name; + this.UseThreads = useThreads; + this.DomainId = domainId; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// The alias's email address for receiving email + /// + /// The alias's email address for receiving email + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// The underlying email address that is hidden and will received forwarded email + /// + /// The underlying email address that is hidden and will received forwarded email + [DataMember(Name = "maskedEmailAddress", EmitDefaultValue = true)] + public string MaskedEmailAddress { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Inbox that is associated with the alias + /// + /// Inbox that is associated with the alias + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// If alias will generate response threads or not when email are received by it + /// + /// If alias will generate response threads or not when email are received by it + [DataMember(Name = "useThreads", EmitDefaultValue = true)] + public bool? UseThreads { get; set; } + + /// + /// Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account + /// + /// Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account + [DataMember(Name = "isVerified", IsRequired = true, EmitDefaultValue = true)] + public bool IsVerified { get; set; } + + /// + /// Domain ID associated with the alias + /// + /// Domain ID associated with the alias + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", EmitDefaultValue = true)] + public DateTime? CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AliasDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" MaskedEmailAddress: ").Append(MaskedEmailAddress).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" UseThreads: ").Append(UseThreads).Append("\n"); + sb.Append(" IsVerified: ").Append(IsVerified).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AliasDto); + } + + /// + /// Returns true if AliasDto instances are equal + /// + /// Instance of AliasDto to be compared + /// Boolean + public bool Equals(AliasDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.MaskedEmailAddress == input.MaskedEmailAddress || + (this.MaskedEmailAddress != null && + this.MaskedEmailAddress.Equals(input.MaskedEmailAddress)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.UseThreads == input.UseThreads || + (this.UseThreads != null && + this.UseThreads.Equals(input.UseThreads)) + ) && + ( + this.IsVerified == input.IsVerified || + this.IsVerified.Equals(input.IsVerified) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.MaskedEmailAddress != null) + { + hashCode = (hashCode * 59) + this.MaskedEmailAddress.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.UseThreads != null) + { + hashCode = (hashCode * 59) + this.UseThreads.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsVerified.GetHashCode(); + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/AliasProjection.cs b/src/mailslurp_netstandard_2x/Model/AliasProjection.cs new file mode 100644 index 00000000..ded99777 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/AliasProjection.cs @@ -0,0 +1,261 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Representation of a alias + /// + [DataContract(Name = "AliasProjection")] + public partial class AliasProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AliasProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// emailAddress (required). + /// inboxId (required). + /// userId (required). + /// useThreads. + /// createdAt (required). + /// updatedAt (required). + /// name. + /// id (required). + public AliasProjection(string emailAddress = default(string), Guid inboxId = default(Guid), Guid userId = default(Guid), bool useThreads = default(bool), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), Guid id = default(Guid)) + { + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for AliasProjection and cannot be null"); + } + this.EmailAddress = emailAddress; + this.InboxId = inboxId; + this.UserId = userId; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Id = id; + this.UseThreads = useThreads; + this.Name = name; + } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets UseThreads + /// + [DataMember(Name = "useThreads", EmitDefaultValue = true)] + public bool UseThreads { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AliasProjection {\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" UseThreads: ").Append(UseThreads).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AliasProjection); + } + + /// + /// Returns true if AliasProjection instances are equal + /// + /// Instance of AliasProjection to be compared + /// Boolean + public bool Equals(AliasProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.UseThreads == input.UseThreads || + this.UseThreads.Equals(input.UseThreads) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.UseThreads.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/AttachmentEntity.cs b/src/mailslurp_netstandard_2x/Model/AttachmentEntity.cs new file mode 100644 index 00000000..988dfcc5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/AttachmentEntity.cs @@ -0,0 +1,315 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// AttachmentEntity + /// + [DataContract(Name = "AttachmentEntity")] + public partial class AttachmentEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AttachmentEntity() { } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// attachmentId (required). + /// bucket. + /// userId (required). + /// contentType. + /// contentLength. + /// contentId. + /// name. + /// inboxId. + /// createdAt (required). + /// updatedAt (required). + public AttachmentEntity(Guid id = default(Guid), string attachmentId = default(string), string bucket = default(string), Guid userId = default(Guid), string contentType = default(string), long contentLength = default(long), string contentId = default(string), string name = default(string), Guid inboxId = default(Guid), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + // to ensure "attachmentId" is required (not null) + if (attachmentId == null) + { + throw new ArgumentNullException("attachmentId is a required property for AttachmentEntity and cannot be null"); + } + this.AttachmentId = attachmentId; + this.UserId = userId; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Id = id; + this.Bucket = bucket; + this.ContentType = contentType; + this.ContentLength = contentLength; + this.ContentId = contentId; + this.Name = name; + this.InboxId = inboxId; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public Guid Id { get; set; } + + /// + /// Gets or Sets AttachmentId + /// + [DataMember(Name = "attachmentId", IsRequired = true, EmitDefaultValue = true)] + public string AttachmentId { get; set; } + + /// + /// Gets or Sets Bucket + /// + [DataMember(Name = "bucket", EmitDefaultValue = false)] + public string Bucket { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets ContentType + /// + [DataMember(Name = "contentType", EmitDefaultValue = false)] + public string ContentType { get; set; } + + /// + /// Gets or Sets ContentLength + /// + [DataMember(Name = "contentLength", EmitDefaultValue = false)] + public long ContentLength { get; set; } + + /// + /// Gets or Sets ContentId + /// + [DataMember(Name = "contentId", EmitDefaultValue = false)] + public string ContentId { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = false)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AttachmentEntity {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" AttachmentId: ").Append(AttachmentId).Append("\n"); + sb.Append(" Bucket: ").Append(Bucket).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" ContentType: ").Append(ContentType).Append("\n"); + sb.Append(" ContentLength: ").Append(ContentLength).Append("\n"); + sb.Append(" ContentId: ").Append(ContentId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AttachmentEntity); + } + + /// + /// Returns true if AttachmentEntity instances are equal + /// + /// Instance of AttachmentEntity to be compared + /// Boolean + public bool Equals(AttachmentEntity input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.AttachmentId == input.AttachmentId || + (this.AttachmentId != null && + this.AttachmentId.Equals(input.AttachmentId)) + ) && + ( + this.Bucket == input.Bucket || + (this.Bucket != null && + this.Bucket.Equals(input.Bucket)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.ContentType == input.ContentType || + (this.ContentType != null && + this.ContentType.Equals(input.ContentType)) + ) && + ( + this.ContentLength == input.ContentLength || + this.ContentLength.Equals(input.ContentLength) + ) && + ( + this.ContentId == input.ContentId || + (this.ContentId != null && + this.ContentId.Equals(input.ContentId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.AttachmentId != null) + { + hashCode = (hashCode * 59) + this.AttachmentId.GetHashCode(); + } + if (this.Bucket != null) + { + hashCode = (hashCode * 59) + this.Bucket.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.ContentType != null) + { + hashCode = (hashCode * 59) + this.ContentType.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ContentLength.GetHashCode(); + if (this.ContentId != null) + { + hashCode = (hashCode * 59) + this.ContentId.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/AttachmentMetaData.cs b/src/mailslurp_netstandard_2x/Model/AttachmentMetaData.cs new file mode 100644 index 00000000..eeabc9cd --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/AttachmentMetaData.cs @@ -0,0 +1,222 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Meta data associated with an attachment. Attachments are stored as byte blobs so the meta data is stored separately. + /// + [DataContract(Name = "AttachmentMetaData")] + public partial class AttachmentMetaData : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AttachmentMetaData() { } + /// + /// Initializes a new instance of the class. + /// + /// Name of attachment if given (required). + /// Content type of attachment such as `image/png` (required). + /// Size of attachment in bytes (required). + /// ID of attachment. Can be used to with attachment controller endpoints to download attachment or with sending methods to attach to an email. (required). + /// CID of attachment. + public AttachmentMetaData(string name = default(string), string contentType = default(string), long contentLength = default(long), string id = default(string), string contentId = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for AttachmentMetaData and cannot be null"); + } + this.Name = name; + // to ensure "contentType" is required (not null) + if (contentType == null) + { + throw new ArgumentNullException("contentType is a required property for AttachmentMetaData and cannot be null"); + } + this.ContentType = contentType; + this.ContentLength = contentLength; + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for AttachmentMetaData and cannot be null"); + } + this.Id = id; + this.ContentId = contentId; + } + + /// + /// Name of attachment if given + /// + /// Name of attachment if given + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Content type of attachment such as `image/png` + /// + /// Content type of attachment such as `image/png` + [DataMember(Name = "contentType", IsRequired = true, EmitDefaultValue = true)] + public string ContentType { get; set; } + + /// + /// Size of attachment in bytes + /// + /// Size of attachment in bytes + [DataMember(Name = "contentLength", IsRequired = true, EmitDefaultValue = true)] + public long ContentLength { get; set; } + + /// + /// ID of attachment. Can be used to with attachment controller endpoints to download attachment or with sending methods to attach to an email. + /// + /// ID of attachment. Can be used to with attachment controller endpoints to download attachment or with sending methods to attach to an email. + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// CID of attachment + /// + /// CID of attachment + [DataMember(Name = "contentId", EmitDefaultValue = true)] + public string ContentId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AttachmentMetaData {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" ContentType: ").Append(ContentType).Append("\n"); + sb.Append(" ContentLength: ").Append(ContentLength).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" ContentId: ").Append(ContentId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AttachmentMetaData); + } + + /// + /// Returns true if AttachmentMetaData instances are equal + /// + /// Instance of AttachmentMetaData to be compared + /// Boolean + public bool Equals(AttachmentMetaData input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ContentType == input.ContentType || + (this.ContentType != null && + this.ContentType.Equals(input.ContentType)) + ) && + ( + this.ContentLength == input.ContentLength || + this.ContentLength.Equals(input.ContentLength) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.ContentId == input.ContentId || + (this.ContentId != null && + this.ContentId.Equals(input.ContentId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.ContentType != null) + { + hashCode = (hashCode * 59) + this.ContentType.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ContentLength.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.ContentId != null) + { + hashCode = (hashCode * 59) + this.ContentId.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/AttachmentProjection.cs b/src/mailslurp_netstandard_2x/Model/AttachmentProjection.cs new file mode 100644 index 00000000..ff1d9052 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/AttachmentProjection.cs @@ -0,0 +1,269 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Email attachment data + /// + [DataContract(Name = "AttachmentProjection")] + public partial class AttachmentProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AttachmentProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// userId (required). + /// Content ID of attachment.. + /// Attachment ID (required). + /// createdAt (required). + /// updatedAt (required). + /// name. + /// Content length of attachment in bytes. + /// Content type of attachment.. + public AttachmentProjection(Guid userId = default(Guid), string contentId = default(string), string attachmentId = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), long? contentLength = default(long?), string contentType = default(string)) + { + this.UserId = userId; + // to ensure "attachmentId" is required (not null) + if (attachmentId == null) + { + throw new ArgumentNullException("attachmentId is a required property for AttachmentProjection and cannot be null"); + } + this.AttachmentId = attachmentId; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.ContentId = contentId; + this.Name = name; + this.ContentLength = contentLength; + this.ContentType = contentType; + } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Content ID of attachment. + /// + /// Content ID of attachment. + [DataMember(Name = "contentId", EmitDefaultValue = true)] + public string ContentId { get; set; } + + /// + /// Attachment ID + /// + /// Attachment ID + [DataMember(Name = "attachmentId", IsRequired = true, EmitDefaultValue = true)] + public string AttachmentId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Content length of attachment in bytes + /// + /// Content length of attachment in bytes + [DataMember(Name = "contentLength", EmitDefaultValue = true)] + public long? ContentLength { get; set; } + + /// + /// Content type of attachment. + /// + /// Content type of attachment. + [DataMember(Name = "contentType", EmitDefaultValue = true)] + public string ContentType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AttachmentProjection {\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" ContentId: ").Append(ContentId).Append("\n"); + sb.Append(" AttachmentId: ").Append(AttachmentId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" ContentLength: ").Append(ContentLength).Append("\n"); + sb.Append(" ContentType: ").Append(ContentType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AttachmentProjection); + } + + /// + /// Returns true if AttachmentProjection instances are equal + /// + /// Instance of AttachmentProjection to be compared + /// Boolean + public bool Equals(AttachmentProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.ContentId == input.ContentId || + (this.ContentId != null && + this.ContentId.Equals(input.ContentId)) + ) && + ( + this.AttachmentId == input.AttachmentId || + (this.AttachmentId != null && + this.AttachmentId.Equals(input.AttachmentId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ContentLength == input.ContentLength || + (this.ContentLength != null && + this.ContentLength.Equals(input.ContentLength)) + ) && + ( + this.ContentType == input.ContentType || + (this.ContentType != null && + this.ContentType.Equals(input.ContentType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.ContentId != null) + { + hashCode = (hashCode * 59) + this.ContentId.GetHashCode(); + } + if (this.AttachmentId != null) + { + hashCode = (hashCode * 59) + this.AttachmentId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.ContentLength != null) + { + hashCode = (hashCode * 59) + this.ContentLength.GetHashCode(); + } + if (this.ContentType != null) + { + hashCode = (hashCode * 59) + this.ContentType.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/BasicAuthOptions.cs b/src/mailslurp_netstandard_2x/Model/BasicAuthOptions.cs new file mode 100644 index 00000000..55cda03e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/BasicAuthOptions.cs @@ -0,0 +1,162 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Basic Authentication options for webhooks. Will be used is present when calling webhook endpoints. + /// + [DataContract(Name = "BasicAuthOptions")] + public partial class BasicAuthOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BasicAuthOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// username (required). + /// password (required). + public BasicAuthOptions(string username = default(string), string password = default(string)) + { + // to ensure "username" is required (not null) + if (username == null) + { + throw new ArgumentNullException("username is a required property for BasicAuthOptions and cannot be null"); + } + this.Username = username; + // to ensure "password" is required (not null) + if (password == null) + { + throw new ArgumentNullException("password is a required property for BasicAuthOptions and cannot be null"); + } + this.Password = password; + } + + /// + /// Gets or Sets Username + /// + [DataMember(Name = "username", IsRequired = true, EmitDefaultValue = true)] + public string Username { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)] + public string Password { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BasicAuthOptions {\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BasicAuthOptions); + } + + /// + /// Returns true if BasicAuthOptions instances are equal + /// + /// Instance of BasicAuthOptions to be compared + /// Boolean + public bool Equals(BasicAuthOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Username == input.Username || + (this.Username != null && + this.Username.Equals(input.Username)) + ) && + ( + this.Password == input.Password || + (this.Password != null && + this.Password.Equals(input.Password)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Username != null) + { + hashCode = (hashCode * 59) + this.Username.GetHashCode(); + } + if (this.Password != null) + { + hashCode = (hashCode * 59) + this.Password.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/BounceProjection.cs b/src/mailslurp_netstandard_2x/Model/BounceProjection.cs new file mode 100644 index 00000000..16962b5e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/BounceProjection.cs @@ -0,0 +1,229 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Bounced email event + /// + [DataContract(Name = "BounceProjection")] + public partial class BounceProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BounceProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// sender (required). + /// bounceMta. + /// bounceType. + /// createdAt (required). + /// subject. + /// id. + public BounceProjection(string sender = default(string), string bounceMta = default(string), string bounceType = default(string), DateTime createdAt = default(DateTime), string subject = default(string), Guid id = default(Guid)) + { + // to ensure "sender" is required (not null) + if (sender == null) + { + throw new ArgumentNullException("sender is a required property for BounceProjection and cannot be null"); + } + this.Sender = sender; + this.CreatedAt = createdAt; + this.BounceMta = bounceMta; + this.BounceType = bounceType; + this.Subject = subject; + this.Id = id; + } + + /// + /// Gets or Sets Sender + /// + [DataMember(Name = "sender", IsRequired = true, EmitDefaultValue = true)] + public string Sender { get; set; } + + /// + /// Gets or Sets BounceMta + /// + [DataMember(Name = "bounceMta", EmitDefaultValue = true)] + public string BounceMta { get; set; } + + /// + /// Gets or Sets BounceType + /// + [DataMember(Name = "bounceType", EmitDefaultValue = true)] + public string BounceType { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BounceProjection {\n"); + sb.Append(" Sender: ").Append(Sender).Append("\n"); + sb.Append(" BounceMta: ").Append(BounceMta).Append("\n"); + sb.Append(" BounceType: ").Append(BounceType).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BounceProjection); + } + + /// + /// Returns true if BounceProjection instances are equal + /// + /// Instance of BounceProjection to be compared + /// Boolean + public bool Equals(BounceProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Sender == input.Sender || + (this.Sender != null && + this.Sender.Equals(input.Sender)) + ) && + ( + this.BounceMta == input.BounceMta || + (this.BounceMta != null && + this.BounceMta.Equals(input.BounceMta)) + ) && + ( + this.BounceType == input.BounceType || + (this.BounceType != null && + this.BounceType.Equals(input.BounceType)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Sender != null) + { + hashCode = (hashCode * 59) + this.Sender.GetHashCode(); + } + if (this.BounceMta != null) + { + hashCode = (hashCode * 59) + this.BounceMta.GetHashCode(); + } + if (this.BounceType != null) + { + hashCode = (hashCode * 59) + this.BounceType.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/BounceRecipientProjection.cs b/src/mailslurp_netstandard_2x/Model/BounceRecipientProjection.cs new file mode 100644 index 00000000..160d61a9 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/BounceRecipientProjection.cs @@ -0,0 +1,247 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Bounced recipient + /// + [DataContract(Name = "BounceRecipientProjection")] + public partial class BounceRecipientProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BounceRecipientProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// sentEmailId. + /// recipient (required). + /// action. + /// bounceType. + /// createdAt (required). + /// id. + /// status. + public BounceRecipientProjection(Guid? sentEmailId = default(Guid?), string recipient = default(string), string action = default(string), string bounceType = default(string), DateTime createdAt = default(DateTime), Guid id = default(Guid), string status = default(string)) + { + // to ensure "recipient" is required (not null) + if (recipient == null) + { + throw new ArgumentNullException("recipient is a required property for BounceRecipientProjection and cannot be null"); + } + this.Recipient = recipient; + this.CreatedAt = createdAt; + this.SentEmailId = sentEmailId; + this.Action = action; + this.BounceType = bounceType; + this.Id = id; + this.Status = status; + } + + /// + /// Gets or Sets SentEmailId + /// + [DataMember(Name = "sentEmailId", EmitDefaultValue = true)] + public Guid? SentEmailId { get; set; } + + /// + /// Gets or Sets Recipient + /// + [DataMember(Name = "recipient", IsRequired = true, EmitDefaultValue = true)] + public string Recipient { get; set; } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", EmitDefaultValue = true)] + public string Action { get; set; } + + /// + /// Gets or Sets BounceType + /// + [DataMember(Name = "bounceType", EmitDefaultValue = true)] + public string BounceType { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", EmitDefaultValue = true)] + public string Status { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BounceRecipientProjection {\n"); + sb.Append(" SentEmailId: ").Append(SentEmailId).Append("\n"); + sb.Append(" Recipient: ").Append(Recipient).Append("\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" BounceType: ").Append(BounceType).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BounceRecipientProjection); + } + + /// + /// Returns true if BounceRecipientProjection instances are equal + /// + /// Instance of BounceRecipientProjection to be compared + /// Boolean + public bool Equals(BounceRecipientProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.SentEmailId == input.SentEmailId || + (this.SentEmailId != null && + this.SentEmailId.Equals(input.SentEmailId)) + ) && + ( + this.Recipient == input.Recipient || + (this.Recipient != null && + this.Recipient.Equals(input.Recipient)) + ) && + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ) && + ( + this.BounceType == input.BounceType || + (this.BounceType != null && + this.BounceType.Equals(input.BounceType)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SentEmailId != null) + { + hashCode = (hashCode * 59) + this.SentEmailId.GetHashCode(); + } + if (this.Recipient != null) + { + hashCode = (hashCode * 59) + this.Recipient.GetHashCode(); + } + if (this.Action != null) + { + hashCode = (hashCode * 59) + this.Action.GetHashCode(); + } + if (this.BounceType != null) + { + hashCode = (hashCode * 59) + this.BounceType.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Status != null) + { + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/BouncedEmailDto.cs b/src/mailslurp_netstandard_2x/Model/BouncedEmailDto.cs new file mode 100644 index 00000000..07882006 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/BouncedEmailDto.cs @@ -0,0 +1,344 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Bounced email + /// + [DataContract(Name = "BouncedEmailDto")] + public partial class BouncedEmailDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BouncedEmailDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// notificationType (required). + /// sentToRecipients. + /// sender (required). + /// bounceMta. + /// bounceType. + /// bounceRecipients. + /// bounceSubType. + /// sentEmailId. + /// subject. + /// createdAt (required). + public BouncedEmailDto(Guid id = default(Guid), Guid userId = default(Guid), string notificationType = default(string), List sentToRecipients = default(List), string sender = default(string), string bounceMta = default(string), string bounceType = default(string), List bounceRecipients = default(List), string bounceSubType = default(string), Guid? sentEmailId = default(Guid?), string subject = default(string), DateTime createdAt = default(DateTime)) + { + this.Id = id; + this.UserId = userId; + // to ensure "notificationType" is required (not null) + if (notificationType == null) + { + throw new ArgumentNullException("notificationType is a required property for BouncedEmailDto and cannot be null"); + } + this.NotificationType = notificationType; + // to ensure "sender" is required (not null) + if (sender == null) + { + throw new ArgumentNullException("sender is a required property for BouncedEmailDto and cannot be null"); + } + this.Sender = sender; + this.CreatedAt = createdAt; + this.SentToRecipients = sentToRecipients; + this.BounceMta = bounceMta; + this.BounceType = bounceType; + this.BounceRecipients = bounceRecipients; + this.BounceSubType = bounceSubType; + this.SentEmailId = sentEmailId; + this.Subject = subject; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets NotificationType + /// + [DataMember(Name = "notificationType", IsRequired = true, EmitDefaultValue = true)] + public string NotificationType { get; set; } + + /// + /// Gets or Sets SentToRecipients + /// + [DataMember(Name = "sentToRecipients", EmitDefaultValue = true)] + public List SentToRecipients { get; set; } + + /// + /// Gets or Sets Sender + /// + [DataMember(Name = "sender", IsRequired = true, EmitDefaultValue = true)] + public string Sender { get; set; } + + /// + /// Gets or Sets BounceMta + /// + [DataMember(Name = "bounceMta", EmitDefaultValue = true)] + public string BounceMta { get; set; } + + /// + /// Gets or Sets BounceType + /// + [DataMember(Name = "bounceType", EmitDefaultValue = true)] + public string BounceType { get; set; } + + /// + /// Gets or Sets BounceRecipients + /// + [DataMember(Name = "bounceRecipients", EmitDefaultValue = true)] + public List BounceRecipients { get; set; } + + /// + /// Gets or Sets BounceSubType + /// + [DataMember(Name = "bounceSubType", EmitDefaultValue = true)] + public string BounceSubType { get; set; } + + /// + /// Gets or Sets SentEmailId + /// + [DataMember(Name = "sentEmailId", EmitDefaultValue = true)] + public Guid? SentEmailId { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BouncedEmailDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" NotificationType: ").Append(NotificationType).Append("\n"); + sb.Append(" SentToRecipients: ").Append(SentToRecipients).Append("\n"); + sb.Append(" Sender: ").Append(Sender).Append("\n"); + sb.Append(" BounceMta: ").Append(BounceMta).Append("\n"); + sb.Append(" BounceType: ").Append(BounceType).Append("\n"); + sb.Append(" BounceRecipients: ").Append(BounceRecipients).Append("\n"); + sb.Append(" BounceSubType: ").Append(BounceSubType).Append("\n"); + sb.Append(" SentEmailId: ").Append(SentEmailId).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BouncedEmailDto); + } + + /// + /// Returns true if BouncedEmailDto instances are equal + /// + /// Instance of BouncedEmailDto to be compared + /// Boolean + public bool Equals(BouncedEmailDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.NotificationType == input.NotificationType || + (this.NotificationType != null && + this.NotificationType.Equals(input.NotificationType)) + ) && + ( + this.SentToRecipients == input.SentToRecipients || + this.SentToRecipients != null && + input.SentToRecipients != null && + this.SentToRecipients.SequenceEqual(input.SentToRecipients) + ) && + ( + this.Sender == input.Sender || + (this.Sender != null && + this.Sender.Equals(input.Sender)) + ) && + ( + this.BounceMta == input.BounceMta || + (this.BounceMta != null && + this.BounceMta.Equals(input.BounceMta)) + ) && + ( + this.BounceType == input.BounceType || + (this.BounceType != null && + this.BounceType.Equals(input.BounceType)) + ) && + ( + this.BounceRecipients == input.BounceRecipients || + this.BounceRecipients != null && + input.BounceRecipients != null && + this.BounceRecipients.SequenceEqual(input.BounceRecipients) + ) && + ( + this.BounceSubType == input.BounceSubType || + (this.BounceSubType != null && + this.BounceSubType.Equals(input.BounceSubType)) + ) && + ( + this.SentEmailId == input.SentEmailId || + (this.SentEmailId != null && + this.SentEmailId.Equals(input.SentEmailId)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.NotificationType != null) + { + hashCode = (hashCode * 59) + this.NotificationType.GetHashCode(); + } + if (this.SentToRecipients != null) + { + hashCode = (hashCode * 59) + this.SentToRecipients.GetHashCode(); + } + if (this.Sender != null) + { + hashCode = (hashCode * 59) + this.Sender.GetHashCode(); + } + if (this.BounceMta != null) + { + hashCode = (hashCode * 59) + this.BounceMta.GetHashCode(); + } + if (this.BounceType != null) + { + hashCode = (hashCode * 59) + this.BounceType.GetHashCode(); + } + if (this.BounceRecipients != null) + { + hashCode = (hashCode * 59) + this.BounceRecipients.GetHashCode(); + } + if (this.BounceSubType != null) + { + hashCode = (hashCode * 59) + this.BounceSubType.GetHashCode(); + } + if (this.SentEmailId != null) + { + hashCode = (hashCode * 59) + this.SentEmailId.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/BouncedRecipientDto.cs b/src/mailslurp_netstandard_2x/Model/BouncedRecipientDto.cs new file mode 100644 index 00000000..53b6a571 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/BouncedRecipientDto.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Bounced recipient + /// + [DataContract(Name = "BouncedRecipientDto")] + public partial class BouncedRecipientDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BouncedRecipientDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId. + /// sentEmailId. + /// recipient (required). + /// diagnosticCode. + /// action. + /// bounceType. + /// status. + /// createdAt (required). + public BouncedRecipientDto(Guid id = default(Guid), Guid? userId = default(Guid?), Guid? sentEmailId = default(Guid?), string recipient = default(string), string diagnosticCode = default(string), string action = default(string), string bounceType = default(string), string status = default(string), DateTime createdAt = default(DateTime)) + { + this.Id = id; + // to ensure "recipient" is required (not null) + if (recipient == null) + { + throw new ArgumentNullException("recipient is a required property for BouncedRecipientDto and cannot be null"); + } + this.Recipient = recipient; + this.CreatedAt = createdAt; + this.UserId = userId; + this.SentEmailId = sentEmailId; + this.DiagnosticCode = diagnosticCode; + this.Action = action; + this.BounceType = bounceType; + this.Status = status; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", EmitDefaultValue = true)] + public Guid? UserId { get; set; } + + /// + /// Gets or Sets SentEmailId + /// + [DataMember(Name = "sentEmailId", EmitDefaultValue = true)] + public Guid? SentEmailId { get; set; } + + /// + /// Gets or Sets Recipient + /// + [DataMember(Name = "recipient", IsRequired = true, EmitDefaultValue = true)] + public string Recipient { get; set; } + + /// + /// Gets or Sets DiagnosticCode + /// + [DataMember(Name = "diagnosticCode", EmitDefaultValue = true)] + public string DiagnosticCode { get; set; } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", EmitDefaultValue = true)] + public string Action { get; set; } + + /// + /// Gets or Sets BounceType + /// + [DataMember(Name = "bounceType", EmitDefaultValue = true)] + public string BounceType { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", EmitDefaultValue = true)] + public string Status { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BouncedRecipientDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" SentEmailId: ").Append(SentEmailId).Append("\n"); + sb.Append(" Recipient: ").Append(Recipient).Append("\n"); + sb.Append(" DiagnosticCode: ").Append(DiagnosticCode).Append("\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" BounceType: ").Append(BounceType).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BouncedRecipientDto); + } + + /// + /// Returns true if BouncedRecipientDto instances are equal + /// + /// Instance of BouncedRecipientDto to be compared + /// Boolean + public bool Equals(BouncedRecipientDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.SentEmailId == input.SentEmailId || + (this.SentEmailId != null && + this.SentEmailId.Equals(input.SentEmailId)) + ) && + ( + this.Recipient == input.Recipient || + (this.Recipient != null && + this.Recipient.Equals(input.Recipient)) + ) && + ( + this.DiagnosticCode == input.DiagnosticCode || + (this.DiagnosticCode != null && + this.DiagnosticCode.Equals(input.DiagnosticCode)) + ) && + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ) && + ( + this.BounceType == input.BounceType || + (this.BounceType != null && + this.BounceType.Equals(input.BounceType)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.SentEmailId != null) + { + hashCode = (hashCode * 59) + this.SentEmailId.GetHashCode(); + } + if (this.Recipient != null) + { + hashCode = (hashCode * 59) + this.Recipient.GetHashCode(); + } + if (this.DiagnosticCode != null) + { + hashCode = (hashCode * 59) + this.DiagnosticCode.GetHashCode(); + } + if (this.Action != null) + { + hashCode = (hashCode * 59) + this.Action.GetHashCode(); + } + if (this.BounceType != null) + { + hashCode = (hashCode * 59) + this.BounceType.GetHashCode(); + } + if (this.Status != null) + { + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/BulkSendEmailOptions.cs b/src/mailslurp_netstandard_2x/Model/BulkSendEmailOptions.cs new file mode 100644 index 00000000..4ffb2626 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/BulkSendEmailOptions.cs @@ -0,0 +1,164 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for bulk sending an email from multiple addresses. See regular `sendEmail` methods for more information. + /// + [DataContract(Name = "BulkSendEmailOptions")] + public partial class BulkSendEmailOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BulkSendEmailOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Inboxes to send the email from (required). + /// sendEmailOptions (required). + public BulkSendEmailOptions(List inboxIds = default(List), SendEmailOptions sendEmailOptions = default(SendEmailOptions)) + { + // to ensure "inboxIds" is required (not null) + if (inboxIds == null) + { + throw new ArgumentNullException("inboxIds is a required property for BulkSendEmailOptions and cannot be null"); + } + this.InboxIds = inboxIds; + // to ensure "sendEmailOptions" is required (not null) + if (sendEmailOptions == null) + { + throw new ArgumentNullException("sendEmailOptions is a required property for BulkSendEmailOptions and cannot be null"); + } + this.SendEmailOptions = sendEmailOptions; + } + + /// + /// Inboxes to send the email from + /// + /// Inboxes to send the email from + [DataMember(Name = "inboxIds", IsRequired = true, EmitDefaultValue = true)] + public List InboxIds { get; set; } + + /// + /// Gets or Sets SendEmailOptions + /// + [DataMember(Name = "sendEmailOptions", IsRequired = true, EmitDefaultValue = true)] + public SendEmailOptions SendEmailOptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BulkSendEmailOptions {\n"); + sb.Append(" InboxIds: ").Append(InboxIds).Append("\n"); + sb.Append(" SendEmailOptions: ").Append(SendEmailOptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BulkSendEmailOptions); + } + + /// + /// Returns true if BulkSendEmailOptions instances are equal + /// + /// Instance of BulkSendEmailOptions to be compared + /// Boolean + public bool Equals(BulkSendEmailOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxIds == input.InboxIds || + this.InboxIds != null && + input.InboxIds != null && + this.InboxIds.SequenceEqual(input.InboxIds) + ) && + ( + this.SendEmailOptions == input.SendEmailOptions || + (this.SendEmailOptions != null && + this.SendEmailOptions.Equals(input.SendEmailOptions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxIds != null) + { + hashCode = (hashCode * 59) + this.InboxIds.GetHashCode(); + } + if (this.SendEmailOptions != null) + { + hashCode = (hashCode * 59) + this.SendEmailOptions.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CanSendEmailResults.cs b/src/mailslurp_netstandard_2x/Model/CanSendEmailResults.cs new file mode 100644 index 00000000..078f5820 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CanSendEmailResults.cs @@ -0,0 +1,148 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// CanSendEmailResults + /// + [DataContract(Name = "CanSendEmailResults")] + public partial class CanSendEmailResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CanSendEmailResults() { } + /// + /// Initializes a new instance of the class. + /// + /// isSendingPermitted (required). + /// message. + public CanSendEmailResults(bool isSendingPermitted = default(bool), string message = default(string)) + { + this.IsSendingPermitted = isSendingPermitted; + this.Message = message; + } + + /// + /// Gets or Sets IsSendingPermitted + /// + [DataMember(Name = "isSendingPermitted", IsRequired = true, EmitDefaultValue = true)] + public bool IsSendingPermitted { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CanSendEmailResults {\n"); + sb.Append(" IsSendingPermitted: ").Append(IsSendingPermitted).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CanSendEmailResults); + } + + /// + /// Returns true if CanSendEmailResults instances are equal + /// + /// Instance of CanSendEmailResults to be compared + /// Boolean + public bool Equals(CanSendEmailResults input) + { + if (input == null) + { + return false; + } + return + ( + this.IsSendingPermitted == input.IsSendingPermitted || + this.IsSendingPermitted.Equals(input.IsSendingPermitted) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.IsSendingPermitted.GetHashCode(); + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CheckEmailBodyFeatureSupportResults.cs b/src/mailslurp_netstandard_2x/Model/CheckEmailBodyFeatureSupportResults.cs new file mode 100644 index 00000000..5a95225b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CheckEmailBodyFeatureSupportResults.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// CheckEmailBodyFeatureSupportResults + /// + [DataContract(Name = "CheckEmailBodyFeatureSupportResults")] + public partial class CheckEmailBodyFeatureSupportResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CheckEmailBodyFeatureSupportResults() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public CheckEmailBodyFeatureSupportResults(EmailFeatureSupportResult result = default(EmailFeatureSupportResult)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for CheckEmailBodyFeatureSupportResults and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public EmailFeatureSupportResult Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CheckEmailBodyFeatureSupportResults {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CheckEmailBodyFeatureSupportResults); + } + + /// + /// Returns true if CheckEmailBodyFeatureSupportResults instances are equal + /// + /// Instance of CheckEmailBodyFeatureSupportResults to be compared + /// Boolean + public bool Equals(CheckEmailBodyFeatureSupportResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Result == input.Result || + (this.Result != null && + this.Result.Equals(input.Result)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Result != null) + { + hashCode = (hashCode * 59) + this.Result.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CheckEmailBodyResults.cs b/src/mailslurp_netstandard_2x/Model/CheckEmailBodyResults.cs new file mode 100644 index 00000000..047dfc31 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CheckEmailBodyResults.cs @@ -0,0 +1,202 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// CheckEmailBodyResults + /// + [DataContract(Name = "CheckEmailBodyResults")] + public partial class CheckEmailBodyResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CheckEmailBodyResults() { } + /// + /// Initializes a new instance of the class. + /// + /// hasIssues (required). + /// linkIssues (required). + /// imageIssues (required). + /// spellingIssues (required). + public CheckEmailBodyResults(bool hasIssues = default(bool), List linkIssues = default(List), List imageIssues = default(List), List spellingIssues = default(List)) + { + this.HasIssues = hasIssues; + // to ensure "linkIssues" is required (not null) + if (linkIssues == null) + { + throw new ArgumentNullException("linkIssues is a required property for CheckEmailBodyResults and cannot be null"); + } + this.LinkIssues = linkIssues; + // to ensure "imageIssues" is required (not null) + if (imageIssues == null) + { + throw new ArgumentNullException("imageIssues is a required property for CheckEmailBodyResults and cannot be null"); + } + this.ImageIssues = imageIssues; + // to ensure "spellingIssues" is required (not null) + if (spellingIssues == null) + { + throw new ArgumentNullException("spellingIssues is a required property for CheckEmailBodyResults and cannot be null"); + } + this.SpellingIssues = spellingIssues; + } + + /// + /// Gets or Sets HasIssues + /// + [DataMember(Name = "hasIssues", IsRequired = true, EmitDefaultValue = true)] + public bool HasIssues { get; set; } + + /// + /// Gets or Sets LinkIssues + /// + [DataMember(Name = "linkIssues", IsRequired = true, EmitDefaultValue = true)] + public List LinkIssues { get; set; } + + /// + /// Gets or Sets ImageIssues + /// + [DataMember(Name = "imageIssues", IsRequired = true, EmitDefaultValue = true)] + public List ImageIssues { get; set; } + + /// + /// Gets or Sets SpellingIssues + /// + [DataMember(Name = "spellingIssues", IsRequired = true, EmitDefaultValue = true)] + public List SpellingIssues { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CheckEmailBodyResults {\n"); + sb.Append(" HasIssues: ").Append(HasIssues).Append("\n"); + sb.Append(" LinkIssues: ").Append(LinkIssues).Append("\n"); + sb.Append(" ImageIssues: ").Append(ImageIssues).Append("\n"); + sb.Append(" SpellingIssues: ").Append(SpellingIssues).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CheckEmailBodyResults); + } + + /// + /// Returns true if CheckEmailBodyResults instances are equal + /// + /// Instance of CheckEmailBodyResults to be compared + /// Boolean + public bool Equals(CheckEmailBodyResults input) + { + if (input == null) + { + return false; + } + return + ( + this.HasIssues == input.HasIssues || + this.HasIssues.Equals(input.HasIssues) + ) && + ( + this.LinkIssues == input.LinkIssues || + this.LinkIssues != null && + input.LinkIssues != null && + this.LinkIssues.SequenceEqual(input.LinkIssues) + ) && + ( + this.ImageIssues == input.ImageIssues || + this.ImageIssues != null && + input.ImageIssues != null && + this.ImageIssues.SequenceEqual(input.ImageIssues) + ) && + ( + this.SpellingIssues == input.SpellingIssues || + this.SpellingIssues != null && + input.SpellingIssues != null && + this.SpellingIssues.SequenceEqual(input.SpellingIssues) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.HasIssues.GetHashCode(); + if (this.LinkIssues != null) + { + hashCode = (hashCode * 59) + this.LinkIssues.GetHashCode(); + } + if (this.ImageIssues != null) + { + hashCode = (hashCode * 59) + this.ImageIssues.GetHashCode(); + } + if (this.SpellingIssues != null) + { + hashCode = (hashCode * 59) + this.SpellingIssues.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CheckEmailClientSupportOptions.cs b/src/mailslurp_netstandard_2x/Model/CheckEmailClientSupportOptions.cs new file mode 100644 index 00000000..4950c8e2 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CheckEmailClientSupportOptions.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for the email to be validated + /// + [DataContract(Name = "CheckEmailClientSupportOptions")] + public partial class CheckEmailClientSupportOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CheckEmailClientSupportOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// emailBody (required). + public CheckEmailClientSupportOptions(string emailBody = default(string)) + { + // to ensure "emailBody" is required (not null) + if (emailBody == null) + { + throw new ArgumentNullException("emailBody is a required property for CheckEmailClientSupportOptions and cannot be null"); + } + this.EmailBody = emailBody; + } + + /// + /// Gets or Sets EmailBody + /// + [DataMember(Name = "emailBody", IsRequired = true, EmitDefaultValue = true)] + public string EmailBody { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CheckEmailClientSupportOptions {\n"); + sb.Append(" EmailBody: ").Append(EmailBody).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CheckEmailClientSupportOptions); + } + + /// + /// Returns true if CheckEmailClientSupportOptions instances are equal + /// + /// Instance of CheckEmailClientSupportOptions to be compared + /// Boolean + public bool Equals(CheckEmailClientSupportOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailBody == input.EmailBody || + (this.EmailBody != null && + this.EmailBody.Equals(input.EmailBody)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailBody != null) + { + hashCode = (hashCode * 59) + this.EmailBody.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CheckEmailClientSupportResults.cs b/src/mailslurp_netstandard_2x/Model/CheckEmailClientSupportResults.cs new file mode 100644 index 00000000..92f0ff0e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CheckEmailClientSupportResults.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// CheckEmailClientSupportResults + /// + [DataContract(Name = "CheckEmailClientSupportResults")] + public partial class CheckEmailClientSupportResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CheckEmailClientSupportResults() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public CheckEmailClientSupportResults(EmailFeatureSupportResult result = default(EmailFeatureSupportResult)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for CheckEmailClientSupportResults and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public EmailFeatureSupportResult Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CheckEmailClientSupportResults {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CheckEmailClientSupportResults); + } + + /// + /// Returns true if CheckEmailClientSupportResults instances are equal + /// + /// Instance of CheckEmailClientSupportResults to be compared + /// Boolean + public bool Equals(CheckEmailClientSupportResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Result == input.Result || + (this.Result != null && + this.Result.Equals(input.Result)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Result != null) + { + hashCode = (hashCode * 59) + this.Result.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CheckEmailFeaturesClientSupportOptions.cs b/src/mailslurp_netstandard_2x/Model/CheckEmailFeaturesClientSupportOptions.cs new file mode 100644 index 00000000..5b3abec8 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CheckEmailFeaturesClientSupportOptions.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// CheckEmailFeaturesClientSupportOptions + /// + [DataContract(Name = "CheckEmailFeaturesClientSupportOptions")] + public partial class CheckEmailFeaturesClientSupportOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CheckEmailFeaturesClientSupportOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// emailBody (required). + public CheckEmailFeaturesClientSupportOptions(string emailBody = default(string)) + { + // to ensure "emailBody" is required (not null) + if (emailBody == null) + { + throw new ArgumentNullException("emailBody is a required property for CheckEmailFeaturesClientSupportOptions and cannot be null"); + } + this.EmailBody = emailBody; + } + + /// + /// Gets or Sets EmailBody + /// + [DataMember(Name = "emailBody", IsRequired = true, EmitDefaultValue = true)] + public string EmailBody { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CheckEmailFeaturesClientSupportOptions {\n"); + sb.Append(" EmailBody: ").Append(EmailBody).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CheckEmailFeaturesClientSupportOptions); + } + + /// + /// Returns true if CheckEmailFeaturesClientSupportOptions instances are equal + /// + /// Instance of CheckEmailFeaturesClientSupportOptions to be compared + /// Boolean + public bool Equals(CheckEmailFeaturesClientSupportOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailBody == input.EmailBody || + (this.EmailBody != null && + this.EmailBody.Equals(input.EmailBody)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailBody != null) + { + hashCode = (hashCode * 59) + this.EmailBody.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CheckEmailFeaturesClientSupportResults.cs b/src/mailslurp_netstandard_2x/Model/CheckEmailFeaturesClientSupportResults.cs new file mode 100644 index 00000000..0e0ca804 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CheckEmailFeaturesClientSupportResults.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// CheckEmailFeaturesClientSupportResults + /// + [DataContract(Name = "CheckEmailFeaturesClientSupportResults")] + public partial class CheckEmailFeaturesClientSupportResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CheckEmailFeaturesClientSupportResults() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public CheckEmailFeaturesClientSupportResults(EmailFeatureSupportResult result = default(EmailFeatureSupportResult)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for CheckEmailFeaturesClientSupportResults and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public EmailFeatureSupportResult Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CheckEmailFeaturesClientSupportResults {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CheckEmailFeaturesClientSupportResults); + } + + /// + /// Returns true if CheckEmailFeaturesClientSupportResults instances are equal + /// + /// Instance of CheckEmailFeaturesClientSupportResults to be compared + /// Boolean + public bool Equals(CheckEmailFeaturesClientSupportResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Result == input.Result || + (this.Result != null && + this.Result.Equals(input.Result)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Result != null) + { + hashCode = (hashCode * 59) + this.Result.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/Complaint.cs b/src/mailslurp_netstandard_2x/Model/Complaint.cs new file mode 100644 index 00000000..d84f7de0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/Complaint.cs @@ -0,0 +1,265 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Complaint + /// + [DataContract(Name = "Complaint")] + public partial class Complaint : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Complaint() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId. + /// eventType. + /// mailSource. + /// mailMessageId. + /// complaintRecipient (required). + /// createdAt (required). + /// updatedAt (required). + public Complaint(Guid id = default(Guid), Guid userId = default(Guid), string eventType = default(string), string mailSource = default(string), string mailMessageId = default(string), string complaintRecipient = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + this.Id = id; + // to ensure "complaintRecipient" is required (not null) + if (complaintRecipient == null) + { + throw new ArgumentNullException("complaintRecipient is a required property for Complaint and cannot be null"); + } + this.ComplaintRecipient = complaintRecipient; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.UserId = userId; + this.EventType = eventType; + this.MailSource = mailSource; + this.MailMessageId = mailMessageId; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", EmitDefaultValue = false)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets EventType + /// + [DataMember(Name = "eventType", EmitDefaultValue = false)] + public string EventType { get; set; } + + /// + /// Gets or Sets MailSource + /// + [DataMember(Name = "mailSource", EmitDefaultValue = false)] + public string MailSource { get; set; } + + /// + /// Gets or Sets MailMessageId + /// + [DataMember(Name = "mailMessageId", EmitDefaultValue = false)] + public string MailMessageId { get; set; } + + /// + /// Gets or Sets ComplaintRecipient + /// + [DataMember(Name = "complaintRecipient", IsRequired = true, EmitDefaultValue = true)] + public string ComplaintRecipient { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Complaint {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" EventType: ").Append(EventType).Append("\n"); + sb.Append(" MailSource: ").Append(MailSource).Append("\n"); + sb.Append(" MailMessageId: ").Append(MailMessageId).Append("\n"); + sb.Append(" ComplaintRecipient: ").Append(ComplaintRecipient).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Complaint); + } + + /// + /// Returns true if Complaint instances are equal + /// + /// Instance of Complaint to be compared + /// Boolean + public bool Equals(Complaint input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.EventType == input.EventType || + (this.EventType != null && + this.EventType.Equals(input.EventType)) + ) && + ( + this.MailSource == input.MailSource || + (this.MailSource != null && + this.MailSource.Equals(input.MailSource)) + ) && + ( + this.MailMessageId == input.MailMessageId || + (this.MailMessageId != null && + this.MailMessageId.Equals(input.MailMessageId)) + ) && + ( + this.ComplaintRecipient == input.ComplaintRecipient || + (this.ComplaintRecipient != null && + this.ComplaintRecipient.Equals(input.ComplaintRecipient)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.EventType != null) + { + hashCode = (hashCode * 59) + this.EventType.GetHashCode(); + } + if (this.MailSource != null) + { + hashCode = (hashCode * 59) + this.MailSource.GetHashCode(); + } + if (this.MailMessageId != null) + { + hashCode = (hashCode * 59) + this.MailMessageId.GetHashCode(); + } + if (this.ComplaintRecipient != null) + { + hashCode = (hashCode * 59) + this.ComplaintRecipient.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConditionOption.cs b/src/mailslurp_netstandard_2x/Model/ConditionOption.cs new file mode 100644 index 00000000..499ead4a --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConditionOption.cs @@ -0,0 +1,182 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for matching emails in an inbox based on a condition such as `HAS_ATTACHMENTS=TRUE` + /// + [DataContract(Name = "ConditionOption")] + public partial class ConditionOption : IEquatable, IValidatableObject + { + /// + /// Condition of an email object that can be used to filter results + /// + /// Condition of an email object that can be used to filter results + [JsonConverter(typeof(StringEnumConverter))] + public enum ConditionEnum + { + /// + /// Enum HASATTACHMENTS for value: HAS_ATTACHMENTS + /// + [EnumMember(Value = "HAS_ATTACHMENTS")] + HASATTACHMENTS = 1 + + } + + + /// + /// Condition of an email object that can be used to filter results + /// + /// Condition of an email object that can be used to filter results + [DataMember(Name = "condition", IsRequired = true, EmitDefaultValue = true)] + public ConditionEnum Condition { get; set; } + /// + /// Expected condition value + /// + /// Expected condition value + [JsonConverter(typeof(StringEnumConverter))] + public enum ValueEnum + { + /// + /// Enum TRUE for value: TRUE + /// + [EnumMember(Value = "TRUE")] + TRUE = 1, + + /// + /// Enum FALSE for value: FALSE + /// + [EnumMember(Value = "FALSE")] + FALSE = 2 + + } + + + /// + /// Expected condition value + /// + /// Expected condition value + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public ValueEnum Value { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ConditionOption() { } + /// + /// Initializes a new instance of the class. + /// + /// Condition of an email object that can be used to filter results (required). + /// Expected condition value (required). + public ConditionOption(ConditionEnum condition = default(ConditionEnum), ValueEnum value = default(ValueEnum)) + { + this.Condition = condition; + this.Value = value; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConditionOption {\n"); + sb.Append(" Condition: ").Append(Condition).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConditionOption); + } + + /// + /// Returns true if ConditionOption instances are equal + /// + /// Instance of ConditionOption to be compared + /// Boolean + public bool Equals(ConditionOption input) + { + if (input == null) + { + return false; + } + return + ( + this.Condition == input.Condition || + this.Condition.Equals(input.Condition) + ) && + ( + this.Value == input.Value || + this.Value.Equals(input.Value) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Condition.GetHashCode(); + hashCode = (hashCode * 59) + this.Value.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConnectorDto.cs b/src/mailslurp_netstandard_2x/Model/ConnectorDto.cs new file mode 100644 index 00000000..53708406 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConnectorDto.cs @@ -0,0 +1,308 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ConnectorDto + /// + [DataContract(Name = "ConnectorDto")] + public partial class ConnectorDto : IEquatable, IValidatableObject + { + /// + /// Defines SyncScheduleType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SyncScheduleTypeEnum + { + /// + /// Enum INTERVAL for value: INTERVAL + /// + [EnumMember(Value = "INTERVAL")] + INTERVAL = 1 + + } + + + /// + /// Gets or Sets SyncScheduleType + /// + [DataMember(Name = "syncScheduleType", EmitDefaultValue = true)] + public SyncScheduleTypeEnum? SyncScheduleType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ConnectorDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// name. + /// enabled (required). + /// userId (required). + /// inboxId (required). + /// syncEnabled (required). + /// syncScheduleType. + /// syncInterval. + /// hasImapConnection (required). + /// hasSmtpConnection (required). + /// createdAt (required). + public ConnectorDto(Guid id = default(Guid), string name = default(string), bool enabled = default(bool), Guid userId = default(Guid), Guid inboxId = default(Guid), bool syncEnabled = default(bool), SyncScheduleTypeEnum? syncScheduleType = default(SyncScheduleTypeEnum?), int? syncInterval = default(int?), bool hasImapConnection = default(bool), bool hasSmtpConnection = default(bool), DateTime createdAt = default(DateTime)) + { + this.Id = id; + this.Enabled = enabled; + this.UserId = userId; + this.InboxId = inboxId; + this.SyncEnabled = syncEnabled; + this.HasImapConnection = hasImapConnection; + this.HasSmtpConnection = hasSmtpConnection; + this.CreatedAt = createdAt; + this.Name = name; + this.SyncScheduleType = syncScheduleType; + this.SyncInterval = syncInterval; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Enabled + /// + [DataMember(Name = "enabled", IsRequired = true, EmitDefaultValue = true)] + public bool Enabled { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets SyncEnabled + /// + [DataMember(Name = "syncEnabled", IsRequired = true, EmitDefaultValue = true)] + public bool SyncEnabled { get; set; } + + /// + /// Gets or Sets SyncInterval + /// + [DataMember(Name = "syncInterval", EmitDefaultValue = true)] + public int? SyncInterval { get; set; } + + /// + /// Gets or Sets HasImapConnection + /// + [DataMember(Name = "hasImapConnection", IsRequired = true, EmitDefaultValue = true)] + public bool HasImapConnection { get; set; } + + /// + /// Gets or Sets HasSmtpConnection + /// + [DataMember(Name = "hasSmtpConnection", IsRequired = true, EmitDefaultValue = true)] + public bool HasSmtpConnection { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConnectorDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" SyncEnabled: ").Append(SyncEnabled).Append("\n"); + sb.Append(" SyncScheduleType: ").Append(SyncScheduleType).Append("\n"); + sb.Append(" SyncInterval: ").Append(SyncInterval).Append("\n"); + sb.Append(" HasImapConnection: ").Append(HasImapConnection).Append("\n"); + sb.Append(" HasSmtpConnection: ").Append(HasSmtpConnection).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectorDto); + } + + /// + /// Returns true if ConnectorDto instances are equal + /// + /// Instance of ConnectorDto to be compared + /// Boolean + public bool Equals(ConnectorDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Enabled == input.Enabled || + this.Enabled.Equals(input.Enabled) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.SyncEnabled == input.SyncEnabled || + this.SyncEnabled.Equals(input.SyncEnabled) + ) && + ( + this.SyncScheduleType == input.SyncScheduleType || + this.SyncScheduleType.Equals(input.SyncScheduleType) + ) && + ( + this.SyncInterval == input.SyncInterval || + (this.SyncInterval != null && + this.SyncInterval.Equals(input.SyncInterval)) + ) && + ( + this.HasImapConnection == input.HasImapConnection || + this.HasImapConnection.Equals(input.HasImapConnection) + ) && + ( + this.HasSmtpConnection == input.HasSmtpConnection || + this.HasSmtpConnection.Equals(input.HasSmtpConnection) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Enabled.GetHashCode(); + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SyncEnabled.GetHashCode(); + hashCode = (hashCode * 59) + this.SyncScheduleType.GetHashCode(); + if (this.SyncInterval != null) + { + hashCode = (hashCode * 59) + this.SyncInterval.GetHashCode(); + } + hashCode = (hashCode * 59) + this.HasImapConnection.GetHashCode(); + hashCode = (hashCode * 59) + this.HasSmtpConnection.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConnectorImapConnectionDto.cs b/src/mailslurp_netstandard_2x/Model/ConnectorImapConnectionDto.cs new file mode 100644 index 00000000..f8055dbf --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConnectorImapConnectionDto.cs @@ -0,0 +1,302 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ConnectorImapConnectionDto + /// + [DataContract(Name = "ConnectorImapConnectionDto")] + public partial class ConnectorImapConnectionDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ConnectorImapConnectionDto() { } + /// + /// Initializes a new instance of the class. + /// + /// connectorId (required). + /// imapHost. + /// imapPort. + /// imapUsername. + /// imapPassword. + /// imapSsl. + /// selectFolder. + /// searchTerms. + /// enabled. + /// createdAt (required). + /// id (required). + public ConnectorImapConnectionDto(Guid connectorId = default(Guid), string imapHost = default(string), int imapPort = default(int), string imapUsername = default(string), string imapPassword = default(string), bool imapSsl = default(bool), string selectFolder = default(string), string searchTerms = default(string), bool enabled = default(bool), DateTime createdAt = default(DateTime), Guid id = default(Guid)) + { + this.ConnectorId = connectorId; + this.CreatedAt = createdAt; + this.Id = id; + this.ImapHost = imapHost; + this.ImapPort = imapPort; + this.ImapUsername = imapUsername; + this.ImapPassword = imapPassword; + this.ImapSsl = imapSsl; + this.SelectFolder = selectFolder; + this.SearchTerms = searchTerms; + this.Enabled = enabled; + } + + /// + /// Gets or Sets ConnectorId + /// + [DataMember(Name = "connectorId", IsRequired = true, EmitDefaultValue = true)] + public Guid ConnectorId { get; set; } + + /// + /// Gets or Sets ImapHost + /// + [DataMember(Name = "imapHost", EmitDefaultValue = false)] + public string ImapHost { get; set; } + + /// + /// Gets or Sets ImapPort + /// + [DataMember(Name = "imapPort", EmitDefaultValue = false)] + public int ImapPort { get; set; } + + /// + /// Gets or Sets ImapUsername + /// + [DataMember(Name = "imapUsername", EmitDefaultValue = false)] + public string ImapUsername { get; set; } + + /// + /// Gets or Sets ImapPassword + /// + [DataMember(Name = "imapPassword", EmitDefaultValue = false)] + public string ImapPassword { get; set; } + + /// + /// Gets or Sets ImapSsl + /// + [DataMember(Name = "imapSsl", EmitDefaultValue = true)] + public bool ImapSsl { get; set; } + + /// + /// Gets or Sets SelectFolder + /// + [DataMember(Name = "selectFolder", EmitDefaultValue = false)] + public string SelectFolder { get; set; } + + /// + /// Gets or Sets SearchTerms + /// + [DataMember(Name = "searchTerms", EmitDefaultValue = false)] + public string SearchTerms { get; set; } + + /// + /// Gets or Sets Enabled + /// + [DataMember(Name = "enabled", EmitDefaultValue = true)] + public bool Enabled { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConnectorImapConnectionDto {\n"); + sb.Append(" ConnectorId: ").Append(ConnectorId).Append("\n"); + sb.Append(" ImapHost: ").Append(ImapHost).Append("\n"); + sb.Append(" ImapPort: ").Append(ImapPort).Append("\n"); + sb.Append(" ImapUsername: ").Append(ImapUsername).Append("\n"); + sb.Append(" ImapPassword: ").Append(ImapPassword).Append("\n"); + sb.Append(" ImapSsl: ").Append(ImapSsl).Append("\n"); + sb.Append(" SelectFolder: ").Append(SelectFolder).Append("\n"); + sb.Append(" SearchTerms: ").Append(SearchTerms).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectorImapConnectionDto); + } + + /// + /// Returns true if ConnectorImapConnectionDto instances are equal + /// + /// Instance of ConnectorImapConnectionDto to be compared + /// Boolean + public bool Equals(ConnectorImapConnectionDto input) + { + if (input == null) + { + return false; + } + return + ( + this.ConnectorId == input.ConnectorId || + (this.ConnectorId != null && + this.ConnectorId.Equals(input.ConnectorId)) + ) && + ( + this.ImapHost == input.ImapHost || + (this.ImapHost != null && + this.ImapHost.Equals(input.ImapHost)) + ) && + ( + this.ImapPort == input.ImapPort || + this.ImapPort.Equals(input.ImapPort) + ) && + ( + this.ImapUsername == input.ImapUsername || + (this.ImapUsername != null && + this.ImapUsername.Equals(input.ImapUsername)) + ) && + ( + this.ImapPassword == input.ImapPassword || + (this.ImapPassword != null && + this.ImapPassword.Equals(input.ImapPassword)) + ) && + ( + this.ImapSsl == input.ImapSsl || + this.ImapSsl.Equals(input.ImapSsl) + ) && + ( + this.SelectFolder == input.SelectFolder || + (this.SelectFolder != null && + this.SelectFolder.Equals(input.SelectFolder)) + ) && + ( + this.SearchTerms == input.SearchTerms || + (this.SearchTerms != null && + this.SearchTerms.Equals(input.SearchTerms)) + ) && + ( + this.Enabled == input.Enabled || + this.Enabled.Equals(input.Enabled) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ConnectorId != null) + { + hashCode = (hashCode * 59) + this.ConnectorId.GetHashCode(); + } + if (this.ImapHost != null) + { + hashCode = (hashCode * 59) + this.ImapHost.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ImapPort.GetHashCode(); + if (this.ImapUsername != null) + { + hashCode = (hashCode * 59) + this.ImapUsername.GetHashCode(); + } + if (this.ImapPassword != null) + { + hashCode = (hashCode * 59) + this.ImapPassword.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ImapSsl.GetHashCode(); + if (this.SelectFolder != null) + { + hashCode = (hashCode * 59) + this.SelectFolder.GetHashCode(); + } + if (this.SearchTerms != null) + { + hashCode = (hashCode * 59) + this.SearchTerms.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Enabled.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConnectorProjection.cs b/src/mailslurp_netstandard_2x/Model/ConnectorProjection.cs new file mode 100644 index 00000000..9858f4a1 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConnectorProjection.cs @@ -0,0 +1,294 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Connector + /// + [DataContract(Name = "ConnectorProjection")] + public partial class ConnectorProjection : IEquatable, IValidatableObject + { + /// + /// Defines SyncScheduleType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SyncScheduleTypeEnum + { + /// + /// Enum INTERVAL for value: INTERVAL + /// + [EnumMember(Value = "INTERVAL")] + INTERVAL = 1 + + } + + + /// + /// Gets or Sets SyncScheduleType + /// + [DataMember(Name = "syncScheduleType", IsRequired = true, EmitDefaultValue = true)] + public SyncScheduleTypeEnum SyncScheduleType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ConnectorProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// enabled. + /// emailAddress. + /// inboxId (required). + /// userId (required). + /// syncEnabled. + /// syncScheduleType (required). + /// syncInterval. + /// createdAt (required). + /// name. + /// id. + public ConnectorProjection(bool enabled = default(bool), string emailAddress = default(string), Guid inboxId = default(Guid), Guid userId = default(Guid), bool syncEnabled = default(bool), SyncScheduleTypeEnum syncScheduleType = default(SyncScheduleTypeEnum), int syncInterval = default(int), DateTime createdAt = default(DateTime), string name = default(string), Guid id = default(Guid)) + { + this.InboxId = inboxId; + this.UserId = userId; + this.SyncScheduleType = syncScheduleType; + this.CreatedAt = createdAt; + this.Enabled = enabled; + this.EmailAddress = emailAddress; + this.SyncEnabled = syncEnabled; + this.SyncInterval = syncInterval; + this.Name = name; + this.Id = id; + } + + /// + /// Gets or Sets Enabled + /// + [DataMember(Name = "enabled", EmitDefaultValue = true)] + public bool Enabled { get; set; } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", EmitDefaultValue = false)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets SyncEnabled + /// + [DataMember(Name = "syncEnabled", EmitDefaultValue = true)] + public bool SyncEnabled { get; set; } + + /// + /// Gets or Sets SyncInterval + /// + [DataMember(Name = "syncInterval", EmitDefaultValue = false)] + public int SyncInterval { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConnectorProjection {\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" SyncEnabled: ").Append(SyncEnabled).Append("\n"); + sb.Append(" SyncScheduleType: ").Append(SyncScheduleType).Append("\n"); + sb.Append(" SyncInterval: ").Append(SyncInterval).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectorProjection); + } + + /// + /// Returns true if ConnectorProjection instances are equal + /// + /// Instance of ConnectorProjection to be compared + /// Boolean + public bool Equals(ConnectorProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Enabled == input.Enabled || + this.Enabled.Equals(input.Enabled) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.SyncEnabled == input.SyncEnabled || + this.SyncEnabled.Equals(input.SyncEnabled) + ) && + ( + this.SyncScheduleType == input.SyncScheduleType || + this.SyncScheduleType.Equals(input.SyncScheduleType) + ) && + ( + this.SyncInterval == input.SyncInterval || + this.SyncInterval.Equals(input.SyncInterval) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Enabled.GetHashCode(); + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SyncEnabled.GetHashCode(); + hashCode = (hashCode * 59) + this.SyncScheduleType.GetHashCode(); + hashCode = (hashCode * 59) + this.SyncInterval.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConnectorSmtpConnectionDto.cs b/src/mailslurp_netstandard_2x/Model/ConnectorSmtpConnectionDto.cs new file mode 100644 index 00000000..08d30aba --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConnectorSmtpConnectionDto.cs @@ -0,0 +1,266 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ConnectorSmtpConnectionDto + /// + [DataContract(Name = "ConnectorSmtpConnectionDto")] + public partial class ConnectorSmtpConnectionDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ConnectorSmtpConnectionDto() { } + /// + /// Initializes a new instance of the class. + /// + /// connectorId (required). + /// smtpHost. + /// smtpPort. + /// smtpUsername. + /// smtpPassword. + /// smtpSsl. + /// enabled. + /// createdAt (required). + /// id (required). + public ConnectorSmtpConnectionDto(Guid connectorId = default(Guid), string smtpHost = default(string), int smtpPort = default(int), string smtpUsername = default(string), string smtpPassword = default(string), bool smtpSsl = default(bool), bool enabled = default(bool), DateTime createdAt = default(DateTime), Guid id = default(Guid)) + { + this.ConnectorId = connectorId; + this.CreatedAt = createdAt; + this.Id = id; + this.SmtpHost = smtpHost; + this.SmtpPort = smtpPort; + this.SmtpUsername = smtpUsername; + this.SmtpPassword = smtpPassword; + this.SmtpSsl = smtpSsl; + this.Enabled = enabled; + } + + /// + /// Gets or Sets ConnectorId + /// + [DataMember(Name = "connectorId", IsRequired = true, EmitDefaultValue = true)] + public Guid ConnectorId { get; set; } + + /// + /// Gets or Sets SmtpHost + /// + [DataMember(Name = "smtpHost", EmitDefaultValue = false)] + public string SmtpHost { get; set; } + + /// + /// Gets or Sets SmtpPort + /// + [DataMember(Name = "smtpPort", EmitDefaultValue = false)] + public int SmtpPort { get; set; } + + /// + /// Gets or Sets SmtpUsername + /// + [DataMember(Name = "smtpUsername", EmitDefaultValue = false)] + public string SmtpUsername { get; set; } + + /// + /// Gets or Sets SmtpPassword + /// + [DataMember(Name = "smtpPassword", EmitDefaultValue = false)] + public string SmtpPassword { get; set; } + + /// + /// Gets or Sets SmtpSsl + /// + [DataMember(Name = "smtpSsl", EmitDefaultValue = true)] + public bool SmtpSsl { get; set; } + + /// + /// Gets or Sets Enabled + /// + [DataMember(Name = "enabled", EmitDefaultValue = true)] + public bool Enabled { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConnectorSmtpConnectionDto {\n"); + sb.Append(" ConnectorId: ").Append(ConnectorId).Append("\n"); + sb.Append(" SmtpHost: ").Append(SmtpHost).Append("\n"); + sb.Append(" SmtpPort: ").Append(SmtpPort).Append("\n"); + sb.Append(" SmtpUsername: ").Append(SmtpUsername).Append("\n"); + sb.Append(" SmtpPassword: ").Append(SmtpPassword).Append("\n"); + sb.Append(" SmtpSsl: ").Append(SmtpSsl).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectorSmtpConnectionDto); + } + + /// + /// Returns true if ConnectorSmtpConnectionDto instances are equal + /// + /// Instance of ConnectorSmtpConnectionDto to be compared + /// Boolean + public bool Equals(ConnectorSmtpConnectionDto input) + { + if (input == null) + { + return false; + } + return + ( + this.ConnectorId == input.ConnectorId || + (this.ConnectorId != null && + this.ConnectorId.Equals(input.ConnectorId)) + ) && + ( + this.SmtpHost == input.SmtpHost || + (this.SmtpHost != null && + this.SmtpHost.Equals(input.SmtpHost)) + ) && + ( + this.SmtpPort == input.SmtpPort || + this.SmtpPort.Equals(input.SmtpPort) + ) && + ( + this.SmtpUsername == input.SmtpUsername || + (this.SmtpUsername != null && + this.SmtpUsername.Equals(input.SmtpUsername)) + ) && + ( + this.SmtpPassword == input.SmtpPassword || + (this.SmtpPassword != null && + this.SmtpPassword.Equals(input.SmtpPassword)) + ) && + ( + this.SmtpSsl == input.SmtpSsl || + this.SmtpSsl.Equals(input.SmtpSsl) + ) && + ( + this.Enabled == input.Enabled || + this.Enabled.Equals(input.Enabled) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ConnectorId != null) + { + hashCode = (hashCode * 59) + this.ConnectorId.GetHashCode(); + } + if (this.SmtpHost != null) + { + hashCode = (hashCode * 59) + this.SmtpHost.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SmtpPort.GetHashCode(); + if (this.SmtpUsername != null) + { + hashCode = (hashCode * 59) + this.SmtpUsername.GetHashCode(); + } + if (this.SmtpPassword != null) + { + hashCode = (hashCode * 59) + this.SmtpPassword.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SmtpSsl.GetHashCode(); + hashCode = (hashCode * 59) + this.Enabled.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConnectorSyncEventDto.cs b/src/mailslurp_netstandard_2x/Model/ConnectorSyncEventDto.cs new file mode 100644 index 00000000..76184a8f --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConnectorSyncEventDto.cs @@ -0,0 +1,254 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ConnectorSyncEventDto + /// + [DataContract(Name = "ConnectorSyncEventDto")] + public partial class ConnectorSyncEventDto : IEquatable, IValidatableObject + { + /// + /// Defines SyncStatus + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SyncStatusEnum + { + /// + /// Enum SUCCESS for value: SUCCESS + /// + [EnumMember(Value = "SUCCESS")] + SUCCESS = 1, + + /// + /// Enum INTERNALERROR for value: INTERNAL_ERROR + /// + [EnumMember(Value = "INTERNAL_ERROR")] + INTERNALERROR = 2, + + /// + /// Enum SUBSCRIPTIONERROR for value: SUBSCRIPTION_ERROR + /// + [EnumMember(Value = "SUBSCRIPTION_ERROR")] + SUBSCRIPTIONERROR = 3, + + /// + /// Enum CONNECTIONERROR for value: CONNECTION_ERROR + /// + [EnumMember(Value = "CONNECTION_ERROR")] + CONNECTIONERROR = 4, + + /// + /// Enum NOTFOUND for value: NOT_FOUND + /// + [EnumMember(Value = "NOT_FOUND")] + NOTFOUND = 5 + + } + + + /// + /// Gets or Sets SyncStatus + /// + [DataMember(Name = "syncStatus", IsRequired = true, EmitDefaultValue = true)] + public SyncStatusEnum SyncStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ConnectorSyncEventDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// connectorId (required). + /// syncStatus (required). + /// syncCount (required). + /// message. + /// createdAt (required). + public ConnectorSyncEventDto(Guid id = default(Guid), Guid connectorId = default(Guid), SyncStatusEnum syncStatus = default(SyncStatusEnum), long syncCount = default(long), string message = default(string), DateTime createdAt = default(DateTime)) + { + this.Id = id; + this.ConnectorId = connectorId; + this.SyncStatus = syncStatus; + this.SyncCount = syncCount; + this.CreatedAt = createdAt; + this.Message = message; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets ConnectorId + /// + [DataMember(Name = "connectorId", IsRequired = true, EmitDefaultValue = true)] + public Guid ConnectorId { get; set; } + + /// + /// Gets or Sets SyncCount + /// + [DataMember(Name = "syncCount", IsRequired = true, EmitDefaultValue = true)] + public long SyncCount { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConnectorSyncEventDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" ConnectorId: ").Append(ConnectorId).Append("\n"); + sb.Append(" SyncStatus: ").Append(SyncStatus).Append("\n"); + sb.Append(" SyncCount: ").Append(SyncCount).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectorSyncEventDto); + } + + /// + /// Returns true if ConnectorSyncEventDto instances are equal + /// + /// Instance of ConnectorSyncEventDto to be compared + /// Boolean + public bool Equals(ConnectorSyncEventDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.ConnectorId == input.ConnectorId || + (this.ConnectorId != null && + this.ConnectorId.Equals(input.ConnectorId)) + ) && + ( + this.SyncStatus == input.SyncStatus || + this.SyncStatus.Equals(input.SyncStatus) + ) && + ( + this.SyncCount == input.SyncCount || + this.SyncCount.Equals(input.SyncCount) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.ConnectorId != null) + { + hashCode = (hashCode * 59) + this.ConnectorId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SyncStatus.GetHashCode(); + hashCode = (hashCode * 59) + this.SyncCount.GetHashCode(); + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConnectorSyncEventProjection.cs b/src/mailslurp_netstandard_2x/Model/ConnectorSyncEventProjection.cs new file mode 100644 index 00000000..67fab9d8 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConnectorSyncEventProjection.cs @@ -0,0 +1,254 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ConnectorSyncEventProjection + /// + [DataContract(Name = "ConnectorSyncEventProjection")] + public partial class ConnectorSyncEventProjection : IEquatable, IValidatableObject + { + /// + /// Defines SyncStatus + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SyncStatusEnum + { + /// + /// Enum SUCCESS for value: SUCCESS + /// + [EnumMember(Value = "SUCCESS")] + SUCCESS = 1, + + /// + /// Enum INTERNALERROR for value: INTERNAL_ERROR + /// + [EnumMember(Value = "INTERNAL_ERROR")] + INTERNALERROR = 2, + + /// + /// Enum SUBSCRIPTIONERROR for value: SUBSCRIPTION_ERROR + /// + [EnumMember(Value = "SUBSCRIPTION_ERROR")] + SUBSCRIPTIONERROR = 3, + + /// + /// Enum CONNECTIONERROR for value: CONNECTION_ERROR + /// + [EnumMember(Value = "CONNECTION_ERROR")] + CONNECTIONERROR = 4, + + /// + /// Enum NOTFOUND for value: NOT_FOUND + /// + [EnumMember(Value = "NOT_FOUND")] + NOTFOUND = 5 + + } + + + /// + /// Gets or Sets SyncStatus + /// + [DataMember(Name = "syncStatus", IsRequired = true, EmitDefaultValue = true)] + public SyncStatusEnum SyncStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ConnectorSyncEventProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// connectorId (required). + /// syncCount (required). + /// syncStatus (required). + /// createdAt (required). + /// message. + /// id. + public ConnectorSyncEventProjection(Guid connectorId = default(Guid), long syncCount = default(long), SyncStatusEnum syncStatus = default(SyncStatusEnum), DateTime createdAt = default(DateTime), string message = default(string), Guid id = default(Guid)) + { + this.ConnectorId = connectorId; + this.SyncCount = syncCount; + this.SyncStatus = syncStatus; + this.CreatedAt = createdAt; + this.Message = message; + this.Id = id; + } + + /// + /// Gets or Sets ConnectorId + /// + [DataMember(Name = "connectorId", IsRequired = true, EmitDefaultValue = true)] + public Guid ConnectorId { get; set; } + + /// + /// Gets or Sets SyncCount + /// + [DataMember(Name = "syncCount", IsRequired = true, EmitDefaultValue = true)] + public long SyncCount { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConnectorSyncEventProjection {\n"); + sb.Append(" ConnectorId: ").Append(ConnectorId).Append("\n"); + sb.Append(" SyncCount: ").Append(SyncCount).Append("\n"); + sb.Append(" SyncStatus: ").Append(SyncStatus).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectorSyncEventProjection); + } + + /// + /// Returns true if ConnectorSyncEventProjection instances are equal + /// + /// Instance of ConnectorSyncEventProjection to be compared + /// Boolean + public bool Equals(ConnectorSyncEventProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.ConnectorId == input.ConnectorId || + (this.ConnectorId != null && + this.ConnectorId.Equals(input.ConnectorId)) + ) && + ( + this.SyncCount == input.SyncCount || + this.SyncCount.Equals(input.SyncCount) + ) && + ( + this.SyncStatus == input.SyncStatus || + this.SyncStatus.Equals(input.SyncStatus) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ConnectorId != null) + { + hashCode = (hashCode * 59) + this.ConnectorId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SyncCount.GetHashCode(); + hashCode = (hashCode * 59) + this.SyncStatus.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResult.cs b/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResult.cs new file mode 100644 index 00000000..fed6d48a --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResult.cs @@ -0,0 +1,165 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ConnectorSyncRequestResult + /// + [DataContract(Name = "ConnectorSyncRequestResult")] + public partial class ConnectorSyncRequestResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// syncResult. + /// exception. + /// eventId. + public ConnectorSyncRequestResult(ConnectorSyncResult syncResult = default(ConnectorSyncResult), ConnectorSyncRequestResultException exception = default(ConnectorSyncRequestResultException), Guid eventId = default(Guid)) + { + this.SyncResult = syncResult; + this.Exception = exception; + this.EventId = eventId; + } + + /// + /// Gets or Sets SyncResult + /// + [DataMember(Name = "syncResult", EmitDefaultValue = false)] + public ConnectorSyncResult SyncResult { get; set; } + + /// + /// Gets or Sets Exception + /// + [DataMember(Name = "exception", EmitDefaultValue = false)] + public ConnectorSyncRequestResultException Exception { get; set; } + + /// + /// Gets or Sets EventId + /// + [DataMember(Name = "eventId", EmitDefaultValue = false)] + public Guid EventId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConnectorSyncRequestResult {\n"); + sb.Append(" SyncResult: ").Append(SyncResult).Append("\n"); + sb.Append(" Exception: ").Append(Exception).Append("\n"); + sb.Append(" EventId: ").Append(EventId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectorSyncRequestResult); + } + + /// + /// Returns true if ConnectorSyncRequestResult instances are equal + /// + /// Instance of ConnectorSyncRequestResult to be compared + /// Boolean + public bool Equals(ConnectorSyncRequestResult input) + { + if (input == null) + { + return false; + } + return + ( + this.SyncResult == input.SyncResult || + (this.SyncResult != null && + this.SyncResult.Equals(input.SyncResult)) + ) && + ( + this.Exception == input.Exception || + (this.Exception != null && + this.Exception.Equals(input.Exception)) + ) && + ( + this.EventId == input.EventId || + (this.EventId != null && + this.EventId.Equals(input.EventId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SyncResult != null) + { + hashCode = (hashCode * 59) + this.SyncResult.GetHashCode(); + } + if (this.Exception != null) + { + hashCode = (hashCode * 59) + this.Exception.GetHashCode(); + } + if (this.EventId != null) + { + hashCode = (hashCode * 59) + this.EventId.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultException.cs b/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultException.cs new file mode 100644 index 00000000..8e5a84ec --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultException.cs @@ -0,0 +1,203 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ConnectorSyncRequestResultException + /// + [DataContract(Name = "ConnectorSyncRequestResult_exception")] + public partial class ConnectorSyncRequestResultException : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// cause. + /// stackTrace. + /// message. + /// suppressed. + /// localizedMessage. + public ConnectorSyncRequestResultException(ConnectorSyncRequestResultExceptionCause cause = default(ConnectorSyncRequestResultExceptionCause), List stackTrace = default(List), string message = default(string), List suppressed = default(List), string localizedMessage = default(string)) + { + this.Cause = cause; + this.StackTrace = stackTrace; + this.Message = message; + this.Suppressed = suppressed; + this.LocalizedMessage = localizedMessage; + } + + /// + /// Gets or Sets Cause + /// + [DataMember(Name = "cause", EmitDefaultValue = false)] + public ConnectorSyncRequestResultExceptionCause Cause { get; set; } + + /// + /// Gets or Sets StackTrace + /// + [DataMember(Name = "stackTrace", EmitDefaultValue = false)] + public List StackTrace { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Gets or Sets Suppressed + /// + [DataMember(Name = "suppressed", EmitDefaultValue = false)] + public List Suppressed { get; set; } + + /// + /// Gets or Sets LocalizedMessage + /// + [DataMember(Name = "localizedMessage", EmitDefaultValue = false)] + public string LocalizedMessage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConnectorSyncRequestResultException {\n"); + sb.Append(" Cause: ").Append(Cause).Append("\n"); + sb.Append(" StackTrace: ").Append(StackTrace).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Suppressed: ").Append(Suppressed).Append("\n"); + sb.Append(" LocalizedMessage: ").Append(LocalizedMessage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectorSyncRequestResultException); + } + + /// + /// Returns true if ConnectorSyncRequestResultException instances are equal + /// + /// Instance of ConnectorSyncRequestResultException to be compared + /// Boolean + public bool Equals(ConnectorSyncRequestResultException input) + { + if (input == null) + { + return false; + } + return + ( + this.Cause == input.Cause || + (this.Cause != null && + this.Cause.Equals(input.Cause)) + ) && + ( + this.StackTrace == input.StackTrace || + this.StackTrace != null && + input.StackTrace != null && + this.StackTrace.SequenceEqual(input.StackTrace) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Suppressed == input.Suppressed || + this.Suppressed != null && + input.Suppressed != null && + this.Suppressed.SequenceEqual(input.Suppressed) + ) && + ( + this.LocalizedMessage == input.LocalizedMessage || + (this.LocalizedMessage != null && + this.LocalizedMessage.Equals(input.LocalizedMessage)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Cause != null) + { + hashCode = (hashCode * 59) + this.Cause.GetHashCode(); + } + if (this.StackTrace != null) + { + hashCode = (hashCode * 59) + this.StackTrace.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.Suppressed != null) + { + hashCode = (hashCode * 59) + this.Suppressed.GetHashCode(); + } + if (this.LocalizedMessage != null) + { + hashCode = (hashCode * 59) + this.LocalizedMessage.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultExceptionCause.cs b/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultExceptionCause.cs new file mode 100644 index 00000000..a9391a91 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultExceptionCause.cs @@ -0,0 +1,166 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ConnectorSyncRequestResultExceptionCause + /// + [DataContract(Name = "ConnectorSyncRequestResult_exception_cause")] + public partial class ConnectorSyncRequestResultExceptionCause : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// stackTrace. + /// message. + /// localizedMessage. + public ConnectorSyncRequestResultExceptionCause(List stackTrace = default(List), string message = default(string), string localizedMessage = default(string)) + { + this.StackTrace = stackTrace; + this.Message = message; + this.LocalizedMessage = localizedMessage; + } + + /// + /// Gets or Sets StackTrace + /// + [DataMember(Name = "stackTrace", EmitDefaultValue = false)] + public List StackTrace { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Gets or Sets LocalizedMessage + /// + [DataMember(Name = "localizedMessage", EmitDefaultValue = false)] + public string LocalizedMessage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConnectorSyncRequestResultExceptionCause {\n"); + sb.Append(" StackTrace: ").Append(StackTrace).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" LocalizedMessage: ").Append(LocalizedMessage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectorSyncRequestResultExceptionCause); + } + + /// + /// Returns true if ConnectorSyncRequestResultExceptionCause instances are equal + /// + /// Instance of ConnectorSyncRequestResultExceptionCause to be compared + /// Boolean + public bool Equals(ConnectorSyncRequestResultExceptionCause input) + { + if (input == null) + { + return false; + } + return + ( + this.StackTrace == input.StackTrace || + this.StackTrace != null && + input.StackTrace != null && + this.StackTrace.SequenceEqual(input.StackTrace) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.LocalizedMessage == input.LocalizedMessage || + (this.LocalizedMessage != null && + this.LocalizedMessage.Equals(input.LocalizedMessage)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StackTrace != null) + { + hashCode = (hashCode * 59) + this.StackTrace.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.LocalizedMessage != null) + { + hashCode = (hashCode * 59) + this.LocalizedMessage.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultExceptionCauseStackTraceInner.cs b/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultExceptionCauseStackTraceInner.cs new file mode 100644 index 00000000..9de14eaf --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConnectorSyncRequestResultExceptionCauseStackTraceInner.cs @@ -0,0 +1,247 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ConnectorSyncRequestResultExceptionCauseStackTraceInner + /// + [DataContract(Name = "ConnectorSyncRequestResult_exception_cause_stackTrace_inner")] + public partial class ConnectorSyncRequestResultExceptionCauseStackTraceInner : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// classLoaderName. + /// moduleName. + /// moduleVersion. + /// methodName. + /// fileName. + /// lineNumber. + /// className. + /// nativeMethod. + public ConnectorSyncRequestResultExceptionCauseStackTraceInner(string classLoaderName = default(string), string moduleName = default(string), string moduleVersion = default(string), string methodName = default(string), string fileName = default(string), int lineNumber = default(int), string className = default(string), bool nativeMethod = default(bool)) + { + this.ClassLoaderName = classLoaderName; + this.ModuleName = moduleName; + this.ModuleVersion = moduleVersion; + this.MethodName = methodName; + this.FileName = fileName; + this.LineNumber = lineNumber; + this.ClassName = className; + this.NativeMethod = nativeMethod; + } + + /// + /// Gets or Sets ClassLoaderName + /// + [DataMember(Name = "classLoaderName", EmitDefaultValue = false)] + public string ClassLoaderName { get; set; } + + /// + /// Gets or Sets ModuleName + /// + [DataMember(Name = "moduleName", EmitDefaultValue = false)] + public string ModuleName { get; set; } + + /// + /// Gets or Sets ModuleVersion + /// + [DataMember(Name = "moduleVersion", EmitDefaultValue = false)] + public string ModuleVersion { get; set; } + + /// + /// Gets or Sets MethodName + /// + [DataMember(Name = "methodName", EmitDefaultValue = false)] + public string MethodName { get; set; } + + /// + /// Gets or Sets FileName + /// + [DataMember(Name = "fileName", EmitDefaultValue = false)] + public string FileName { get; set; } + + /// + /// Gets or Sets LineNumber + /// + [DataMember(Name = "lineNumber", EmitDefaultValue = false)] + public int LineNumber { get; set; } + + /// + /// Gets or Sets ClassName + /// + [DataMember(Name = "className", EmitDefaultValue = false)] + public string ClassName { get; set; } + + /// + /// Gets or Sets NativeMethod + /// + [DataMember(Name = "nativeMethod", EmitDefaultValue = true)] + public bool NativeMethod { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConnectorSyncRequestResultExceptionCauseStackTraceInner {\n"); + sb.Append(" ClassLoaderName: ").Append(ClassLoaderName).Append("\n"); + sb.Append(" ModuleName: ").Append(ModuleName).Append("\n"); + sb.Append(" ModuleVersion: ").Append(ModuleVersion).Append("\n"); + sb.Append(" MethodName: ").Append(MethodName).Append("\n"); + sb.Append(" FileName: ").Append(FileName).Append("\n"); + sb.Append(" LineNumber: ").Append(LineNumber).Append("\n"); + sb.Append(" ClassName: ").Append(ClassName).Append("\n"); + sb.Append(" NativeMethod: ").Append(NativeMethod).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectorSyncRequestResultExceptionCauseStackTraceInner); + } + + /// + /// Returns true if ConnectorSyncRequestResultExceptionCauseStackTraceInner instances are equal + /// + /// Instance of ConnectorSyncRequestResultExceptionCauseStackTraceInner to be compared + /// Boolean + public bool Equals(ConnectorSyncRequestResultExceptionCauseStackTraceInner input) + { + if (input == null) + { + return false; + } + return + ( + this.ClassLoaderName == input.ClassLoaderName || + (this.ClassLoaderName != null && + this.ClassLoaderName.Equals(input.ClassLoaderName)) + ) && + ( + this.ModuleName == input.ModuleName || + (this.ModuleName != null && + this.ModuleName.Equals(input.ModuleName)) + ) && + ( + this.ModuleVersion == input.ModuleVersion || + (this.ModuleVersion != null && + this.ModuleVersion.Equals(input.ModuleVersion)) + ) && + ( + this.MethodName == input.MethodName || + (this.MethodName != null && + this.MethodName.Equals(input.MethodName)) + ) && + ( + this.FileName == input.FileName || + (this.FileName != null && + this.FileName.Equals(input.FileName)) + ) && + ( + this.LineNumber == input.LineNumber || + this.LineNumber.Equals(input.LineNumber) + ) && + ( + this.ClassName == input.ClassName || + (this.ClassName != null && + this.ClassName.Equals(input.ClassName)) + ) && + ( + this.NativeMethod == input.NativeMethod || + this.NativeMethod.Equals(input.NativeMethod) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ClassLoaderName != null) + { + hashCode = (hashCode * 59) + this.ClassLoaderName.GetHashCode(); + } + if (this.ModuleName != null) + { + hashCode = (hashCode * 59) + this.ModuleName.GetHashCode(); + } + if (this.ModuleVersion != null) + { + hashCode = (hashCode * 59) + this.ModuleVersion.GetHashCode(); + } + if (this.MethodName != null) + { + hashCode = (hashCode * 59) + this.MethodName.GetHashCode(); + } + if (this.FileName != null) + { + hashCode = (hashCode * 59) + this.FileName.GetHashCode(); + } + hashCode = (hashCode * 59) + this.LineNumber.GetHashCode(); + if (this.ClassName != null) + { + hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); + } + hashCode = (hashCode * 59) + this.NativeMethod.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ConnectorSyncResult.cs b/src/mailslurp_netstandard_2x/Model/ConnectorSyncResult.cs new file mode 100644 index 00000000..ef62ff6b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ConnectorSyncResult.cs @@ -0,0 +1,149 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ConnectorSyncResult + /// + [DataContract(Name = "ConnectorSyncResult")] + public partial class ConnectorSyncResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ConnectorSyncResult() { } + /// + /// Initializes a new instance of the class. + /// + /// emailSyncCount (required). + /// logLines. + public ConnectorSyncResult(int emailSyncCount = default(int), List logLines = default(List)) + { + this.EmailSyncCount = emailSyncCount; + this.LogLines = logLines; + } + + /// + /// Gets or Sets EmailSyncCount + /// + [DataMember(Name = "emailSyncCount", IsRequired = true, EmitDefaultValue = true)] + public int EmailSyncCount { get; set; } + + /// + /// Gets or Sets LogLines + /// + [DataMember(Name = "logLines", EmitDefaultValue = false)] + public List LogLines { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ConnectorSyncResult {\n"); + sb.Append(" EmailSyncCount: ").Append(EmailSyncCount).Append("\n"); + sb.Append(" LogLines: ").Append(LogLines).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectorSyncResult); + } + + /// + /// Returns true if ConnectorSyncResult instances are equal + /// + /// Instance of ConnectorSyncResult to be compared + /// Boolean + public bool Equals(ConnectorSyncResult input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailSyncCount == input.EmailSyncCount || + this.EmailSyncCount.Equals(input.EmailSyncCount) + ) && + ( + this.LogLines == input.LogLines || + this.LogLines != null && + input.LogLines != null && + this.LogLines.SequenceEqual(input.LogLines) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.EmailSyncCount.GetHashCode(); + if (this.LogLines != null) + { + hashCode = (hashCode * 59) + this.LogLines.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ContactDto.cs b/src/mailslurp_netstandard_2x/Model/ContactDto.cs new file mode 100644 index 00000000..dc548456 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ContactDto.cs @@ -0,0 +1,326 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Contact object. For saving a user in contact book. + /// + [DataContract(Name = "ContactDto")] + public partial class ContactDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ContactDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// groupId. + /// firstName. + /// lastName. + /// company. + /// emailAddresses (required). + /// primaryEmailAddress. + /// tags (required). + /// metaData. + /// optOut. + /// createdAt (required). + public ContactDto(Guid id = default(Guid), Guid? groupId = default(Guid?), string firstName = default(string), string lastName = default(string), string company = default(string), List emailAddresses = default(List), string primaryEmailAddress = default(string), List tags = default(List), Object metaData = default(Object), bool? optOut = default(bool?), DateTime createdAt = default(DateTime)) + { + this.Id = id; + // to ensure "emailAddresses" is required (not null) + if (emailAddresses == null) + { + throw new ArgumentNullException("emailAddresses is a required property for ContactDto and cannot be null"); + } + this.EmailAddresses = emailAddresses; + // to ensure "tags" is required (not null) + if (tags == null) + { + throw new ArgumentNullException("tags is a required property for ContactDto and cannot be null"); + } + this.Tags = tags; + this.CreatedAt = createdAt; + this.GroupId = groupId; + this.FirstName = firstName; + this.LastName = lastName; + this.Company = company; + this.PrimaryEmailAddress = primaryEmailAddress; + this.MetaData = metaData; + this.OptOut = optOut; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets GroupId + /// + [DataMember(Name = "groupId", EmitDefaultValue = true)] + public Guid? GroupId { get; set; } + + /// + /// Gets or Sets FirstName + /// + [DataMember(Name = "firstName", EmitDefaultValue = true)] + public string FirstName { get; set; } + + /// + /// Gets or Sets LastName + /// + [DataMember(Name = "lastName", EmitDefaultValue = true)] + public string LastName { get; set; } + + /// + /// Gets or Sets Company + /// + [DataMember(Name = "company", EmitDefaultValue = true)] + public string Company { get; set; } + + /// + /// Gets or Sets EmailAddresses + /// + [DataMember(Name = "emailAddresses", IsRequired = true, EmitDefaultValue = true)] + public List EmailAddresses { get; set; } + + /// + /// Gets or Sets PrimaryEmailAddress + /// + [DataMember(Name = "primaryEmailAddress", EmitDefaultValue = true)] + public string PrimaryEmailAddress { get; set; } + + /// + /// Gets or Sets Tags + /// + [DataMember(Name = "tags", IsRequired = true, EmitDefaultValue = true)] + public List Tags { get; set; } + + /// + /// Gets or Sets MetaData + /// + [DataMember(Name = "metaData", EmitDefaultValue = true)] + public Object MetaData { get; set; } + + /// + /// Gets or Sets OptOut + /// + [DataMember(Name = "optOut", EmitDefaultValue = true)] + public bool? OptOut { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ContactDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append(" FirstName: ").Append(FirstName).Append("\n"); + sb.Append(" LastName: ").Append(LastName).Append("\n"); + sb.Append(" Company: ").Append(Company).Append("\n"); + sb.Append(" EmailAddresses: ").Append(EmailAddresses).Append("\n"); + sb.Append(" PrimaryEmailAddress: ").Append(PrimaryEmailAddress).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" MetaData: ").Append(MetaData).Append("\n"); + sb.Append(" OptOut: ").Append(OptOut).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ContactDto); + } + + /// + /// Returns true if ContactDto instances are equal + /// + /// Instance of ContactDto to be compared + /// Boolean + public bool Equals(ContactDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.FirstName == input.FirstName || + (this.FirstName != null && + this.FirstName.Equals(input.FirstName)) + ) && + ( + this.LastName == input.LastName || + (this.LastName != null && + this.LastName.Equals(input.LastName)) + ) && + ( + this.Company == input.Company || + (this.Company != null && + this.Company.Equals(input.Company)) + ) && + ( + this.EmailAddresses == input.EmailAddresses || + this.EmailAddresses != null && + input.EmailAddresses != null && + this.EmailAddresses.SequenceEqual(input.EmailAddresses) + ) && + ( + this.PrimaryEmailAddress == input.PrimaryEmailAddress || + (this.PrimaryEmailAddress != null && + this.PrimaryEmailAddress.Equals(input.PrimaryEmailAddress)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.MetaData == input.MetaData || + (this.MetaData != null && + this.MetaData.Equals(input.MetaData)) + ) && + ( + this.OptOut == input.OptOut || + (this.OptOut != null && + this.OptOut.Equals(input.OptOut)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.GroupId != null) + { + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); + } + if (this.FirstName != null) + { + hashCode = (hashCode * 59) + this.FirstName.GetHashCode(); + } + if (this.LastName != null) + { + hashCode = (hashCode * 59) + this.LastName.GetHashCode(); + } + if (this.Company != null) + { + hashCode = (hashCode * 59) + this.Company.GetHashCode(); + } + if (this.EmailAddresses != null) + { + hashCode = (hashCode * 59) + this.EmailAddresses.GetHashCode(); + } + if (this.PrimaryEmailAddress != null) + { + hashCode = (hashCode * 59) + this.PrimaryEmailAddress.GetHashCode(); + } + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + if (this.MetaData != null) + { + hashCode = (hashCode * 59) + this.MetaData.GetHashCode(); + } + if (this.OptOut != null) + { + hashCode = (hashCode * 59) + this.OptOut.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ContactProjection.cs b/src/mailslurp_netstandard_2x/Model/ContactProjection.cs new file mode 100644 index 00000000..aa1f6a0d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ContactProjection.cs @@ -0,0 +1,279 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Email contact for address book + /// + [DataContract(Name = "ContactProjection")] + public partial class ContactProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ContactProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// emailAddress. + /// emailAddresses. + /// firstName. + /// lastName. + /// company. + /// optOut. + /// createdAt (required). + /// id (required). + /// groupId. + public ContactProjection(string emailAddress = default(string), List emailAddresses = default(List), string firstName = default(string), string lastName = default(string), string company = default(string), bool? optOut = default(bool?), DateTime createdAt = default(DateTime), Guid id = default(Guid), Guid? groupId = default(Guid?)) + { + this.CreatedAt = createdAt; + this.Id = id; + this.EmailAddress = emailAddress; + this.EmailAddresses = emailAddresses; + this.FirstName = firstName; + this.LastName = lastName; + this.Company = company; + this.OptOut = optOut; + this.GroupId = groupId; + } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets EmailAddresses + /// + [DataMember(Name = "emailAddresses", EmitDefaultValue = true)] + public List EmailAddresses { get; set; } + + /// + /// Gets or Sets FirstName + /// + [DataMember(Name = "firstName", EmitDefaultValue = true)] + public string FirstName { get; set; } + + /// + /// Gets or Sets LastName + /// + [DataMember(Name = "lastName", EmitDefaultValue = true)] + public string LastName { get; set; } + + /// + /// Gets or Sets Company + /// + [DataMember(Name = "company", EmitDefaultValue = true)] + public string Company { get; set; } + + /// + /// Gets or Sets OptOut + /// + [DataMember(Name = "optOut", EmitDefaultValue = true)] + public bool? OptOut { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets GroupId + /// + [DataMember(Name = "groupId", EmitDefaultValue = true)] + public Guid? GroupId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ContactProjection {\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" EmailAddresses: ").Append(EmailAddresses).Append("\n"); + sb.Append(" FirstName: ").Append(FirstName).Append("\n"); + sb.Append(" LastName: ").Append(LastName).Append("\n"); + sb.Append(" Company: ").Append(Company).Append("\n"); + sb.Append(" OptOut: ").Append(OptOut).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ContactProjection); + } + + /// + /// Returns true if ContactProjection instances are equal + /// + /// Instance of ContactProjection to be compared + /// Boolean + public bool Equals(ContactProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.EmailAddresses == input.EmailAddresses || + this.EmailAddresses != null && + input.EmailAddresses != null && + this.EmailAddresses.SequenceEqual(input.EmailAddresses) + ) && + ( + this.FirstName == input.FirstName || + (this.FirstName != null && + this.FirstName.Equals(input.FirstName)) + ) && + ( + this.LastName == input.LastName || + (this.LastName != null && + this.LastName.Equals(input.LastName)) + ) && + ( + this.Company == input.Company || + (this.Company != null && + this.Company.Equals(input.Company)) + ) && + ( + this.OptOut == input.OptOut || + (this.OptOut != null && + this.OptOut.Equals(input.OptOut)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.EmailAddresses != null) + { + hashCode = (hashCode * 59) + this.EmailAddresses.GetHashCode(); + } + if (this.FirstName != null) + { + hashCode = (hashCode * 59) + this.FirstName.GetHashCode(); + } + if (this.LastName != null) + { + hashCode = (hashCode * 59) + this.LastName.GetHashCode(); + } + if (this.Company != null) + { + hashCode = (hashCode * 59) + this.Company.GetHashCode(); + } + if (this.OptOut != null) + { + hashCode = (hashCode * 59) + this.OptOut.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.GroupId != null) + { + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ContentMatchOptions.cs b/src/mailslurp_netstandard_2x/Model/ContentMatchOptions.cs new file mode 100644 index 00000000..a27f584c --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ContentMatchOptions.cs @@ -0,0 +1,140 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for matching content using regex patterns based on Java Pattern syntax + /// + [DataContract(Name = "ContentMatchOptions")] + public partial class ContentMatchOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ContentMatchOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. (required). + public ContentMatchOptions(string pattern = default(string)) + { + // to ensure "pattern" is required (not null) + if (pattern == null) + { + throw new ArgumentNullException("pattern is a required property for ContentMatchOptions and cannot be null"); + } + this.Pattern = pattern; + } + + /// + /// Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. + /// + /// Java style regex pattern. Do not include the typical `/` at start or end of regex in some languages. Given an example `your code is: 12345` the pattern to extract match looks like `code is: (\\d{6})`. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: `['code is: 123456', '123456']` See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. + [DataMember(Name = "pattern", IsRequired = true, EmitDefaultValue = true)] + public string Pattern { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ContentMatchOptions {\n"); + sb.Append(" Pattern: ").Append(Pattern).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ContentMatchOptions); + } + + /// + /// Returns true if ContentMatchOptions instances are equal + /// + /// Instance of ContentMatchOptions to be compared + /// Boolean + public bool Equals(ContentMatchOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Pattern == input.Pattern || + (this.Pattern != null && + this.Pattern.Equals(input.Pattern)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Pattern != null) + { + hashCode = (hashCode * 59) + this.Pattern.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CountDto.cs b/src/mailslurp_netstandard_2x/Model/CountDto.cs new file mode 100644 index 00000000..7af50553 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CountDto.cs @@ -0,0 +1,130 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Number of elements + /// + [DataContract(Name = "CountDto")] + public partial class CountDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CountDto() { } + /// + /// Initializes a new instance of the class. + /// + /// totalElements (required). + public CountDto(long totalElements = default(long)) + { + this.TotalElements = totalElements; + } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CountDto {\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CountDto); + } + + /// + /// Returns true if CountDto instances are equal + /// + /// Instance of CountDto to be compared + /// Boolean + public bool Equals(CountDto input) + { + if (input == null) + { + return false; + } + return + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateAliasOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateAliasOptions.cs new file mode 100644 index 00000000..dbe6f2dd --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateAliasOptions.cs @@ -0,0 +1,231 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Create email alias options. Email aliases can be used to mask real email addresses behind an ID. You can also attach an inbox to an alias so that any email received by the inbox email address if forwarded to the alias email address. + /// + [DataContract(Name = "CreateAliasOptions")] + public partial class CreateAliasOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAliasOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Email address to be hidden behind alias. Emails sent to the alias email address will be forwarded to this address. If you want to enable replies set useThreads true and the reply-to for the email will allow outbound communication via a thread. Some email addresses may require verification if they are not added as a contact first. (required). + /// Optional inbox ID to attach to alias. Null by default means an a new inbox will be created for the alias. Use a custom inbox to control what email address the alias uses. To use custom email addresses create a domain and an inbox, the use the inbox ID with this call. Emails received by this inbox will be forwarded to the alias email address. + /// Optional name for alias. + /// Enable threads options. If true emails will be sent with a unique reply-to thread address. This means you can reply to the forwarded email and it will be sent to the recipients via your alias address. That way a thread conversation is preserved. (required). + /// Custom domain ID to use when generating alias email addresses. + /// Whether to verify the masked email address exists before sending an email to it. + public CreateAliasOptions(string emailAddress = default(string), Guid? inboxId = default(Guid?), string name = default(string), bool useThreads = default(bool), Guid? domainId = default(Guid?), bool? verifyEmailAddress = default(bool?)) + { + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for CreateAliasOptions and cannot be null"); + } + this.EmailAddress = emailAddress; + this.UseThreads = useThreads; + this.InboxId = inboxId; + this.Name = name; + this.DomainId = domainId; + this.VerifyEmailAddress = verifyEmailAddress; + } + + /// + /// Email address to be hidden behind alias. Emails sent to the alias email address will be forwarded to this address. If you want to enable replies set useThreads true and the reply-to for the email will allow outbound communication via a thread. Some email addresses may require verification if they are not added as a contact first. + /// + /// Email address to be hidden behind alias. Emails sent to the alias email address will be forwarded to this address. If you want to enable replies set useThreads true and the reply-to for the email will allow outbound communication via a thread. Some email addresses may require verification if they are not added as a contact first. + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Optional inbox ID to attach to alias. Null by default means an a new inbox will be created for the alias. Use a custom inbox to control what email address the alias uses. To use custom email addresses create a domain and an inbox, the use the inbox ID with this call. Emails received by this inbox will be forwarded to the alias email address + /// + /// Optional inbox ID to attach to alias. Null by default means an a new inbox will be created for the alias. Use a custom inbox to control what email address the alias uses. To use custom email addresses create a domain and an inbox, the use the inbox ID with this call. Emails received by this inbox will be forwarded to the alias email address + [DataMember(Name = "inboxId", EmitDefaultValue = true)] + public Guid? InboxId { get; set; } + + /// + /// Optional name for alias + /// + /// Optional name for alias + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Enable threads options. If true emails will be sent with a unique reply-to thread address. This means you can reply to the forwarded email and it will be sent to the recipients via your alias address. That way a thread conversation is preserved. + /// + /// Enable threads options. If true emails will be sent with a unique reply-to thread address. This means you can reply to the forwarded email and it will be sent to the recipients via your alias address. That way a thread conversation is preserved. + [DataMember(Name = "useThreads", IsRequired = true, EmitDefaultValue = true)] + public bool UseThreads { get; set; } + + /// + /// Custom domain ID to use when generating alias email addresses + /// + /// Custom domain ID to use when generating alias email addresses + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// Whether to verify the masked email address exists before sending an email to it + /// + /// Whether to verify the masked email address exists before sending an email to it + [DataMember(Name = "verifyEmailAddress", EmitDefaultValue = true)] + public bool? VerifyEmailAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAliasOptions {\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" UseThreads: ").Append(UseThreads).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" VerifyEmailAddress: ").Append(VerifyEmailAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateAliasOptions); + } + + /// + /// Returns true if CreateAliasOptions instances are equal + /// + /// Instance of CreateAliasOptions to be compared + /// Boolean + public bool Equals(CreateAliasOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.UseThreads == input.UseThreads || + this.UseThreads.Equals(input.UseThreads) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.VerifyEmailAddress == input.VerifyEmailAddress || + (this.VerifyEmailAddress != null && + this.VerifyEmailAddress.Equals(input.VerifyEmailAddress)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.UseThreads.GetHashCode(); + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.VerifyEmailAddress != null) + { + hashCode = (hashCode * 59) + this.VerifyEmailAddress.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateConnectorImapConnectionOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateConnectorImapConnectionOptions.cs new file mode 100644 index 00000000..e1c315b8 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateConnectorImapConnectionOptions.cs @@ -0,0 +1,269 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for IMAP connection to external email inbox. Allows syncing emails iva IMAP. + /// + [DataContract(Name = "CreateConnectorImapConnectionOptions")] + public partial class CreateConnectorImapConnectionOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateConnectorImapConnectionOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// imapSsl. + /// imapUsername. + /// imapPassword. + /// Optional folder to select during IMAP connection. + /// searchTerms. + /// IMAP server port. + /// IMAP server host (required). + /// IMAP server enabled. + public CreateConnectorImapConnectionOptions(bool? imapSsl = default(bool?), string imapUsername = default(string), string imapPassword = default(string), string selectFolder = default(string), string searchTerms = default(string), int? imapPort = default(int?), string imapHost = default(string), bool? enabled = default(bool?)) + { + // to ensure "imapHost" is required (not null) + if (imapHost == null) + { + throw new ArgumentNullException("imapHost is a required property for CreateConnectorImapConnectionOptions and cannot be null"); + } + this.ImapHost = imapHost; + this.ImapSsl = imapSsl; + this.ImapUsername = imapUsername; + this.ImapPassword = imapPassword; + this.SelectFolder = selectFolder; + this.SearchTerms = searchTerms; + this.ImapPort = imapPort; + this.Enabled = enabled; + } + + /// + /// Gets or Sets ImapSsl + /// + [DataMember(Name = "imapSsl", EmitDefaultValue = true)] + public bool? ImapSsl { get; set; } + + /// + /// Gets or Sets ImapUsername + /// + [DataMember(Name = "imapUsername", EmitDefaultValue = true)] + public string ImapUsername { get; set; } + + /// + /// Gets or Sets ImapPassword + /// + [DataMember(Name = "imapPassword", EmitDefaultValue = true)] + public string ImapPassword { get; set; } + + /// + /// Optional folder to select during IMAP connection + /// + /// Optional folder to select during IMAP connection + [DataMember(Name = "selectFolder", EmitDefaultValue = true)] + public string SelectFolder { get; set; } + + /// + /// Gets or Sets SearchTerms + /// + [DataMember(Name = "searchTerms", EmitDefaultValue = true)] + public string SearchTerms { get; set; } + + /// + /// IMAP server port + /// + /// IMAP server port + [DataMember(Name = "imapPort", EmitDefaultValue = true)] + public int? ImapPort { get; set; } + + /// + /// IMAP server host + /// + /// IMAP server host + [DataMember(Name = "imapHost", IsRequired = true, EmitDefaultValue = true)] + public string ImapHost { get; set; } + + /// + /// IMAP server enabled + /// + /// IMAP server enabled + [DataMember(Name = "enabled", EmitDefaultValue = true)] + public bool? Enabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateConnectorImapConnectionOptions {\n"); + sb.Append(" ImapSsl: ").Append(ImapSsl).Append("\n"); + sb.Append(" ImapUsername: ").Append(ImapUsername).Append("\n"); + sb.Append(" ImapPassword: ").Append(ImapPassword).Append("\n"); + sb.Append(" SelectFolder: ").Append(SelectFolder).Append("\n"); + sb.Append(" SearchTerms: ").Append(SearchTerms).Append("\n"); + sb.Append(" ImapPort: ").Append(ImapPort).Append("\n"); + sb.Append(" ImapHost: ").Append(ImapHost).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateConnectorImapConnectionOptions); + } + + /// + /// Returns true if CreateConnectorImapConnectionOptions instances are equal + /// + /// Instance of CreateConnectorImapConnectionOptions to be compared + /// Boolean + public bool Equals(CreateConnectorImapConnectionOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.ImapSsl == input.ImapSsl || + (this.ImapSsl != null && + this.ImapSsl.Equals(input.ImapSsl)) + ) && + ( + this.ImapUsername == input.ImapUsername || + (this.ImapUsername != null && + this.ImapUsername.Equals(input.ImapUsername)) + ) && + ( + this.ImapPassword == input.ImapPassword || + (this.ImapPassword != null && + this.ImapPassword.Equals(input.ImapPassword)) + ) && + ( + this.SelectFolder == input.SelectFolder || + (this.SelectFolder != null && + this.SelectFolder.Equals(input.SelectFolder)) + ) && + ( + this.SearchTerms == input.SearchTerms || + (this.SearchTerms != null && + this.SearchTerms.Equals(input.SearchTerms)) + ) && + ( + this.ImapPort == input.ImapPort || + (this.ImapPort != null && + this.ImapPort.Equals(input.ImapPort)) + ) && + ( + this.ImapHost == input.ImapHost || + (this.ImapHost != null && + this.ImapHost.Equals(input.ImapHost)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImapSsl != null) + { + hashCode = (hashCode * 59) + this.ImapSsl.GetHashCode(); + } + if (this.ImapUsername != null) + { + hashCode = (hashCode * 59) + this.ImapUsername.GetHashCode(); + } + if (this.ImapPassword != null) + { + hashCode = (hashCode * 59) + this.ImapPassword.GetHashCode(); + } + if (this.SelectFolder != null) + { + hashCode = (hashCode * 59) + this.SelectFolder.GetHashCode(); + } + if (this.SearchTerms != null) + { + hashCode = (hashCode * 59) + this.SearchTerms.GetHashCode(); + } + if (this.ImapPort != null) + { + hashCode = (hashCode * 59) + this.ImapPort.GetHashCode(); + } + if (this.ImapHost != null) + { + hashCode = (hashCode * 59) + this.ImapHost.GetHashCode(); + } + if (this.Enabled != null) + { + hashCode = (hashCode * 59) + this.Enabled.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateConnectorOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateConnectorOptions.cs new file mode 100644 index 00000000..b5b76b01 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateConnectorOptions.cs @@ -0,0 +1,236 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for creating an inbox connection with an external mail provider + /// + [DataContract(Name = "CreateConnectorOptions")] + public partial class CreateConnectorOptions : IEquatable, IValidatableObject + { + /// + /// Sync schedule type + /// + /// Sync schedule type + [JsonConverter(typeof(StringEnumConverter))] + public enum SyncScheduleTypeEnum + { + /// + /// Enum INTERVAL for value: INTERVAL + /// + [EnumMember(Value = "INTERVAL")] + INTERVAL = 1 + + } + + + /// + /// Sync schedule type + /// + /// Sync schedule type + [DataMember(Name = "syncScheduleType", EmitDefaultValue = true)] + public SyncScheduleTypeEnum? SyncScheduleType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Enable automatic background sync. + /// Sync schedule type. + /// Sync interval in minutes. + /// Name of connector. + /// Email address of external inbox. + /// Is connector enabled. + public CreateConnectorOptions(bool? syncEnabled = default(bool?), SyncScheduleTypeEnum? syncScheduleType = default(SyncScheduleTypeEnum?), int? syncInterval = default(int?), string name = default(string), string emailAddress = default(string), bool? enabled = default(bool?)) + { + this.SyncEnabled = syncEnabled; + this.SyncScheduleType = syncScheduleType; + this.SyncInterval = syncInterval; + this.Name = name; + this.EmailAddress = emailAddress; + this.Enabled = enabled; + } + + /// + /// Enable automatic background sync + /// + /// Enable automatic background sync + [DataMember(Name = "syncEnabled", EmitDefaultValue = true)] + public bool? SyncEnabled { get; set; } + + /// + /// Sync interval in minutes + /// + /// Sync interval in minutes + [DataMember(Name = "syncInterval", EmitDefaultValue = true)] + public int? SyncInterval { get; set; } + + /// + /// Name of connector + /// + /// Name of connector + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Email address of external inbox + /// + /// Email address of external inbox + [DataMember(Name = "emailAddress", EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Is connector enabled + /// + /// Is connector enabled + [DataMember(Name = "enabled", EmitDefaultValue = true)] + public bool? Enabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateConnectorOptions {\n"); + sb.Append(" SyncEnabled: ").Append(SyncEnabled).Append("\n"); + sb.Append(" SyncScheduleType: ").Append(SyncScheduleType).Append("\n"); + sb.Append(" SyncInterval: ").Append(SyncInterval).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateConnectorOptions); + } + + /// + /// Returns true if CreateConnectorOptions instances are equal + /// + /// Instance of CreateConnectorOptions to be compared + /// Boolean + public bool Equals(CreateConnectorOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.SyncEnabled == input.SyncEnabled || + (this.SyncEnabled != null && + this.SyncEnabled.Equals(input.SyncEnabled)) + ) && + ( + this.SyncScheduleType == input.SyncScheduleType || + this.SyncScheduleType.Equals(input.SyncScheduleType) + ) && + ( + this.SyncInterval == input.SyncInterval || + (this.SyncInterval != null && + this.SyncInterval.Equals(input.SyncInterval)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SyncEnabled != null) + { + hashCode = (hashCode * 59) + this.SyncEnabled.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SyncScheduleType.GetHashCode(); + if (this.SyncInterval != null) + { + hashCode = (hashCode * 59) + this.SyncInterval.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.Enabled != null) + { + hashCode = (hashCode * 59) + this.Enabled.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateConnectorSmtpConnectionOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateConnectorSmtpConnectionOptions.cs new file mode 100644 index 00000000..087e16d3 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateConnectorSmtpConnectionOptions.cs @@ -0,0 +1,217 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// CreateConnectorSmtpConnectionOptions + /// + [DataContract(Name = "CreateConnectorSmtpConnectionOptions")] + public partial class CreateConnectorSmtpConnectionOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateConnectorSmtpConnectionOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// enabled. + /// smtpHost (required). + /// smtpPort. + /// smtpSsl. + /// smtpUsername. + /// smtpPassword. + public CreateConnectorSmtpConnectionOptions(bool enabled = default(bool), string smtpHost = default(string), int smtpPort = default(int), bool smtpSsl = default(bool), string smtpUsername = default(string), string smtpPassword = default(string)) + { + // to ensure "smtpHost" is required (not null) + if (smtpHost == null) + { + throw new ArgumentNullException("smtpHost is a required property for CreateConnectorSmtpConnectionOptions and cannot be null"); + } + this.SmtpHost = smtpHost; + this.Enabled = enabled; + this.SmtpPort = smtpPort; + this.SmtpSsl = smtpSsl; + this.SmtpUsername = smtpUsername; + this.SmtpPassword = smtpPassword; + } + + /// + /// Gets or Sets Enabled + /// + [DataMember(Name = "enabled", EmitDefaultValue = true)] + public bool Enabled { get; set; } + + /// + /// Gets or Sets SmtpHost + /// + [DataMember(Name = "smtpHost", IsRequired = true, EmitDefaultValue = true)] + public string SmtpHost { get; set; } + + /// + /// Gets or Sets SmtpPort + /// + [DataMember(Name = "smtpPort", EmitDefaultValue = false)] + public int SmtpPort { get; set; } + + /// + /// Gets or Sets SmtpSsl + /// + [DataMember(Name = "smtpSsl", EmitDefaultValue = true)] + public bool SmtpSsl { get; set; } + + /// + /// Gets or Sets SmtpUsername + /// + [DataMember(Name = "smtpUsername", EmitDefaultValue = false)] + public string SmtpUsername { get; set; } + + /// + /// Gets or Sets SmtpPassword + /// + [DataMember(Name = "smtpPassword", EmitDefaultValue = false)] + public string SmtpPassword { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateConnectorSmtpConnectionOptions {\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" SmtpHost: ").Append(SmtpHost).Append("\n"); + sb.Append(" SmtpPort: ").Append(SmtpPort).Append("\n"); + sb.Append(" SmtpSsl: ").Append(SmtpSsl).Append("\n"); + sb.Append(" SmtpUsername: ").Append(SmtpUsername).Append("\n"); + sb.Append(" SmtpPassword: ").Append(SmtpPassword).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateConnectorSmtpConnectionOptions); + } + + /// + /// Returns true if CreateConnectorSmtpConnectionOptions instances are equal + /// + /// Instance of CreateConnectorSmtpConnectionOptions to be compared + /// Boolean + public bool Equals(CreateConnectorSmtpConnectionOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Enabled == input.Enabled || + this.Enabled.Equals(input.Enabled) + ) && + ( + this.SmtpHost == input.SmtpHost || + (this.SmtpHost != null && + this.SmtpHost.Equals(input.SmtpHost)) + ) && + ( + this.SmtpPort == input.SmtpPort || + this.SmtpPort.Equals(input.SmtpPort) + ) && + ( + this.SmtpSsl == input.SmtpSsl || + this.SmtpSsl.Equals(input.SmtpSsl) + ) && + ( + this.SmtpUsername == input.SmtpUsername || + (this.SmtpUsername != null && + this.SmtpUsername.Equals(input.SmtpUsername)) + ) && + ( + this.SmtpPassword == input.SmtpPassword || + (this.SmtpPassword != null && + this.SmtpPassword.Equals(input.SmtpPassword)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Enabled.GetHashCode(); + if (this.SmtpHost != null) + { + hashCode = (hashCode * 59) + this.SmtpHost.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SmtpPort.GetHashCode(); + hashCode = (hashCode * 59) + this.SmtpSsl.GetHashCode(); + if (this.SmtpUsername != null) + { + hashCode = (hashCode * 59) + this.SmtpUsername.GetHashCode(); + } + if (this.SmtpPassword != null) + { + hashCode = (hashCode * 59) + this.SmtpPassword.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateContactOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateContactOptions.cs new file mode 100644 index 00000000..cf90d529 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateContactOptions.cs @@ -0,0 +1,280 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for creating an email contact in address book + /// + [DataContract(Name = "CreateContactOptions")] + public partial class CreateContactOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// firstName. + /// lastName. + /// company. + /// Set of email addresses belonging to the contact. + /// Tags that can be used to search and group contacts. + /// metaData. + /// Has the user explicitly or implicitly opted out of being contacted? If so MailSlurp will ignore them in all actions.. + /// Group IDs that contact belongs to. + /// Whether to validate contact email address exists. + public CreateContactOptions(string firstName = default(string), string lastName = default(string), string company = default(string), List emailAddresses = default(List), List tags = default(List), Object metaData = default(Object), bool? optOut = default(bool?), Guid? groupId = default(Guid?), bool? verifyEmailAddresses = default(bool?)) + { + this.FirstName = firstName; + this.LastName = lastName; + this.Company = company; + this.EmailAddresses = emailAddresses; + this.Tags = tags; + this.MetaData = metaData; + this.OptOut = optOut; + this.GroupId = groupId; + this.VerifyEmailAddresses = verifyEmailAddresses; + } + + /// + /// Gets or Sets FirstName + /// + [DataMember(Name = "firstName", EmitDefaultValue = true)] + public string FirstName { get; set; } + + /// + /// Gets or Sets LastName + /// + [DataMember(Name = "lastName", EmitDefaultValue = true)] + public string LastName { get; set; } + + /// + /// Gets or Sets Company + /// + [DataMember(Name = "company", EmitDefaultValue = true)] + public string Company { get; set; } + + /// + /// Set of email addresses belonging to the contact + /// + /// Set of email addresses belonging to the contact + [DataMember(Name = "emailAddresses", EmitDefaultValue = true)] + public List EmailAddresses { get; set; } + + /// + /// Tags that can be used to search and group contacts + /// + /// Tags that can be used to search and group contacts + [DataMember(Name = "tags", EmitDefaultValue = true)] + public List Tags { get; set; } + + /// + /// Gets or Sets MetaData + /// + [DataMember(Name = "metaData", EmitDefaultValue = true)] + public Object MetaData { get; set; } + + /// + /// Has the user explicitly or implicitly opted out of being contacted? If so MailSlurp will ignore them in all actions. + /// + /// Has the user explicitly or implicitly opted out of being contacted? If so MailSlurp will ignore them in all actions. + [DataMember(Name = "optOut", EmitDefaultValue = true)] + public bool? OptOut { get; set; } + + /// + /// Group IDs that contact belongs to + /// + /// Group IDs that contact belongs to + [DataMember(Name = "groupId", EmitDefaultValue = true)] + public Guid? GroupId { get; set; } + + /// + /// Whether to validate contact email address exists + /// + /// Whether to validate contact email address exists + [DataMember(Name = "verifyEmailAddresses", EmitDefaultValue = true)] + public bool? VerifyEmailAddresses { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateContactOptions {\n"); + sb.Append(" FirstName: ").Append(FirstName).Append("\n"); + sb.Append(" LastName: ").Append(LastName).Append("\n"); + sb.Append(" Company: ").Append(Company).Append("\n"); + sb.Append(" EmailAddresses: ").Append(EmailAddresses).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" MetaData: ").Append(MetaData).Append("\n"); + sb.Append(" OptOut: ").Append(OptOut).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append(" VerifyEmailAddresses: ").Append(VerifyEmailAddresses).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateContactOptions); + } + + /// + /// Returns true if CreateContactOptions instances are equal + /// + /// Instance of CreateContactOptions to be compared + /// Boolean + public bool Equals(CreateContactOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.FirstName == input.FirstName || + (this.FirstName != null && + this.FirstName.Equals(input.FirstName)) + ) && + ( + this.LastName == input.LastName || + (this.LastName != null && + this.LastName.Equals(input.LastName)) + ) && + ( + this.Company == input.Company || + (this.Company != null && + this.Company.Equals(input.Company)) + ) && + ( + this.EmailAddresses == input.EmailAddresses || + this.EmailAddresses != null && + input.EmailAddresses != null && + this.EmailAddresses.SequenceEqual(input.EmailAddresses) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.MetaData == input.MetaData || + (this.MetaData != null && + this.MetaData.Equals(input.MetaData)) + ) && + ( + this.OptOut == input.OptOut || + (this.OptOut != null && + this.OptOut.Equals(input.OptOut)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.VerifyEmailAddresses == input.VerifyEmailAddresses || + (this.VerifyEmailAddresses != null && + this.VerifyEmailAddresses.Equals(input.VerifyEmailAddresses)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FirstName != null) + { + hashCode = (hashCode * 59) + this.FirstName.GetHashCode(); + } + if (this.LastName != null) + { + hashCode = (hashCode * 59) + this.LastName.GetHashCode(); + } + if (this.Company != null) + { + hashCode = (hashCode * 59) + this.Company.GetHashCode(); + } + if (this.EmailAddresses != null) + { + hashCode = (hashCode * 59) + this.EmailAddresses.GetHashCode(); + } + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + if (this.MetaData != null) + { + hashCode = (hashCode * 59) + this.MetaData.GetHashCode(); + } + if (this.OptOut != null) + { + hashCode = (hashCode * 59) + this.OptOut.GetHashCode(); + } + if (this.GroupId != null) + { + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); + } + if (this.VerifyEmailAddresses != null) + { + hashCode = (hashCode * 59) + this.VerifyEmailAddresses.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateDomainOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateDomainOptions.cs new file mode 100644 index 00000000..29a25c7c --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateDomainOptions.cs @@ -0,0 +1,214 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for creating a domain to use with MailSlurp. You must have ownership access to this domain in order to verify it. Domains will not function correctly until the domain has been verified. See https://www.mailslurp.com/guides/custom-domains for help. Domains can be either `HTTP` or `SMTP` type. The type of domain determines which inboxes can be used with it. `SMTP` inboxes use a mail server running `mxslurp.click` while `HTTP` inboxes are handled by AWS SES. + /// + [DataContract(Name = "CreateDomainOptions")] + public partial class CreateDomainOptions : IEquatable, IValidatableObject + { + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + [JsonConverter(typeof(StringEnumConverter))] + public enum DomainTypeEnum + { + /// + /// Enum HTTPINBOX for value: HTTP_INBOX + /// + [EnumMember(Value = "HTTP_INBOX")] + HTTPINBOX = 1, + + /// + /// Enum SMTPDOMAIN for value: SMTP_DOMAIN + /// + [EnumMember(Value = "SMTP_DOMAIN")] + SMTPDOMAIN = 2 + + } + + + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + [DataMember(Name = "domainType", EmitDefaultValue = true)] + public DomainTypeEnum? DomainType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateDomainOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// The top level domain you wish to use with MailSlurp. Do not specify subdomain just the top level. So `test.com` covers all subdomains such as `mail.test.com`. Don't include a protocol such as `http://`. Once added you must complete the verification steps by adding the returned records to your domain. (required). + /// Optional description of the domain.. + /// Whether to create a catch all inbox for the domain. Any email sent to an address using your domain that cannot be matched to an existing inbox you created with the domain will be routed to the created catch all inbox. You can access emails using the regular methods on this inbox ID.. + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails.. + public CreateDomainOptions(string domain = default(string), string description = default(string), bool? createdCatchAllInbox = default(bool?), DomainTypeEnum? domainType = default(DomainTypeEnum?)) + { + // to ensure "domain" is required (not null) + if (domain == null) + { + throw new ArgumentNullException("domain is a required property for CreateDomainOptions and cannot be null"); + } + this.Domain = domain; + this.Description = description; + this.CreatedCatchAllInbox = createdCatchAllInbox; + this.DomainType = domainType; + } + + /// + /// The top level domain you wish to use with MailSlurp. Do not specify subdomain just the top level. So `test.com` covers all subdomains such as `mail.test.com`. Don't include a protocol such as `http://`. Once added you must complete the verification steps by adding the returned records to your domain. + /// + /// The top level domain you wish to use with MailSlurp. Do not specify subdomain just the top level. So `test.com` covers all subdomains such as `mail.test.com`. Don't include a protocol such as `http://`. Once added you must complete the verification steps by adding the returned records to your domain. + [DataMember(Name = "domain", IsRequired = true, EmitDefaultValue = true)] + public string Domain { get; set; } + + /// + /// Optional description of the domain. + /// + /// Optional description of the domain. + [DataMember(Name = "description", EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// Whether to create a catch all inbox for the domain. Any email sent to an address using your domain that cannot be matched to an existing inbox you created with the domain will be routed to the created catch all inbox. You can access emails using the regular methods on this inbox ID. + /// + /// Whether to create a catch all inbox for the domain. Any email sent to an address using your domain that cannot be matched to an existing inbox you created with the domain will be routed to the created catch all inbox. You can access emails using the regular methods on this inbox ID. + [DataMember(Name = "createdCatchAllInbox", EmitDefaultValue = true)] + public bool? CreatedCatchAllInbox { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateDomainOptions {\n"); + sb.Append(" Domain: ").Append(Domain).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" CreatedCatchAllInbox: ").Append(CreatedCatchAllInbox).Append("\n"); + sb.Append(" DomainType: ").Append(DomainType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateDomainOptions); + } + + /// + /// Returns true if CreateDomainOptions instances are equal + /// + /// Instance of CreateDomainOptions to be compared + /// Boolean + public bool Equals(CreateDomainOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Domain == input.Domain || + (this.Domain != null && + this.Domain.Equals(input.Domain)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.CreatedCatchAllInbox == input.CreatedCatchAllInbox || + (this.CreatedCatchAllInbox != null && + this.CreatedCatchAllInbox.Equals(input.CreatedCatchAllInbox)) + ) && + ( + this.DomainType == input.DomainType || + this.DomainType.Equals(input.DomainType) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Domain != null) + { + hashCode = (hashCode * 59) + this.Domain.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } + if (this.CreatedCatchAllInbox != null) + { + hashCode = (hashCode * 59) + this.CreatedCatchAllInbox.GetHashCode(); + } + hashCode = (hashCode * 59) + this.DomainType.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateEmergencyAddressOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateEmergencyAddressOptions.cs new file mode 100644 index 00000000..b2e36e6d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateEmergencyAddressOptions.cs @@ -0,0 +1,289 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// CreateEmergencyAddressOptions + /// + [DataContract(Name = "CreateEmergencyAddressOptions")] + public partial class CreateEmergencyAddressOptions : IEquatable, IValidatableObject + { + /// + /// Defines IsoCountryCode + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum IsoCountryCodeEnum + { + /// + /// Enum US for value: US + /// + [EnumMember(Value = "US")] + US = 1, + + /// + /// Enum GB for value: GB + /// + [EnumMember(Value = "GB")] + GB = 2, + + /// + /// Enum AU for value: AU + /// + [EnumMember(Value = "AU")] + AU = 3 + + } + + + /// + /// Gets or Sets IsoCountryCode + /// + [DataMember(Name = "isoCountryCode", IsRequired = true, EmitDefaultValue = true)] + public IsoCountryCodeEnum IsoCountryCode { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateEmergencyAddressOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// customerName (required). + /// address1 (required). + /// city (required). + /// region (required). + /// postalCode (required). + /// isoCountryCode (required). + /// displayName. + public CreateEmergencyAddressOptions(string customerName = default(string), string address1 = default(string), string city = default(string), string region = default(string), string postalCode = default(string), IsoCountryCodeEnum isoCountryCode = default(IsoCountryCodeEnum), string displayName = default(string)) + { + // to ensure "customerName" is required (not null) + if (customerName == null) + { + throw new ArgumentNullException("customerName is a required property for CreateEmergencyAddressOptions and cannot be null"); + } + this.CustomerName = customerName; + // to ensure "address1" is required (not null) + if (address1 == null) + { + throw new ArgumentNullException("address1 is a required property for CreateEmergencyAddressOptions and cannot be null"); + } + this.Address1 = address1; + // to ensure "city" is required (not null) + if (city == null) + { + throw new ArgumentNullException("city is a required property for CreateEmergencyAddressOptions and cannot be null"); + } + this.City = city; + // to ensure "region" is required (not null) + if (region == null) + { + throw new ArgumentNullException("region is a required property for CreateEmergencyAddressOptions and cannot be null"); + } + this.Region = region; + // to ensure "postalCode" is required (not null) + if (postalCode == null) + { + throw new ArgumentNullException("postalCode is a required property for CreateEmergencyAddressOptions and cannot be null"); + } + this.PostalCode = postalCode; + this.IsoCountryCode = isoCountryCode; + this.DisplayName = displayName; + } + + /// + /// Gets or Sets CustomerName + /// + [DataMember(Name = "customerName", IsRequired = true, EmitDefaultValue = true)] + public string CustomerName { get; set; } + + /// + /// Gets or Sets Address1 + /// + [DataMember(Name = "address1", IsRequired = true, EmitDefaultValue = true)] + public string Address1 { get; set; } + + /// + /// Gets or Sets City + /// + [DataMember(Name = "city", IsRequired = true, EmitDefaultValue = true)] + public string City { get; set; } + + /// + /// Gets or Sets Region + /// + [DataMember(Name = "region", IsRequired = true, EmitDefaultValue = true)] + public string Region { get; set; } + + /// + /// Gets or Sets PostalCode + /// + [DataMember(Name = "postalCode", IsRequired = true, EmitDefaultValue = true)] + public string PostalCode { get; set; } + + /// + /// Gets or Sets DisplayName + /// + [DataMember(Name = "displayName", EmitDefaultValue = false)] + public string DisplayName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateEmergencyAddressOptions {\n"); + sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); + sb.Append(" Address1: ").Append(Address1).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" Region: ").Append(Region).Append("\n"); + sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); + sb.Append(" IsoCountryCode: ").Append(IsoCountryCode).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateEmergencyAddressOptions); + } + + /// + /// Returns true if CreateEmergencyAddressOptions instances are equal + /// + /// Instance of CreateEmergencyAddressOptions to be compared + /// Boolean + public bool Equals(CreateEmergencyAddressOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.CustomerName == input.CustomerName || + (this.CustomerName != null && + this.CustomerName.Equals(input.CustomerName)) + ) && + ( + this.Address1 == input.Address1 || + (this.Address1 != null && + this.Address1.Equals(input.Address1)) + ) && + ( + this.City == input.City || + (this.City != null && + this.City.Equals(input.City)) + ) && + ( + this.Region == input.Region || + (this.Region != null && + this.Region.Equals(input.Region)) + ) && + ( + this.PostalCode == input.PostalCode || + (this.PostalCode != null && + this.PostalCode.Equals(input.PostalCode)) + ) && + ( + this.IsoCountryCode == input.IsoCountryCode || + this.IsoCountryCode.Equals(input.IsoCountryCode) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CustomerName != null) + { + hashCode = (hashCode * 59) + this.CustomerName.GetHashCode(); + } + if (this.Address1 != null) + { + hashCode = (hashCode * 59) + this.Address1.GetHashCode(); + } + if (this.City != null) + { + hashCode = (hashCode * 59) + this.City.GetHashCode(); + } + if (this.Region != null) + { + hashCode = (hashCode * 59) + this.Region.GetHashCode(); + } + if (this.PostalCode != null) + { + hashCode = (hashCode * 59) + this.PostalCode.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsoCountryCode.GetHashCode(); + if (this.DisplayName != null) + { + hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateGroupOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateGroupOptions.cs new file mode 100644 index 00000000..1580c002 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateGroupOptions.cs @@ -0,0 +1,157 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Create contact group options + /// + [DataContract(Name = "CreateGroupOptions")] + public partial class CreateGroupOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateGroupOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// name (required). + /// description. + public CreateGroupOptions(string name = default(string), string description = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateGroupOptions and cannot be null"); + } + this.Name = name; + this.Description = description; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateGroupOptions {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateGroupOptions); + } + + /// + /// Returns true if CreateGroupOptions instances are equal + /// + /// Instance of CreateGroupOptions to be compared + /// Boolean + public bool Equals(CreateGroupOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateInboxDto.cs b/src/mailslurp_netstandard_2x/Model/CreateInboxDto.cs new file mode 100644 index 00000000..f6338d0e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateInboxDto.cs @@ -0,0 +1,414 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for creating an inbox. An inbox has a real email address that can send and receive emails. Inboxes can be permanent or expire at a given time. Inboxes are either `SMTP` or `HTTP` mailboxes. `SMTP` inboxes are processed by a mail server running at `mailslurp.mx` while `HTTP` inboxes are processed by AWS SES backed mailservers. An inbox email address is randomly assigned by default ending in either `mailslurp.com` or (if `useDomainPool` is enabled) ending in a similar domain such as `mailslurp.xyz` (selected at random). To specify an address use a custom domain: either pass the `emailAddress` options with `<your-recipient>@<your-domain>`. To create a randomized address for your domain set the `domainName` to the domain you have verified or pass the `domainId`. Virtual inboxes prevent outbound sending and instead trap mail. + /// + [DataContract(Name = "CreateInboxDto")] + public partial class CreateInboxDto : IEquatable, IValidatableObject + { + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + [JsonConverter(typeof(StringEnumConverter))] + public enum InboxTypeEnum + { + /// + /// Enum HTTPINBOX for value: HTTP_INBOX + /// + [EnumMember(Value = "HTTP_INBOX")] + HTTPINBOX = 1, + + /// + /// Enum SMTPINBOX for value: SMTP_INBOX + /// + [EnumMember(Value = "SMTP_INBOX")] + SMTPINBOX = 2 + + } + + + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + [DataMember(Name = "inboxType", EmitDefaultValue = true)] + public InboxTypeEnum? InboxType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.. + /// FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox.. + /// ID of custom domain to use for email address.. + /// Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails.. + /// Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with. + /// Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types.. + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.. + /// Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX.. + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering. + /// Number of milliseconds that inbox should exist for. + /// DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization.. + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).. + /// Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending.. + /// Use a shorter email address under 31 characters. + /// Prefix to add before the email address for easier labelling or identification.. + public CreateInboxDto(string emailAddress = default(string), string domainName = default(string), Guid? domainId = default(Guid?), string name = default(string), string description = default(string), bool? useDomainPool = default(bool?), List tags = default(List), DateTime? expiresAt = default(DateTime?), bool? favourite = default(bool?), long? expiresIn = default(long?), bool? allowTeamAccess = default(bool?), InboxTypeEnum? inboxType = default(InboxTypeEnum?), bool? virtualInbox = default(bool?), bool? useShortAddress = default(bool?), string prefix = default(string)) + { + this.EmailAddress = emailAddress; + this.DomainName = domainName; + this.DomainId = domainId; + this.Name = name; + this.Description = description; + this.UseDomainPool = useDomainPool; + this.Tags = tags; + this.ExpiresAt = expiresAt; + this.Favourite = favourite; + this.ExpiresIn = expiresIn; + this.AllowTeamAccess = allowTeamAccess; + this.InboxType = inboxType; + this.VirtualInbox = virtualInbox; + this.UseShortAddress = useShortAddress; + this.Prefix = prefix; + } + + /// + /// A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. + /// + /// A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. + [DataMember(Name = "emailAddress", EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. + /// + /// FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. + [DataMember(Name = "domainName", EmitDefaultValue = true)] + public string DomainName { get; set; } + + /// + /// ID of custom domain to use for email address. + /// + /// ID of custom domain to use for email address. + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. + /// + /// Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with + /// + /// Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with + [DataMember(Name = "description", EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. + /// + /// Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. + [DataMember(Name = "useDomainPool", EmitDefaultValue = true)] + public bool? UseDomainPool { get; set; } + + /// + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. + /// + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. + [DataMember(Name = "tags", EmitDefaultValue = true)] + public List Tags { get; set; } + + /// + /// Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. + /// + /// Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. + [DataMember(Name = "expiresAt", EmitDefaultValue = true)] + public DateTime? ExpiresAt { get; set; } + + /// + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering + /// + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering + [DataMember(Name = "favourite", EmitDefaultValue = true)] + public bool? Favourite { get; set; } + + /// + /// Number of milliseconds that inbox should exist for + /// + /// Number of milliseconds that inbox should exist for + [DataMember(Name = "expiresIn", EmitDefaultValue = true)] + public long? ExpiresIn { get; set; } + + /// + /// DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. + /// + /// DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. + [DataMember(Name = "allowTeamAccess", EmitDefaultValue = true)] + public bool? AllowTeamAccess { get; set; } + + /// + /// Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. + /// + /// Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. + [DataMember(Name = "virtualInbox", EmitDefaultValue = true)] + public bool? VirtualInbox { get; set; } + + /// + /// Use a shorter email address under 31 characters + /// + /// Use a shorter email address under 31 characters + [DataMember(Name = "useShortAddress", EmitDefaultValue = true)] + public bool? UseShortAddress { get; set; } + + /// + /// Prefix to add before the email address for easier labelling or identification. + /// + /// Prefix to add before the email address for easier labelling or identification. + [DataMember(Name = "prefix", EmitDefaultValue = true)] + public string Prefix { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateInboxDto {\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" DomainName: ").Append(DomainName).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" UseDomainPool: ").Append(UseDomainPool).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n"); + sb.Append(" Favourite: ").Append(Favourite).Append("\n"); + sb.Append(" ExpiresIn: ").Append(ExpiresIn).Append("\n"); + sb.Append(" AllowTeamAccess: ").Append(AllowTeamAccess).Append("\n"); + sb.Append(" InboxType: ").Append(InboxType).Append("\n"); + sb.Append(" VirtualInbox: ").Append(VirtualInbox).Append("\n"); + sb.Append(" UseShortAddress: ").Append(UseShortAddress).Append("\n"); + sb.Append(" Prefix: ").Append(Prefix).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateInboxDto); + } + + /// + /// Returns true if CreateInboxDto instances are equal + /// + /// Instance of CreateInboxDto to be compared + /// Boolean + public bool Equals(CreateInboxDto input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.DomainName == input.DomainName || + (this.DomainName != null && + this.DomainName.Equals(input.DomainName)) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.UseDomainPool == input.UseDomainPool || + (this.UseDomainPool != null && + this.UseDomainPool.Equals(input.UseDomainPool)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) + ) && + ( + this.Favourite == input.Favourite || + (this.Favourite != null && + this.Favourite.Equals(input.Favourite)) + ) && + ( + this.ExpiresIn == input.ExpiresIn || + (this.ExpiresIn != null && + this.ExpiresIn.Equals(input.ExpiresIn)) + ) && + ( + this.AllowTeamAccess == input.AllowTeamAccess || + (this.AllowTeamAccess != null && + this.AllowTeamAccess.Equals(input.AllowTeamAccess)) + ) && + ( + this.InboxType == input.InboxType || + this.InboxType.Equals(input.InboxType) + ) && + ( + this.VirtualInbox == input.VirtualInbox || + (this.VirtualInbox != null && + this.VirtualInbox.Equals(input.VirtualInbox)) + ) && + ( + this.UseShortAddress == input.UseShortAddress || + (this.UseShortAddress != null && + this.UseShortAddress.Equals(input.UseShortAddress)) + ) && + ( + this.Prefix == input.Prefix || + (this.Prefix != null && + this.Prefix.Equals(input.Prefix)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.DomainName != null) + { + hashCode = (hashCode * 59) + this.DomainName.GetHashCode(); + } + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } + if (this.UseDomainPool != null) + { + hashCode = (hashCode * 59) + this.UseDomainPool.GetHashCode(); + } + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + if (this.ExpiresAt != null) + { + hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + } + if (this.Favourite != null) + { + hashCode = (hashCode * 59) + this.Favourite.GetHashCode(); + } + if (this.ExpiresIn != null) + { + hashCode = (hashCode * 59) + this.ExpiresIn.GetHashCode(); + } + if (this.AllowTeamAccess != null) + { + hashCode = (hashCode * 59) + this.AllowTeamAccess.GetHashCode(); + } + hashCode = (hashCode * 59) + this.InboxType.GetHashCode(); + if (this.VirtualInbox != null) + { + hashCode = (hashCode * 59) + this.VirtualInbox.GetHashCode(); + } + if (this.UseShortAddress != null) + { + hashCode = (hashCode * 59) + this.UseShortAddress.GetHashCode(); + } + if (this.Prefix != null) + { + hashCode = (hashCode * 59) + this.Prefix.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateInboxForwarderOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateInboxForwarderOptions.cs new file mode 100644 index 00000000..b416c093 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateInboxForwarderOptions.cs @@ -0,0 +1,213 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for creating an inbox forwarder + /// + [DataContract(Name = "CreateInboxForwarderOptions")] + public partial class CreateInboxForwarderOptions : IEquatable, IValidatableObject + { + /// + /// Field to match against to trigger inbox forwarding for inbound email + /// + /// Field to match against to trigger inbox forwarding for inbound email + [JsonConverter(typeof(StringEnumConverter))] + public enum FieldEnum + { + /// + /// Enum RECIPIENTS for value: RECIPIENTS + /// + [EnumMember(Value = "RECIPIENTS")] + RECIPIENTS = 1, + + /// + /// Enum SENDER for value: SENDER + /// + [EnumMember(Value = "SENDER")] + SENDER = 2, + + /// + /// Enum SUBJECT for value: SUBJECT + /// + [EnumMember(Value = "SUBJECT")] + SUBJECT = 3, + + /// + /// Enum ATTACHMENTS for value: ATTACHMENTS + /// + [EnumMember(Value = "ATTACHMENTS")] + ATTACHMENTS = 4 + + } + + + /// + /// Field to match against to trigger inbox forwarding for inbound email + /// + /// Field to match against to trigger inbox forwarding for inbound email + [DataMember(Name = "field", IsRequired = true, EmitDefaultValue = true)] + public FieldEnum Field { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateInboxForwarderOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Field to match against to trigger inbox forwarding for inbound email (required). + /// String or wildcard style match for field specified when evaluating forwarding rules (required). + /// Email addresses to forward an email to if it matches the field and match criteria of the forwarder (required). + public CreateInboxForwarderOptions(FieldEnum field = default(FieldEnum), string match = default(string), List forwardToRecipients = default(List)) + { + this.Field = field; + // to ensure "match" is required (not null) + if (match == null) + { + throw new ArgumentNullException("match is a required property for CreateInboxForwarderOptions and cannot be null"); + } + this.Match = match; + // to ensure "forwardToRecipients" is required (not null) + if (forwardToRecipients == null) + { + throw new ArgumentNullException("forwardToRecipients is a required property for CreateInboxForwarderOptions and cannot be null"); + } + this.ForwardToRecipients = forwardToRecipients; + } + + /// + /// String or wildcard style match for field specified when evaluating forwarding rules + /// + /// String or wildcard style match for field specified when evaluating forwarding rules + [DataMember(Name = "match", IsRequired = true, EmitDefaultValue = true)] + public string Match { get; set; } + + /// + /// Email addresses to forward an email to if it matches the field and match criteria of the forwarder + /// + /// Email addresses to forward an email to if it matches the field and match criteria of the forwarder + [DataMember(Name = "forwardToRecipients", IsRequired = true, EmitDefaultValue = true)] + public List ForwardToRecipients { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateInboxForwarderOptions {\n"); + sb.Append(" Field: ").Append(Field).Append("\n"); + sb.Append(" Match: ").Append(Match).Append("\n"); + sb.Append(" ForwardToRecipients: ").Append(ForwardToRecipients).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateInboxForwarderOptions); + } + + /// + /// Returns true if CreateInboxForwarderOptions instances are equal + /// + /// Instance of CreateInboxForwarderOptions to be compared + /// Boolean + public bool Equals(CreateInboxForwarderOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Field == input.Field || + this.Field.Equals(input.Field) + ) && + ( + this.Match == input.Match || + (this.Match != null && + this.Match.Equals(input.Match)) + ) && + ( + this.ForwardToRecipients == input.ForwardToRecipients || + this.ForwardToRecipients != null && + input.ForwardToRecipients != null && + this.ForwardToRecipients.SequenceEqual(input.ForwardToRecipients) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Field.GetHashCode(); + if (this.Match != null) + { + hashCode = (hashCode * 59) + this.Match.GetHashCode(); + } + if (this.ForwardToRecipients != null) + { + hashCode = (hashCode * 59) + this.ForwardToRecipients.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateInboxReplierOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateInboxReplierOptions.cs new file mode 100644 index 00000000..18ec14ad --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateInboxReplierOptions.cs @@ -0,0 +1,398 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for creating an inbox replier. Repliers can be attached to inboxes and send automated responses when an inbound email matches given criteria. + /// + [DataContract(Name = "CreateInboxReplierOptions")] + public partial class CreateInboxReplierOptions : IEquatable, IValidatableObject + { + /// + /// Field to match against to trigger inbox replier for inbound email + /// + /// Field to match against to trigger inbox replier for inbound email + [JsonConverter(typeof(StringEnumConverter))] + public enum FieldEnum + { + /// + /// Enum RECIPIENTS for value: RECIPIENTS + /// + [EnumMember(Value = "RECIPIENTS")] + RECIPIENTS = 1, + + /// + /// Enum SENDER for value: SENDER + /// + [EnumMember(Value = "SENDER")] + SENDER = 2, + + /// + /// Enum SUBJECT for value: SUBJECT + /// + [EnumMember(Value = "SUBJECT")] + SUBJECT = 3, + + /// + /// Enum ATTACHMENTS for value: ATTACHMENTS + /// + [EnumMember(Value = "ATTACHMENTS")] + ATTACHMENTS = 4 + + } + + + /// + /// Field to match against to trigger inbox replier for inbound email + /// + /// Field to match against to trigger inbox replier for inbound email + [DataMember(Name = "field", IsRequired = true, EmitDefaultValue = true)] + public FieldEnum Field { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateInboxReplierOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Inbox ID to attach replier to (required). + /// Name for replier. + /// Field to match against to trigger inbox replier for inbound email (required). + /// String or wildcard style match for field specified when evaluating reply rules. Use `*` to match anything. (required). + /// Reply-to email address when sending replying. + /// Subject override when replying to email. + /// Send email from address. + /// Email reply charset. + /// Ignore sender replyTo when responding. Send directly to the sender if enabled.. + /// Send HTML email. + /// Email body for reply. + /// ID of template to use when sending a reply. + /// Template variable values. + public CreateInboxReplierOptions(Guid inboxId = default(Guid), string name = default(string), FieldEnum field = default(FieldEnum), string match = default(string), string replyTo = default(string), string subject = default(string), string from = default(string), string charset = default(string), bool? ignoreReplyTo = default(bool?), bool? isHTML = default(bool?), string body = default(string), Guid? templateId = default(Guid?), Dictionary templateVariables = default(Dictionary)) + { + this.InboxId = inboxId; + this.Field = field; + // to ensure "match" is required (not null) + if (match == null) + { + throw new ArgumentNullException("match is a required property for CreateInboxReplierOptions and cannot be null"); + } + this.Match = match; + this.Name = name; + this.ReplyTo = replyTo; + this.Subject = subject; + this.From = from; + this.Charset = charset; + this.IgnoreReplyTo = ignoreReplyTo; + this.IsHTML = isHTML; + this.Body = body; + this.TemplateId = templateId; + this.TemplateVariables = templateVariables; + } + + /// + /// Inbox ID to attach replier to + /// + /// Inbox ID to attach replier to + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Name for replier + /// + /// Name for replier + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// String or wildcard style match for field specified when evaluating reply rules. Use `*` to match anything. + /// + /// String or wildcard style match for field specified when evaluating reply rules. Use `*` to match anything. + [DataMember(Name = "match", IsRequired = true, EmitDefaultValue = true)] + public string Match { get; set; } + + /// + /// Reply-to email address when sending replying + /// + /// Reply-to email address when sending replying + [DataMember(Name = "replyTo", EmitDefaultValue = true)] + public string ReplyTo { get; set; } + + /// + /// Subject override when replying to email + /// + /// Subject override when replying to email + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Send email from address + /// + /// Send email from address + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Email reply charset + /// + /// Email reply charset + [DataMember(Name = "charset", EmitDefaultValue = true)] + public string Charset { get; set; } + + /// + /// Ignore sender replyTo when responding. Send directly to the sender if enabled. + /// + /// Ignore sender replyTo when responding. Send directly to the sender if enabled. + [DataMember(Name = "ignoreReplyTo", EmitDefaultValue = true)] + public bool? IgnoreReplyTo { get; set; } + + /// + /// Send HTML email + /// + /// Send HTML email + [DataMember(Name = "isHTML", EmitDefaultValue = true)] + public bool? IsHTML { get; set; } + + /// + /// Email body for reply + /// + /// Email body for reply + [DataMember(Name = "body", EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// ID of template to use when sending a reply + /// + /// ID of template to use when sending a reply + [DataMember(Name = "templateId", EmitDefaultValue = true)] + public Guid? TemplateId { get; set; } + + /// + /// Template variable values + /// + /// Template variable values + [DataMember(Name = "templateVariables", EmitDefaultValue = true)] + public Dictionary TemplateVariables { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateInboxReplierOptions {\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Field: ").Append(Field).Append("\n"); + sb.Append(" Match: ").Append(Match).Append("\n"); + sb.Append(" ReplyTo: ").Append(ReplyTo).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Charset: ").Append(Charset).Append("\n"); + sb.Append(" IgnoreReplyTo: ").Append(IgnoreReplyTo).Append("\n"); + sb.Append(" IsHTML: ").Append(IsHTML).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" TemplateId: ").Append(TemplateId).Append("\n"); + sb.Append(" TemplateVariables: ").Append(TemplateVariables).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateInboxReplierOptions); + } + + /// + /// Returns true if CreateInboxReplierOptions instances are equal + /// + /// Instance of CreateInboxReplierOptions to be compared + /// Boolean + public bool Equals(CreateInboxReplierOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Field == input.Field || + this.Field.Equals(input.Field) + ) && + ( + this.Match == input.Match || + (this.Match != null && + this.Match.Equals(input.Match)) + ) && + ( + this.ReplyTo == input.ReplyTo || + (this.ReplyTo != null && + this.ReplyTo.Equals(input.ReplyTo)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.Charset == input.Charset || + (this.Charset != null && + this.Charset.Equals(input.Charset)) + ) && + ( + this.IgnoreReplyTo == input.IgnoreReplyTo || + (this.IgnoreReplyTo != null && + this.IgnoreReplyTo.Equals(input.IgnoreReplyTo)) + ) && + ( + this.IsHTML == input.IsHTML || + (this.IsHTML != null && + this.IsHTML.Equals(input.IsHTML)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.TemplateId == input.TemplateId || + (this.TemplateId != null && + this.TemplateId.Equals(input.TemplateId)) + ) && + ( + this.TemplateVariables == input.TemplateVariables || + this.TemplateVariables != null && + input.TemplateVariables != null && + this.TemplateVariables.SequenceEqual(input.TemplateVariables) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Field.GetHashCode(); + if (this.Match != null) + { + hashCode = (hashCode * 59) + this.Match.GetHashCode(); + } + if (this.ReplyTo != null) + { + hashCode = (hashCode * 59) + this.ReplyTo.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.Charset != null) + { + hashCode = (hashCode * 59) + this.Charset.GetHashCode(); + } + if (this.IgnoreReplyTo != null) + { + hashCode = (hashCode * 59) + this.IgnoreReplyTo.GetHashCode(); + } + if (this.IsHTML != null) + { + hashCode = (hashCode * 59) + this.IsHTML.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + if (this.TemplateId != null) + { + hashCode = (hashCode * 59) + this.TemplateId.GetHashCode(); + } + if (this.TemplateVariables != null) + { + hashCode = (hashCode * 59) + this.TemplateVariables.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateInboxRulesetOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateInboxRulesetOptions.cs new file mode 100644 index 00000000..bcbca4dd --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateInboxRulesetOptions.cs @@ -0,0 +1,218 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for creating inbox rulesets. Inbox rulesets can be used to block, allow, filter, or forward emails when sending or receiving using the inbox. + /// + [DataContract(Name = "CreateInboxRulesetOptions")] + public partial class CreateInboxRulesetOptions : IEquatable, IValidatableObject + { + /// + /// What type of emails actions to apply ruleset to. Either `SENDING_EMAILS` or `RECEIVING_EMAILS` will apply action and target to any sending or receiving of emails respectively. + /// + /// What type of emails actions to apply ruleset to. Either `SENDING_EMAILS` or `RECEIVING_EMAILS` will apply action and target to any sending or receiving of emails respectively. + [JsonConverter(typeof(StringEnumConverter))] + public enum ScopeEnum + { + /// + /// Enum RECEIVINGEMAILS for value: RECEIVING_EMAILS + /// + [EnumMember(Value = "RECEIVING_EMAILS")] + RECEIVINGEMAILS = 1, + + /// + /// Enum SENDINGEMAILS for value: SENDING_EMAILS + /// + [EnumMember(Value = "SENDING_EMAILS")] + SENDINGEMAILS = 2 + + } + + + /// + /// What type of emails actions to apply ruleset to. Either `SENDING_EMAILS` or `RECEIVING_EMAILS` will apply action and target to any sending or receiving of emails respectively. + /// + /// What type of emails actions to apply ruleset to. Either `SENDING_EMAILS` or `RECEIVING_EMAILS` will apply action and target to any sending or receiving of emails respectively. + [DataMember(Name = "scope", IsRequired = true, EmitDefaultValue = true)] + public ScopeEnum Scope { get; set; } + /// + /// Action to be taken when the ruleset matches an email for the given scope. For example: `BLOCK` action with target `*` and scope `SENDING_EMAILS` blocks sending to all recipients. Note `ALLOW` takes precedent over `BLOCK`. `FILTER_REMOVE` is like block but will remove offending email addresses during a send or receive event instead of blocking the action. + /// + /// Action to be taken when the ruleset matches an email for the given scope. For example: `BLOCK` action with target `*` and scope `SENDING_EMAILS` blocks sending to all recipients. Note `ALLOW` takes precedent over `BLOCK`. `FILTER_REMOVE` is like block but will remove offending email addresses during a send or receive event instead of blocking the action. + [JsonConverter(typeof(StringEnumConverter))] + public enum ActionEnum + { + /// + /// Enum BLOCK for value: BLOCK + /// + [EnumMember(Value = "BLOCK")] + BLOCK = 1, + + /// + /// Enum ALLOW for value: ALLOW + /// + [EnumMember(Value = "ALLOW")] + ALLOW = 2, + + /// + /// Enum FILTERREMOVE for value: FILTER_REMOVE + /// + [EnumMember(Value = "FILTER_REMOVE")] + FILTERREMOVE = 3 + + } + + + /// + /// Action to be taken when the ruleset matches an email for the given scope. For example: `BLOCK` action with target `*` and scope `SENDING_EMAILS` blocks sending to all recipients. Note `ALLOW` takes precedent over `BLOCK`. `FILTER_REMOVE` is like block but will remove offending email addresses during a send or receive event instead of blocking the action. + /// + /// Action to be taken when the ruleset matches an email for the given scope. For example: `BLOCK` action with target `*` and scope `SENDING_EMAILS` blocks sending to all recipients. Note `ALLOW` takes precedent over `BLOCK`. `FILTER_REMOVE` is like block but will remove offending email addresses during a send or receive event instead of blocking the action. + [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = true)] + public ActionEnum Action { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateInboxRulesetOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// What type of emails actions to apply ruleset to. Either `SENDING_EMAILS` or `RECEIVING_EMAILS` will apply action and target to any sending or receiving of emails respectively. (required). + /// Action to be taken when the ruleset matches an email for the given scope. For example: `BLOCK` action with target `*` and scope `SENDING_EMAILS` blocks sending to all recipients. Note `ALLOW` takes precedent over `BLOCK`. `FILTER_REMOVE` is like block but will remove offending email addresses during a send or receive event instead of blocking the action. (required). + /// Target to match emails with. Can be a wild-card type pattern or a valid email address. For instance `*@gmail.com` matches all gmail addresses while `test@gmail.com` matches one address exactly. The target is applied to every recipient field email address when `SENDING_EMAILS` is the scope and is applied to sender of email when `RECEIVING_EMAILS`. (required). + public CreateInboxRulesetOptions(ScopeEnum scope = default(ScopeEnum), ActionEnum action = default(ActionEnum), string target = default(string)) + { + this.Scope = scope; + this.Action = action; + // to ensure "target" is required (not null) + if (target == null) + { + throw new ArgumentNullException("target is a required property for CreateInboxRulesetOptions and cannot be null"); + } + this.Target = target; + } + + /// + /// Target to match emails with. Can be a wild-card type pattern or a valid email address. For instance `*@gmail.com` matches all gmail addresses while `test@gmail.com` matches one address exactly. The target is applied to every recipient field email address when `SENDING_EMAILS` is the scope and is applied to sender of email when `RECEIVING_EMAILS`. + /// + /// Target to match emails with. Can be a wild-card type pattern or a valid email address. For instance `*@gmail.com` matches all gmail addresses while `test@gmail.com` matches one address exactly. The target is applied to every recipient field email address when `SENDING_EMAILS` is the scope and is applied to sender of email when `RECEIVING_EMAILS`. + [DataMember(Name = "target", IsRequired = true, EmitDefaultValue = true)] + public string Target { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateInboxRulesetOptions {\n"); + sb.Append(" Scope: ").Append(Scope).Append("\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateInboxRulesetOptions); + } + + /// + /// Returns true if CreateInboxRulesetOptions instances are equal + /// + /// Instance of CreateInboxRulesetOptions to be compared + /// Boolean + public bool Equals(CreateInboxRulesetOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Scope == input.Scope || + this.Scope.Equals(input.Scope) + ) && + ( + this.Action == input.Action || + this.Action.Equals(input.Action) + ) && + ( + this.Target == input.Target || + (this.Target != null && + this.Target.Equals(input.Target)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Scope.GetHashCode(); + hashCode = (hashCode * 59) + this.Action.GetHashCode(); + if (this.Target != null) + { + hashCode = (hashCode * 59) + this.Target.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateTemplateOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateTemplateOptions.cs new file mode 100644 index 00000000..6645e521 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateTemplateOptions.cs @@ -0,0 +1,164 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Create template options + /// + [DataContract(Name = "CreateTemplateOptions")] + public partial class CreateTemplateOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateTemplateOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Name of template (required). + /// Template content. Can include moustache style variables such as {{var_name}} (required). + public CreateTemplateOptions(string name = default(string), string content = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateTemplateOptions and cannot be null"); + } + this.Name = name; + // to ensure "content" is required (not null) + if (content == null) + { + throw new ArgumentNullException("content is a required property for CreateTemplateOptions and cannot be null"); + } + this.Content = content; + } + + /// + /// Name of template + /// + /// Name of template + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Template content. Can include moustache style variables such as {{var_name}} + /// + /// Template content. Can include moustache style variables such as {{var_name}} + [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] + public string Content { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateTemplateOptions {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateTemplateOptions); + } + + /// + /// Returns true if CreateTemplateOptions instances are equal + /// + /// Instance of CreateTemplateOptions to be compared + /// Boolean + public bool Equals(CreateTemplateOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateTrackingPixelOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateTrackingPixelOptions.cs new file mode 100644 index 00000000..3389aa2b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateTrackingPixelOptions.cs @@ -0,0 +1,147 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for creating a tracking pixel for email open tracking + /// + [DataContract(Name = "CreateTrackingPixelOptions")] + public partial class CreateTrackingPixelOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// name. + /// recipient. + public CreateTrackingPixelOptions(string name = default(string), string recipient = default(string)) + { + this.Name = name; + this.Recipient = recipient; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Recipient + /// + [DataMember(Name = "recipient", EmitDefaultValue = true)] + public string Recipient { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateTrackingPixelOptions {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Recipient: ").Append(Recipient).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateTrackingPixelOptions); + } + + /// + /// Returns true if CreateTrackingPixelOptions instances are equal + /// + /// Instance of CreateTrackingPixelOptions to be compared + /// Boolean + public bool Equals(CreateTrackingPixelOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Recipient == input.Recipient || + (this.Recipient != null && + this.Recipient.Equals(input.Recipient)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Recipient != null) + { + hashCode = (hashCode * 59) + this.Recipient.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/CreateWebhookOptions.cs b/src/mailslurp_netstandard_2x/Model/CreateWebhookOptions.cs new file mode 100644 index 00000000..4198ba51 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/CreateWebhookOptions.cs @@ -0,0 +1,337 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will POST a webhook payload to the URL specified whenever the webhook's event is triggered. Webhooks are great for processing many inbound emails and responding to other events at scale. Customize the payload sent to your endpoint by setting the `requestBodyTemplate` property to a string with moustache style variables. Property names from the standard payload model for the given event are available as variables. + /// + [DataContract(Name = "CreateWebhookOptions")] + public partial class CreateWebhookOptions : IEquatable, IValidatableObject + { + /// + /// Optional webhook event name. Default is `EMAIL_RECEIVED` and is triggered when an email is received by the inbox associated with the webhook. Payload differ according to the webhook event name. + /// + /// Optional webhook event name. Default is `EMAIL_RECEIVED` and is triggered when an email is received by the inbox associated with the webhook. Payload differ according to the webhook event name. + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Optional webhook event name. Default is `EMAIL_RECEIVED` and is triggered when an email is received by the inbox associated with the webhook. Payload differ according to the webhook event name. + /// + /// Optional webhook event name. Default is `EMAIL_RECEIVED` and is triggered when an email is received by the inbox associated with the webhook. Payload differ according to the webhook event name. + [DataMember(Name = "eventName", EmitDefaultValue = true)] + public EventNameEnum? EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateWebhookOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger. The payload of the submitted JSON is dependent on the webhook event type. See docs.mailslurp.com/webhooks for event payload documentation. (required). + /// basicAuth. + /// Optional name for the webhook. + /// Optional webhook event name. Default is `EMAIL_RECEIVED` and is triggered when an email is received by the inbox associated with the webhook. Payload differ according to the webhook event name.. + /// includeHeaders. + /// Template for the JSON body of the webhook request that will be sent to your server. Use Moustache style `{{variableName}}` templating to use parts of the standard webhook payload for the given event.. + /// Use static IP range when calling webhook endpoint (default to false). + /// Ignore insecure SSL certificates when sending request. Useful for self-signed certs.. + public CreateWebhookOptions(string url = default(string), BasicAuthOptions basicAuth = default(BasicAuthOptions), string name = default(string), EventNameEnum? eventName = default(EventNameEnum?), WebhookHeaders includeHeaders = default(WebhookHeaders), string requestBodyTemplate = default(string), bool? useStaticIpRange = false, bool? ignoreInsecureSslCertificates = default(bool?)) + { + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for CreateWebhookOptions and cannot be null"); + } + this.Url = url; + this.BasicAuth = basicAuth; + this.Name = name; + this.EventName = eventName; + this.IncludeHeaders = includeHeaders; + this.RequestBodyTemplate = requestBodyTemplate; + // use default value if no "useStaticIpRange" provided + this.UseStaticIpRange = useStaticIpRange ?? false; + this.IgnoreInsecureSslCertificates = ignoreInsecureSslCertificates; + } + + /// + /// Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger. The payload of the submitted JSON is dependent on the webhook event type. See docs.mailslurp.com/webhooks for event payload documentation. + /// + /// Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger. The payload of the submitted JSON is dependent on the webhook event type. See docs.mailslurp.com/webhooks for event payload documentation. + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Gets or Sets BasicAuth + /// + [DataMember(Name = "basicAuth", EmitDefaultValue = true)] + public BasicAuthOptions BasicAuth { get; set; } + + /// + /// Optional name for the webhook + /// + /// Optional name for the webhook + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets IncludeHeaders + /// + [DataMember(Name = "includeHeaders", EmitDefaultValue = false)] + public WebhookHeaders IncludeHeaders { get; set; } + + /// + /// Template for the JSON body of the webhook request that will be sent to your server. Use Moustache style `{{variableName}}` templating to use parts of the standard webhook payload for the given event. + /// + /// Template for the JSON body of the webhook request that will be sent to your server. Use Moustache style `{{variableName}}` templating to use parts of the standard webhook payload for the given event. + [DataMember(Name = "requestBodyTemplate", EmitDefaultValue = true)] + public string RequestBodyTemplate { get; set; } + + /// + /// Use static IP range when calling webhook endpoint + /// + /// Use static IP range when calling webhook endpoint + [DataMember(Name = "useStaticIpRange", EmitDefaultValue = true)] + public bool? UseStaticIpRange { get; set; } + + /// + /// Ignore insecure SSL certificates when sending request. Useful for self-signed certs. + /// + /// Ignore insecure SSL certificates when sending request. Useful for self-signed certs. + [DataMember(Name = "ignoreInsecureSslCertificates", EmitDefaultValue = true)] + public bool? IgnoreInsecureSslCertificates { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateWebhookOptions {\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" BasicAuth: ").Append(BasicAuth).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" IncludeHeaders: ").Append(IncludeHeaders).Append("\n"); + sb.Append(" RequestBodyTemplate: ").Append(RequestBodyTemplate).Append("\n"); + sb.Append(" UseStaticIpRange: ").Append(UseStaticIpRange).Append("\n"); + sb.Append(" IgnoreInsecureSslCertificates: ").Append(IgnoreInsecureSslCertificates).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateWebhookOptions); + } + + /// + /// Returns true if CreateWebhookOptions instances are equal + /// + /// Instance of CreateWebhookOptions to be compared + /// Boolean + public bool Equals(CreateWebhookOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ) && + ( + this.BasicAuth == input.BasicAuth || + (this.BasicAuth != null && + this.BasicAuth.Equals(input.BasicAuth)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.IncludeHeaders == input.IncludeHeaders || + (this.IncludeHeaders != null && + this.IncludeHeaders.Equals(input.IncludeHeaders)) + ) && + ( + this.RequestBodyTemplate == input.RequestBodyTemplate || + (this.RequestBodyTemplate != null && + this.RequestBodyTemplate.Equals(input.RequestBodyTemplate)) + ) && + ( + this.UseStaticIpRange == input.UseStaticIpRange || + (this.UseStaticIpRange != null && + this.UseStaticIpRange.Equals(input.UseStaticIpRange)) + ) && + ( + this.IgnoreInsecureSslCertificates == input.IgnoreInsecureSslCertificates || + (this.IgnoreInsecureSslCertificates != null && + this.IgnoreInsecureSslCertificates.Equals(input.IgnoreInsecureSslCertificates)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.GetHashCode(); + } + if (this.BasicAuth != null) + { + hashCode = (hashCode * 59) + this.BasicAuth.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.IncludeHeaders != null) + { + hashCode = (hashCode * 59) + this.IncludeHeaders.GetHashCode(); + } + if (this.RequestBodyTemplate != null) + { + hashCode = (hashCode * 59) + this.RequestBodyTemplate.GetHashCode(); + } + if (this.UseStaticIpRange != null) + { + hashCode = (hashCode * 59) + this.UseStaticIpRange.GetHashCode(); + } + if (this.IgnoreInsecureSslCertificates != null) + { + hashCode = (hashCode * 59) + this.IgnoreInsecureSslCertificates.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DNSLookupOptions.cs b/src/mailslurp_netstandard_2x/Model/DNSLookupOptions.cs new file mode 100644 index 00000000..99c1b86e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DNSLookupOptions.cs @@ -0,0 +1,723 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for DNS query. + /// + [DataContract(Name = "DNSLookupOptions")] + public partial class DNSLookupOptions : IEquatable, IValidatableObject + { + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [JsonConverter(typeof(StringEnumConverter))] + public enum RecordTypesEnum + { + /// + /// Enum A for value: A + /// + [EnumMember(Value = "A")] + A = 1, + + /// + /// Enum NS for value: NS + /// + [EnumMember(Value = "NS")] + NS = 2, + + /// + /// Enum MD for value: MD + /// + [EnumMember(Value = "MD")] + MD = 3, + + /// + /// Enum MF for value: MF + /// + [EnumMember(Value = "MF")] + MF = 4, + + /// + /// Enum CNAME for value: CNAME + /// + [EnumMember(Value = "CNAME")] + CNAME = 5, + + /// + /// Enum SOA for value: SOA + /// + [EnumMember(Value = "SOA")] + SOA = 6, + + /// + /// Enum MB for value: MB + /// + [EnumMember(Value = "MB")] + MB = 7, + + /// + /// Enum MG for value: MG + /// + [EnumMember(Value = "MG")] + MG = 8, + + /// + /// Enum MR for value: MR + /// + [EnumMember(Value = "MR")] + MR = 9, + + /// + /// Enum NULL for value: NULL + /// + [EnumMember(Value = "NULL")] + NULL = 10, + + /// + /// Enum WKS for value: WKS + /// + [EnumMember(Value = "WKS")] + WKS = 11, + + /// + /// Enum PTR for value: PTR + /// + [EnumMember(Value = "PTR")] + PTR = 12, + + /// + /// Enum HINFO for value: HINFO + /// + [EnumMember(Value = "HINFO")] + HINFO = 13, + + /// + /// Enum MINFO for value: MINFO + /// + [EnumMember(Value = "MINFO")] + MINFO = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum TXT for value: TXT + /// + [EnumMember(Value = "TXT")] + TXT = 16, + + /// + /// Enum RP for value: RP + /// + [EnumMember(Value = "RP")] + RP = 17, + + /// + /// Enum AFSDB for value: AFSDB + /// + [EnumMember(Value = "AFSDB")] + AFSDB = 18, + + /// + /// Enum X25 for value: X25 + /// + [EnumMember(Value = "X25")] + X25 = 19, + + /// + /// Enum ISDN for value: ISDN + /// + [EnumMember(Value = "ISDN")] + ISDN = 20, + + /// + /// Enum RT for value: RT + /// + [EnumMember(Value = "RT")] + RT = 21, + + /// + /// Enum NSAP for value: NSAP + /// + [EnumMember(Value = "NSAP")] + NSAP = 22, + + /// + /// Enum NSAPPTR for value: NSAP_PTR + /// + [EnumMember(Value = "NSAP_PTR")] + NSAPPTR = 23, + + /// + /// Enum SIG for value: SIG + /// + [EnumMember(Value = "SIG")] + SIG = 24, + + /// + /// Enum KEY for value: KEY + /// + [EnumMember(Value = "KEY")] + KEY = 25, + + /// + /// Enum PX for value: PX + /// + [EnumMember(Value = "PX")] + PX = 26, + + /// + /// Enum GPOS for value: GPOS + /// + [EnumMember(Value = "GPOS")] + GPOS = 27, + + /// + /// Enum AAAA for value: AAAA + /// + [EnumMember(Value = "AAAA")] + AAAA = 28, + + /// + /// Enum LOC for value: LOC + /// + [EnumMember(Value = "LOC")] + LOC = 29, + + /// + /// Enum NXT for value: NXT + /// + [EnumMember(Value = "NXT")] + NXT = 30, + + /// + /// Enum EID for value: EID + /// + [EnumMember(Value = "EID")] + EID = 31, + + /// + /// Enum NIMLOC for value: NIMLOC + /// + [EnumMember(Value = "NIMLOC")] + NIMLOC = 32, + + /// + /// Enum SRV for value: SRV + /// + [EnumMember(Value = "SRV")] + SRV = 33, + + /// + /// Enum ATMA for value: ATMA + /// + [EnumMember(Value = "ATMA")] + ATMA = 34, + + /// + /// Enum NAPTR for value: NAPTR + /// + [EnumMember(Value = "NAPTR")] + NAPTR = 35, + + /// + /// Enum KX for value: KX + /// + [EnumMember(Value = "KX")] + KX = 36, + + /// + /// Enum CERT for value: CERT + /// + [EnumMember(Value = "CERT")] + CERT = 37, + + /// + /// Enum A6 for value: A6 + /// + [EnumMember(Value = "A6")] + A6 = 38, + + /// + /// Enum DNAME for value: DNAME + /// + [EnumMember(Value = "DNAME")] + DNAME = 39, + + /// + /// Enum SINK for value: SINK + /// + [EnumMember(Value = "SINK")] + SINK = 40, + + /// + /// Enum OPT for value: OPT + /// + [EnumMember(Value = "OPT")] + OPT = 41, + + /// + /// Enum APL for value: APL + /// + [EnumMember(Value = "APL")] + APL = 42, + + /// + /// Enum DS for value: DS + /// + [EnumMember(Value = "DS")] + DS = 43, + + /// + /// Enum SSHFP for value: SSHFP + /// + [EnumMember(Value = "SSHFP")] + SSHFP = 44, + + /// + /// Enum IPSECKEY for value: IPSECKEY + /// + [EnumMember(Value = "IPSECKEY")] + IPSECKEY = 45, + + /// + /// Enum RRSIG for value: RRSIG + /// + [EnumMember(Value = "RRSIG")] + RRSIG = 46, + + /// + /// Enum NSEC for value: NSEC + /// + [EnumMember(Value = "NSEC")] + NSEC = 47, + + /// + /// Enum DNSKEY for value: DNSKEY + /// + [EnumMember(Value = "DNSKEY")] + DNSKEY = 48, + + /// + /// Enum DHCID for value: DHCID + /// + [EnumMember(Value = "DHCID")] + DHCID = 49, + + /// + /// Enum NSEC3 for value: NSEC3 + /// + [EnumMember(Value = "NSEC3")] + NSEC3 = 50, + + /// + /// Enum NSEC3PARAM for value: NSEC3PARAM + /// + [EnumMember(Value = "NSEC3PARAM")] + NSEC3PARAM = 51, + + /// + /// Enum TLSA for value: TLSA + /// + [EnumMember(Value = "TLSA")] + TLSA = 52, + + /// + /// Enum SMIMEA for value: SMIMEA + /// + [EnumMember(Value = "SMIMEA")] + SMIMEA = 53, + + /// + /// Enum HIP for value: HIP + /// + [EnumMember(Value = "HIP")] + HIP = 54, + + /// + /// Enum NINFO for value: NINFO + /// + [EnumMember(Value = "NINFO")] + NINFO = 55, + + /// + /// Enum RKEY for value: RKEY + /// + [EnumMember(Value = "RKEY")] + RKEY = 56, + + /// + /// Enum TALINK for value: TALINK + /// + [EnumMember(Value = "TALINK")] + TALINK = 57, + + /// + /// Enum CDS for value: CDS + /// + [EnumMember(Value = "CDS")] + CDS = 58, + + /// + /// Enum CDNSKEY for value: CDNSKEY + /// + [EnumMember(Value = "CDNSKEY")] + CDNSKEY = 59, + + /// + /// Enum OPENPGPKEY for value: OPENPGPKEY + /// + [EnumMember(Value = "OPENPGPKEY")] + OPENPGPKEY = 60, + + /// + /// Enum CSYNC for value: CSYNC + /// + [EnumMember(Value = "CSYNC")] + CSYNC = 61, + + /// + /// Enum ZONEMD for value: ZONEMD + /// + [EnumMember(Value = "ZONEMD")] + ZONEMD = 62, + + /// + /// Enum SVCB for value: SVCB + /// + [EnumMember(Value = "SVCB")] + SVCB = 63, + + /// + /// Enum HTTPS for value: HTTPS + /// + [EnumMember(Value = "HTTPS")] + HTTPS = 64, + + /// + /// Enum SPF for value: SPF + /// + [EnumMember(Value = "SPF")] + SPF = 65, + + /// + /// Enum UINFO for value: UINFO + /// + [EnumMember(Value = "UINFO")] + UINFO = 66, + + /// + /// Enum UID for value: UID + /// + [EnumMember(Value = "UID")] + UID = 67, + + /// + /// Enum GID for value: GID + /// + [EnumMember(Value = "GID")] + GID = 68, + + /// + /// Enum UNSPEC for value: UNSPEC + /// + [EnumMember(Value = "UNSPEC")] + UNSPEC = 69, + + /// + /// Enum NID for value: NID + /// + [EnumMember(Value = "NID")] + NID = 70, + + /// + /// Enum L32 for value: L32 + /// + [EnumMember(Value = "L32")] + L32 = 71, + + /// + /// Enum L64 for value: L64 + /// + [EnumMember(Value = "L64")] + L64 = 72, + + /// + /// Enum LP for value: LP + /// + [EnumMember(Value = "LP")] + LP = 73, + + /// + /// Enum EUI48 for value: EUI48 + /// + [EnumMember(Value = "EUI48")] + EUI48 = 74, + + /// + /// Enum EUI64 for value: EUI64 + /// + [EnumMember(Value = "EUI64")] + EUI64 = 75, + + /// + /// Enum TKEY for value: TKEY + /// + [EnumMember(Value = "TKEY")] + TKEY = 76, + + /// + /// Enum TSIG for value: TSIG + /// + [EnumMember(Value = "TSIG")] + TSIG = 77, + + /// + /// Enum IXFR for value: IXFR + /// + [EnumMember(Value = "IXFR")] + IXFR = 78, + + /// + /// Enum AXFR for value: AXFR + /// + [EnumMember(Value = "AXFR")] + AXFR = 79, + + /// + /// Enum MAILB for value: MAILB + /// + [EnumMember(Value = "MAILB")] + MAILB = 80, + + /// + /// Enum MAILA for value: MAILA + /// + [EnumMember(Value = "MAILA")] + MAILA = 81, + + /// + /// Enum ANY for value: ANY + /// + [EnumMember(Value = "ANY")] + ANY = 82, + + /// + /// Enum URI for value: URI + /// + [EnumMember(Value = "URI")] + URI = 83, + + /// + /// Enum CAA for value: CAA + /// + [EnumMember(Value = "CAA")] + CAA = 84, + + /// + /// Enum AVC for value: AVC + /// + [EnumMember(Value = "AVC")] + AVC = 85, + + /// + /// Enum DOA for value: DOA + /// + [EnumMember(Value = "DOA")] + DOA = 86, + + /// + /// Enum AMTRELAY for value: AMTRELAY + /// + [EnumMember(Value = "AMTRELAY")] + AMTRELAY = 87, + + /// + /// Enum TA for value: TA + /// + [EnumMember(Value = "TA")] + TA = 88, + + /// + /// Enum DLV for value: DLV + /// + [EnumMember(Value = "DLV")] + DLV = 89 + + } + + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DNSLookupOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// List of record types you wish to query such as MX, DNS, TXT, NS, A etc. (required). + /// List of record types you wish to query such as MX, DNS, TXT, NS, A etc. (required). + /// Optionally control whether to omit the final dot in full DNS name values. (required). + public DNSLookupOptions(string hostname = default(string), List recordTypes = default(List), bool omitFinalDNSDot = default(bool)) + { + // to ensure "hostname" is required (not null) + if (hostname == null) + { + throw new ArgumentNullException("hostname is a required property for DNSLookupOptions and cannot be null"); + } + this.Hostname = hostname; + // to ensure "recordTypes" is required (not null) + if (recordTypes == null) + { + throw new ArgumentNullException("recordTypes is a required property for DNSLookupOptions and cannot be null"); + } + this.RecordTypes = recordTypes; + this.OmitFinalDNSDot = omitFinalDNSDot; + } + + /// + /// List of record types you wish to query such as MX, DNS, TXT, NS, A etc. + /// + /// List of record types you wish to query such as MX, DNS, TXT, NS, A etc. + [DataMember(Name = "hostname", IsRequired = true, EmitDefaultValue = true)] + public string Hostname { get; set; } + + /// + /// List of record types you wish to query such as MX, DNS, TXT, NS, A etc. + /// + /// List of record types you wish to query such as MX, DNS, TXT, NS, A etc. + [DataMember(Name = "recordTypes", IsRequired = true, EmitDefaultValue = true)] + public List RecordTypes { get; set; } + + /// + /// Optionally control whether to omit the final dot in full DNS name values. + /// + /// Optionally control whether to omit the final dot in full DNS name values. + [DataMember(Name = "omitFinalDNSDot", IsRequired = true, EmitDefaultValue = true)] + public bool OmitFinalDNSDot { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DNSLookupOptions {\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" RecordTypes: ").Append(RecordTypes).Append("\n"); + sb.Append(" OmitFinalDNSDot: ").Append(OmitFinalDNSDot).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DNSLookupOptions); + } + + /// + /// Returns true if DNSLookupOptions instances are equal + /// + /// Instance of DNSLookupOptions to be compared + /// Boolean + public bool Equals(DNSLookupOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Hostname == input.Hostname || + (this.Hostname != null && + this.Hostname.Equals(input.Hostname)) + ) && + ( + this.RecordTypes == input.RecordTypes || + this.RecordTypes != null && + input.RecordTypes != null && + this.RecordTypes.SequenceEqual(input.RecordTypes) + ) && + ( + this.OmitFinalDNSDot == input.OmitFinalDNSDot || + this.OmitFinalDNSDot.Equals(input.OmitFinalDNSDot) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Hostname != null) + { + hashCode = (hashCode * 59) + this.Hostname.GetHashCode(); + } + if (this.RecordTypes != null) + { + hashCode = (hashCode * 59) + this.RecordTypes.GetHashCode(); + } + hashCode = (hashCode * 59) + this.OmitFinalDNSDot.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DNSLookupResult.cs b/src/mailslurp_netstandard_2x/Model/DNSLookupResult.cs new file mode 100644 index 00000000..d814ddad --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DNSLookupResult.cs @@ -0,0 +1,735 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// DNS lookup result. Includes record type, time to live, raw response, and name value for the name server response. + /// + [DataContract(Name = "DNSLookupResult")] + public partial class DNSLookupResult : IEquatable, IValidatableObject + { + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [JsonConverter(typeof(StringEnumConverter))] + public enum RecordTypeEnum + { + /// + /// Enum A for value: A + /// + [EnumMember(Value = "A")] + A = 1, + + /// + /// Enum NS for value: NS + /// + [EnumMember(Value = "NS")] + NS = 2, + + /// + /// Enum MD for value: MD + /// + [EnumMember(Value = "MD")] + MD = 3, + + /// + /// Enum MF for value: MF + /// + [EnumMember(Value = "MF")] + MF = 4, + + /// + /// Enum CNAME for value: CNAME + /// + [EnumMember(Value = "CNAME")] + CNAME = 5, + + /// + /// Enum SOA for value: SOA + /// + [EnumMember(Value = "SOA")] + SOA = 6, + + /// + /// Enum MB for value: MB + /// + [EnumMember(Value = "MB")] + MB = 7, + + /// + /// Enum MG for value: MG + /// + [EnumMember(Value = "MG")] + MG = 8, + + /// + /// Enum MR for value: MR + /// + [EnumMember(Value = "MR")] + MR = 9, + + /// + /// Enum NULL for value: NULL + /// + [EnumMember(Value = "NULL")] + NULL = 10, + + /// + /// Enum WKS for value: WKS + /// + [EnumMember(Value = "WKS")] + WKS = 11, + + /// + /// Enum PTR for value: PTR + /// + [EnumMember(Value = "PTR")] + PTR = 12, + + /// + /// Enum HINFO for value: HINFO + /// + [EnumMember(Value = "HINFO")] + HINFO = 13, + + /// + /// Enum MINFO for value: MINFO + /// + [EnumMember(Value = "MINFO")] + MINFO = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum TXT for value: TXT + /// + [EnumMember(Value = "TXT")] + TXT = 16, + + /// + /// Enum RP for value: RP + /// + [EnumMember(Value = "RP")] + RP = 17, + + /// + /// Enum AFSDB for value: AFSDB + /// + [EnumMember(Value = "AFSDB")] + AFSDB = 18, + + /// + /// Enum X25 for value: X25 + /// + [EnumMember(Value = "X25")] + X25 = 19, + + /// + /// Enum ISDN for value: ISDN + /// + [EnumMember(Value = "ISDN")] + ISDN = 20, + + /// + /// Enum RT for value: RT + /// + [EnumMember(Value = "RT")] + RT = 21, + + /// + /// Enum NSAP for value: NSAP + /// + [EnumMember(Value = "NSAP")] + NSAP = 22, + + /// + /// Enum NSAPPTR for value: NSAP_PTR + /// + [EnumMember(Value = "NSAP_PTR")] + NSAPPTR = 23, + + /// + /// Enum SIG for value: SIG + /// + [EnumMember(Value = "SIG")] + SIG = 24, + + /// + /// Enum KEY for value: KEY + /// + [EnumMember(Value = "KEY")] + KEY = 25, + + /// + /// Enum PX for value: PX + /// + [EnumMember(Value = "PX")] + PX = 26, + + /// + /// Enum GPOS for value: GPOS + /// + [EnumMember(Value = "GPOS")] + GPOS = 27, + + /// + /// Enum AAAA for value: AAAA + /// + [EnumMember(Value = "AAAA")] + AAAA = 28, + + /// + /// Enum LOC for value: LOC + /// + [EnumMember(Value = "LOC")] + LOC = 29, + + /// + /// Enum NXT for value: NXT + /// + [EnumMember(Value = "NXT")] + NXT = 30, + + /// + /// Enum EID for value: EID + /// + [EnumMember(Value = "EID")] + EID = 31, + + /// + /// Enum NIMLOC for value: NIMLOC + /// + [EnumMember(Value = "NIMLOC")] + NIMLOC = 32, + + /// + /// Enum SRV for value: SRV + /// + [EnumMember(Value = "SRV")] + SRV = 33, + + /// + /// Enum ATMA for value: ATMA + /// + [EnumMember(Value = "ATMA")] + ATMA = 34, + + /// + /// Enum NAPTR for value: NAPTR + /// + [EnumMember(Value = "NAPTR")] + NAPTR = 35, + + /// + /// Enum KX for value: KX + /// + [EnumMember(Value = "KX")] + KX = 36, + + /// + /// Enum CERT for value: CERT + /// + [EnumMember(Value = "CERT")] + CERT = 37, + + /// + /// Enum A6 for value: A6 + /// + [EnumMember(Value = "A6")] + A6 = 38, + + /// + /// Enum DNAME for value: DNAME + /// + [EnumMember(Value = "DNAME")] + DNAME = 39, + + /// + /// Enum SINK for value: SINK + /// + [EnumMember(Value = "SINK")] + SINK = 40, + + /// + /// Enum OPT for value: OPT + /// + [EnumMember(Value = "OPT")] + OPT = 41, + + /// + /// Enum APL for value: APL + /// + [EnumMember(Value = "APL")] + APL = 42, + + /// + /// Enum DS for value: DS + /// + [EnumMember(Value = "DS")] + DS = 43, + + /// + /// Enum SSHFP for value: SSHFP + /// + [EnumMember(Value = "SSHFP")] + SSHFP = 44, + + /// + /// Enum IPSECKEY for value: IPSECKEY + /// + [EnumMember(Value = "IPSECKEY")] + IPSECKEY = 45, + + /// + /// Enum RRSIG for value: RRSIG + /// + [EnumMember(Value = "RRSIG")] + RRSIG = 46, + + /// + /// Enum NSEC for value: NSEC + /// + [EnumMember(Value = "NSEC")] + NSEC = 47, + + /// + /// Enum DNSKEY for value: DNSKEY + /// + [EnumMember(Value = "DNSKEY")] + DNSKEY = 48, + + /// + /// Enum DHCID for value: DHCID + /// + [EnumMember(Value = "DHCID")] + DHCID = 49, + + /// + /// Enum NSEC3 for value: NSEC3 + /// + [EnumMember(Value = "NSEC3")] + NSEC3 = 50, + + /// + /// Enum NSEC3PARAM for value: NSEC3PARAM + /// + [EnumMember(Value = "NSEC3PARAM")] + NSEC3PARAM = 51, + + /// + /// Enum TLSA for value: TLSA + /// + [EnumMember(Value = "TLSA")] + TLSA = 52, + + /// + /// Enum SMIMEA for value: SMIMEA + /// + [EnumMember(Value = "SMIMEA")] + SMIMEA = 53, + + /// + /// Enum HIP for value: HIP + /// + [EnumMember(Value = "HIP")] + HIP = 54, + + /// + /// Enum NINFO for value: NINFO + /// + [EnumMember(Value = "NINFO")] + NINFO = 55, + + /// + /// Enum RKEY for value: RKEY + /// + [EnumMember(Value = "RKEY")] + RKEY = 56, + + /// + /// Enum TALINK for value: TALINK + /// + [EnumMember(Value = "TALINK")] + TALINK = 57, + + /// + /// Enum CDS for value: CDS + /// + [EnumMember(Value = "CDS")] + CDS = 58, + + /// + /// Enum CDNSKEY for value: CDNSKEY + /// + [EnumMember(Value = "CDNSKEY")] + CDNSKEY = 59, + + /// + /// Enum OPENPGPKEY for value: OPENPGPKEY + /// + [EnumMember(Value = "OPENPGPKEY")] + OPENPGPKEY = 60, + + /// + /// Enum CSYNC for value: CSYNC + /// + [EnumMember(Value = "CSYNC")] + CSYNC = 61, + + /// + /// Enum ZONEMD for value: ZONEMD + /// + [EnumMember(Value = "ZONEMD")] + ZONEMD = 62, + + /// + /// Enum SVCB for value: SVCB + /// + [EnumMember(Value = "SVCB")] + SVCB = 63, + + /// + /// Enum HTTPS for value: HTTPS + /// + [EnumMember(Value = "HTTPS")] + HTTPS = 64, + + /// + /// Enum SPF for value: SPF + /// + [EnumMember(Value = "SPF")] + SPF = 65, + + /// + /// Enum UINFO for value: UINFO + /// + [EnumMember(Value = "UINFO")] + UINFO = 66, + + /// + /// Enum UID for value: UID + /// + [EnumMember(Value = "UID")] + UID = 67, + + /// + /// Enum GID for value: GID + /// + [EnumMember(Value = "GID")] + GID = 68, + + /// + /// Enum UNSPEC for value: UNSPEC + /// + [EnumMember(Value = "UNSPEC")] + UNSPEC = 69, + + /// + /// Enum NID for value: NID + /// + [EnumMember(Value = "NID")] + NID = 70, + + /// + /// Enum L32 for value: L32 + /// + [EnumMember(Value = "L32")] + L32 = 71, + + /// + /// Enum L64 for value: L64 + /// + [EnumMember(Value = "L64")] + L64 = 72, + + /// + /// Enum LP for value: LP + /// + [EnumMember(Value = "LP")] + LP = 73, + + /// + /// Enum EUI48 for value: EUI48 + /// + [EnumMember(Value = "EUI48")] + EUI48 = 74, + + /// + /// Enum EUI64 for value: EUI64 + /// + [EnumMember(Value = "EUI64")] + EUI64 = 75, + + /// + /// Enum TKEY for value: TKEY + /// + [EnumMember(Value = "TKEY")] + TKEY = 76, + + /// + /// Enum TSIG for value: TSIG + /// + [EnumMember(Value = "TSIG")] + TSIG = 77, + + /// + /// Enum IXFR for value: IXFR + /// + [EnumMember(Value = "IXFR")] + IXFR = 78, + + /// + /// Enum AXFR for value: AXFR + /// + [EnumMember(Value = "AXFR")] + AXFR = 79, + + /// + /// Enum MAILB for value: MAILB + /// + [EnumMember(Value = "MAILB")] + MAILB = 80, + + /// + /// Enum MAILA for value: MAILA + /// + [EnumMember(Value = "MAILA")] + MAILA = 81, + + /// + /// Enum ANY for value: ANY + /// + [EnumMember(Value = "ANY")] + ANY = 82, + + /// + /// Enum URI for value: URI + /// + [EnumMember(Value = "URI")] + URI = 83, + + /// + /// Enum CAA for value: CAA + /// + [EnumMember(Value = "CAA")] + CAA = 84, + + /// + /// Enum AVC for value: AVC + /// + [EnumMember(Value = "AVC")] + AVC = 85, + + /// + /// Enum DOA for value: DOA + /// + [EnumMember(Value = "DOA")] + DOA = 86, + + /// + /// Enum AMTRELAY for value: AMTRELAY + /// + [EnumMember(Value = "AMTRELAY")] + AMTRELAY = 87, + + /// + /// Enum TA for value: TA + /// + [EnumMember(Value = "TA")] + TA = 88, + + /// + /// Enum DLV for value: DLV + /// + [EnumMember(Value = "DLV")] + DLV = 89 + + } + + + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [DataMember(Name = "recordType", IsRequired = true, EmitDefaultValue = true)] + public RecordTypeEnum RecordType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DNSLookupResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Domain Name Server Record Types (required). + /// ttl (required). + /// recordEntries (required). + /// name (required). + public DNSLookupResult(RecordTypeEnum recordType = default(RecordTypeEnum), long ttl = default(long), List recordEntries = default(List), string name = default(string)) + { + this.RecordType = recordType; + this.Ttl = ttl; + // to ensure "recordEntries" is required (not null) + if (recordEntries == null) + { + throw new ArgumentNullException("recordEntries is a required property for DNSLookupResult and cannot be null"); + } + this.RecordEntries = recordEntries; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for DNSLookupResult and cannot be null"); + } + this.Name = name; + } + + /// + /// Gets or Sets Ttl + /// + [DataMember(Name = "ttl", IsRequired = true, EmitDefaultValue = true)] + public long Ttl { get; set; } + + /// + /// Gets or Sets RecordEntries + /// + [DataMember(Name = "recordEntries", IsRequired = true, EmitDefaultValue = true)] + public List RecordEntries { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DNSLookupResult {\n"); + sb.Append(" RecordType: ").Append(RecordType).Append("\n"); + sb.Append(" Ttl: ").Append(Ttl).Append("\n"); + sb.Append(" RecordEntries: ").Append(RecordEntries).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DNSLookupResult); + } + + /// + /// Returns true if DNSLookupResult instances are equal + /// + /// Instance of DNSLookupResult to be compared + /// Boolean + public bool Equals(DNSLookupResult input) + { + if (input == null) + { + return false; + } + return + ( + this.RecordType == input.RecordType || + this.RecordType.Equals(input.RecordType) + ) && + ( + this.Ttl == input.Ttl || + this.Ttl.Equals(input.Ttl) + ) && + ( + this.RecordEntries == input.RecordEntries || + this.RecordEntries != null && + input.RecordEntries != null && + this.RecordEntries.SequenceEqual(input.RecordEntries) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.RecordType.GetHashCode(); + hashCode = (hashCode * 59) + this.Ttl.GetHashCode(); + if (this.RecordEntries != null) + { + hashCode = (hashCode * 59) + this.RecordEntries.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DNSLookupResults.cs b/src/mailslurp_netstandard_2x/Model/DNSLookupResults.cs new file mode 100644 index 00000000..15818188 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DNSLookupResults.cs @@ -0,0 +1,140 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Results of query on domain name servers + /// + [DataContract(Name = "DNSLookupResults")] + public partial class DNSLookupResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DNSLookupResults() { } + /// + /// Initializes a new instance of the class. + /// + /// results (required). + public DNSLookupResults(List results = default(List)) + { + // to ensure "results" is required (not null) + if (results == null) + { + throw new ArgumentNullException("results is a required property for DNSLookupResults and cannot be null"); + } + this.Results = results; + } + + /// + /// Gets or Sets Results + /// + [DataMember(Name = "results", IsRequired = true, EmitDefaultValue = true)] + public List Results { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DNSLookupResults {\n"); + sb.Append(" Results: ").Append(Results).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DNSLookupResults); + } + + /// + /// Returns true if DNSLookupResults instances are equal + /// + /// Instance of DNSLookupResults to be compared + /// Boolean + public bool Equals(DNSLookupResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Results == input.Results || + this.Results != null && + input.Results != null && + this.Results.SequenceEqual(input.Results) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Results != null) + { + hashCode = (hashCode * 59) + this.Results.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DNSLookupsOptions.cs b/src/mailslurp_netstandard_2x/Model/DNSLookupsOptions.cs new file mode 100644 index 00000000..179ee2ac --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DNSLookupsOptions.cs @@ -0,0 +1,140 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for multiple DNS queries + /// + [DataContract(Name = "DNSLookupsOptions")] + public partial class DNSLookupsOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DNSLookupsOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// lookups (required). + public DNSLookupsOptions(List lookups = default(List)) + { + // to ensure "lookups" is required (not null) + if (lookups == null) + { + throw new ArgumentNullException("lookups is a required property for DNSLookupsOptions and cannot be null"); + } + this.Lookups = lookups; + } + + /// + /// Gets or Sets Lookups + /// + [DataMember(Name = "lookups", IsRequired = true, EmitDefaultValue = true)] + public List Lookups { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DNSLookupsOptions {\n"); + sb.Append(" Lookups: ").Append(Lookups).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DNSLookupsOptions); + } + + /// + /// Returns true if DNSLookupsOptions instances are equal + /// + /// Instance of DNSLookupsOptions to be compared + /// Boolean + public bool Equals(DNSLookupsOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Lookups == input.Lookups || + this.Lookups != null && + input.Lookups != null && + this.Lookups.SequenceEqual(input.Lookups) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Lookups != null) + { + hashCode = (hashCode * 59) + this.Lookups.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DeliveryStatusDto.cs b/src/mailslurp_netstandard_2x/Model/DeliveryStatusDto.cs new file mode 100644 index 00000000..f90efe18 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DeliveryStatusDto.cs @@ -0,0 +1,361 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// DeliveryStatusDto + /// + [DataContract(Name = "DeliveryStatusDto")] + public partial class DeliveryStatusDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DeliveryStatusDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// sentId. + /// remoteMtaIp. + /// inboxId. + /// reportingMta. + /// recipients. + /// smtpResponse. + /// smtpStatusCode. + /// processingTimeMillis. + /// received. + /// subject. + /// createdAt (required). + /// updatedAt (required). + public DeliveryStatusDto(Guid id = default(Guid), Guid userId = default(Guid), Guid sentId = default(Guid), string remoteMtaIp = default(string), Guid inboxId = default(Guid), string reportingMta = default(string), List recipients = default(List), string smtpResponse = default(string), int smtpStatusCode = default(int), long processingTimeMillis = default(long), DateTime received = default(DateTime), string subject = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + this.Id = id; + this.UserId = userId; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.SentId = sentId; + this.RemoteMtaIp = remoteMtaIp; + this.InboxId = inboxId; + this.ReportingMta = reportingMta; + this.Recipients = recipients; + this.SmtpResponse = smtpResponse; + this.SmtpStatusCode = smtpStatusCode; + this.ProcessingTimeMillis = processingTimeMillis; + this.Received = received; + this.Subject = subject; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets SentId + /// + [DataMember(Name = "sentId", EmitDefaultValue = false)] + public Guid SentId { get; set; } + + /// + /// Gets or Sets RemoteMtaIp + /// + [DataMember(Name = "remoteMtaIp", EmitDefaultValue = false)] + public string RemoteMtaIp { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = false)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets ReportingMta + /// + [DataMember(Name = "reportingMta", EmitDefaultValue = false)] + public string ReportingMta { get; set; } + + /// + /// Gets or Sets Recipients + /// + [DataMember(Name = "recipients", EmitDefaultValue = false)] + public List Recipients { get; set; } + + /// + /// Gets or Sets SmtpResponse + /// + [DataMember(Name = "smtpResponse", EmitDefaultValue = false)] + public string SmtpResponse { get; set; } + + /// + /// Gets or Sets SmtpStatusCode + /// + [DataMember(Name = "smtpStatusCode", EmitDefaultValue = false)] + public int SmtpStatusCode { get; set; } + + /// + /// Gets or Sets ProcessingTimeMillis + /// + [DataMember(Name = "processingTimeMillis", EmitDefaultValue = false)] + public long ProcessingTimeMillis { get; set; } + + /// + /// Gets or Sets Received + /// + [DataMember(Name = "received", EmitDefaultValue = false)] + public DateTime Received { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = false)] + public string Subject { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DeliveryStatusDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" SentId: ").Append(SentId).Append("\n"); + sb.Append(" RemoteMtaIp: ").Append(RemoteMtaIp).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" ReportingMta: ").Append(ReportingMta).Append("\n"); + sb.Append(" Recipients: ").Append(Recipients).Append("\n"); + sb.Append(" SmtpResponse: ").Append(SmtpResponse).Append("\n"); + sb.Append(" SmtpStatusCode: ").Append(SmtpStatusCode).Append("\n"); + sb.Append(" ProcessingTimeMillis: ").Append(ProcessingTimeMillis).Append("\n"); + sb.Append(" Received: ").Append(Received).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DeliveryStatusDto); + } + + /// + /// Returns true if DeliveryStatusDto instances are equal + /// + /// Instance of DeliveryStatusDto to be compared + /// Boolean + public bool Equals(DeliveryStatusDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.SentId == input.SentId || + (this.SentId != null && + this.SentId.Equals(input.SentId)) + ) && + ( + this.RemoteMtaIp == input.RemoteMtaIp || + (this.RemoteMtaIp != null && + this.RemoteMtaIp.Equals(input.RemoteMtaIp)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.ReportingMta == input.ReportingMta || + (this.ReportingMta != null && + this.ReportingMta.Equals(input.ReportingMta)) + ) && + ( + this.Recipients == input.Recipients || + this.Recipients != null && + input.Recipients != null && + this.Recipients.SequenceEqual(input.Recipients) + ) && + ( + this.SmtpResponse == input.SmtpResponse || + (this.SmtpResponse != null && + this.SmtpResponse.Equals(input.SmtpResponse)) + ) && + ( + this.SmtpStatusCode == input.SmtpStatusCode || + this.SmtpStatusCode.Equals(input.SmtpStatusCode) + ) && + ( + this.ProcessingTimeMillis == input.ProcessingTimeMillis || + this.ProcessingTimeMillis.Equals(input.ProcessingTimeMillis) + ) && + ( + this.Received == input.Received || + (this.Received != null && + this.Received.Equals(input.Received)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.SentId != null) + { + hashCode = (hashCode * 59) + this.SentId.GetHashCode(); + } + if (this.RemoteMtaIp != null) + { + hashCode = (hashCode * 59) + this.RemoteMtaIp.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.ReportingMta != null) + { + hashCode = (hashCode * 59) + this.ReportingMta.GetHashCode(); + } + if (this.Recipients != null) + { + hashCode = (hashCode * 59) + this.Recipients.GetHashCode(); + } + if (this.SmtpResponse != null) + { + hashCode = (hashCode * 59) + this.SmtpResponse.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SmtpStatusCode.GetHashCode(); + hashCode = (hashCode * 59) + this.ProcessingTimeMillis.GetHashCode(); + if (this.Received != null) + { + hashCode = (hashCode * 59) + this.Received.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DescribeDomainOptions.cs b/src/mailslurp_netstandard_2x/Model/DescribeDomainOptions.cs new file mode 100644 index 00000000..9977900b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DescribeDomainOptions.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Domain record description + /// + [DataContract(Name = "DescribeDomainOptions")] + public partial class DescribeDomainOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DescribeDomainOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// domain (required). + public DescribeDomainOptions(string domain = default(string)) + { + // to ensure "domain" is required (not null) + if (domain == null) + { + throw new ArgumentNullException("domain is a required property for DescribeDomainOptions and cannot be null"); + } + this.Domain = domain; + } + + /// + /// Gets or Sets Domain + /// + [DataMember(Name = "domain", IsRequired = true, EmitDefaultValue = true)] + public string Domain { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DescribeDomainOptions {\n"); + sb.Append(" Domain: ").Append(Domain).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DescribeDomainOptions); + } + + /// + /// Returns true if DescribeDomainOptions instances are equal + /// + /// Instance of DescribeDomainOptions to be compared + /// Boolean + public bool Equals(DescribeDomainOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Domain == input.Domain || + (this.Domain != null && + this.Domain.Equals(input.Domain)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Domain != null) + { + hashCode = (hashCode * 59) + this.Domain.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DescribeMailServerDomainResult.cs b/src/mailslurp_netstandard_2x/Model/DescribeMailServerDomainResult.cs new file mode 100644 index 00000000..902f14cd --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DescribeMailServerDomainResult.cs @@ -0,0 +1,181 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Name Server lookup result + /// + [DataContract(Name = "DescribeMailServerDomainResult")] + public partial class DescribeMailServerDomainResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DescribeMailServerDomainResult() { } + /// + /// Initializes a new instance of the class. + /// + /// mxRecords (required). + /// domain (required). + /// message. + public DescribeMailServerDomainResult(List mxRecords = default(List), string domain = default(string), string message = default(string)) + { + // to ensure "mxRecords" is required (not null) + if (mxRecords == null) + { + throw new ArgumentNullException("mxRecords is a required property for DescribeMailServerDomainResult and cannot be null"); + } + this.MxRecords = mxRecords; + // to ensure "domain" is required (not null) + if (domain == null) + { + throw new ArgumentNullException("domain is a required property for DescribeMailServerDomainResult and cannot be null"); + } + this.Domain = domain; + this.Message = message; + } + + /// + /// Gets or Sets MxRecords + /// + [DataMember(Name = "mxRecords", IsRequired = true, EmitDefaultValue = true)] + public List MxRecords { get; set; } + + /// + /// Gets or Sets Domain + /// + [DataMember(Name = "domain", IsRequired = true, EmitDefaultValue = true)] + public string Domain { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DescribeMailServerDomainResult {\n"); + sb.Append(" MxRecords: ").Append(MxRecords).Append("\n"); + sb.Append(" Domain: ").Append(Domain).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DescribeMailServerDomainResult); + } + + /// + /// Returns true if DescribeMailServerDomainResult instances are equal + /// + /// Instance of DescribeMailServerDomainResult to be compared + /// Boolean + public bool Equals(DescribeMailServerDomainResult input) + { + if (input == null) + { + return false; + } + return + ( + this.MxRecords == input.MxRecords || + this.MxRecords != null && + input.MxRecords != null && + this.MxRecords.SequenceEqual(input.MxRecords) + ) && + ( + this.Domain == input.Domain || + (this.Domain != null && + this.Domain.Equals(input.Domain)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MxRecords != null) + { + hashCode = (hashCode * 59) + this.MxRecords.GetHashCode(); + } + if (this.Domain != null) + { + hashCode = (hashCode * 59) + this.Domain.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DomainDto.cs b/src/mailslurp_netstandard_2x/Model/DomainDto.cs new file mode 100644 index 00000000..49ca3956 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DomainDto.cs @@ -0,0 +1,390 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Domain plus verification records and status + /// + [DataContract(Name = "DomainDto")] + public partial class DomainDto : IEquatable, IValidatableObject + { + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + [JsonConverter(typeof(StringEnumConverter))] + public enum DomainTypeEnum + { + /// + /// Enum HTTPINBOX for value: HTTP_INBOX + /// + [EnumMember(Value = "HTTP_INBOX")] + HTTPINBOX = 1, + + /// + /// Enum SMTPDOMAIN for value: SMTP_DOMAIN + /// + [EnumMember(Value = "SMTP_DOMAIN")] + SMTPDOMAIN = 2 + + } + + + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + [DataMember(Name = "domainType", IsRequired = true, EmitDefaultValue = true)] + public DomainTypeEnum DomainType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DomainDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// Custom domain name (required). + /// Verification tokens (required). + /// Unique token DKIM tokens (required). + /// If the domain is missing records then show which pairs are missing.. + /// Whether the domain has missing required records. If true then see the domain in the dashboard app. (required). + /// Whether domain has been verified or not. If the domain is not verified after 72 hours there is most likely an issue with the domains DNS records. (required). + /// List of DNS domain name records (C, MX, TXT) etc that you must add to the DNS server associated with your domain provider. (required). + /// The optional catch all inbox that will receive emails sent to the domain that cannot be matched.. + /// createdAt (required). + /// updatedAt (required). + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. (required). + public DomainDto(Guid id = default(Guid), Guid userId = default(Guid), string domain = default(string), string verificationToken = default(string), List dkimTokens = default(List), string missingRecordsMessage = default(string), bool hasMissingRecords = default(bool), bool isVerified = default(bool), List domainNameRecords = default(List), Guid? catchAllInboxId = default(Guid?), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), DomainTypeEnum domainType = default(DomainTypeEnum)) + { + this.Id = id; + this.UserId = userId; + // to ensure "domain" is required (not null) + if (domain == null) + { + throw new ArgumentNullException("domain is a required property for DomainDto and cannot be null"); + } + this.Domain = domain; + // to ensure "verificationToken" is required (not null) + if (verificationToken == null) + { + throw new ArgumentNullException("verificationToken is a required property for DomainDto and cannot be null"); + } + this.VerificationToken = verificationToken; + // to ensure "dkimTokens" is required (not null) + if (dkimTokens == null) + { + throw new ArgumentNullException("dkimTokens is a required property for DomainDto and cannot be null"); + } + this.DkimTokens = dkimTokens; + this.HasMissingRecords = hasMissingRecords; + this.IsVerified = isVerified; + // to ensure "domainNameRecords" is required (not null) + if (domainNameRecords == null) + { + throw new ArgumentNullException("domainNameRecords is a required property for DomainDto and cannot be null"); + } + this.DomainNameRecords = domainNameRecords; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.DomainType = domainType; + this.MissingRecordsMessage = missingRecordsMessage; + this.CatchAllInboxId = catchAllInboxId; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Custom domain name + /// + /// Custom domain name + [DataMember(Name = "domain", IsRequired = true, EmitDefaultValue = true)] + public string Domain { get; set; } + + /// + /// Verification tokens + /// + /// Verification tokens + [DataMember(Name = "verificationToken", IsRequired = true, EmitDefaultValue = true)] + public string VerificationToken { get; set; } + + /// + /// Unique token DKIM tokens + /// + /// Unique token DKIM tokens + [DataMember(Name = "dkimTokens", IsRequired = true, EmitDefaultValue = true)] + public List DkimTokens { get; set; } + + /// + /// If the domain is missing records then show which pairs are missing. + /// + /// If the domain is missing records then show which pairs are missing. + [DataMember(Name = "missingRecordsMessage", EmitDefaultValue = true)] + public string MissingRecordsMessage { get; set; } + + /// + /// Whether the domain has missing required records. If true then see the domain in the dashboard app. + /// + /// Whether the domain has missing required records. If true then see the domain in the dashboard app. + [DataMember(Name = "hasMissingRecords", IsRequired = true, EmitDefaultValue = true)] + public bool HasMissingRecords { get; set; } + + /// + /// Whether domain has been verified or not. If the domain is not verified after 72 hours there is most likely an issue with the domains DNS records. + /// + /// Whether domain has been verified or not. If the domain is not verified after 72 hours there is most likely an issue with the domains DNS records. + [DataMember(Name = "isVerified", IsRequired = true, EmitDefaultValue = true)] + public bool IsVerified { get; set; } + + /// + /// List of DNS domain name records (C, MX, TXT) etc that you must add to the DNS server associated with your domain provider. + /// + /// List of DNS domain name records (C, MX, TXT) etc that you must add to the DNS server associated with your domain provider. + [DataMember(Name = "domainNameRecords", IsRequired = true, EmitDefaultValue = true)] + public List DomainNameRecords { get; set; } + + /// + /// The optional catch all inbox that will receive emails sent to the domain that cannot be matched. + /// + /// The optional catch all inbox that will receive emails sent to the domain that cannot be matched. + [DataMember(Name = "catchAllInboxId", EmitDefaultValue = true)] + public Guid? CatchAllInboxId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DomainDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" Domain: ").Append(Domain).Append("\n"); + sb.Append(" VerificationToken: ").Append(VerificationToken).Append("\n"); + sb.Append(" DkimTokens: ").Append(DkimTokens).Append("\n"); + sb.Append(" MissingRecordsMessage: ").Append(MissingRecordsMessage).Append("\n"); + sb.Append(" HasMissingRecords: ").Append(HasMissingRecords).Append("\n"); + sb.Append(" IsVerified: ").Append(IsVerified).Append("\n"); + sb.Append(" DomainNameRecords: ").Append(DomainNameRecords).Append("\n"); + sb.Append(" CatchAllInboxId: ").Append(CatchAllInboxId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" DomainType: ").Append(DomainType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DomainDto); + } + + /// + /// Returns true if DomainDto instances are equal + /// + /// Instance of DomainDto to be compared + /// Boolean + public bool Equals(DomainDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.Domain == input.Domain || + (this.Domain != null && + this.Domain.Equals(input.Domain)) + ) && + ( + this.VerificationToken == input.VerificationToken || + (this.VerificationToken != null && + this.VerificationToken.Equals(input.VerificationToken)) + ) && + ( + this.DkimTokens == input.DkimTokens || + this.DkimTokens != null && + input.DkimTokens != null && + this.DkimTokens.SequenceEqual(input.DkimTokens) + ) && + ( + this.MissingRecordsMessage == input.MissingRecordsMessage || + (this.MissingRecordsMessage != null && + this.MissingRecordsMessage.Equals(input.MissingRecordsMessage)) + ) && + ( + this.HasMissingRecords == input.HasMissingRecords || + this.HasMissingRecords.Equals(input.HasMissingRecords) + ) && + ( + this.IsVerified == input.IsVerified || + this.IsVerified.Equals(input.IsVerified) + ) && + ( + this.DomainNameRecords == input.DomainNameRecords || + this.DomainNameRecords != null && + input.DomainNameRecords != null && + this.DomainNameRecords.SequenceEqual(input.DomainNameRecords) + ) && + ( + this.CatchAllInboxId == input.CatchAllInboxId || + (this.CatchAllInboxId != null && + this.CatchAllInboxId.Equals(input.CatchAllInboxId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.DomainType == input.DomainType || + this.DomainType.Equals(input.DomainType) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.Domain != null) + { + hashCode = (hashCode * 59) + this.Domain.GetHashCode(); + } + if (this.VerificationToken != null) + { + hashCode = (hashCode * 59) + this.VerificationToken.GetHashCode(); + } + if (this.DkimTokens != null) + { + hashCode = (hashCode * 59) + this.DkimTokens.GetHashCode(); + } + if (this.MissingRecordsMessage != null) + { + hashCode = (hashCode * 59) + this.MissingRecordsMessage.GetHashCode(); + } + hashCode = (hashCode * 59) + this.HasMissingRecords.GetHashCode(); + hashCode = (hashCode * 59) + this.IsVerified.GetHashCode(); + if (this.DomainNameRecords != null) + { + hashCode = (hashCode * 59) + this.DomainNameRecords.GetHashCode(); + } + if (this.CatchAllInboxId != null) + { + hashCode = (hashCode * 59) + this.CatchAllInboxId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.DomainType.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DomainGroup.cs b/src/mailslurp_netstandard_2x/Model/DomainGroup.cs new file mode 100644 index 00000000..86203a8b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DomainGroup.cs @@ -0,0 +1,180 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// DomainGroup + /// + [DataContract(Name = "DomainGroup")] + public partial class DomainGroup : IEquatable, IValidatableObject + { + /// + /// Defines Label + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum LabelEnum + { + /// + /// Enum DEFAULT for value: DEFAULT + /// + [EnumMember(Value = "DEFAULT")] + DEFAULT = 1, + + /// + /// Enum DOMAINPOOL for value: DOMAIN_POOL + /// + [EnumMember(Value = "DOMAIN_POOL")] + DOMAINPOOL = 2, + + /// + /// Enum CUSTOM for value: CUSTOM + /// + [EnumMember(Value = "CUSTOM")] + CUSTOM = 3 + + } + + + /// + /// Gets or Sets Label + /// + [DataMember(Name = "label", IsRequired = true, EmitDefaultValue = true)] + public LabelEnum Label { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DomainGroup() { } + /// + /// Initializes a new instance of the class. + /// + /// label (required). + /// domains (required). + public DomainGroup(LabelEnum label = default(LabelEnum), List domains = default(List)) + { + this.Label = label; + // to ensure "domains" is required (not null) + if (domains == null) + { + throw new ArgumentNullException("domains is a required property for DomainGroup and cannot be null"); + } + this.Domains = domains; + } + + /// + /// Gets or Sets Domains + /// + [DataMember(Name = "domains", IsRequired = true, EmitDefaultValue = true)] + public List Domains { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DomainGroup {\n"); + sb.Append(" Label: ").Append(Label).Append("\n"); + sb.Append(" Domains: ").Append(Domains).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DomainGroup); + } + + /// + /// Returns true if DomainGroup instances are equal + /// + /// Instance of DomainGroup to be compared + /// Boolean + public bool Equals(DomainGroup input) + { + if (input == null) + { + return false; + } + return + ( + this.Label == input.Label || + this.Label.Equals(input.Label) + ) && + ( + this.Domains == input.Domains || + this.Domains != null && + input.Domains != null && + this.Domains.SequenceEqual(input.Domains) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Label.GetHashCode(); + if (this.Domains != null) + { + hashCode = (hashCode * 59) + this.Domains.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DomainGroupsDto.cs b/src/mailslurp_netstandard_2x/Model/DomainGroupsDto.cs new file mode 100644 index 00000000..9cb45005 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DomainGroupsDto.cs @@ -0,0 +1,140 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// DomainGroupsDto + /// + [DataContract(Name = "DomainGroupsDto")] + public partial class DomainGroupsDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DomainGroupsDto() { } + /// + /// Initializes a new instance of the class. + /// + /// domainGroups (required). + public DomainGroupsDto(List domainGroups = default(List)) + { + // to ensure "domainGroups" is required (not null) + if (domainGroups == null) + { + throw new ArgumentNullException("domainGroups is a required property for DomainGroupsDto and cannot be null"); + } + this.DomainGroups = domainGroups; + } + + /// + /// Gets or Sets DomainGroups + /// + [DataMember(Name = "domainGroups", IsRequired = true, EmitDefaultValue = true)] + public List DomainGroups { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DomainGroupsDto {\n"); + sb.Append(" DomainGroups: ").Append(DomainGroups).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DomainGroupsDto); + } + + /// + /// Returns true if DomainGroupsDto instances are equal + /// + /// Instance of DomainGroupsDto to be compared + /// Boolean + public bool Equals(DomainGroupsDto input) + { + if (input == null) + { + return false; + } + return + ( + this.DomainGroups == input.DomainGroups || + this.DomainGroups != null && + input.DomainGroups != null && + this.DomainGroups.SequenceEqual(input.DomainGroups) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DomainGroups != null) + { + hashCode = (hashCode * 59) + this.DomainGroups.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DomainInformation.cs b/src/mailslurp_netstandard_2x/Model/DomainInformation.cs new file mode 100644 index 00000000..afa8d08c --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DomainInformation.cs @@ -0,0 +1,189 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// DomainInformation + /// + [DataContract(Name = "DomainInformation")] + public partial class DomainInformation : IEquatable, IValidatableObject + { + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + [JsonConverter(typeof(StringEnumConverter))] + public enum DomainTypeEnum + { + /// + /// Enum HTTPINBOX for value: HTTP_INBOX + /// + [EnumMember(Value = "HTTP_INBOX")] + HTTPINBOX = 1, + + /// + /// Enum SMTPDOMAIN for value: SMTP_DOMAIN + /// + [EnumMember(Value = "SMTP_DOMAIN")] + SMTPDOMAIN = 2 + + } + + + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + [DataMember(Name = "domainType", IsRequired = true, EmitDefaultValue = true)] + public DomainTypeEnum DomainType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DomainInformation() { } + /// + /// Initializes a new instance of the class. + /// + /// domainName (required). + /// verified (required). + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. (required). + public DomainInformation(string domainName = default(string), bool verified = default(bool), DomainTypeEnum domainType = default(DomainTypeEnum)) + { + // to ensure "domainName" is required (not null) + if (domainName == null) + { + throw new ArgumentNullException("domainName is a required property for DomainInformation and cannot be null"); + } + this.DomainName = domainName; + this.Verified = verified; + this.DomainType = domainType; + } + + /// + /// Gets or Sets DomainName + /// + [DataMember(Name = "domainName", IsRequired = true, EmitDefaultValue = true)] + public string DomainName { get; set; } + + /// + /// Gets or Sets Verified + /// + [DataMember(Name = "verified", IsRequired = true, EmitDefaultValue = true)] + public bool Verified { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DomainInformation {\n"); + sb.Append(" DomainName: ").Append(DomainName).Append("\n"); + sb.Append(" Verified: ").Append(Verified).Append("\n"); + sb.Append(" DomainType: ").Append(DomainType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DomainInformation); + } + + /// + /// Returns true if DomainInformation instances are equal + /// + /// Instance of DomainInformation to be compared + /// Boolean + public bool Equals(DomainInformation input) + { + if (input == null) + { + return false; + } + return + ( + this.DomainName == input.DomainName || + (this.DomainName != null && + this.DomainName.Equals(input.DomainName)) + ) && + ( + this.Verified == input.Verified || + this.Verified.Equals(input.Verified) + ) && + ( + this.DomainType == input.DomainType || + this.DomainType.Equals(input.DomainType) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DomainName != null) + { + hashCode = (hashCode * 59) + this.DomainName.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Verified.GetHashCode(); + hashCode = (hashCode * 59) + this.DomainType.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DomainIssuesDto.cs b/src/mailslurp_netstandard_2x/Model/DomainIssuesDto.cs new file mode 100644 index 00000000..c94dc1d1 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DomainIssuesDto.cs @@ -0,0 +1,130 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// DomainIssuesDto + /// + [DataContract(Name = "DomainIssuesDto")] + public partial class DomainIssuesDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DomainIssuesDto() { } + /// + /// Initializes a new instance of the class. + /// + /// hasIssues (required). + public DomainIssuesDto(bool hasIssues = default(bool)) + { + this.HasIssues = hasIssues; + } + + /// + /// Gets or Sets HasIssues + /// + [DataMember(Name = "hasIssues", IsRequired = true, EmitDefaultValue = true)] + public bool HasIssues { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DomainIssuesDto {\n"); + sb.Append(" HasIssues: ").Append(HasIssues).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DomainIssuesDto); + } + + /// + /// Returns true if DomainIssuesDto instances are equal + /// + /// Instance of DomainIssuesDto to be compared + /// Boolean + public bool Equals(DomainIssuesDto input) + { + if (input == null) + { + return false; + } + return + ( + this.HasIssues == input.HasIssues || + this.HasIssues.Equals(input.HasIssues) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.HasIssues.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DomainNameRecord.cs b/src/mailslurp_netstandard_2x/Model/DomainNameRecord.cs new file mode 100644 index 00000000..132d5140 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DomainNameRecord.cs @@ -0,0 +1,803 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// DNS Record required for verification of a domain. Record vary depending on domain type. + /// + [DataContract(Name = "DomainNameRecord")] + public partial class DomainNameRecord : IEquatable, IValidatableObject + { + /// + /// Domain Name Server Record Label + /// + /// Domain Name Server Record Label + [JsonConverter(typeof(StringEnumConverter))] + public enum LabelEnum + { + /// + /// Enum VERIFICATION for value: VERIFICATION + /// + [EnumMember(Value = "VERIFICATION")] + VERIFICATION = 1, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 2, + + /// + /// Enum SPF for value: SPF + /// + [EnumMember(Value = "SPF")] + SPF = 3, + + /// + /// Enum DKIM for value: DKIM + /// + [EnumMember(Value = "DKIM")] + DKIM = 4, + + /// + /// Enum DMARC for value: DMARC + /// + [EnumMember(Value = "DMARC")] + DMARC = 5 + + } + + + /// + /// Domain Name Server Record Label + /// + /// Domain Name Server Record Label + [DataMember(Name = "label", IsRequired = true, EmitDefaultValue = true)] + public LabelEnum Label { get; set; } + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [JsonConverter(typeof(StringEnumConverter))] + public enum RecordTypeEnum + { + /// + /// Enum A for value: A + /// + [EnumMember(Value = "A")] + A = 1, + + /// + /// Enum NS for value: NS + /// + [EnumMember(Value = "NS")] + NS = 2, + + /// + /// Enum MD for value: MD + /// + [EnumMember(Value = "MD")] + MD = 3, + + /// + /// Enum MF for value: MF + /// + [EnumMember(Value = "MF")] + MF = 4, + + /// + /// Enum CNAME for value: CNAME + /// + [EnumMember(Value = "CNAME")] + CNAME = 5, + + /// + /// Enum SOA for value: SOA + /// + [EnumMember(Value = "SOA")] + SOA = 6, + + /// + /// Enum MB for value: MB + /// + [EnumMember(Value = "MB")] + MB = 7, + + /// + /// Enum MG for value: MG + /// + [EnumMember(Value = "MG")] + MG = 8, + + /// + /// Enum MR for value: MR + /// + [EnumMember(Value = "MR")] + MR = 9, + + /// + /// Enum NULL for value: NULL + /// + [EnumMember(Value = "NULL")] + NULL = 10, + + /// + /// Enum WKS for value: WKS + /// + [EnumMember(Value = "WKS")] + WKS = 11, + + /// + /// Enum PTR for value: PTR + /// + [EnumMember(Value = "PTR")] + PTR = 12, + + /// + /// Enum HINFO for value: HINFO + /// + [EnumMember(Value = "HINFO")] + HINFO = 13, + + /// + /// Enum MINFO for value: MINFO + /// + [EnumMember(Value = "MINFO")] + MINFO = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum TXT for value: TXT + /// + [EnumMember(Value = "TXT")] + TXT = 16, + + /// + /// Enum RP for value: RP + /// + [EnumMember(Value = "RP")] + RP = 17, + + /// + /// Enum AFSDB for value: AFSDB + /// + [EnumMember(Value = "AFSDB")] + AFSDB = 18, + + /// + /// Enum X25 for value: X25 + /// + [EnumMember(Value = "X25")] + X25 = 19, + + /// + /// Enum ISDN for value: ISDN + /// + [EnumMember(Value = "ISDN")] + ISDN = 20, + + /// + /// Enum RT for value: RT + /// + [EnumMember(Value = "RT")] + RT = 21, + + /// + /// Enum NSAP for value: NSAP + /// + [EnumMember(Value = "NSAP")] + NSAP = 22, + + /// + /// Enum NSAPPTR for value: NSAP_PTR + /// + [EnumMember(Value = "NSAP_PTR")] + NSAPPTR = 23, + + /// + /// Enum SIG for value: SIG + /// + [EnumMember(Value = "SIG")] + SIG = 24, + + /// + /// Enum KEY for value: KEY + /// + [EnumMember(Value = "KEY")] + KEY = 25, + + /// + /// Enum PX for value: PX + /// + [EnumMember(Value = "PX")] + PX = 26, + + /// + /// Enum GPOS for value: GPOS + /// + [EnumMember(Value = "GPOS")] + GPOS = 27, + + /// + /// Enum AAAA for value: AAAA + /// + [EnumMember(Value = "AAAA")] + AAAA = 28, + + /// + /// Enum LOC for value: LOC + /// + [EnumMember(Value = "LOC")] + LOC = 29, + + /// + /// Enum NXT for value: NXT + /// + [EnumMember(Value = "NXT")] + NXT = 30, + + /// + /// Enum EID for value: EID + /// + [EnumMember(Value = "EID")] + EID = 31, + + /// + /// Enum NIMLOC for value: NIMLOC + /// + [EnumMember(Value = "NIMLOC")] + NIMLOC = 32, + + /// + /// Enum SRV for value: SRV + /// + [EnumMember(Value = "SRV")] + SRV = 33, + + /// + /// Enum ATMA for value: ATMA + /// + [EnumMember(Value = "ATMA")] + ATMA = 34, + + /// + /// Enum NAPTR for value: NAPTR + /// + [EnumMember(Value = "NAPTR")] + NAPTR = 35, + + /// + /// Enum KX for value: KX + /// + [EnumMember(Value = "KX")] + KX = 36, + + /// + /// Enum CERT for value: CERT + /// + [EnumMember(Value = "CERT")] + CERT = 37, + + /// + /// Enum A6 for value: A6 + /// + [EnumMember(Value = "A6")] + A6 = 38, + + /// + /// Enum DNAME for value: DNAME + /// + [EnumMember(Value = "DNAME")] + DNAME = 39, + + /// + /// Enum SINK for value: SINK + /// + [EnumMember(Value = "SINK")] + SINK = 40, + + /// + /// Enum OPT for value: OPT + /// + [EnumMember(Value = "OPT")] + OPT = 41, + + /// + /// Enum APL for value: APL + /// + [EnumMember(Value = "APL")] + APL = 42, + + /// + /// Enum DS for value: DS + /// + [EnumMember(Value = "DS")] + DS = 43, + + /// + /// Enum SSHFP for value: SSHFP + /// + [EnumMember(Value = "SSHFP")] + SSHFP = 44, + + /// + /// Enum IPSECKEY for value: IPSECKEY + /// + [EnumMember(Value = "IPSECKEY")] + IPSECKEY = 45, + + /// + /// Enum RRSIG for value: RRSIG + /// + [EnumMember(Value = "RRSIG")] + RRSIG = 46, + + /// + /// Enum NSEC for value: NSEC + /// + [EnumMember(Value = "NSEC")] + NSEC = 47, + + /// + /// Enum DNSKEY for value: DNSKEY + /// + [EnumMember(Value = "DNSKEY")] + DNSKEY = 48, + + /// + /// Enum DHCID for value: DHCID + /// + [EnumMember(Value = "DHCID")] + DHCID = 49, + + /// + /// Enum NSEC3 for value: NSEC3 + /// + [EnumMember(Value = "NSEC3")] + NSEC3 = 50, + + /// + /// Enum NSEC3PARAM for value: NSEC3PARAM + /// + [EnumMember(Value = "NSEC3PARAM")] + NSEC3PARAM = 51, + + /// + /// Enum TLSA for value: TLSA + /// + [EnumMember(Value = "TLSA")] + TLSA = 52, + + /// + /// Enum SMIMEA for value: SMIMEA + /// + [EnumMember(Value = "SMIMEA")] + SMIMEA = 53, + + /// + /// Enum HIP for value: HIP + /// + [EnumMember(Value = "HIP")] + HIP = 54, + + /// + /// Enum NINFO for value: NINFO + /// + [EnumMember(Value = "NINFO")] + NINFO = 55, + + /// + /// Enum RKEY for value: RKEY + /// + [EnumMember(Value = "RKEY")] + RKEY = 56, + + /// + /// Enum TALINK for value: TALINK + /// + [EnumMember(Value = "TALINK")] + TALINK = 57, + + /// + /// Enum CDS for value: CDS + /// + [EnumMember(Value = "CDS")] + CDS = 58, + + /// + /// Enum CDNSKEY for value: CDNSKEY + /// + [EnumMember(Value = "CDNSKEY")] + CDNSKEY = 59, + + /// + /// Enum OPENPGPKEY for value: OPENPGPKEY + /// + [EnumMember(Value = "OPENPGPKEY")] + OPENPGPKEY = 60, + + /// + /// Enum CSYNC for value: CSYNC + /// + [EnumMember(Value = "CSYNC")] + CSYNC = 61, + + /// + /// Enum ZONEMD for value: ZONEMD + /// + [EnumMember(Value = "ZONEMD")] + ZONEMD = 62, + + /// + /// Enum SVCB for value: SVCB + /// + [EnumMember(Value = "SVCB")] + SVCB = 63, + + /// + /// Enum HTTPS for value: HTTPS + /// + [EnumMember(Value = "HTTPS")] + HTTPS = 64, + + /// + /// Enum SPF for value: SPF + /// + [EnumMember(Value = "SPF")] + SPF = 65, + + /// + /// Enum UINFO for value: UINFO + /// + [EnumMember(Value = "UINFO")] + UINFO = 66, + + /// + /// Enum UID for value: UID + /// + [EnumMember(Value = "UID")] + UID = 67, + + /// + /// Enum GID for value: GID + /// + [EnumMember(Value = "GID")] + GID = 68, + + /// + /// Enum UNSPEC for value: UNSPEC + /// + [EnumMember(Value = "UNSPEC")] + UNSPEC = 69, + + /// + /// Enum NID for value: NID + /// + [EnumMember(Value = "NID")] + NID = 70, + + /// + /// Enum L32 for value: L32 + /// + [EnumMember(Value = "L32")] + L32 = 71, + + /// + /// Enum L64 for value: L64 + /// + [EnumMember(Value = "L64")] + L64 = 72, + + /// + /// Enum LP for value: LP + /// + [EnumMember(Value = "LP")] + LP = 73, + + /// + /// Enum EUI48 for value: EUI48 + /// + [EnumMember(Value = "EUI48")] + EUI48 = 74, + + /// + /// Enum EUI64 for value: EUI64 + /// + [EnumMember(Value = "EUI64")] + EUI64 = 75, + + /// + /// Enum TKEY for value: TKEY + /// + [EnumMember(Value = "TKEY")] + TKEY = 76, + + /// + /// Enum TSIG for value: TSIG + /// + [EnumMember(Value = "TSIG")] + TSIG = 77, + + /// + /// Enum IXFR for value: IXFR + /// + [EnumMember(Value = "IXFR")] + IXFR = 78, + + /// + /// Enum AXFR for value: AXFR + /// + [EnumMember(Value = "AXFR")] + AXFR = 79, + + /// + /// Enum MAILB for value: MAILB + /// + [EnumMember(Value = "MAILB")] + MAILB = 80, + + /// + /// Enum MAILA for value: MAILA + /// + [EnumMember(Value = "MAILA")] + MAILA = 81, + + /// + /// Enum ANY for value: ANY + /// + [EnumMember(Value = "ANY")] + ANY = 82, + + /// + /// Enum URI for value: URI + /// + [EnumMember(Value = "URI")] + URI = 83, + + /// + /// Enum CAA for value: CAA + /// + [EnumMember(Value = "CAA")] + CAA = 84, + + /// + /// Enum AVC for value: AVC + /// + [EnumMember(Value = "AVC")] + AVC = 85, + + /// + /// Enum DOA for value: DOA + /// + [EnumMember(Value = "DOA")] + DOA = 86, + + /// + /// Enum AMTRELAY for value: AMTRELAY + /// + [EnumMember(Value = "AMTRELAY")] + AMTRELAY = 87, + + /// + /// Enum TA for value: TA + /// + [EnumMember(Value = "TA")] + TA = 88, + + /// + /// Enum DLV for value: DLV + /// + [EnumMember(Value = "DLV")] + DLV = 89 + + } + + + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [DataMember(Name = "recordType", IsRequired = true, EmitDefaultValue = true)] + public RecordTypeEnum RecordType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DomainNameRecord() { } + /// + /// Initializes a new instance of the class. + /// + /// Domain Name Server Record Label (required). + /// required (required). + /// Domain Name Server Record Types (required). + /// name (required). + /// recordEntries (required). + /// ttl (required). + public DomainNameRecord(LabelEnum label = default(LabelEnum), bool required = default(bool), RecordTypeEnum recordType = default(RecordTypeEnum), string name = default(string), List recordEntries = default(List), long ttl = default(long)) + { + this.Label = label; + this.Required = required; + this.RecordType = recordType; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for DomainNameRecord and cannot be null"); + } + this.Name = name; + // to ensure "recordEntries" is required (not null) + if (recordEntries == null) + { + throw new ArgumentNullException("recordEntries is a required property for DomainNameRecord and cannot be null"); + } + this.RecordEntries = recordEntries; + this.Ttl = ttl; + } + + /// + /// Gets or Sets Required + /// + [DataMember(Name = "required", IsRequired = true, EmitDefaultValue = true)] + public bool Required { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets RecordEntries + /// + [DataMember(Name = "recordEntries", IsRequired = true, EmitDefaultValue = true)] + public List RecordEntries { get; set; } + + /// + /// Gets or Sets Ttl + /// + [DataMember(Name = "ttl", IsRequired = true, EmitDefaultValue = true)] + public long Ttl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DomainNameRecord {\n"); + sb.Append(" Label: ").Append(Label).Append("\n"); + sb.Append(" Required: ").Append(Required).Append("\n"); + sb.Append(" RecordType: ").Append(RecordType).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" RecordEntries: ").Append(RecordEntries).Append("\n"); + sb.Append(" Ttl: ").Append(Ttl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DomainNameRecord); + } + + /// + /// Returns true if DomainNameRecord instances are equal + /// + /// Instance of DomainNameRecord to be compared + /// Boolean + public bool Equals(DomainNameRecord input) + { + if (input == null) + { + return false; + } + return + ( + this.Label == input.Label || + this.Label.Equals(input.Label) + ) && + ( + this.Required == input.Required || + this.Required.Equals(input.Required) + ) && + ( + this.RecordType == input.RecordType || + this.RecordType.Equals(input.RecordType) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.RecordEntries == input.RecordEntries || + this.RecordEntries != null && + input.RecordEntries != null && + this.RecordEntries.SequenceEqual(input.RecordEntries) + ) && + ( + this.Ttl == input.Ttl || + this.Ttl.Equals(input.Ttl) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Label.GetHashCode(); + hashCode = (hashCode * 59) + this.Required.GetHashCode(); + hashCode = (hashCode * 59) + this.RecordType.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.RecordEntries != null) + { + hashCode = (hashCode * 59) + this.RecordEntries.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Ttl.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DomainPreview.cs b/src/mailslurp_netstandard_2x/Model/DomainPreview.cs new file mode 100644 index 00000000..d746b374 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DomainPreview.cs @@ -0,0 +1,257 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Preview object for domain entity + /// + [DataContract(Name = "DomainPreview")] + public partial class DomainPreview : IEquatable, IValidatableObject + { + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + [JsonConverter(typeof(StringEnumConverter))] + public enum DomainTypeEnum + { + /// + /// Enum HTTPINBOX for value: HTTP_INBOX + /// + [EnumMember(Value = "HTTP_INBOX")] + HTTPINBOX = 1, + + /// + /// Enum SMTPDOMAIN for value: SMTP_DOMAIN + /// + [EnumMember(Value = "SMTP_DOMAIN")] + SMTPDOMAIN = 2 + + } + + + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + /// + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. + [DataMember(Name = "domainType", IsRequired = true, EmitDefaultValue = true)] + public DomainTypeEnum DomainType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DomainPreview() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// domain (required). + /// catchAllInboxId. + /// createdAt (required). + /// Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. (required). + /// isVerified (required). + /// hasMissingRecords (required). + public DomainPreview(Guid id = default(Guid), string domain = default(string), Guid? catchAllInboxId = default(Guid?), DateTime createdAt = default(DateTime), DomainTypeEnum domainType = default(DomainTypeEnum), bool isVerified = default(bool), bool hasMissingRecords = default(bool)) + { + this.Id = id; + // to ensure "domain" is required (not null) + if (domain == null) + { + throw new ArgumentNullException("domain is a required property for DomainPreview and cannot be null"); + } + this.Domain = domain; + this.CreatedAt = createdAt; + this.DomainType = domainType; + this.IsVerified = isVerified; + this.HasMissingRecords = hasMissingRecords; + this.CatchAllInboxId = catchAllInboxId; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Domain + /// + [DataMember(Name = "domain", IsRequired = true, EmitDefaultValue = true)] + public string Domain { get; set; } + + /// + /// Gets or Sets CatchAllInboxId + /// + [DataMember(Name = "catchAllInboxId", EmitDefaultValue = true)] + public Guid? CatchAllInboxId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets IsVerified + /// + [DataMember(Name = "isVerified", IsRequired = true, EmitDefaultValue = true)] + public bool IsVerified { get; set; } + + /// + /// Gets or Sets HasMissingRecords + /// + [DataMember(Name = "hasMissingRecords", IsRequired = true, EmitDefaultValue = true)] + public bool HasMissingRecords { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DomainPreview {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Domain: ").Append(Domain).Append("\n"); + sb.Append(" CatchAllInboxId: ").Append(CatchAllInboxId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" DomainType: ").Append(DomainType).Append("\n"); + sb.Append(" IsVerified: ").Append(IsVerified).Append("\n"); + sb.Append(" HasMissingRecords: ").Append(HasMissingRecords).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DomainPreview); + } + + /// + /// Returns true if DomainPreview instances are equal + /// + /// Instance of DomainPreview to be compared + /// Boolean + public bool Equals(DomainPreview input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Domain == input.Domain || + (this.Domain != null && + this.Domain.Equals(input.Domain)) + ) && + ( + this.CatchAllInboxId == input.CatchAllInboxId || + (this.CatchAllInboxId != null && + this.CatchAllInboxId.Equals(input.CatchAllInboxId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.DomainType == input.DomainType || + this.DomainType.Equals(input.DomainType) + ) && + ( + this.IsVerified == input.IsVerified || + this.IsVerified.Equals(input.IsVerified) + ) && + ( + this.HasMissingRecords == input.HasMissingRecords || + this.HasMissingRecords.Equals(input.HasMissingRecords) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Domain != null) + { + hashCode = (hashCode * 59) + this.Domain.GetHashCode(); + } + if (this.CatchAllInboxId != null) + { + hashCode = (hashCode * 59) + this.CatchAllInboxId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.DomainType.GetHashCode(); + hashCode = (hashCode * 59) + this.IsVerified.GetHashCode(); + hashCode = (hashCode * 59) + this.HasMissingRecords.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/DownloadAttachmentDto.cs b/src/mailslurp_netstandard_2x/Model/DownloadAttachmentDto.cs new file mode 100644 index 00000000..5697be9f --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/DownloadAttachmentDto.cs @@ -0,0 +1,179 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Content of attachment + /// + [DataContract(Name = "DownloadAttachmentDto")] + public partial class DownloadAttachmentDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DownloadAttachmentDto() { } + /// + /// Initializes a new instance of the class. + /// + /// Base64 encoded string of attachment bytes. Decode the base64 encoded string to get the raw contents. If the file has a content type such as `text/html` you can read the contents directly by converting it to string using `utf-8` encoding. (required). + /// Content type of attachment. Examples are `image/png`, `application/msword`, `text/csv` etc. (required). + /// Size in bytes of attachment content (required). + public DownloadAttachmentDto(string base64FileContents = default(string), string contentType = default(string), long sizeBytes = default(long)) + { + // to ensure "base64FileContents" is required (not null) + if (base64FileContents == null) + { + throw new ArgumentNullException("base64FileContents is a required property for DownloadAttachmentDto and cannot be null"); + } + this.Base64FileContents = base64FileContents; + // to ensure "contentType" is required (not null) + if (contentType == null) + { + throw new ArgumentNullException("contentType is a required property for DownloadAttachmentDto and cannot be null"); + } + this.ContentType = contentType; + this.SizeBytes = sizeBytes; + } + + /// + /// Base64 encoded string of attachment bytes. Decode the base64 encoded string to get the raw contents. If the file has a content type such as `text/html` you can read the contents directly by converting it to string using `utf-8` encoding. + /// + /// Base64 encoded string of attachment bytes. Decode the base64 encoded string to get the raw contents. If the file has a content type such as `text/html` you can read the contents directly by converting it to string using `utf-8` encoding. + [DataMember(Name = "base64FileContents", IsRequired = true, EmitDefaultValue = true)] + public string Base64FileContents { get; set; } + + /// + /// Content type of attachment. Examples are `image/png`, `application/msword`, `text/csv` etc. + /// + /// Content type of attachment. Examples are `image/png`, `application/msword`, `text/csv` etc. + [DataMember(Name = "contentType", IsRequired = true, EmitDefaultValue = true)] + public string ContentType { get; set; } + + /// + /// Size in bytes of attachment content + /// + /// Size in bytes of attachment content + [DataMember(Name = "sizeBytes", IsRequired = true, EmitDefaultValue = true)] + public long SizeBytes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DownloadAttachmentDto {\n"); + sb.Append(" Base64FileContents: ").Append(Base64FileContents).Append("\n"); + sb.Append(" ContentType: ").Append(ContentType).Append("\n"); + sb.Append(" SizeBytes: ").Append(SizeBytes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DownloadAttachmentDto); + } + + /// + /// Returns true if DownloadAttachmentDto instances are equal + /// + /// Instance of DownloadAttachmentDto to be compared + /// Boolean + public bool Equals(DownloadAttachmentDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Base64FileContents == input.Base64FileContents || + (this.Base64FileContents != null && + this.Base64FileContents.Equals(input.Base64FileContents)) + ) && + ( + this.ContentType == input.ContentType || + (this.ContentType != null && + this.ContentType.Equals(input.ContentType)) + ) && + ( + this.SizeBytes == input.SizeBytes || + this.SizeBytes.Equals(input.SizeBytes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Base64FileContents != null) + { + hashCode = (hashCode * 59) + this.Base64FileContents.GetHashCode(); + } + if (this.ContentType != null) + { + hashCode = (hashCode * 59) + this.ContentType.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SizeBytes.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/Email.cs b/src/mailslurp_netstandard_2x/Model/Email.cs new file mode 100644 index 00000000..01b38c24 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/Email.cs @@ -0,0 +1,678 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Email entity (also known as EmailDto). When an SMTP email message is received by MailSlurp it is parsed. The body and attachments are written to disk and the fields such as to, from, subject etc are stored in a database. The `body` contains the email content. If you want the original SMTP message see the `getRawEmail` endpoints. The attachments can be fetched using the AttachmentController + /// + [DataContract(Name = "Email")] + public partial class Email : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Email() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of the email entity (required). + /// ID of user that email belongs to (required). + /// ID of the inbox that received the email (required). + /// ID of the domain that received the email. + /// List of `To` recipient email addresses that the email was addressed to. See recipients object for names. (required). + /// Who the email was sent from. An email address - see fromName for the sender name.. + /// sender. + /// recipients. + /// The `replyTo` field on the received email message. + /// List of `CC` recipients email addresses that the email was addressed to. See recipients object for names.. + /// List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names.. + /// Collection of SMTP headers attached to email. + /// Multi-value map of SMTP headers attached to email. + /// List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension.. + /// The subject line of the email message as specified by SMTP subject header. + /// The body of the email message as text parsed from the SMTP message body (does not include attachments). Fetch the raw content to access the SMTP message and use the attachments property to access attachments. The body is stored separately to the email entity so the body is not returned in paginated results only in full single email or wait requests.. + /// An excerpt of the body of the email message for quick preview. Takes HTML content part if exists falls back to TEXT content part if not. + /// An excerpt of the body of the email message for quick preview. Takes TEXT content part if exists. + /// A hash signature of the email message using MD5. Useful for comparing emails without fetching full body.. + /// Is the email body content type HTML?. + /// Detected character set of the email body such as UTF-8. + /// analysis. + /// When was the email received by MailSlurp (required). + /// When was the email last updated (required). + /// Read flag. Has the email ever been viewed in the dashboard or fetched via the API with a hydrated body? If so the email is marked as read. Paginated results do not affect read status. Read status is different to email opened event as it depends on your own account accessing the email. Email opened is determined by tracking pixels sent to other uses if enable during sending. You can listened for both email read and email opened events using webhooks. (required). + /// Can the email be accessed by organization team members (required). + /// Is the email body content type x-amp-html Amp4Email?. + /// A list of detected multipart mime message body part content types such as text/plain and text/html. Can be used with email bodyPart endpoints to fetch individual body parts.. + /// html. + /// xampHtml. + public Email(Guid id = default(Guid), Guid userId = default(Guid), Guid inboxId = default(Guid), Guid? domainId = default(Guid?), List to = default(List), string from = default(string), Sender sender = default(Sender), EmailRecipients recipients = default(EmailRecipients), string replyTo = default(string), List cc = default(List), List bcc = default(List), Dictionary headers = default(Dictionary), Dictionary> headersMap = default(Dictionary>), List attachments = default(List), string subject = default(string), string body = default(string), string bodyExcerpt = default(string), string textExcerpt = default(string), string bodyMD5Hash = default(string), bool? isHTML = default(bool?), string charset = default(string), EmailAnalysis analysis = default(EmailAnalysis), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), bool read = default(bool), bool teamAccess = default(bool), bool? isXAmpHtml = default(bool?), List bodyPartContentTypes = default(List), bool html = default(bool), bool xampHtml = default(bool)) + { + this.Id = id; + this.UserId = userId; + this.InboxId = inboxId; + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for Email and cannot be null"); + } + this.To = to; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Read = read; + this.TeamAccess = teamAccess; + this.DomainId = domainId; + this.From = from; + this.Sender = sender; + this.Recipients = recipients; + this.ReplyTo = replyTo; + this.Cc = cc; + this.Bcc = bcc; + this.Headers = headers; + this.HeadersMap = headersMap; + this.Attachments = attachments; + this.Subject = subject; + this.Body = body; + this.BodyExcerpt = bodyExcerpt; + this.TextExcerpt = textExcerpt; + this.BodyMD5Hash = bodyMD5Hash; + this.IsHTML = isHTML; + this.Charset = charset; + this.Analysis = analysis; + this.IsXAmpHtml = isXAmpHtml; + this.BodyPartContentTypes = bodyPartContentTypes; + this.Html = html; + this.XampHtml = xampHtml; + } + + /// + /// ID of the email entity + /// + /// ID of the email entity + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// ID of user that email belongs to + /// + /// ID of user that email belongs to + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// ID of the inbox that received the email + /// + /// ID of the inbox that received the email + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// ID of the domain that received the email + /// + /// ID of the domain that received the email + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// List of `To` recipient email addresses that the email was addressed to. See recipients object for names. + /// + /// List of `To` recipient email addresses that the email was addressed to. See recipients object for names. + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public List To { get; set; } + + /// + /// Who the email was sent from. An email address - see fromName for the sender name. + /// + /// Who the email was sent from. An email address - see fromName for the sender name. + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Gets or Sets Sender + /// + [DataMember(Name = "sender", EmitDefaultValue = true)] + public Sender Sender { get; set; } + + /// + /// Gets or Sets Recipients + /// + [DataMember(Name = "recipients", EmitDefaultValue = true)] + public EmailRecipients Recipients { get; set; } + + /// + /// The `replyTo` field on the received email message + /// + /// The `replyTo` field on the received email message + [DataMember(Name = "replyTo", EmitDefaultValue = true)] + public string ReplyTo { get; set; } + + /// + /// List of `CC` recipients email addresses that the email was addressed to. See recipients object for names. + /// + /// List of `CC` recipients email addresses that the email was addressed to. See recipients object for names. + [DataMember(Name = "cc", EmitDefaultValue = true)] + public List Cc { get; set; } + + /// + /// List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names. + /// + /// List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names. + [DataMember(Name = "bcc", EmitDefaultValue = true)] + public List Bcc { get; set; } + + /// + /// Collection of SMTP headers attached to email + /// + /// Collection of SMTP headers attached to email + [DataMember(Name = "headers", EmitDefaultValue = true)] + [Obsolete] + public Dictionary Headers { get; set; } + + /// + /// Multi-value map of SMTP headers attached to email + /// + /// Multi-value map of SMTP headers attached to email + [DataMember(Name = "headersMap", EmitDefaultValue = true)] + public Dictionary> HeadersMap { get; set; } + + /// + /// List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension. + /// + /// List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension. + [DataMember(Name = "attachments", EmitDefaultValue = true)] + public List Attachments { get; set; } + + /// + /// The subject line of the email message as specified by SMTP subject header + /// + /// The subject line of the email message as specified by SMTP subject header + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// The body of the email message as text parsed from the SMTP message body (does not include attachments). Fetch the raw content to access the SMTP message and use the attachments property to access attachments. The body is stored separately to the email entity so the body is not returned in paginated results only in full single email or wait requests. + /// + /// The body of the email message as text parsed from the SMTP message body (does not include attachments). Fetch the raw content to access the SMTP message and use the attachments property to access attachments. The body is stored separately to the email entity so the body is not returned in paginated results only in full single email or wait requests. + [DataMember(Name = "body", EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// An excerpt of the body of the email message for quick preview. Takes HTML content part if exists falls back to TEXT content part if not + /// + /// An excerpt of the body of the email message for quick preview. Takes HTML content part if exists falls back to TEXT content part if not + [DataMember(Name = "bodyExcerpt", EmitDefaultValue = true)] + public string BodyExcerpt { get; set; } + + /// + /// An excerpt of the body of the email message for quick preview. Takes TEXT content part if exists + /// + /// An excerpt of the body of the email message for quick preview. Takes TEXT content part if exists + [DataMember(Name = "textExcerpt", EmitDefaultValue = true)] + public string TextExcerpt { get; set; } + + /// + /// A hash signature of the email message using MD5. Useful for comparing emails without fetching full body. + /// + /// A hash signature of the email message using MD5. Useful for comparing emails without fetching full body. + [DataMember(Name = "bodyMD5Hash", EmitDefaultValue = true)] + public string BodyMD5Hash { get; set; } + + /// + /// Is the email body content type HTML? + /// + /// Is the email body content type HTML? + [DataMember(Name = "isHTML", EmitDefaultValue = true)] + public bool? IsHTML { get; set; } + + /// + /// Detected character set of the email body such as UTF-8 + /// + /// Detected character set of the email body such as UTF-8 + [DataMember(Name = "charset", EmitDefaultValue = true)] + public string Charset { get; set; } + + /// + /// Gets or Sets Analysis + /// + [DataMember(Name = "analysis", EmitDefaultValue = true)] + public EmailAnalysis Analysis { get; set; } + + /// + /// When was the email received by MailSlurp + /// + /// When was the email received by MailSlurp + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// When was the email last updated + /// + /// When was the email last updated + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Read flag. Has the email ever been viewed in the dashboard or fetched via the API with a hydrated body? If so the email is marked as read. Paginated results do not affect read status. Read status is different to email opened event as it depends on your own account accessing the email. Email opened is determined by tracking pixels sent to other uses if enable during sending. You can listened for both email read and email opened events using webhooks. + /// + /// Read flag. Has the email ever been viewed in the dashboard or fetched via the API with a hydrated body? If so the email is marked as read. Paginated results do not affect read status. Read status is different to email opened event as it depends on your own account accessing the email. Email opened is determined by tracking pixels sent to other uses if enable during sending. You can listened for both email read and email opened events using webhooks. + [DataMember(Name = "read", IsRequired = true, EmitDefaultValue = true)] + public bool Read { get; set; } + + /// + /// Can the email be accessed by organization team members + /// + /// Can the email be accessed by organization team members + [DataMember(Name = "teamAccess", IsRequired = true, EmitDefaultValue = true)] + public bool TeamAccess { get; set; } + + /// + /// Is the email body content type x-amp-html Amp4Email? + /// + /// Is the email body content type x-amp-html Amp4Email? + [DataMember(Name = "isXAmpHtml", EmitDefaultValue = true)] + public bool? IsXAmpHtml { get; set; } + + /// + /// A list of detected multipart mime message body part content types such as text/plain and text/html. Can be used with email bodyPart endpoints to fetch individual body parts. + /// + /// A list of detected multipart mime message body part content types such as text/plain and text/html. Can be used with email bodyPart endpoints to fetch individual body parts. + [DataMember(Name = "bodyPartContentTypes", EmitDefaultValue = true)] + public List BodyPartContentTypes { get; set; } + + /// + /// Gets or Sets Html + /// + [DataMember(Name = "html", EmitDefaultValue = true)] + public bool Html { get; set; } + + /// + /// Gets or Sets XampHtml + /// + [DataMember(Name = "xampHtml", EmitDefaultValue = true)] + public bool XampHtml { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Email {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Sender: ").Append(Sender).Append("\n"); + sb.Append(" Recipients: ").Append(Recipients).Append("\n"); + sb.Append(" ReplyTo: ").Append(ReplyTo).Append("\n"); + sb.Append(" Cc: ").Append(Cc).Append("\n"); + sb.Append(" Bcc: ").Append(Bcc).Append("\n"); + sb.Append(" Headers: ").Append(Headers).Append("\n"); + sb.Append(" HeadersMap: ").Append(HeadersMap).Append("\n"); + sb.Append(" Attachments: ").Append(Attachments).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" BodyExcerpt: ").Append(BodyExcerpt).Append("\n"); + sb.Append(" TextExcerpt: ").Append(TextExcerpt).Append("\n"); + sb.Append(" BodyMD5Hash: ").Append(BodyMD5Hash).Append("\n"); + sb.Append(" IsHTML: ").Append(IsHTML).Append("\n"); + sb.Append(" Charset: ").Append(Charset).Append("\n"); + sb.Append(" Analysis: ").Append(Analysis).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Read: ").Append(Read).Append("\n"); + sb.Append(" TeamAccess: ").Append(TeamAccess).Append("\n"); + sb.Append(" IsXAmpHtml: ").Append(IsXAmpHtml).Append("\n"); + sb.Append(" BodyPartContentTypes: ").Append(BodyPartContentTypes).Append("\n"); + sb.Append(" Html: ").Append(Html).Append("\n"); + sb.Append(" XampHtml: ").Append(XampHtml).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Email); + } + + /// + /// Returns true if Email instances are equal + /// + /// Instance of Email to be compared + /// Boolean + public bool Equals(Email input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.Sender == input.Sender || + (this.Sender != null && + this.Sender.Equals(input.Sender)) + ) && + ( + this.Recipients == input.Recipients || + (this.Recipients != null && + this.Recipients.Equals(input.Recipients)) + ) && + ( + this.ReplyTo == input.ReplyTo || + (this.ReplyTo != null && + this.ReplyTo.Equals(input.ReplyTo)) + ) && + ( + this.Cc == input.Cc || + this.Cc != null && + input.Cc != null && + this.Cc.SequenceEqual(input.Cc) + ) && + ( + this.Bcc == input.Bcc || + this.Bcc != null && + input.Bcc != null && + this.Bcc.SequenceEqual(input.Bcc) + ) && + ( + this.Headers == input.Headers || + this.Headers != null && + input.Headers != null && + this.Headers.SequenceEqual(input.Headers) + ) && + ( + this.HeadersMap == input.HeadersMap || + this.HeadersMap != null && + input.HeadersMap != null && + this.HeadersMap.SequenceEqual(input.HeadersMap) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.BodyExcerpt == input.BodyExcerpt || + (this.BodyExcerpt != null && + this.BodyExcerpt.Equals(input.BodyExcerpt)) + ) && + ( + this.TextExcerpt == input.TextExcerpt || + (this.TextExcerpt != null && + this.TextExcerpt.Equals(input.TextExcerpt)) + ) && + ( + this.BodyMD5Hash == input.BodyMD5Hash || + (this.BodyMD5Hash != null && + this.BodyMD5Hash.Equals(input.BodyMD5Hash)) + ) && + ( + this.IsHTML == input.IsHTML || + (this.IsHTML != null && + this.IsHTML.Equals(input.IsHTML)) + ) && + ( + this.Charset == input.Charset || + (this.Charset != null && + this.Charset.Equals(input.Charset)) + ) && + ( + this.Analysis == input.Analysis || + (this.Analysis != null && + this.Analysis.Equals(input.Analysis)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.Read == input.Read || + this.Read.Equals(input.Read) + ) && + ( + this.TeamAccess == input.TeamAccess || + this.TeamAccess.Equals(input.TeamAccess) + ) && + ( + this.IsXAmpHtml == input.IsXAmpHtml || + (this.IsXAmpHtml != null && + this.IsXAmpHtml.Equals(input.IsXAmpHtml)) + ) && + ( + this.BodyPartContentTypes == input.BodyPartContentTypes || + this.BodyPartContentTypes != null && + input.BodyPartContentTypes != null && + this.BodyPartContentTypes.SequenceEqual(input.BodyPartContentTypes) + ) && + ( + this.Html == input.Html || + this.Html.Equals(input.Html) + ) && + ( + this.XampHtml == input.XampHtml || + this.XampHtml.Equals(input.XampHtml) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.Sender != null) + { + hashCode = (hashCode * 59) + this.Sender.GetHashCode(); + } + if (this.Recipients != null) + { + hashCode = (hashCode * 59) + this.Recipients.GetHashCode(); + } + if (this.ReplyTo != null) + { + hashCode = (hashCode * 59) + this.ReplyTo.GetHashCode(); + } + if (this.Cc != null) + { + hashCode = (hashCode * 59) + this.Cc.GetHashCode(); + } + if (this.Bcc != null) + { + hashCode = (hashCode * 59) + this.Bcc.GetHashCode(); + } + if (this.Headers != null) + { + hashCode = (hashCode * 59) + this.Headers.GetHashCode(); + } + if (this.HeadersMap != null) + { + hashCode = (hashCode * 59) + this.HeadersMap.GetHashCode(); + } + if (this.Attachments != null) + { + hashCode = (hashCode * 59) + this.Attachments.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + if (this.BodyExcerpt != null) + { + hashCode = (hashCode * 59) + this.BodyExcerpt.GetHashCode(); + } + if (this.TextExcerpt != null) + { + hashCode = (hashCode * 59) + this.TextExcerpt.GetHashCode(); + } + if (this.BodyMD5Hash != null) + { + hashCode = (hashCode * 59) + this.BodyMD5Hash.GetHashCode(); + } + if (this.IsHTML != null) + { + hashCode = (hashCode * 59) + this.IsHTML.GetHashCode(); + } + if (this.Charset != null) + { + hashCode = (hashCode * 59) + this.Charset.GetHashCode(); + } + if (this.Analysis != null) + { + hashCode = (hashCode * 59) + this.Analysis.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Read.GetHashCode(); + hashCode = (hashCode * 59) + this.TeamAccess.GetHashCode(); + if (this.IsXAmpHtml != null) + { + hashCode = (hashCode * 59) + this.IsXAmpHtml.GetHashCode(); + } + if (this.BodyPartContentTypes != null) + { + hashCode = (hashCode * 59) + this.BodyPartContentTypes.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Html.GetHashCode(); + hashCode = (hashCode * 59) + this.XampHtml.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailAnalysis.cs b/src/mailslurp_netstandard_2x/Model/EmailAnalysis.cs new file mode 100644 index 00000000..9ff62b3b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailAnalysis.cs @@ -0,0 +1,206 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Analysis result for email. Each verdict property is a string PASS|FAIL|GRAY or dynamic error message + /// + [DataContract(Name = "EmailAnalysis")] + public partial class EmailAnalysis : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Verdict of spam ranking analysis. + /// Verdict of virus scan analysis. + /// Verdict of Send Policy Framework record spoofing analysis. + /// Verdict of DomainKeys Identified Mail analysis. + /// Verdict of Domain-based Message Authentication Reporting and Conformance analysis. + public EmailAnalysis(string spamVerdict = default(string), string virusVerdict = default(string), string spfVerdict = default(string), string dkimVerdict = default(string), string dmarcVerdict = default(string)) + { + this.SpamVerdict = spamVerdict; + this.VirusVerdict = virusVerdict; + this.SpfVerdict = spfVerdict; + this.DkimVerdict = dkimVerdict; + this.DmarcVerdict = dmarcVerdict; + } + + /// + /// Verdict of spam ranking analysis + /// + /// Verdict of spam ranking analysis + [DataMember(Name = "spamVerdict", EmitDefaultValue = true)] + public string SpamVerdict { get; set; } + + /// + /// Verdict of virus scan analysis + /// + /// Verdict of virus scan analysis + [DataMember(Name = "virusVerdict", EmitDefaultValue = true)] + public string VirusVerdict { get; set; } + + /// + /// Verdict of Send Policy Framework record spoofing analysis + /// + /// Verdict of Send Policy Framework record spoofing analysis + [DataMember(Name = "spfVerdict", EmitDefaultValue = true)] + public string SpfVerdict { get; set; } + + /// + /// Verdict of DomainKeys Identified Mail analysis + /// + /// Verdict of DomainKeys Identified Mail analysis + [DataMember(Name = "dkimVerdict", EmitDefaultValue = true)] + public string DkimVerdict { get; set; } + + /// + /// Verdict of Domain-based Message Authentication Reporting and Conformance analysis + /// + /// Verdict of Domain-based Message Authentication Reporting and Conformance analysis + [DataMember(Name = "dmarcVerdict", EmitDefaultValue = true)] + public string DmarcVerdict { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailAnalysis {\n"); + sb.Append(" SpamVerdict: ").Append(SpamVerdict).Append("\n"); + sb.Append(" VirusVerdict: ").Append(VirusVerdict).Append("\n"); + sb.Append(" SpfVerdict: ").Append(SpfVerdict).Append("\n"); + sb.Append(" DkimVerdict: ").Append(DkimVerdict).Append("\n"); + sb.Append(" DmarcVerdict: ").Append(DmarcVerdict).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailAnalysis); + } + + /// + /// Returns true if EmailAnalysis instances are equal + /// + /// Instance of EmailAnalysis to be compared + /// Boolean + public bool Equals(EmailAnalysis input) + { + if (input == null) + { + return false; + } + return + ( + this.SpamVerdict == input.SpamVerdict || + (this.SpamVerdict != null && + this.SpamVerdict.Equals(input.SpamVerdict)) + ) && + ( + this.VirusVerdict == input.VirusVerdict || + (this.VirusVerdict != null && + this.VirusVerdict.Equals(input.VirusVerdict)) + ) && + ( + this.SpfVerdict == input.SpfVerdict || + (this.SpfVerdict != null && + this.SpfVerdict.Equals(input.SpfVerdict)) + ) && + ( + this.DkimVerdict == input.DkimVerdict || + (this.DkimVerdict != null && + this.DkimVerdict.Equals(input.DkimVerdict)) + ) && + ( + this.DmarcVerdict == input.DmarcVerdict || + (this.DmarcVerdict != null && + this.DmarcVerdict.Equals(input.DmarcVerdict)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SpamVerdict != null) + { + hashCode = (hashCode * 59) + this.SpamVerdict.GetHashCode(); + } + if (this.VirusVerdict != null) + { + hashCode = (hashCode * 59) + this.VirusVerdict.GetHashCode(); + } + if (this.SpfVerdict != null) + { + hashCode = (hashCode * 59) + this.SpfVerdict.GetHashCode(); + } + if (this.DkimVerdict != null) + { + hashCode = (hashCode * 59) + this.DkimVerdict.GetHashCode(); + } + if (this.DmarcVerdict != null) + { + hashCode = (hashCode * 59) + this.DmarcVerdict.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailContentMatchResult.cs b/src/mailslurp_netstandard_2x/Model/EmailContentMatchResult.cs new file mode 100644 index 00000000..a85f3a2d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailContentMatchResult.cs @@ -0,0 +1,163 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Matches for the given pattern + /// + [DataContract(Name = "EmailContentMatchResult")] + public partial class EmailContentMatchResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailContentMatchResult() { } + /// + /// Initializes a new instance of the class. + /// + /// pattern (required). + /// matches (required). + public EmailContentMatchResult(string pattern = default(string), List matches = default(List)) + { + // to ensure "pattern" is required (not null) + if (pattern == null) + { + throw new ArgumentNullException("pattern is a required property for EmailContentMatchResult and cannot be null"); + } + this.Pattern = pattern; + // to ensure "matches" is required (not null) + if (matches == null) + { + throw new ArgumentNullException("matches is a required property for EmailContentMatchResult and cannot be null"); + } + this.Matches = matches; + } + + /// + /// Gets or Sets Pattern + /// + [DataMember(Name = "pattern", IsRequired = true, EmitDefaultValue = true)] + public string Pattern { get; set; } + + /// + /// Gets or Sets Matches + /// + [DataMember(Name = "matches", IsRequired = true, EmitDefaultValue = true)] + public List Matches { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailContentMatchResult {\n"); + sb.Append(" Pattern: ").Append(Pattern).Append("\n"); + sb.Append(" Matches: ").Append(Matches).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailContentMatchResult); + } + + /// + /// Returns true if EmailContentMatchResult instances are equal + /// + /// Instance of EmailContentMatchResult to be compared + /// Boolean + public bool Equals(EmailContentMatchResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Pattern == input.Pattern || + (this.Pattern != null && + this.Pattern.Equals(input.Pattern)) + ) && + ( + this.Matches == input.Matches || + this.Matches != null && + input.Matches != null && + this.Matches.SequenceEqual(input.Matches) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Pattern != null) + { + hashCode = (hashCode * 59) + this.Pattern.GetHashCode(); + } + if (this.Matches != null) + { + hashCode = (hashCode * 59) + this.Matches.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailContentPartResult.cs b/src/mailslurp_netstandard_2x/Model/EmailContentPartResult.cs new file mode 100644 index 00000000..304af86e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailContentPartResult.cs @@ -0,0 +1,129 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailContentPartResult + /// + [DataContract(Name = "EmailContentPartResult")] + public partial class EmailContentPartResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// content. + public EmailContentPartResult(string content = default(string)) + { + this.Content = content; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = true)] + public string Content { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailContentPartResult {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailContentPartResult); + } + + /// + /// Returns true if EmailContentPartResult instances are equal + /// + /// Instance of EmailContentPartResult to be compared + /// Boolean + public bool Equals(EmailContentPartResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailFeatureCategoryName.cs b/src/mailslurp_netstandard_2x/Model/EmailFeatureCategoryName.cs new file mode 100644 index 00000000..29ad4db9 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailFeatureCategoryName.cs @@ -0,0 +1,185 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailFeatureCategoryName + /// + [DataContract(Name = "EmailFeatureCategoryName")] + public partial class EmailFeatureCategoryName : IEquatable, IValidatableObject + { + /// + /// Defines Slug + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SlugEnum + { + /// + /// Enum Css for value: css + /// + [EnumMember(Value = "css")] + Css = 1, + + /// + /// Enum Html for value: html + /// + [EnumMember(Value = "html")] + Html = 2, + + /// + /// Enum Image for value: image + /// + [EnumMember(Value = "image")] + Image = 3, + + /// + /// Enum Others for value: others + /// + [EnumMember(Value = "others")] + Others = 4 + + } + + + /// + /// Gets or Sets Slug + /// + [DataMember(Name = "slug", IsRequired = true, EmitDefaultValue = true)] + public SlugEnum Slug { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailFeatureCategoryName() { } + /// + /// Initializes a new instance of the class. + /// + /// slug (required). + /// name (required). + public EmailFeatureCategoryName(SlugEnum slug = default(SlugEnum), string name = default(string)) + { + this.Slug = slug; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for EmailFeatureCategoryName and cannot be null"); + } + this.Name = name; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailFeatureCategoryName {\n"); + sb.Append(" Slug: ").Append(Slug).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailFeatureCategoryName); + } + + /// + /// Returns true if EmailFeatureCategoryName instances are equal + /// + /// Instance of EmailFeatureCategoryName to be compared + /// Boolean + public bool Equals(EmailFeatureCategoryName input) + { + if (input == null) + { + return false; + } + return + ( + this.Slug == input.Slug || + this.Slug.Equals(input.Slug) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Slug.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailFeatureFamilyName.cs b/src/mailslurp_netstandard_2x/Model/EmailFeatureFamilyName.cs new file mode 100644 index 00000000..594bdf2c --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailFeatureFamilyName.cs @@ -0,0 +1,287 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailFeatureFamilyName + /// + [DataContract(Name = "EmailFeatureFamilyName")] + public partial class EmailFeatureFamilyName : IEquatable, IValidatableObject + { + /// + /// Defines Slug + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SlugEnum + { + /// + /// Enum Aol for value: aol + /// + [EnumMember(Value = "aol")] + Aol = 1, + + /// + /// Enum AppleMail for value: apple-mail + /// + [EnumMember(Value = "apple-mail")] + AppleMail = 2, + + /// + /// Enum Fastmail for value: fastmail + /// + [EnumMember(Value = "fastmail")] + Fastmail = 3, + + /// + /// Enum FreeFr for value: free-fr + /// + [EnumMember(Value = "free-fr")] + FreeFr = 4, + + /// + /// Enum Gmail for value: gmail + /// + [EnumMember(Value = "gmail")] + Gmail = 5, + + /// + /// Enum Gmx for value: gmx + /// + [EnumMember(Value = "gmx")] + Gmx = 6, + + /// + /// Enum Hey for value: hey + /// + [EnumMember(Value = "hey")] + Hey = 7, + + /// + /// Enum Ionos1and1 for value: ionos-1and1 + /// + [EnumMember(Value = "ionos-1and1")] + Ionos1and1 = 8, + + /// + /// Enum Laposte for value: laposte + /// + [EnumMember(Value = "laposte")] + Laposte = 9, + + /// + /// Enum MailRu for value: mail-ru + /// + [EnumMember(Value = "mail-ru")] + MailRu = 10, + + /// + /// Enum Microsoft for value: microsoft + /// + [EnumMember(Value = "microsoft")] + Microsoft = 11, + + /// + /// Enum Orange for value: orange + /// + [EnumMember(Value = "orange")] + Orange = 12, + + /// + /// Enum Outlook for value: outlook + /// + [EnumMember(Value = "outlook")] + Outlook = 13, + + /// + /// Enum Protonmail for value: protonmail + /// + [EnumMember(Value = "protonmail")] + Protonmail = 14, + + /// + /// Enum Rainloop for value: rainloop + /// + [EnumMember(Value = "rainloop")] + Rainloop = 15, + + /// + /// Enum SamsungEmail for value: samsung-email + /// + [EnumMember(Value = "samsung-email")] + SamsungEmail = 16, + + /// + /// Enum Sfr for value: sfr + /// + [EnumMember(Value = "sfr")] + Sfr = 17, + + /// + /// Enum TOnlineDe for value: t-online-de + /// + [EnumMember(Value = "t-online-de")] + TOnlineDe = 18, + + /// + /// Enum Thunderbird for value: thunderbird + /// + [EnumMember(Value = "thunderbird")] + Thunderbird = 19, + + /// + /// Enum WebDe for value: web-de + /// + [EnumMember(Value = "web-de")] + WebDe = 20, + + /// + /// Enum Yahoo for value: yahoo + /// + [EnumMember(Value = "yahoo")] + Yahoo = 21 + + } + + + /// + /// Gets or Sets Slug + /// + [DataMember(Name = "slug", IsRequired = true, EmitDefaultValue = true)] + public SlugEnum Slug { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailFeatureFamilyName() { } + /// + /// Initializes a new instance of the class. + /// + /// slug (required). + /// name (required). + public EmailFeatureFamilyName(SlugEnum slug = default(SlugEnum), string name = default(string)) + { + this.Slug = slug; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for EmailFeatureFamilyName and cannot be null"); + } + this.Name = name; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailFeatureFamilyName {\n"); + sb.Append(" Slug: ").Append(Slug).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailFeatureFamilyName); + } + + /// + /// Returns true if EmailFeatureFamilyName instances are equal + /// + /// Instance of EmailFeatureFamilyName to be compared + /// Boolean + public bool Equals(EmailFeatureFamilyName input) + { + if (input == null) + { + return false; + } + return + ( + this.Slug == input.Slug || + this.Slug.Equals(input.Slug) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Slug.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailFeatureFamilyStatistics.cs b/src/mailslurp_netstandard_2x/Model/EmailFeatureFamilyStatistics.cs new file mode 100644 index 00000000..11f3ffd8 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailFeatureFamilyStatistics.cs @@ -0,0 +1,1390 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailFeatureFamilyStatistics + /// + [DataContract(Name = "EmailFeatureFamilyStatistics")] + public partial class EmailFeatureFamilyStatistics : IEquatable, IValidatableObject + { + /// + /// Defines Feature + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum FeatureEnum + { + /// + /// Enum Amp for value: amp + /// + [EnumMember(Value = "amp")] + Amp = 1, + + /// + /// Enum CssAccentColor for value: css-accent-color + /// + [EnumMember(Value = "css-accent-color")] + CssAccentColor = 2, + + /// + /// Enum CssAlignItems for value: css-align-items + /// + [EnumMember(Value = "css-align-items")] + CssAlignItems = 3, + + /// + /// Enum CssAnimation for value: css-animation + /// + [EnumMember(Value = "css-animation")] + CssAnimation = 4, + + /// + /// Enum CssAspectRatio for value: css-aspect-ratio + /// + [EnumMember(Value = "css-aspect-ratio")] + CssAspectRatio = 5, + + /// + /// Enum CssAtFontFace for value: css-at-font-face + /// + [EnumMember(Value = "css-at-font-face")] + CssAtFontFace = 6, + + /// + /// Enum CssAtImport for value: css-at-import + /// + [EnumMember(Value = "css-at-import")] + CssAtImport = 7, + + /// + /// Enum CssAtKeyframes for value: css-at-keyframes + /// + [EnumMember(Value = "css-at-keyframes")] + CssAtKeyframes = 8, + + /// + /// Enum CssAtMedia for value: css-at-media + /// + [EnumMember(Value = "css-at-media")] + CssAtMedia = 9, + + /// + /// Enum CssAtSupports for value: css-at-supports + /// + [EnumMember(Value = "css-at-supports")] + CssAtSupports = 10, + + /// + /// Enum CssBackgroundBlendMode for value: css-background-blend-mode + /// + [EnumMember(Value = "css-background-blend-mode")] + CssBackgroundBlendMode = 11, + + /// + /// Enum CssBackgroundClip for value: css-background-clip + /// + [EnumMember(Value = "css-background-clip")] + CssBackgroundClip = 12, + + /// + /// Enum CssBackgroundColor for value: css-background-color + /// + [EnumMember(Value = "css-background-color")] + CssBackgroundColor = 13, + + /// + /// Enum CssBackgroundImage for value: css-background-image + /// + [EnumMember(Value = "css-background-image")] + CssBackgroundImage = 14, + + /// + /// Enum CssBackgroundOrigin for value: css-background-origin + /// + [EnumMember(Value = "css-background-origin")] + CssBackgroundOrigin = 15, + + /// + /// Enum CssBackgroundPosition for value: css-background-position + /// + [EnumMember(Value = "css-background-position")] + CssBackgroundPosition = 16, + + /// + /// Enum CssBackgroundRepeat for value: css-background-repeat + /// + [EnumMember(Value = "css-background-repeat")] + CssBackgroundRepeat = 17, + + /// + /// Enum CssBackgroundSize for value: css-background-size + /// + [EnumMember(Value = "css-background-size")] + CssBackgroundSize = 18, + + /// + /// Enum CssBackground for value: css-background + /// + [EnumMember(Value = "css-background")] + CssBackground = 19, + + /// + /// Enum CssBlockInlineSize for value: css-block-inline-size + /// + [EnumMember(Value = "css-block-inline-size")] + CssBlockInlineSize = 20, + + /// + /// Enum CssBorderImage for value: css-border-image + /// + [EnumMember(Value = "css-border-image")] + CssBorderImage = 21, + + /// + /// Enum CssBorderInlineBlockIndividual for value: css-border-inline-block-individual + /// + [EnumMember(Value = "css-border-inline-block-individual")] + CssBorderInlineBlockIndividual = 22, + + /// + /// Enum CssBorderInlineBlockLonghand for value: css-border-inline-block-longhand + /// + [EnumMember(Value = "css-border-inline-block-longhand")] + CssBorderInlineBlockLonghand = 23, + + /// + /// Enum CssBorderInlineBlock for value: css-border-inline-block + /// + [EnumMember(Value = "css-border-inline-block")] + CssBorderInlineBlock = 24, + + /// + /// Enum CssBorderRadiusLogical for value: css-border-radius-logical + /// + [EnumMember(Value = "css-border-radius-logical")] + CssBorderRadiusLogical = 25, + + /// + /// Enum CssBorderRadius for value: css-border-radius + /// + [EnumMember(Value = "css-border-radius")] + CssBorderRadius = 26, + + /// + /// Enum CssBorder for value: css-border + /// + [EnumMember(Value = "css-border")] + CssBorder = 27, + + /// + /// Enum CssBoxShadow for value: css-box-shadow + /// + [EnumMember(Value = "css-box-shadow")] + CssBoxShadow = 28, + + /// + /// Enum CssBoxSizing for value: css-box-sizing + /// + [EnumMember(Value = "css-box-sizing")] + CssBoxSizing = 29, + + /// + /// Enum CssCaptionSide for value: css-caption-side + /// + [EnumMember(Value = "css-caption-side")] + CssCaptionSide = 30, + + /// + /// Enum CssClipPath for value: css-clip-path + /// + [EnumMember(Value = "css-clip-path")] + CssClipPath = 31, + + /// + /// Enum CssColumnCount for value: css-column-count + /// + [EnumMember(Value = "css-column-count")] + CssColumnCount = 32, + + /// + /// Enum CssColumnLayoutProperties for value: css-column-layout-properties + /// + [EnumMember(Value = "css-column-layout-properties")] + CssColumnLayoutProperties = 33, + + /// + /// Enum CssDirection for value: css-direction + /// + [EnumMember(Value = "css-direction")] + CssDirection = 34, + + /// + /// Enum CssDisplayFlex for value: css-display-flex + /// + [EnumMember(Value = "css-display-flex")] + CssDisplayFlex = 35, + + /// + /// Enum CssDisplayGrid for value: css-display-grid + /// + [EnumMember(Value = "css-display-grid")] + CssDisplayGrid = 36, + + /// + /// Enum CssDisplayNone for value: css-display-none + /// + [EnumMember(Value = "css-display-none")] + CssDisplayNone = 37, + + /// + /// Enum CssDisplay for value: css-display + /// + [EnumMember(Value = "css-display")] + CssDisplay = 38, + + /// + /// Enum CssFilter for value: css-filter + /// + [EnumMember(Value = "css-filter")] + CssFilter = 39, + + /// + /// Enum CssFlexDirection for value: css-flex-direction + /// + [EnumMember(Value = "css-flex-direction")] + CssFlexDirection = 40, + + /// + /// Enum CssFlexWrap for value: css-flex-wrap + /// + [EnumMember(Value = "css-flex-wrap")] + CssFlexWrap = 41, + + /// + /// Enum CssFloat for value: css-float + /// + [EnumMember(Value = "css-float")] + CssFloat = 42, + + /// + /// Enum CssFontKerning for value: css-font-kerning + /// + [EnumMember(Value = "css-font-kerning")] + CssFontKerning = 43, + + /// + /// Enum CssFontWeight for value: css-font-weight + /// + [EnumMember(Value = "css-font-weight")] + CssFontWeight = 44, + + /// + /// Enum CssFont for value: css-font + /// + [EnumMember(Value = "css-font")] + CssFont = 45, + + /// + /// Enum CssGap for value: css-gap + /// + [EnumMember(Value = "css-gap")] + CssGap = 46, + + /// + /// Enum CssGridTemplate for value: css-grid-template + /// + [EnumMember(Value = "css-grid-template")] + CssGridTemplate = 47, + + /// + /// Enum CssHeight for value: css-height + /// + [EnumMember(Value = "css-height")] + CssHeight = 48, + + /// + /// Enum CssHyphens for value: css-hyphens + /// + [EnumMember(Value = "css-hyphens")] + CssHyphens = 49, + + /// + /// Enum CssInlineSize for value: css-inline-size + /// + [EnumMember(Value = "css-inline-size")] + CssInlineSize = 50, + + /// + /// Enum CssJustifyContent for value: css-justify-content + /// + [EnumMember(Value = "css-justify-content")] + CssJustifyContent = 51, + + /// + /// Enum CssLeftRightTopBottom for value: css-left-right-top-bottom + /// + [EnumMember(Value = "css-left-right-top-bottom")] + CssLeftRightTopBottom = 52, + + /// + /// Enum CssLetterSpacing for value: css-letter-spacing + /// + [EnumMember(Value = "css-letter-spacing")] + CssLetterSpacing = 53, + + /// + /// Enum CssLineHeight for value: css-line-height + /// + [EnumMember(Value = "css-line-height")] + CssLineHeight = 54, + + /// + /// Enum CssListStyleImage for value: css-list-style-image + /// + [EnumMember(Value = "css-list-style-image")] + CssListStyleImage = 55, + + /// + /// Enum CssListStylePosition for value: css-list-style-position + /// + [EnumMember(Value = "css-list-style-position")] + CssListStylePosition = 56, + + /// + /// Enum CssListStyleType for value: css-list-style-type + /// + [EnumMember(Value = "css-list-style-type")] + CssListStyleType = 57, + + /// + /// Enum CssListStyle for value: css-list-style + /// + [EnumMember(Value = "css-list-style")] + CssListStyle = 58, + + /// + /// Enum CssMarginBlockStartEnd for value: css-margin-block-start-end + /// + [EnumMember(Value = "css-margin-block-start-end")] + CssMarginBlockStartEnd = 59, + + /// + /// Enum CssMarginInlineBlock for value: css-margin-inline-block + /// + [EnumMember(Value = "css-margin-inline-block")] + CssMarginInlineBlock = 60, + + /// + /// Enum CssMarginInlineStartEnd for value: css-margin-inline-start-end + /// + [EnumMember(Value = "css-margin-inline-start-end")] + CssMarginInlineStartEnd = 61, + + /// + /// Enum CssMarginInline for value: css-margin-inline + /// + [EnumMember(Value = "css-margin-inline")] + CssMarginInline = 62, + + /// + /// Enum CssMargin for value: css-margin + /// + [EnumMember(Value = "css-margin")] + CssMargin = 63, + + /// + /// Enum CssMaxBlockSize for value: css-max-block-size + /// + [EnumMember(Value = "css-max-block-size")] + CssMaxBlockSize = 64, + + /// + /// Enum CssMaxHeight for value: css-max-height + /// + [EnumMember(Value = "css-max-height")] + CssMaxHeight = 65, + + /// + /// Enum CssMaxWidth for value: css-max-width + /// + [EnumMember(Value = "css-max-width")] + CssMaxWidth = 66, + + /// + /// Enum CssMinHeight for value: css-min-height + /// + [EnumMember(Value = "css-min-height")] + CssMinHeight = 67, + + /// + /// Enum CssMinInlineSize for value: css-min-inline-size + /// + [EnumMember(Value = "css-min-inline-size")] + CssMinInlineSize = 68, + + /// + /// Enum CssMinWidth for value: css-min-width + /// + [EnumMember(Value = "css-min-width")] + CssMinWidth = 69, + + /// + /// Enum CssMixBlendMode for value: css-mix-blend-mode + /// + [EnumMember(Value = "css-mix-blend-mode")] + CssMixBlendMode = 70, + + /// + /// Enum CssObjectFit for value: css-object-fit + /// + [EnumMember(Value = "css-object-fit")] + CssObjectFit = 71, + + /// + /// Enum CssObjectPosition for value: css-object-position + /// + [EnumMember(Value = "css-object-position")] + CssObjectPosition = 72, + + /// + /// Enum CssOpacity for value: css-opacity + /// + [EnumMember(Value = "css-opacity")] + CssOpacity = 73, + + /// + /// Enum CssOutlineOffset for value: css-outline-offset + /// + [EnumMember(Value = "css-outline-offset")] + CssOutlineOffset = 74, + + /// + /// Enum CssOutline for value: css-outline + /// + [EnumMember(Value = "css-outline")] + CssOutline = 75, + + /// + /// Enum CssOverflowWrap for value: css-overflow-wrap + /// + [EnumMember(Value = "css-overflow-wrap")] + CssOverflowWrap = 76, + + /// + /// Enum CssOverflow for value: css-overflow + /// + [EnumMember(Value = "css-overflow")] + CssOverflow = 77, + + /// + /// Enum CssPaddingBlockStartEnd for value: css-padding-block-start-end + /// + [EnumMember(Value = "css-padding-block-start-end")] + CssPaddingBlockStartEnd = 78, + + /// + /// Enum CssPaddingInlineBlock for value: css-padding-inline-block + /// + [EnumMember(Value = "css-padding-inline-block")] + CssPaddingInlineBlock = 79, + + /// + /// Enum CssPaddingInlineStartEnd for value: css-padding-inline-start-end + /// + [EnumMember(Value = "css-padding-inline-start-end")] + CssPaddingInlineStartEnd = 80, + + /// + /// Enum CssPadding for value: css-padding + /// + [EnumMember(Value = "css-padding")] + CssPadding = 81, + + /// + /// Enum CssPosition for value: css-position + /// + [EnumMember(Value = "css-position")] + CssPosition = 82, + + /// + /// Enum CssTabSize for value: css-tab-size + /// + [EnumMember(Value = "css-tab-size")] + CssTabSize = 83, + + /// + /// Enum CssTableLayout for value: css-table-layout + /// + [EnumMember(Value = "css-table-layout")] + CssTableLayout = 84, + + /// + /// Enum CssTextAlignLast for value: css-text-align-last + /// + [EnumMember(Value = "css-text-align-last")] + CssTextAlignLast = 85, + + /// + /// Enum CssTextAlign for value: css-text-align + /// + [EnumMember(Value = "css-text-align")] + CssTextAlign = 86, + + /// + /// Enum CssTextDecorationColor for value: css-text-decoration-color + /// + [EnumMember(Value = "css-text-decoration-color")] + CssTextDecorationColor = 87, + + /// + /// Enum CssTextDecorationThickness for value: css-text-decoration-thickness + /// + [EnumMember(Value = "css-text-decoration-thickness")] + CssTextDecorationThickness = 88, + + /// + /// Enum CssTextDecoration for value: css-text-decoration + /// + [EnumMember(Value = "css-text-decoration")] + CssTextDecoration = 89, + + /// + /// Enum CssTextEmphasisPosition for value: css-text-emphasis-position + /// + [EnumMember(Value = "css-text-emphasis-position")] + CssTextEmphasisPosition = 90, + + /// + /// Enum CssTextEmphasis for value: css-text-emphasis + /// + [EnumMember(Value = "css-text-emphasis")] + CssTextEmphasis = 91, + + /// + /// Enum CssTextIndent for value: css-text-indent + /// + [EnumMember(Value = "css-text-indent")] + CssTextIndent = 92, + + /// + /// Enum CssTextOverflow for value: css-text-overflow + /// + [EnumMember(Value = "css-text-overflow")] + CssTextOverflow = 93, + + /// + /// Enum CssTextShadow for value: css-text-shadow + /// + [EnumMember(Value = "css-text-shadow")] + CssTextShadow = 94, + + /// + /// Enum CssTextTransform for value: css-text-transform + /// + [EnumMember(Value = "css-text-transform")] + CssTextTransform = 95, + + /// + /// Enum CssTextUnderlineOffset for value: css-text-underline-offset + /// + [EnumMember(Value = "css-text-underline-offset")] + CssTextUnderlineOffset = 96, + + /// + /// Enum CssTransform for value: css-transform + /// + [EnumMember(Value = "css-transform")] + CssTransform = 97, + + /// + /// Enum CssVerticalAlign for value: css-vertical-align + /// + [EnumMember(Value = "css-vertical-align")] + CssVerticalAlign = 98, + + /// + /// Enum CssVisibility for value: css-visibility + /// + [EnumMember(Value = "css-visibility")] + CssVisibility = 99, + + /// + /// Enum CssWhiteSpace for value: css-white-space + /// + [EnumMember(Value = "css-white-space")] + CssWhiteSpace = 100, + + /// + /// Enum CssWidth for value: css-width + /// + [EnumMember(Value = "css-width")] + CssWidth = 101, + + /// + /// Enum CssWordBreak for value: css-word-break + /// + [EnumMember(Value = "css-word-break")] + CssWordBreak = 102, + + /// + /// Enum CssWritingMode for value: css-writing-mode + /// + [EnumMember(Value = "css-writing-mode")] + CssWritingMode = 103, + + /// + /// Enum CssZIndex for value: css-z-index + /// + [EnumMember(Value = "css-z-index")] + CssZIndex = 104, + + /// + /// Enum HtmlAbbr for value: html-abbr + /// + [EnumMember(Value = "html-abbr")] + HtmlAbbr = 105, + + /// + /// Enum HtmlAddress for value: html-address + /// + [EnumMember(Value = "html-address")] + HtmlAddress = 106, + + /// + /// Enum HtmlAlign for value: html-align + /// + [EnumMember(Value = "html-align")] + HtmlAlign = 107, + + /// + /// Enum HtmlAnchorLinks for value: html-anchor-links + /// + [EnumMember(Value = "html-anchor-links")] + HtmlAnchorLinks = 108, + + /// + /// Enum HtmlAriaDescribedby for value: html-aria-describedby + /// + [EnumMember(Value = "html-aria-describedby")] + HtmlAriaDescribedby = 109, + + /// + /// Enum HtmlAriaHidden for value: html-aria-hidden + /// + [EnumMember(Value = "html-aria-hidden")] + HtmlAriaHidden = 110, + + /// + /// Enum HtmlAriaLabel for value: html-aria-label + /// + [EnumMember(Value = "html-aria-label")] + HtmlAriaLabel = 111, + + /// + /// Enum HtmlAriaLabelledby for value: html-aria-labelledby + /// + [EnumMember(Value = "html-aria-labelledby")] + HtmlAriaLabelledby = 112, + + /// + /// Enum HtmlAriaLive for value: html-aria-live + /// + [EnumMember(Value = "html-aria-live")] + HtmlAriaLive = 113, + + /// + /// Enum HtmlAudio for value: html-audio + /// + [EnumMember(Value = "html-audio")] + HtmlAudio = 114, + + /// + /// Enum HtmlBackground for value: html-background + /// + [EnumMember(Value = "html-background")] + HtmlBackground = 115, + + /// + /// Enum HtmlBase for value: html-base + /// + [EnumMember(Value = "html-base")] + HtmlBase = 116, + + /// + /// Enum HtmlBlockquote for value: html-blockquote + /// + [EnumMember(Value = "html-blockquote")] + HtmlBlockquote = 117, + + /// + /// Enum HtmlBody for value: html-body + /// + [EnumMember(Value = "html-body")] + HtmlBody = 118, + + /// + /// Enum HtmlButtonReset for value: html-button-reset + /// + [EnumMember(Value = "html-button-reset")] + HtmlButtonReset = 119, + + /// + /// Enum HtmlButtonSubmit for value: html-button-submit + /// + [EnumMember(Value = "html-button-submit")] + HtmlButtonSubmit = 120, + + /// + /// Enum HtmlCode for value: html-code + /// + [EnumMember(Value = "html-code")] + HtmlCode = 121, + + /// + /// Enum HtmlDel for value: html-del + /// + [EnumMember(Value = "html-del")] + HtmlDel = 122, + + /// + /// Enum HtmlDfn for value: html-dfn + /// + [EnumMember(Value = "html-dfn")] + HtmlDfn = 123, + + /// + /// Enum HtmlDialog for value: html-dialog + /// + [EnumMember(Value = "html-dialog")] + HtmlDialog = 124, + + /// + /// Enum HtmlDir for value: html-dir + /// + [EnumMember(Value = "html-dir")] + HtmlDir = 125, + + /// + /// Enum HtmlDiv for value: html-div + /// + [EnumMember(Value = "html-div")] + HtmlDiv = 126, + + /// + /// Enum HtmlDoctype for value: html-doctype + /// + [EnumMember(Value = "html-doctype")] + HtmlDoctype = 127, + + /// + /// Enum HtmlForm for value: html-form + /// + [EnumMember(Value = "html-form")] + HtmlForm = 128, + + /// + /// Enum HtmlH1H6 for value: html-h1-h6 + /// + [EnumMember(Value = "html-h1-h6")] + HtmlH1H6 = 129, + + /// + /// Enum HtmlHeight for value: html-height + /// + [EnumMember(Value = "html-height")] + HtmlHeight = 130, + + /// + /// Enum HtmlImageMaps for value: html-image-maps + /// + [EnumMember(Value = "html-image-maps")] + HtmlImageMaps = 131, + + /// + /// Enum HtmlInputCheckbox for value: html-input-checkbox + /// + [EnumMember(Value = "html-input-checkbox")] + HtmlInputCheckbox = 132, + + /// + /// Enum HtmlInputHidden for value: html-input-hidden + /// + [EnumMember(Value = "html-input-hidden")] + HtmlInputHidden = 133, + + /// + /// Enum HtmlInputRadio for value: html-input-radio + /// + [EnumMember(Value = "html-input-radio")] + HtmlInputRadio = 134, + + /// + /// Enum HtmlInputReset for value: html-input-reset + /// + [EnumMember(Value = "html-input-reset")] + HtmlInputReset = 135, + + /// + /// Enum HtmlInputSubmit for value: html-input-submit + /// + [EnumMember(Value = "html-input-submit")] + HtmlInputSubmit = 136, + + /// + /// Enum HtmlInputText for value: html-input-text + /// + [EnumMember(Value = "html-input-text")] + HtmlInputText = 137, + + /// + /// Enum HtmlLang for value: html-lang + /// + [EnumMember(Value = "html-lang")] + HtmlLang = 138, + + /// + /// Enum HtmlLink for value: html-link + /// + [EnumMember(Value = "html-link")] + HtmlLink = 139, + + /// + /// Enum HtmlLists for value: html-lists + /// + [EnumMember(Value = "html-lists")] + HtmlLists = 140, + + /// + /// Enum HtmlLoadingAttribute for value: html-loading-attribute + /// + [EnumMember(Value = "html-loading-attribute")] + HtmlLoadingAttribute = 141, + + /// + /// Enum HtmlMailtoLinks for value: html-mailto-links + /// + [EnumMember(Value = "html-mailto-links")] + HtmlMailtoLinks = 142, + + /// + /// Enum HtmlMarquee for value: html-marquee + /// + [EnumMember(Value = "html-marquee")] + HtmlMarquee = 143, + + /// + /// Enum HtmlMeter for value: html-meter + /// + [EnumMember(Value = "html-meter")] + HtmlMeter = 144, + + /// + /// Enum HtmlObject for value: html-object + /// + [EnumMember(Value = "html-object")] + HtmlObject = 145, + + /// + /// Enum HtmlP for value: html-p + /// + [EnumMember(Value = "html-p")] + HtmlP = 146, + + /// + /// Enum HtmlPicture for value: html-picture + /// + [EnumMember(Value = "html-picture")] + HtmlPicture = 147, + + /// + /// Enum HtmlPre for value: html-pre + /// + [EnumMember(Value = "html-pre")] + HtmlPre = 148, + + /// + /// Enum HtmlProgress for value: html-progress + /// + [EnumMember(Value = "html-progress")] + HtmlProgress = 149, + + /// + /// Enum HtmlRequired for value: html-required + /// + [EnumMember(Value = "html-required")] + HtmlRequired = 150, + + /// + /// Enum HtmlRole for value: html-role + /// + [EnumMember(Value = "html-role")] + HtmlRole = 151, + + /// + /// Enum HtmlRp for value: html-rp + /// + [EnumMember(Value = "html-rp")] + HtmlRp = 152, + + /// + /// Enum HtmlRt for value: html-rt + /// + [EnumMember(Value = "html-rt")] + HtmlRt = 153, + + /// + /// Enum HtmlRuby for value: html-ruby + /// + [EnumMember(Value = "html-ruby")] + HtmlRuby = 154, + + /// + /// Enum HtmlSelect for value: html-select + /// + [EnumMember(Value = "html-select")] + HtmlSelect = 155, + + /// + /// Enum HtmlSemantics for value: html-semantics + /// + [EnumMember(Value = "html-semantics")] + HtmlSemantics = 156, + + /// + /// Enum HtmlSmall for value: html-small + /// + [EnumMember(Value = "html-small")] + HtmlSmall = 157, + + /// + /// Enum HtmlSpan for value: html-span + /// + [EnumMember(Value = "html-span")] + HtmlSpan = 158, + + /// + /// Enum HtmlSrcset for value: html-srcset + /// + [EnumMember(Value = "html-srcset")] + HtmlSrcset = 159, + + /// + /// Enum HtmlStrike for value: html-strike + /// + [EnumMember(Value = "html-strike")] + HtmlStrike = 160, + + /// + /// Enum HtmlStrong for value: html-strong + /// + [EnumMember(Value = "html-strong")] + HtmlStrong = 161, + + /// + /// Enum HtmlStyle for value: html-style + /// + [EnumMember(Value = "html-style")] + HtmlStyle = 162, + + /// + /// Enum HtmlSvg for value: html-svg + /// + [EnumMember(Value = "html-svg")] + HtmlSvg = 163, + + /// + /// Enum HtmlTable for value: html-table + /// + [EnumMember(Value = "html-table")] + HtmlTable = 164, + + /// + /// Enum HtmlTarget for value: html-target + /// + [EnumMember(Value = "html-target")] + HtmlTarget = 165, + + /// + /// Enum HtmlTextarea for value: html-textarea + /// + [EnumMember(Value = "html-textarea")] + HtmlTextarea = 166, + + /// + /// Enum HtmlValign for value: html-valign + /// + [EnumMember(Value = "html-valign")] + HtmlValign = 167, + + /// + /// Enum HtmlVideo for value: html-video + /// + [EnumMember(Value = "html-video")] + HtmlVideo = 168, + + /// + /// Enum HtmlWbr for value: html-wbr + /// + [EnumMember(Value = "html-wbr")] + HtmlWbr = 169, + + /// + /// Enum HtmlWidth for value: html-width + /// + [EnumMember(Value = "html-width")] + HtmlWidth = 170, + + /// + /// Enum ImageAvif for value: image-avif + /// + [EnumMember(Value = "image-avif")] + ImageAvif = 171, + + /// + /// Enum ImageBase64 for value: image-base64 + /// + [EnumMember(Value = "image-base64")] + ImageBase64 = 172, + + /// + /// Enum ImageBmp for value: image-bmp + /// + [EnumMember(Value = "image-bmp")] + ImageBmp = 173, + + /// + /// Enum ImageGif for value: image-gif + /// + [EnumMember(Value = "image-gif")] + ImageGif = 174, + + /// + /// Enum ImageIco for value: image-ico + /// + [EnumMember(Value = "image-ico")] + ImageIco = 175, + + /// + /// Enum ImageJpg for value: image-jpg + /// + [EnumMember(Value = "image-jpg")] + ImageJpg = 176, + + /// + /// Enum ImagePng for value: image-png + /// + [EnumMember(Value = "image-png")] + ImagePng = 177, + + /// + /// Enum ImageSvg for value: image-svg + /// + [EnumMember(Value = "image-svg")] + ImageSvg = 178, + + /// + /// Enum ImageWebp for value: image-webp + /// + [EnumMember(Value = "image-webp")] + ImageWebp = 179, + + /// + /// Enum Unsupported for value: unsupported + /// + [EnumMember(Value = "unsupported")] + Unsupported = 180 + + } + + + /// + /// Gets or Sets Feature + /// + [DataMember(Name = "feature", IsRequired = true, EmitDefaultValue = true)] + public FeatureEnum Feature { get; set; } + /// + /// Defines Family + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum FamilyEnum + { + /// + /// Enum Aol for value: aol + /// + [EnumMember(Value = "aol")] + Aol = 1, + + /// + /// Enum AppleMail for value: apple-mail + /// + [EnumMember(Value = "apple-mail")] + AppleMail = 2, + + /// + /// Enum Fastmail for value: fastmail + /// + [EnumMember(Value = "fastmail")] + Fastmail = 3, + + /// + /// Enum FreeFr for value: free-fr + /// + [EnumMember(Value = "free-fr")] + FreeFr = 4, + + /// + /// Enum Gmail for value: gmail + /// + [EnumMember(Value = "gmail")] + Gmail = 5, + + /// + /// Enum Gmx for value: gmx + /// + [EnumMember(Value = "gmx")] + Gmx = 6, + + /// + /// Enum Hey for value: hey + /// + [EnumMember(Value = "hey")] + Hey = 7, + + /// + /// Enum Ionos1and1 for value: ionos-1and1 + /// + [EnumMember(Value = "ionos-1and1")] + Ionos1and1 = 8, + + /// + /// Enum Laposte for value: laposte + /// + [EnumMember(Value = "laposte")] + Laposte = 9, + + /// + /// Enum MailRu for value: mail-ru + /// + [EnumMember(Value = "mail-ru")] + MailRu = 10, + + /// + /// Enum Microsoft for value: microsoft + /// + [EnumMember(Value = "microsoft")] + Microsoft = 11, + + /// + /// Enum Orange for value: orange + /// + [EnumMember(Value = "orange")] + Orange = 12, + + /// + /// Enum Outlook for value: outlook + /// + [EnumMember(Value = "outlook")] + Outlook = 13, + + /// + /// Enum Protonmail for value: protonmail + /// + [EnumMember(Value = "protonmail")] + Protonmail = 14, + + /// + /// Enum Rainloop for value: rainloop + /// + [EnumMember(Value = "rainloop")] + Rainloop = 15, + + /// + /// Enum SamsungEmail for value: samsung-email + /// + [EnumMember(Value = "samsung-email")] + SamsungEmail = 16, + + /// + /// Enum Sfr for value: sfr + /// + [EnumMember(Value = "sfr")] + Sfr = 17, + + /// + /// Enum TOnlineDe for value: t-online-de + /// + [EnumMember(Value = "t-online-de")] + TOnlineDe = 18, + + /// + /// Enum Thunderbird for value: thunderbird + /// + [EnumMember(Value = "thunderbird")] + Thunderbird = 19, + + /// + /// Enum WebDe for value: web-de + /// + [EnumMember(Value = "web-de")] + WebDe = 20, + + /// + /// Enum Yahoo for value: yahoo + /// + [EnumMember(Value = "yahoo")] + Yahoo = 21 + + } + + + /// + /// Gets or Sets Family + /// + [DataMember(Name = "family", IsRequired = true, EmitDefaultValue = true)] + public FamilyEnum Family { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailFeatureFamilyStatistics() { } + /// + /// Initializes a new instance of the class. + /// + /// feature (required). + /// family (required). + /// platforms (required). + public EmailFeatureFamilyStatistics(FeatureEnum feature = default(FeatureEnum), FamilyEnum family = default(FamilyEnum), List platforms = default(List)) + { + this.Feature = feature; + this.Family = family; + // to ensure "platforms" is required (not null) + if (platforms == null) + { + throw new ArgumentNullException("platforms is a required property for EmailFeatureFamilyStatistics and cannot be null"); + } + this.Platforms = platforms; + } + + /// + /// Gets or Sets Platforms + /// + [DataMember(Name = "platforms", IsRequired = true, EmitDefaultValue = true)] + public List Platforms { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailFeatureFamilyStatistics {\n"); + sb.Append(" Feature: ").Append(Feature).Append("\n"); + sb.Append(" Family: ").Append(Family).Append("\n"); + sb.Append(" Platforms: ").Append(Platforms).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailFeatureFamilyStatistics); + } + + /// + /// Returns true if EmailFeatureFamilyStatistics instances are equal + /// + /// Instance of EmailFeatureFamilyStatistics to be compared + /// Boolean + public bool Equals(EmailFeatureFamilyStatistics input) + { + if (input == null) + { + return false; + } + return + ( + this.Feature == input.Feature || + this.Feature.Equals(input.Feature) + ) && + ( + this.Family == input.Family || + this.Family.Equals(input.Family) + ) && + ( + this.Platforms == input.Platforms || + this.Platforms != null && + input.Platforms != null && + this.Platforms.SequenceEqual(input.Platforms) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Feature.GetHashCode(); + hashCode = (hashCode * 59) + this.Family.GetHashCode(); + if (this.Platforms != null) + { + hashCode = (hashCode * 59) + this.Platforms.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailFeatureNames.cs b/src/mailslurp_netstandard_2x/Model/EmailFeatureNames.cs new file mode 100644 index 00000000..9a98fad4 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailFeatureNames.cs @@ -0,0 +1,188 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailFeatureNames + /// + [DataContract(Name = "EmailFeatureNames")] + public partial class EmailFeatureNames : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailFeatureNames() { } + /// + /// Initializes a new instance of the class. + /// + /// family (required). + /// platform (required). + /// category (required). + public EmailFeatureNames(List family = default(List), List platform = default(List), List category = default(List)) + { + // to ensure "family" is required (not null) + if (family == null) + { + throw new ArgumentNullException("family is a required property for EmailFeatureNames and cannot be null"); + } + this.Family = family; + // to ensure "platform" is required (not null) + if (platform == null) + { + throw new ArgumentNullException("platform is a required property for EmailFeatureNames and cannot be null"); + } + this.Platform = platform; + // to ensure "category" is required (not null) + if (category == null) + { + throw new ArgumentNullException("category is a required property for EmailFeatureNames and cannot be null"); + } + this.Category = category; + } + + /// + /// Gets or Sets Family + /// + [DataMember(Name = "family", IsRequired = true, EmitDefaultValue = true)] + public List Family { get; set; } + + /// + /// Gets or Sets Platform + /// + [DataMember(Name = "platform", IsRequired = true, EmitDefaultValue = true)] + public List Platform { get; set; } + + /// + /// Gets or Sets Category + /// + [DataMember(Name = "category", IsRequired = true, EmitDefaultValue = true)] + public List Category { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailFeatureNames {\n"); + sb.Append(" Family: ").Append(Family).Append("\n"); + sb.Append(" Platform: ").Append(Platform).Append("\n"); + sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailFeatureNames); + } + + /// + /// Returns true if EmailFeatureNames instances are equal + /// + /// Instance of EmailFeatureNames to be compared + /// Boolean + public bool Equals(EmailFeatureNames input) + { + if (input == null) + { + return false; + } + return + ( + this.Family == input.Family || + this.Family != null && + input.Family != null && + this.Family.SequenceEqual(input.Family) + ) && + ( + this.Platform == input.Platform || + this.Platform != null && + input.Platform != null && + this.Platform.SequenceEqual(input.Platform) + ) && + ( + this.Category == input.Category || + this.Category != null && + input.Category != null && + this.Category.SequenceEqual(input.Category) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Family != null) + { + hashCode = (hashCode * 59) + this.Family.GetHashCode(); + } + if (this.Platform != null) + { + hashCode = (hashCode * 59) + this.Platform.GetHashCode(); + } + if (this.Category != null) + { + hashCode = (hashCode * 59) + this.Category.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailFeatureOverview.cs b/src/mailslurp_netstandard_2x/Model/EmailFeatureOverview.cs new file mode 100644 index 00000000..af4c8330 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailFeatureOverview.cs @@ -0,0 +1,1412 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailFeatureOverview + /// + [DataContract(Name = "EmailFeatureOverview")] + public partial class EmailFeatureOverview : IEquatable, IValidatableObject + { + /// + /// Defines Feature + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum FeatureEnum + { + /// + /// Enum Amp for value: amp + /// + [EnumMember(Value = "amp")] + Amp = 1, + + /// + /// Enum CssAccentColor for value: css-accent-color + /// + [EnumMember(Value = "css-accent-color")] + CssAccentColor = 2, + + /// + /// Enum CssAlignItems for value: css-align-items + /// + [EnumMember(Value = "css-align-items")] + CssAlignItems = 3, + + /// + /// Enum CssAnimation for value: css-animation + /// + [EnumMember(Value = "css-animation")] + CssAnimation = 4, + + /// + /// Enum CssAspectRatio for value: css-aspect-ratio + /// + [EnumMember(Value = "css-aspect-ratio")] + CssAspectRatio = 5, + + /// + /// Enum CssAtFontFace for value: css-at-font-face + /// + [EnumMember(Value = "css-at-font-face")] + CssAtFontFace = 6, + + /// + /// Enum CssAtImport for value: css-at-import + /// + [EnumMember(Value = "css-at-import")] + CssAtImport = 7, + + /// + /// Enum CssAtKeyframes for value: css-at-keyframes + /// + [EnumMember(Value = "css-at-keyframes")] + CssAtKeyframes = 8, + + /// + /// Enum CssAtMedia for value: css-at-media + /// + [EnumMember(Value = "css-at-media")] + CssAtMedia = 9, + + /// + /// Enum CssAtSupports for value: css-at-supports + /// + [EnumMember(Value = "css-at-supports")] + CssAtSupports = 10, + + /// + /// Enum CssBackgroundBlendMode for value: css-background-blend-mode + /// + [EnumMember(Value = "css-background-blend-mode")] + CssBackgroundBlendMode = 11, + + /// + /// Enum CssBackgroundClip for value: css-background-clip + /// + [EnumMember(Value = "css-background-clip")] + CssBackgroundClip = 12, + + /// + /// Enum CssBackgroundColor for value: css-background-color + /// + [EnumMember(Value = "css-background-color")] + CssBackgroundColor = 13, + + /// + /// Enum CssBackgroundImage for value: css-background-image + /// + [EnumMember(Value = "css-background-image")] + CssBackgroundImage = 14, + + /// + /// Enum CssBackgroundOrigin for value: css-background-origin + /// + [EnumMember(Value = "css-background-origin")] + CssBackgroundOrigin = 15, + + /// + /// Enum CssBackgroundPosition for value: css-background-position + /// + [EnumMember(Value = "css-background-position")] + CssBackgroundPosition = 16, + + /// + /// Enum CssBackgroundRepeat for value: css-background-repeat + /// + [EnumMember(Value = "css-background-repeat")] + CssBackgroundRepeat = 17, + + /// + /// Enum CssBackgroundSize for value: css-background-size + /// + [EnumMember(Value = "css-background-size")] + CssBackgroundSize = 18, + + /// + /// Enum CssBackground for value: css-background + /// + [EnumMember(Value = "css-background")] + CssBackground = 19, + + /// + /// Enum CssBlockInlineSize for value: css-block-inline-size + /// + [EnumMember(Value = "css-block-inline-size")] + CssBlockInlineSize = 20, + + /// + /// Enum CssBorderImage for value: css-border-image + /// + [EnumMember(Value = "css-border-image")] + CssBorderImage = 21, + + /// + /// Enum CssBorderInlineBlockIndividual for value: css-border-inline-block-individual + /// + [EnumMember(Value = "css-border-inline-block-individual")] + CssBorderInlineBlockIndividual = 22, + + /// + /// Enum CssBorderInlineBlockLonghand for value: css-border-inline-block-longhand + /// + [EnumMember(Value = "css-border-inline-block-longhand")] + CssBorderInlineBlockLonghand = 23, + + /// + /// Enum CssBorderInlineBlock for value: css-border-inline-block + /// + [EnumMember(Value = "css-border-inline-block")] + CssBorderInlineBlock = 24, + + /// + /// Enum CssBorderRadiusLogical for value: css-border-radius-logical + /// + [EnumMember(Value = "css-border-radius-logical")] + CssBorderRadiusLogical = 25, + + /// + /// Enum CssBorderRadius for value: css-border-radius + /// + [EnumMember(Value = "css-border-radius")] + CssBorderRadius = 26, + + /// + /// Enum CssBorder for value: css-border + /// + [EnumMember(Value = "css-border")] + CssBorder = 27, + + /// + /// Enum CssBoxShadow for value: css-box-shadow + /// + [EnumMember(Value = "css-box-shadow")] + CssBoxShadow = 28, + + /// + /// Enum CssBoxSizing for value: css-box-sizing + /// + [EnumMember(Value = "css-box-sizing")] + CssBoxSizing = 29, + + /// + /// Enum CssCaptionSide for value: css-caption-side + /// + [EnumMember(Value = "css-caption-side")] + CssCaptionSide = 30, + + /// + /// Enum CssClipPath for value: css-clip-path + /// + [EnumMember(Value = "css-clip-path")] + CssClipPath = 31, + + /// + /// Enum CssColumnCount for value: css-column-count + /// + [EnumMember(Value = "css-column-count")] + CssColumnCount = 32, + + /// + /// Enum CssColumnLayoutProperties for value: css-column-layout-properties + /// + [EnumMember(Value = "css-column-layout-properties")] + CssColumnLayoutProperties = 33, + + /// + /// Enum CssDirection for value: css-direction + /// + [EnumMember(Value = "css-direction")] + CssDirection = 34, + + /// + /// Enum CssDisplayFlex for value: css-display-flex + /// + [EnumMember(Value = "css-display-flex")] + CssDisplayFlex = 35, + + /// + /// Enum CssDisplayGrid for value: css-display-grid + /// + [EnumMember(Value = "css-display-grid")] + CssDisplayGrid = 36, + + /// + /// Enum CssDisplayNone for value: css-display-none + /// + [EnumMember(Value = "css-display-none")] + CssDisplayNone = 37, + + /// + /// Enum CssDisplay for value: css-display + /// + [EnumMember(Value = "css-display")] + CssDisplay = 38, + + /// + /// Enum CssFilter for value: css-filter + /// + [EnumMember(Value = "css-filter")] + CssFilter = 39, + + /// + /// Enum CssFlexDirection for value: css-flex-direction + /// + [EnumMember(Value = "css-flex-direction")] + CssFlexDirection = 40, + + /// + /// Enum CssFlexWrap for value: css-flex-wrap + /// + [EnumMember(Value = "css-flex-wrap")] + CssFlexWrap = 41, + + /// + /// Enum CssFloat for value: css-float + /// + [EnumMember(Value = "css-float")] + CssFloat = 42, + + /// + /// Enum CssFontKerning for value: css-font-kerning + /// + [EnumMember(Value = "css-font-kerning")] + CssFontKerning = 43, + + /// + /// Enum CssFontWeight for value: css-font-weight + /// + [EnumMember(Value = "css-font-weight")] + CssFontWeight = 44, + + /// + /// Enum CssFont for value: css-font + /// + [EnumMember(Value = "css-font")] + CssFont = 45, + + /// + /// Enum CssGap for value: css-gap + /// + [EnumMember(Value = "css-gap")] + CssGap = 46, + + /// + /// Enum CssGridTemplate for value: css-grid-template + /// + [EnumMember(Value = "css-grid-template")] + CssGridTemplate = 47, + + /// + /// Enum CssHeight for value: css-height + /// + [EnumMember(Value = "css-height")] + CssHeight = 48, + + /// + /// Enum CssHyphens for value: css-hyphens + /// + [EnumMember(Value = "css-hyphens")] + CssHyphens = 49, + + /// + /// Enum CssInlineSize for value: css-inline-size + /// + [EnumMember(Value = "css-inline-size")] + CssInlineSize = 50, + + /// + /// Enum CssJustifyContent for value: css-justify-content + /// + [EnumMember(Value = "css-justify-content")] + CssJustifyContent = 51, + + /// + /// Enum CssLeftRightTopBottom for value: css-left-right-top-bottom + /// + [EnumMember(Value = "css-left-right-top-bottom")] + CssLeftRightTopBottom = 52, + + /// + /// Enum CssLetterSpacing for value: css-letter-spacing + /// + [EnumMember(Value = "css-letter-spacing")] + CssLetterSpacing = 53, + + /// + /// Enum CssLineHeight for value: css-line-height + /// + [EnumMember(Value = "css-line-height")] + CssLineHeight = 54, + + /// + /// Enum CssListStyleImage for value: css-list-style-image + /// + [EnumMember(Value = "css-list-style-image")] + CssListStyleImage = 55, + + /// + /// Enum CssListStylePosition for value: css-list-style-position + /// + [EnumMember(Value = "css-list-style-position")] + CssListStylePosition = 56, + + /// + /// Enum CssListStyleType for value: css-list-style-type + /// + [EnumMember(Value = "css-list-style-type")] + CssListStyleType = 57, + + /// + /// Enum CssListStyle for value: css-list-style + /// + [EnumMember(Value = "css-list-style")] + CssListStyle = 58, + + /// + /// Enum CssMarginBlockStartEnd for value: css-margin-block-start-end + /// + [EnumMember(Value = "css-margin-block-start-end")] + CssMarginBlockStartEnd = 59, + + /// + /// Enum CssMarginInlineBlock for value: css-margin-inline-block + /// + [EnumMember(Value = "css-margin-inline-block")] + CssMarginInlineBlock = 60, + + /// + /// Enum CssMarginInlineStartEnd for value: css-margin-inline-start-end + /// + [EnumMember(Value = "css-margin-inline-start-end")] + CssMarginInlineStartEnd = 61, + + /// + /// Enum CssMarginInline for value: css-margin-inline + /// + [EnumMember(Value = "css-margin-inline")] + CssMarginInline = 62, + + /// + /// Enum CssMargin for value: css-margin + /// + [EnumMember(Value = "css-margin")] + CssMargin = 63, + + /// + /// Enum CssMaxBlockSize for value: css-max-block-size + /// + [EnumMember(Value = "css-max-block-size")] + CssMaxBlockSize = 64, + + /// + /// Enum CssMaxHeight for value: css-max-height + /// + [EnumMember(Value = "css-max-height")] + CssMaxHeight = 65, + + /// + /// Enum CssMaxWidth for value: css-max-width + /// + [EnumMember(Value = "css-max-width")] + CssMaxWidth = 66, + + /// + /// Enum CssMinHeight for value: css-min-height + /// + [EnumMember(Value = "css-min-height")] + CssMinHeight = 67, + + /// + /// Enum CssMinInlineSize for value: css-min-inline-size + /// + [EnumMember(Value = "css-min-inline-size")] + CssMinInlineSize = 68, + + /// + /// Enum CssMinWidth for value: css-min-width + /// + [EnumMember(Value = "css-min-width")] + CssMinWidth = 69, + + /// + /// Enum CssMixBlendMode for value: css-mix-blend-mode + /// + [EnumMember(Value = "css-mix-blend-mode")] + CssMixBlendMode = 70, + + /// + /// Enum CssObjectFit for value: css-object-fit + /// + [EnumMember(Value = "css-object-fit")] + CssObjectFit = 71, + + /// + /// Enum CssObjectPosition for value: css-object-position + /// + [EnumMember(Value = "css-object-position")] + CssObjectPosition = 72, + + /// + /// Enum CssOpacity for value: css-opacity + /// + [EnumMember(Value = "css-opacity")] + CssOpacity = 73, + + /// + /// Enum CssOutlineOffset for value: css-outline-offset + /// + [EnumMember(Value = "css-outline-offset")] + CssOutlineOffset = 74, + + /// + /// Enum CssOutline for value: css-outline + /// + [EnumMember(Value = "css-outline")] + CssOutline = 75, + + /// + /// Enum CssOverflowWrap for value: css-overflow-wrap + /// + [EnumMember(Value = "css-overflow-wrap")] + CssOverflowWrap = 76, + + /// + /// Enum CssOverflow for value: css-overflow + /// + [EnumMember(Value = "css-overflow")] + CssOverflow = 77, + + /// + /// Enum CssPaddingBlockStartEnd for value: css-padding-block-start-end + /// + [EnumMember(Value = "css-padding-block-start-end")] + CssPaddingBlockStartEnd = 78, + + /// + /// Enum CssPaddingInlineBlock for value: css-padding-inline-block + /// + [EnumMember(Value = "css-padding-inline-block")] + CssPaddingInlineBlock = 79, + + /// + /// Enum CssPaddingInlineStartEnd for value: css-padding-inline-start-end + /// + [EnumMember(Value = "css-padding-inline-start-end")] + CssPaddingInlineStartEnd = 80, + + /// + /// Enum CssPadding for value: css-padding + /// + [EnumMember(Value = "css-padding")] + CssPadding = 81, + + /// + /// Enum CssPosition for value: css-position + /// + [EnumMember(Value = "css-position")] + CssPosition = 82, + + /// + /// Enum CssTabSize for value: css-tab-size + /// + [EnumMember(Value = "css-tab-size")] + CssTabSize = 83, + + /// + /// Enum CssTableLayout for value: css-table-layout + /// + [EnumMember(Value = "css-table-layout")] + CssTableLayout = 84, + + /// + /// Enum CssTextAlignLast for value: css-text-align-last + /// + [EnumMember(Value = "css-text-align-last")] + CssTextAlignLast = 85, + + /// + /// Enum CssTextAlign for value: css-text-align + /// + [EnumMember(Value = "css-text-align")] + CssTextAlign = 86, + + /// + /// Enum CssTextDecorationColor for value: css-text-decoration-color + /// + [EnumMember(Value = "css-text-decoration-color")] + CssTextDecorationColor = 87, + + /// + /// Enum CssTextDecorationThickness for value: css-text-decoration-thickness + /// + [EnumMember(Value = "css-text-decoration-thickness")] + CssTextDecorationThickness = 88, + + /// + /// Enum CssTextDecoration for value: css-text-decoration + /// + [EnumMember(Value = "css-text-decoration")] + CssTextDecoration = 89, + + /// + /// Enum CssTextEmphasisPosition for value: css-text-emphasis-position + /// + [EnumMember(Value = "css-text-emphasis-position")] + CssTextEmphasisPosition = 90, + + /// + /// Enum CssTextEmphasis for value: css-text-emphasis + /// + [EnumMember(Value = "css-text-emphasis")] + CssTextEmphasis = 91, + + /// + /// Enum CssTextIndent for value: css-text-indent + /// + [EnumMember(Value = "css-text-indent")] + CssTextIndent = 92, + + /// + /// Enum CssTextOverflow for value: css-text-overflow + /// + [EnumMember(Value = "css-text-overflow")] + CssTextOverflow = 93, + + /// + /// Enum CssTextShadow for value: css-text-shadow + /// + [EnumMember(Value = "css-text-shadow")] + CssTextShadow = 94, + + /// + /// Enum CssTextTransform for value: css-text-transform + /// + [EnumMember(Value = "css-text-transform")] + CssTextTransform = 95, + + /// + /// Enum CssTextUnderlineOffset for value: css-text-underline-offset + /// + [EnumMember(Value = "css-text-underline-offset")] + CssTextUnderlineOffset = 96, + + /// + /// Enum CssTransform for value: css-transform + /// + [EnumMember(Value = "css-transform")] + CssTransform = 97, + + /// + /// Enum CssVerticalAlign for value: css-vertical-align + /// + [EnumMember(Value = "css-vertical-align")] + CssVerticalAlign = 98, + + /// + /// Enum CssVisibility for value: css-visibility + /// + [EnumMember(Value = "css-visibility")] + CssVisibility = 99, + + /// + /// Enum CssWhiteSpace for value: css-white-space + /// + [EnumMember(Value = "css-white-space")] + CssWhiteSpace = 100, + + /// + /// Enum CssWidth for value: css-width + /// + [EnumMember(Value = "css-width")] + CssWidth = 101, + + /// + /// Enum CssWordBreak for value: css-word-break + /// + [EnumMember(Value = "css-word-break")] + CssWordBreak = 102, + + /// + /// Enum CssWritingMode for value: css-writing-mode + /// + [EnumMember(Value = "css-writing-mode")] + CssWritingMode = 103, + + /// + /// Enum CssZIndex for value: css-z-index + /// + [EnumMember(Value = "css-z-index")] + CssZIndex = 104, + + /// + /// Enum HtmlAbbr for value: html-abbr + /// + [EnumMember(Value = "html-abbr")] + HtmlAbbr = 105, + + /// + /// Enum HtmlAddress for value: html-address + /// + [EnumMember(Value = "html-address")] + HtmlAddress = 106, + + /// + /// Enum HtmlAlign for value: html-align + /// + [EnumMember(Value = "html-align")] + HtmlAlign = 107, + + /// + /// Enum HtmlAnchorLinks for value: html-anchor-links + /// + [EnumMember(Value = "html-anchor-links")] + HtmlAnchorLinks = 108, + + /// + /// Enum HtmlAriaDescribedby for value: html-aria-describedby + /// + [EnumMember(Value = "html-aria-describedby")] + HtmlAriaDescribedby = 109, + + /// + /// Enum HtmlAriaHidden for value: html-aria-hidden + /// + [EnumMember(Value = "html-aria-hidden")] + HtmlAriaHidden = 110, + + /// + /// Enum HtmlAriaLabel for value: html-aria-label + /// + [EnumMember(Value = "html-aria-label")] + HtmlAriaLabel = 111, + + /// + /// Enum HtmlAriaLabelledby for value: html-aria-labelledby + /// + [EnumMember(Value = "html-aria-labelledby")] + HtmlAriaLabelledby = 112, + + /// + /// Enum HtmlAriaLive for value: html-aria-live + /// + [EnumMember(Value = "html-aria-live")] + HtmlAriaLive = 113, + + /// + /// Enum HtmlAudio for value: html-audio + /// + [EnumMember(Value = "html-audio")] + HtmlAudio = 114, + + /// + /// Enum HtmlBackground for value: html-background + /// + [EnumMember(Value = "html-background")] + HtmlBackground = 115, + + /// + /// Enum HtmlBase for value: html-base + /// + [EnumMember(Value = "html-base")] + HtmlBase = 116, + + /// + /// Enum HtmlBlockquote for value: html-blockquote + /// + [EnumMember(Value = "html-blockquote")] + HtmlBlockquote = 117, + + /// + /// Enum HtmlBody for value: html-body + /// + [EnumMember(Value = "html-body")] + HtmlBody = 118, + + /// + /// Enum HtmlButtonReset for value: html-button-reset + /// + [EnumMember(Value = "html-button-reset")] + HtmlButtonReset = 119, + + /// + /// Enum HtmlButtonSubmit for value: html-button-submit + /// + [EnumMember(Value = "html-button-submit")] + HtmlButtonSubmit = 120, + + /// + /// Enum HtmlCode for value: html-code + /// + [EnumMember(Value = "html-code")] + HtmlCode = 121, + + /// + /// Enum HtmlDel for value: html-del + /// + [EnumMember(Value = "html-del")] + HtmlDel = 122, + + /// + /// Enum HtmlDfn for value: html-dfn + /// + [EnumMember(Value = "html-dfn")] + HtmlDfn = 123, + + /// + /// Enum HtmlDialog for value: html-dialog + /// + [EnumMember(Value = "html-dialog")] + HtmlDialog = 124, + + /// + /// Enum HtmlDir for value: html-dir + /// + [EnumMember(Value = "html-dir")] + HtmlDir = 125, + + /// + /// Enum HtmlDiv for value: html-div + /// + [EnumMember(Value = "html-div")] + HtmlDiv = 126, + + /// + /// Enum HtmlDoctype for value: html-doctype + /// + [EnumMember(Value = "html-doctype")] + HtmlDoctype = 127, + + /// + /// Enum HtmlForm for value: html-form + /// + [EnumMember(Value = "html-form")] + HtmlForm = 128, + + /// + /// Enum HtmlH1H6 for value: html-h1-h6 + /// + [EnumMember(Value = "html-h1-h6")] + HtmlH1H6 = 129, + + /// + /// Enum HtmlHeight for value: html-height + /// + [EnumMember(Value = "html-height")] + HtmlHeight = 130, + + /// + /// Enum HtmlImageMaps for value: html-image-maps + /// + [EnumMember(Value = "html-image-maps")] + HtmlImageMaps = 131, + + /// + /// Enum HtmlInputCheckbox for value: html-input-checkbox + /// + [EnumMember(Value = "html-input-checkbox")] + HtmlInputCheckbox = 132, + + /// + /// Enum HtmlInputHidden for value: html-input-hidden + /// + [EnumMember(Value = "html-input-hidden")] + HtmlInputHidden = 133, + + /// + /// Enum HtmlInputRadio for value: html-input-radio + /// + [EnumMember(Value = "html-input-radio")] + HtmlInputRadio = 134, + + /// + /// Enum HtmlInputReset for value: html-input-reset + /// + [EnumMember(Value = "html-input-reset")] + HtmlInputReset = 135, + + /// + /// Enum HtmlInputSubmit for value: html-input-submit + /// + [EnumMember(Value = "html-input-submit")] + HtmlInputSubmit = 136, + + /// + /// Enum HtmlInputText for value: html-input-text + /// + [EnumMember(Value = "html-input-text")] + HtmlInputText = 137, + + /// + /// Enum HtmlLang for value: html-lang + /// + [EnumMember(Value = "html-lang")] + HtmlLang = 138, + + /// + /// Enum HtmlLink for value: html-link + /// + [EnumMember(Value = "html-link")] + HtmlLink = 139, + + /// + /// Enum HtmlLists for value: html-lists + /// + [EnumMember(Value = "html-lists")] + HtmlLists = 140, + + /// + /// Enum HtmlLoadingAttribute for value: html-loading-attribute + /// + [EnumMember(Value = "html-loading-attribute")] + HtmlLoadingAttribute = 141, + + /// + /// Enum HtmlMailtoLinks for value: html-mailto-links + /// + [EnumMember(Value = "html-mailto-links")] + HtmlMailtoLinks = 142, + + /// + /// Enum HtmlMarquee for value: html-marquee + /// + [EnumMember(Value = "html-marquee")] + HtmlMarquee = 143, + + /// + /// Enum HtmlMeter for value: html-meter + /// + [EnumMember(Value = "html-meter")] + HtmlMeter = 144, + + /// + /// Enum HtmlObject for value: html-object + /// + [EnumMember(Value = "html-object")] + HtmlObject = 145, + + /// + /// Enum HtmlP for value: html-p + /// + [EnumMember(Value = "html-p")] + HtmlP = 146, + + /// + /// Enum HtmlPicture for value: html-picture + /// + [EnumMember(Value = "html-picture")] + HtmlPicture = 147, + + /// + /// Enum HtmlPre for value: html-pre + /// + [EnumMember(Value = "html-pre")] + HtmlPre = 148, + + /// + /// Enum HtmlProgress for value: html-progress + /// + [EnumMember(Value = "html-progress")] + HtmlProgress = 149, + + /// + /// Enum HtmlRequired for value: html-required + /// + [EnumMember(Value = "html-required")] + HtmlRequired = 150, + + /// + /// Enum HtmlRole for value: html-role + /// + [EnumMember(Value = "html-role")] + HtmlRole = 151, + + /// + /// Enum HtmlRp for value: html-rp + /// + [EnumMember(Value = "html-rp")] + HtmlRp = 152, + + /// + /// Enum HtmlRt for value: html-rt + /// + [EnumMember(Value = "html-rt")] + HtmlRt = 153, + + /// + /// Enum HtmlRuby for value: html-ruby + /// + [EnumMember(Value = "html-ruby")] + HtmlRuby = 154, + + /// + /// Enum HtmlSelect for value: html-select + /// + [EnumMember(Value = "html-select")] + HtmlSelect = 155, + + /// + /// Enum HtmlSemantics for value: html-semantics + /// + [EnumMember(Value = "html-semantics")] + HtmlSemantics = 156, + + /// + /// Enum HtmlSmall for value: html-small + /// + [EnumMember(Value = "html-small")] + HtmlSmall = 157, + + /// + /// Enum HtmlSpan for value: html-span + /// + [EnumMember(Value = "html-span")] + HtmlSpan = 158, + + /// + /// Enum HtmlSrcset for value: html-srcset + /// + [EnumMember(Value = "html-srcset")] + HtmlSrcset = 159, + + /// + /// Enum HtmlStrike for value: html-strike + /// + [EnumMember(Value = "html-strike")] + HtmlStrike = 160, + + /// + /// Enum HtmlStrong for value: html-strong + /// + [EnumMember(Value = "html-strong")] + HtmlStrong = 161, + + /// + /// Enum HtmlStyle for value: html-style + /// + [EnumMember(Value = "html-style")] + HtmlStyle = 162, + + /// + /// Enum HtmlSvg for value: html-svg + /// + [EnumMember(Value = "html-svg")] + HtmlSvg = 163, + + /// + /// Enum HtmlTable for value: html-table + /// + [EnumMember(Value = "html-table")] + HtmlTable = 164, + + /// + /// Enum HtmlTarget for value: html-target + /// + [EnumMember(Value = "html-target")] + HtmlTarget = 165, + + /// + /// Enum HtmlTextarea for value: html-textarea + /// + [EnumMember(Value = "html-textarea")] + HtmlTextarea = 166, + + /// + /// Enum HtmlValign for value: html-valign + /// + [EnumMember(Value = "html-valign")] + HtmlValign = 167, + + /// + /// Enum HtmlVideo for value: html-video + /// + [EnumMember(Value = "html-video")] + HtmlVideo = 168, + + /// + /// Enum HtmlWbr for value: html-wbr + /// + [EnumMember(Value = "html-wbr")] + HtmlWbr = 169, + + /// + /// Enum HtmlWidth for value: html-width + /// + [EnumMember(Value = "html-width")] + HtmlWidth = 170, + + /// + /// Enum ImageAvif for value: image-avif + /// + [EnumMember(Value = "image-avif")] + ImageAvif = 171, + + /// + /// Enum ImageBase64 for value: image-base64 + /// + [EnumMember(Value = "image-base64")] + ImageBase64 = 172, + + /// + /// Enum ImageBmp for value: image-bmp + /// + [EnumMember(Value = "image-bmp")] + ImageBmp = 173, + + /// + /// Enum ImageGif for value: image-gif + /// + [EnumMember(Value = "image-gif")] + ImageGif = 174, + + /// + /// Enum ImageIco for value: image-ico + /// + [EnumMember(Value = "image-ico")] + ImageIco = 175, + + /// + /// Enum ImageJpg for value: image-jpg + /// + [EnumMember(Value = "image-jpg")] + ImageJpg = 176, + + /// + /// Enum ImagePng for value: image-png + /// + [EnumMember(Value = "image-png")] + ImagePng = 177, + + /// + /// Enum ImageSvg for value: image-svg + /// + [EnumMember(Value = "image-svg")] + ImageSvg = 178, + + /// + /// Enum ImageWebp for value: image-webp + /// + [EnumMember(Value = "image-webp")] + ImageWebp = 179, + + /// + /// Enum Unsupported for value: unsupported + /// + [EnumMember(Value = "unsupported")] + Unsupported = 180 + + } + + + /// + /// Gets or Sets Feature + /// + [DataMember(Name = "feature", IsRequired = true, EmitDefaultValue = true)] + public FeatureEnum Feature { get; set; } + /// + /// Defines Category + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CategoryEnum + { + /// + /// Enum Css for value: css + /// + [EnumMember(Value = "css")] + Css = 1, + + /// + /// Enum Html for value: html + /// + [EnumMember(Value = "html")] + Html = 2, + + /// + /// Enum Image for value: image + /// + [EnumMember(Value = "image")] + Image = 3, + + /// + /// Enum Others for value: others + /// + [EnumMember(Value = "others")] + Others = 4 + + } + + + /// + /// Gets or Sets Category + /// + [DataMember(Name = "category", EmitDefaultValue = false)] + public CategoryEnum? Category { get; set; } + /// + /// Defines Statuses + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusesEnum + { + /// + /// Enum SUPPORTED for value: SUPPORTED + /// + [EnumMember(Value = "SUPPORTED")] + SUPPORTED = 1, + + /// + /// Enum PARTIAL for value: PARTIAL + /// + [EnumMember(Value = "PARTIAL")] + PARTIAL = 2, + + /// + /// Enum NOTSUPPORTED for value: NOT_SUPPORTED + /// + [EnumMember(Value = "NOT_SUPPORTED")] + NOTSUPPORTED = 3, + + /// + /// Enum UNKNOWN for value: UNKNOWN + /// + [EnumMember(Value = "UNKNOWN")] + UNKNOWN = 4 + + } + + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailFeatureOverview() { } + /// + /// Initializes a new instance of the class. + /// + /// feature (required). + /// title. + /// description. + /// category. + /// notes. + /// notesNumbers. + /// featureStatistics. + /// statuses (required). + public EmailFeatureOverview(FeatureEnum feature = default(FeatureEnum), string title = default(string), string description = default(string), CategoryEnum? category = default(CategoryEnum?), string notes = default(string), Dictionary notesNumbers = default(Dictionary), List featureStatistics = default(List), List statuses = default(List)) + { + this.Feature = feature; + // to ensure "statuses" is required (not null) + if (statuses == null) + { + throw new ArgumentNullException("statuses is a required property for EmailFeatureOverview and cannot be null"); + } + this.Statuses = statuses; + this.Title = title; + this.Description = description; + this.Category = category; + this.Notes = notes; + this.NotesNumbers = notesNumbers; + this.FeatureStatistics = featureStatistics; + } + + /// + /// Gets or Sets Title + /// + [DataMember(Name = "title", EmitDefaultValue = false)] + public string Title { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Notes + /// + [DataMember(Name = "notes", EmitDefaultValue = false)] + public string Notes { get; set; } + + /// + /// Gets or Sets NotesNumbers + /// + [DataMember(Name = "notesNumbers", EmitDefaultValue = false)] + public Dictionary NotesNumbers { get; set; } + + /// + /// Gets or Sets FeatureStatistics + /// + [DataMember(Name = "featureStatistics", EmitDefaultValue = false)] + public List FeatureStatistics { get; set; } + + /// + /// Gets or Sets Statuses + /// + [DataMember(Name = "statuses", IsRequired = true, EmitDefaultValue = true)] + public List Statuses { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailFeatureOverview {\n"); + sb.Append(" Feature: ").Append(Feature).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append(" Notes: ").Append(Notes).Append("\n"); + sb.Append(" NotesNumbers: ").Append(NotesNumbers).Append("\n"); + sb.Append(" FeatureStatistics: ").Append(FeatureStatistics).Append("\n"); + sb.Append(" Statuses: ").Append(Statuses).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailFeatureOverview); + } + + /// + /// Returns true if EmailFeatureOverview instances are equal + /// + /// Instance of EmailFeatureOverview to be compared + /// Boolean + public bool Equals(EmailFeatureOverview input) + { + if (input == null) + { + return false; + } + return + ( + this.Feature == input.Feature || + this.Feature.Equals(input.Feature) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Category == input.Category || + this.Category.Equals(input.Category) + ) && + ( + this.Notes == input.Notes || + (this.Notes != null && + this.Notes.Equals(input.Notes)) + ) && + ( + this.NotesNumbers == input.NotesNumbers || + this.NotesNumbers != null && + input.NotesNumbers != null && + this.NotesNumbers.SequenceEqual(input.NotesNumbers) + ) && + ( + this.FeatureStatistics == input.FeatureStatistics || + this.FeatureStatistics != null && + input.FeatureStatistics != null && + this.FeatureStatistics.SequenceEqual(input.FeatureStatistics) + ) && + ( + this.Statuses == input.Statuses || + this.Statuses != null && + input.Statuses != null && + this.Statuses.SequenceEqual(input.Statuses) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Feature.GetHashCode(); + if (this.Title != null) + { + hashCode = (hashCode * 59) + this.Title.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Category.GetHashCode(); + if (this.Notes != null) + { + hashCode = (hashCode * 59) + this.Notes.GetHashCode(); + } + if (this.NotesNumbers != null) + { + hashCode = (hashCode * 59) + this.NotesNumbers.GetHashCode(); + } + if (this.FeatureStatistics != null) + { + hashCode = (hashCode * 59) + this.FeatureStatistics.GetHashCode(); + } + if (this.Statuses != null) + { + hashCode = (hashCode * 59) + this.Statuses.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailFeaturePlatformName.cs b/src/mailslurp_netstandard_2x/Model/EmailFeaturePlatformName.cs new file mode 100644 index 00000000..74cc50bb --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailFeaturePlatformName.cs @@ -0,0 +1,221 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailFeaturePlatformName + /// + [DataContract(Name = "EmailFeaturePlatformName")] + public partial class EmailFeaturePlatformName : IEquatable, IValidatableObject + { + /// + /// Defines Slug + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SlugEnum + { + /// + /// Enum Android for value: android + /// + [EnumMember(Value = "android")] + Android = 1, + + /// + /// Enum DesktopApp for value: desktop-app + /// + [EnumMember(Value = "desktop-app")] + DesktopApp = 2, + + /// + /// Enum DesktopWebmail for value: desktop-webmail + /// + [EnumMember(Value = "desktop-webmail")] + DesktopWebmail = 3, + + /// + /// Enum Ios for value: ios + /// + [EnumMember(Value = "ios")] + Ios = 4, + + /// + /// Enum Macos for value: macos + /// + [EnumMember(Value = "macos")] + Macos = 5, + + /// + /// Enum MobileWebmail for value: mobile-webmail + /// + [EnumMember(Value = "mobile-webmail")] + MobileWebmail = 6, + + /// + /// Enum OutlookCom for value: outlook-com + /// + [EnumMember(Value = "outlook-com")] + OutlookCom = 7, + + /// + /// Enum Webmail for value: webmail + /// + [EnumMember(Value = "webmail")] + Webmail = 8, + + /// + /// Enum Windows for value: windows + /// + [EnumMember(Value = "windows")] + Windows = 9, + + /// + /// Enum WindowsMail for value: windows-mail + /// + [EnumMember(Value = "windows-mail")] + WindowsMail = 10 + + } + + + /// + /// Gets or Sets Slug + /// + [DataMember(Name = "slug", IsRequired = true, EmitDefaultValue = true)] + public SlugEnum Slug { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailFeaturePlatformName() { } + /// + /// Initializes a new instance of the class. + /// + /// slug (required). + /// name (required). + public EmailFeaturePlatformName(SlugEnum slug = default(SlugEnum), string name = default(string)) + { + this.Slug = slug; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for EmailFeaturePlatformName and cannot be null"); + } + this.Name = name; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailFeaturePlatformName {\n"); + sb.Append(" Slug: ").Append(Slug).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailFeaturePlatformName); + } + + /// + /// Returns true if EmailFeaturePlatformName instances are equal + /// + /// Instance of EmailFeaturePlatformName to be compared + /// Boolean + public bool Equals(EmailFeaturePlatformName input) + { + if (input == null) + { + return false; + } + return + ( + this.Slug == input.Slug || + this.Slug.Equals(input.Slug) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Slug.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailFeaturePlatformStatistics.cs b/src/mailslurp_netstandard_2x/Model/EmailFeaturePlatformStatistics.cs new file mode 100644 index 00000000..96bb13f4 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailFeaturePlatformStatistics.cs @@ -0,0 +1,222 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailFeaturePlatformStatistics + /// + [DataContract(Name = "EmailFeaturePlatformStatistics")] + public partial class EmailFeaturePlatformStatistics : IEquatable, IValidatableObject + { + /// + /// Defines Platform + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PlatformEnum + { + /// + /// Enum Android for value: android + /// + [EnumMember(Value = "android")] + Android = 1, + + /// + /// Enum DesktopApp for value: desktop-app + /// + [EnumMember(Value = "desktop-app")] + DesktopApp = 2, + + /// + /// Enum DesktopWebmail for value: desktop-webmail + /// + [EnumMember(Value = "desktop-webmail")] + DesktopWebmail = 3, + + /// + /// Enum Ios for value: ios + /// + [EnumMember(Value = "ios")] + Ios = 4, + + /// + /// Enum Macos for value: macos + /// + [EnumMember(Value = "macos")] + Macos = 5, + + /// + /// Enum MobileWebmail for value: mobile-webmail + /// + [EnumMember(Value = "mobile-webmail")] + MobileWebmail = 6, + + /// + /// Enum OutlookCom for value: outlook-com + /// + [EnumMember(Value = "outlook-com")] + OutlookCom = 7, + + /// + /// Enum Webmail for value: webmail + /// + [EnumMember(Value = "webmail")] + Webmail = 8, + + /// + /// Enum Windows for value: windows + /// + [EnumMember(Value = "windows")] + Windows = 9, + + /// + /// Enum WindowsMail for value: windows-mail + /// + [EnumMember(Value = "windows-mail")] + WindowsMail = 10 + + } + + + /// + /// Gets or Sets Platform + /// + [DataMember(Name = "platform", IsRequired = true, EmitDefaultValue = true)] + public PlatformEnum Platform { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailFeaturePlatformStatistics() { } + /// + /// Initializes a new instance of the class. + /// + /// platform (required). + /// versions (required). + public EmailFeaturePlatformStatistics(PlatformEnum platform = default(PlatformEnum), List versions = default(List)) + { + this.Platform = platform; + // to ensure "versions" is required (not null) + if (versions == null) + { + throw new ArgumentNullException("versions is a required property for EmailFeaturePlatformStatistics and cannot be null"); + } + this.Versions = versions; + } + + /// + /// Gets or Sets Versions + /// + [DataMember(Name = "versions", IsRequired = true, EmitDefaultValue = true)] + public List Versions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailFeaturePlatformStatistics {\n"); + sb.Append(" Platform: ").Append(Platform).Append("\n"); + sb.Append(" Versions: ").Append(Versions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailFeaturePlatformStatistics); + } + + /// + /// Returns true if EmailFeaturePlatformStatistics instances are equal + /// + /// Instance of EmailFeaturePlatformStatistics to be compared + /// Boolean + public bool Equals(EmailFeaturePlatformStatistics input) + { + if (input == null) + { + return false; + } + return + ( + this.Platform == input.Platform || + this.Platform.Equals(input.Platform) + ) && + ( + this.Versions == input.Versions || + this.Versions != null && + input.Versions != null && + this.Versions.SequenceEqual(input.Versions) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Platform.GetHashCode(); + if (this.Versions != null) + { + hashCode = (hashCode * 59) + this.Versions.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailFeatureSupportFlags.cs b/src/mailslurp_netstandard_2x/Model/EmailFeatureSupportFlags.cs new file mode 100644 index 00000000..8326a240 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailFeatureSupportFlags.cs @@ -0,0 +1,181 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailFeatureSupportFlags + /// + [DataContract(Name = "EmailFeatureSupportFlags")] + public partial class EmailFeatureSupportFlags : IEquatable, IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum SUPPORTED for value: SUPPORTED + /// + [EnumMember(Value = "SUPPORTED")] + SUPPORTED = 1, + + /// + /// Enum PARTIAL for value: PARTIAL + /// + [EnumMember(Value = "PARTIAL")] + PARTIAL = 2, + + /// + /// Enum NOTSUPPORTED for value: NOT_SUPPORTED + /// + [EnumMember(Value = "NOT_SUPPORTED")] + NOTSUPPORTED = 3, + + /// + /// Enum UNKNOWN for value: UNKNOWN + /// + [EnumMember(Value = "UNKNOWN")] + UNKNOWN = 4 + + } + + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public StatusEnum Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailFeatureSupportFlags() { } + /// + /// Initializes a new instance of the class. + /// + /// status (required). + /// notes. + public EmailFeatureSupportFlags(StatusEnum status = default(StatusEnum), List notes = default(List)) + { + this.Status = status; + this.Notes = notes; + } + + /// + /// Gets or Sets Notes + /// + [DataMember(Name = "notes", EmitDefaultValue = false)] + public List Notes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailFeatureSupportFlags {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Notes: ").Append(Notes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailFeatureSupportFlags); + } + + /// + /// Returns true if EmailFeatureSupportFlags instances are equal + /// + /// Instance of EmailFeatureSupportFlags to be compared + /// Boolean + public bool Equals(EmailFeatureSupportFlags input) + { + if (input == null) + { + return false; + } + return + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.Notes == input.Notes || + this.Notes != null && + input.Notes != null && + this.Notes.SequenceEqual(input.Notes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.Notes != null) + { + hashCode = (hashCode * 59) + this.Notes.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailFeatureSupportResult.cs b/src/mailslurp_netstandard_2x/Model/EmailFeatureSupportResult.cs new file mode 100644 index 00000000..91cec877 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailFeatureSupportResult.cs @@ -0,0 +1,1299 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailFeatureSupportResult + /// + [DataContract(Name = "EmailFeatureSupportResult")] + public partial class EmailFeatureSupportResult : IEquatable, IValidatableObject + { + /// + /// Defines DetectedFeatures + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum DetectedFeaturesEnum + { + /// + /// Enum Amp for value: amp + /// + [EnumMember(Value = "amp")] + Amp = 1, + + /// + /// Enum CssAccentColor for value: css-accent-color + /// + [EnumMember(Value = "css-accent-color")] + CssAccentColor = 2, + + /// + /// Enum CssAlignItems for value: css-align-items + /// + [EnumMember(Value = "css-align-items")] + CssAlignItems = 3, + + /// + /// Enum CssAnimation for value: css-animation + /// + [EnumMember(Value = "css-animation")] + CssAnimation = 4, + + /// + /// Enum CssAspectRatio for value: css-aspect-ratio + /// + [EnumMember(Value = "css-aspect-ratio")] + CssAspectRatio = 5, + + /// + /// Enum CssAtFontFace for value: css-at-font-face + /// + [EnumMember(Value = "css-at-font-face")] + CssAtFontFace = 6, + + /// + /// Enum CssAtImport for value: css-at-import + /// + [EnumMember(Value = "css-at-import")] + CssAtImport = 7, + + /// + /// Enum CssAtKeyframes for value: css-at-keyframes + /// + [EnumMember(Value = "css-at-keyframes")] + CssAtKeyframes = 8, + + /// + /// Enum CssAtMedia for value: css-at-media + /// + [EnumMember(Value = "css-at-media")] + CssAtMedia = 9, + + /// + /// Enum CssAtSupports for value: css-at-supports + /// + [EnumMember(Value = "css-at-supports")] + CssAtSupports = 10, + + /// + /// Enum CssBackgroundBlendMode for value: css-background-blend-mode + /// + [EnumMember(Value = "css-background-blend-mode")] + CssBackgroundBlendMode = 11, + + /// + /// Enum CssBackgroundClip for value: css-background-clip + /// + [EnumMember(Value = "css-background-clip")] + CssBackgroundClip = 12, + + /// + /// Enum CssBackgroundColor for value: css-background-color + /// + [EnumMember(Value = "css-background-color")] + CssBackgroundColor = 13, + + /// + /// Enum CssBackgroundImage for value: css-background-image + /// + [EnumMember(Value = "css-background-image")] + CssBackgroundImage = 14, + + /// + /// Enum CssBackgroundOrigin for value: css-background-origin + /// + [EnumMember(Value = "css-background-origin")] + CssBackgroundOrigin = 15, + + /// + /// Enum CssBackgroundPosition for value: css-background-position + /// + [EnumMember(Value = "css-background-position")] + CssBackgroundPosition = 16, + + /// + /// Enum CssBackgroundRepeat for value: css-background-repeat + /// + [EnumMember(Value = "css-background-repeat")] + CssBackgroundRepeat = 17, + + /// + /// Enum CssBackgroundSize for value: css-background-size + /// + [EnumMember(Value = "css-background-size")] + CssBackgroundSize = 18, + + /// + /// Enum CssBackground for value: css-background + /// + [EnumMember(Value = "css-background")] + CssBackground = 19, + + /// + /// Enum CssBlockInlineSize for value: css-block-inline-size + /// + [EnumMember(Value = "css-block-inline-size")] + CssBlockInlineSize = 20, + + /// + /// Enum CssBorderImage for value: css-border-image + /// + [EnumMember(Value = "css-border-image")] + CssBorderImage = 21, + + /// + /// Enum CssBorderInlineBlockIndividual for value: css-border-inline-block-individual + /// + [EnumMember(Value = "css-border-inline-block-individual")] + CssBorderInlineBlockIndividual = 22, + + /// + /// Enum CssBorderInlineBlockLonghand for value: css-border-inline-block-longhand + /// + [EnumMember(Value = "css-border-inline-block-longhand")] + CssBorderInlineBlockLonghand = 23, + + /// + /// Enum CssBorderInlineBlock for value: css-border-inline-block + /// + [EnumMember(Value = "css-border-inline-block")] + CssBorderInlineBlock = 24, + + /// + /// Enum CssBorderRadiusLogical for value: css-border-radius-logical + /// + [EnumMember(Value = "css-border-radius-logical")] + CssBorderRadiusLogical = 25, + + /// + /// Enum CssBorderRadius for value: css-border-radius + /// + [EnumMember(Value = "css-border-radius")] + CssBorderRadius = 26, + + /// + /// Enum CssBorder for value: css-border + /// + [EnumMember(Value = "css-border")] + CssBorder = 27, + + /// + /// Enum CssBoxShadow for value: css-box-shadow + /// + [EnumMember(Value = "css-box-shadow")] + CssBoxShadow = 28, + + /// + /// Enum CssBoxSizing for value: css-box-sizing + /// + [EnumMember(Value = "css-box-sizing")] + CssBoxSizing = 29, + + /// + /// Enum CssCaptionSide for value: css-caption-side + /// + [EnumMember(Value = "css-caption-side")] + CssCaptionSide = 30, + + /// + /// Enum CssClipPath for value: css-clip-path + /// + [EnumMember(Value = "css-clip-path")] + CssClipPath = 31, + + /// + /// Enum CssColumnCount for value: css-column-count + /// + [EnumMember(Value = "css-column-count")] + CssColumnCount = 32, + + /// + /// Enum CssColumnLayoutProperties for value: css-column-layout-properties + /// + [EnumMember(Value = "css-column-layout-properties")] + CssColumnLayoutProperties = 33, + + /// + /// Enum CssDirection for value: css-direction + /// + [EnumMember(Value = "css-direction")] + CssDirection = 34, + + /// + /// Enum CssDisplayFlex for value: css-display-flex + /// + [EnumMember(Value = "css-display-flex")] + CssDisplayFlex = 35, + + /// + /// Enum CssDisplayGrid for value: css-display-grid + /// + [EnumMember(Value = "css-display-grid")] + CssDisplayGrid = 36, + + /// + /// Enum CssDisplayNone for value: css-display-none + /// + [EnumMember(Value = "css-display-none")] + CssDisplayNone = 37, + + /// + /// Enum CssDisplay for value: css-display + /// + [EnumMember(Value = "css-display")] + CssDisplay = 38, + + /// + /// Enum CssFilter for value: css-filter + /// + [EnumMember(Value = "css-filter")] + CssFilter = 39, + + /// + /// Enum CssFlexDirection for value: css-flex-direction + /// + [EnumMember(Value = "css-flex-direction")] + CssFlexDirection = 40, + + /// + /// Enum CssFlexWrap for value: css-flex-wrap + /// + [EnumMember(Value = "css-flex-wrap")] + CssFlexWrap = 41, + + /// + /// Enum CssFloat for value: css-float + /// + [EnumMember(Value = "css-float")] + CssFloat = 42, + + /// + /// Enum CssFontKerning for value: css-font-kerning + /// + [EnumMember(Value = "css-font-kerning")] + CssFontKerning = 43, + + /// + /// Enum CssFontWeight for value: css-font-weight + /// + [EnumMember(Value = "css-font-weight")] + CssFontWeight = 44, + + /// + /// Enum CssFont for value: css-font + /// + [EnumMember(Value = "css-font")] + CssFont = 45, + + /// + /// Enum CssGap for value: css-gap + /// + [EnumMember(Value = "css-gap")] + CssGap = 46, + + /// + /// Enum CssGridTemplate for value: css-grid-template + /// + [EnumMember(Value = "css-grid-template")] + CssGridTemplate = 47, + + /// + /// Enum CssHeight for value: css-height + /// + [EnumMember(Value = "css-height")] + CssHeight = 48, + + /// + /// Enum CssHyphens for value: css-hyphens + /// + [EnumMember(Value = "css-hyphens")] + CssHyphens = 49, + + /// + /// Enum CssInlineSize for value: css-inline-size + /// + [EnumMember(Value = "css-inline-size")] + CssInlineSize = 50, + + /// + /// Enum CssJustifyContent for value: css-justify-content + /// + [EnumMember(Value = "css-justify-content")] + CssJustifyContent = 51, + + /// + /// Enum CssLeftRightTopBottom for value: css-left-right-top-bottom + /// + [EnumMember(Value = "css-left-right-top-bottom")] + CssLeftRightTopBottom = 52, + + /// + /// Enum CssLetterSpacing for value: css-letter-spacing + /// + [EnumMember(Value = "css-letter-spacing")] + CssLetterSpacing = 53, + + /// + /// Enum CssLineHeight for value: css-line-height + /// + [EnumMember(Value = "css-line-height")] + CssLineHeight = 54, + + /// + /// Enum CssListStyleImage for value: css-list-style-image + /// + [EnumMember(Value = "css-list-style-image")] + CssListStyleImage = 55, + + /// + /// Enum CssListStylePosition for value: css-list-style-position + /// + [EnumMember(Value = "css-list-style-position")] + CssListStylePosition = 56, + + /// + /// Enum CssListStyleType for value: css-list-style-type + /// + [EnumMember(Value = "css-list-style-type")] + CssListStyleType = 57, + + /// + /// Enum CssListStyle for value: css-list-style + /// + [EnumMember(Value = "css-list-style")] + CssListStyle = 58, + + /// + /// Enum CssMarginBlockStartEnd for value: css-margin-block-start-end + /// + [EnumMember(Value = "css-margin-block-start-end")] + CssMarginBlockStartEnd = 59, + + /// + /// Enum CssMarginInlineBlock for value: css-margin-inline-block + /// + [EnumMember(Value = "css-margin-inline-block")] + CssMarginInlineBlock = 60, + + /// + /// Enum CssMarginInlineStartEnd for value: css-margin-inline-start-end + /// + [EnumMember(Value = "css-margin-inline-start-end")] + CssMarginInlineStartEnd = 61, + + /// + /// Enum CssMarginInline for value: css-margin-inline + /// + [EnumMember(Value = "css-margin-inline")] + CssMarginInline = 62, + + /// + /// Enum CssMargin for value: css-margin + /// + [EnumMember(Value = "css-margin")] + CssMargin = 63, + + /// + /// Enum CssMaxBlockSize for value: css-max-block-size + /// + [EnumMember(Value = "css-max-block-size")] + CssMaxBlockSize = 64, + + /// + /// Enum CssMaxHeight for value: css-max-height + /// + [EnumMember(Value = "css-max-height")] + CssMaxHeight = 65, + + /// + /// Enum CssMaxWidth for value: css-max-width + /// + [EnumMember(Value = "css-max-width")] + CssMaxWidth = 66, + + /// + /// Enum CssMinHeight for value: css-min-height + /// + [EnumMember(Value = "css-min-height")] + CssMinHeight = 67, + + /// + /// Enum CssMinInlineSize for value: css-min-inline-size + /// + [EnumMember(Value = "css-min-inline-size")] + CssMinInlineSize = 68, + + /// + /// Enum CssMinWidth for value: css-min-width + /// + [EnumMember(Value = "css-min-width")] + CssMinWidth = 69, + + /// + /// Enum CssMixBlendMode for value: css-mix-blend-mode + /// + [EnumMember(Value = "css-mix-blend-mode")] + CssMixBlendMode = 70, + + /// + /// Enum CssObjectFit for value: css-object-fit + /// + [EnumMember(Value = "css-object-fit")] + CssObjectFit = 71, + + /// + /// Enum CssObjectPosition for value: css-object-position + /// + [EnumMember(Value = "css-object-position")] + CssObjectPosition = 72, + + /// + /// Enum CssOpacity for value: css-opacity + /// + [EnumMember(Value = "css-opacity")] + CssOpacity = 73, + + /// + /// Enum CssOutlineOffset for value: css-outline-offset + /// + [EnumMember(Value = "css-outline-offset")] + CssOutlineOffset = 74, + + /// + /// Enum CssOutline for value: css-outline + /// + [EnumMember(Value = "css-outline")] + CssOutline = 75, + + /// + /// Enum CssOverflowWrap for value: css-overflow-wrap + /// + [EnumMember(Value = "css-overflow-wrap")] + CssOverflowWrap = 76, + + /// + /// Enum CssOverflow for value: css-overflow + /// + [EnumMember(Value = "css-overflow")] + CssOverflow = 77, + + /// + /// Enum CssPaddingBlockStartEnd for value: css-padding-block-start-end + /// + [EnumMember(Value = "css-padding-block-start-end")] + CssPaddingBlockStartEnd = 78, + + /// + /// Enum CssPaddingInlineBlock for value: css-padding-inline-block + /// + [EnumMember(Value = "css-padding-inline-block")] + CssPaddingInlineBlock = 79, + + /// + /// Enum CssPaddingInlineStartEnd for value: css-padding-inline-start-end + /// + [EnumMember(Value = "css-padding-inline-start-end")] + CssPaddingInlineStartEnd = 80, + + /// + /// Enum CssPadding for value: css-padding + /// + [EnumMember(Value = "css-padding")] + CssPadding = 81, + + /// + /// Enum CssPosition for value: css-position + /// + [EnumMember(Value = "css-position")] + CssPosition = 82, + + /// + /// Enum CssTabSize for value: css-tab-size + /// + [EnumMember(Value = "css-tab-size")] + CssTabSize = 83, + + /// + /// Enum CssTableLayout for value: css-table-layout + /// + [EnumMember(Value = "css-table-layout")] + CssTableLayout = 84, + + /// + /// Enum CssTextAlignLast for value: css-text-align-last + /// + [EnumMember(Value = "css-text-align-last")] + CssTextAlignLast = 85, + + /// + /// Enum CssTextAlign for value: css-text-align + /// + [EnumMember(Value = "css-text-align")] + CssTextAlign = 86, + + /// + /// Enum CssTextDecorationColor for value: css-text-decoration-color + /// + [EnumMember(Value = "css-text-decoration-color")] + CssTextDecorationColor = 87, + + /// + /// Enum CssTextDecorationThickness for value: css-text-decoration-thickness + /// + [EnumMember(Value = "css-text-decoration-thickness")] + CssTextDecorationThickness = 88, + + /// + /// Enum CssTextDecoration for value: css-text-decoration + /// + [EnumMember(Value = "css-text-decoration")] + CssTextDecoration = 89, + + /// + /// Enum CssTextEmphasisPosition for value: css-text-emphasis-position + /// + [EnumMember(Value = "css-text-emphasis-position")] + CssTextEmphasisPosition = 90, + + /// + /// Enum CssTextEmphasis for value: css-text-emphasis + /// + [EnumMember(Value = "css-text-emphasis")] + CssTextEmphasis = 91, + + /// + /// Enum CssTextIndent for value: css-text-indent + /// + [EnumMember(Value = "css-text-indent")] + CssTextIndent = 92, + + /// + /// Enum CssTextOverflow for value: css-text-overflow + /// + [EnumMember(Value = "css-text-overflow")] + CssTextOverflow = 93, + + /// + /// Enum CssTextShadow for value: css-text-shadow + /// + [EnumMember(Value = "css-text-shadow")] + CssTextShadow = 94, + + /// + /// Enum CssTextTransform for value: css-text-transform + /// + [EnumMember(Value = "css-text-transform")] + CssTextTransform = 95, + + /// + /// Enum CssTextUnderlineOffset for value: css-text-underline-offset + /// + [EnumMember(Value = "css-text-underline-offset")] + CssTextUnderlineOffset = 96, + + /// + /// Enum CssTransform for value: css-transform + /// + [EnumMember(Value = "css-transform")] + CssTransform = 97, + + /// + /// Enum CssVerticalAlign for value: css-vertical-align + /// + [EnumMember(Value = "css-vertical-align")] + CssVerticalAlign = 98, + + /// + /// Enum CssVisibility for value: css-visibility + /// + [EnumMember(Value = "css-visibility")] + CssVisibility = 99, + + /// + /// Enum CssWhiteSpace for value: css-white-space + /// + [EnumMember(Value = "css-white-space")] + CssWhiteSpace = 100, + + /// + /// Enum CssWidth for value: css-width + /// + [EnumMember(Value = "css-width")] + CssWidth = 101, + + /// + /// Enum CssWordBreak for value: css-word-break + /// + [EnumMember(Value = "css-word-break")] + CssWordBreak = 102, + + /// + /// Enum CssWritingMode for value: css-writing-mode + /// + [EnumMember(Value = "css-writing-mode")] + CssWritingMode = 103, + + /// + /// Enum CssZIndex for value: css-z-index + /// + [EnumMember(Value = "css-z-index")] + CssZIndex = 104, + + /// + /// Enum HtmlAbbr for value: html-abbr + /// + [EnumMember(Value = "html-abbr")] + HtmlAbbr = 105, + + /// + /// Enum HtmlAddress for value: html-address + /// + [EnumMember(Value = "html-address")] + HtmlAddress = 106, + + /// + /// Enum HtmlAlign for value: html-align + /// + [EnumMember(Value = "html-align")] + HtmlAlign = 107, + + /// + /// Enum HtmlAnchorLinks for value: html-anchor-links + /// + [EnumMember(Value = "html-anchor-links")] + HtmlAnchorLinks = 108, + + /// + /// Enum HtmlAriaDescribedby for value: html-aria-describedby + /// + [EnumMember(Value = "html-aria-describedby")] + HtmlAriaDescribedby = 109, + + /// + /// Enum HtmlAriaHidden for value: html-aria-hidden + /// + [EnumMember(Value = "html-aria-hidden")] + HtmlAriaHidden = 110, + + /// + /// Enum HtmlAriaLabel for value: html-aria-label + /// + [EnumMember(Value = "html-aria-label")] + HtmlAriaLabel = 111, + + /// + /// Enum HtmlAriaLabelledby for value: html-aria-labelledby + /// + [EnumMember(Value = "html-aria-labelledby")] + HtmlAriaLabelledby = 112, + + /// + /// Enum HtmlAriaLive for value: html-aria-live + /// + [EnumMember(Value = "html-aria-live")] + HtmlAriaLive = 113, + + /// + /// Enum HtmlAudio for value: html-audio + /// + [EnumMember(Value = "html-audio")] + HtmlAudio = 114, + + /// + /// Enum HtmlBackground for value: html-background + /// + [EnumMember(Value = "html-background")] + HtmlBackground = 115, + + /// + /// Enum HtmlBase for value: html-base + /// + [EnumMember(Value = "html-base")] + HtmlBase = 116, + + /// + /// Enum HtmlBlockquote for value: html-blockquote + /// + [EnumMember(Value = "html-blockquote")] + HtmlBlockquote = 117, + + /// + /// Enum HtmlBody for value: html-body + /// + [EnumMember(Value = "html-body")] + HtmlBody = 118, + + /// + /// Enum HtmlButtonReset for value: html-button-reset + /// + [EnumMember(Value = "html-button-reset")] + HtmlButtonReset = 119, + + /// + /// Enum HtmlButtonSubmit for value: html-button-submit + /// + [EnumMember(Value = "html-button-submit")] + HtmlButtonSubmit = 120, + + /// + /// Enum HtmlCode for value: html-code + /// + [EnumMember(Value = "html-code")] + HtmlCode = 121, + + /// + /// Enum HtmlDel for value: html-del + /// + [EnumMember(Value = "html-del")] + HtmlDel = 122, + + /// + /// Enum HtmlDfn for value: html-dfn + /// + [EnumMember(Value = "html-dfn")] + HtmlDfn = 123, + + /// + /// Enum HtmlDialog for value: html-dialog + /// + [EnumMember(Value = "html-dialog")] + HtmlDialog = 124, + + /// + /// Enum HtmlDir for value: html-dir + /// + [EnumMember(Value = "html-dir")] + HtmlDir = 125, + + /// + /// Enum HtmlDiv for value: html-div + /// + [EnumMember(Value = "html-div")] + HtmlDiv = 126, + + /// + /// Enum HtmlDoctype for value: html-doctype + /// + [EnumMember(Value = "html-doctype")] + HtmlDoctype = 127, + + /// + /// Enum HtmlForm for value: html-form + /// + [EnumMember(Value = "html-form")] + HtmlForm = 128, + + /// + /// Enum HtmlH1H6 for value: html-h1-h6 + /// + [EnumMember(Value = "html-h1-h6")] + HtmlH1H6 = 129, + + /// + /// Enum HtmlHeight for value: html-height + /// + [EnumMember(Value = "html-height")] + HtmlHeight = 130, + + /// + /// Enum HtmlImageMaps for value: html-image-maps + /// + [EnumMember(Value = "html-image-maps")] + HtmlImageMaps = 131, + + /// + /// Enum HtmlInputCheckbox for value: html-input-checkbox + /// + [EnumMember(Value = "html-input-checkbox")] + HtmlInputCheckbox = 132, + + /// + /// Enum HtmlInputHidden for value: html-input-hidden + /// + [EnumMember(Value = "html-input-hidden")] + HtmlInputHidden = 133, + + /// + /// Enum HtmlInputRadio for value: html-input-radio + /// + [EnumMember(Value = "html-input-radio")] + HtmlInputRadio = 134, + + /// + /// Enum HtmlInputReset for value: html-input-reset + /// + [EnumMember(Value = "html-input-reset")] + HtmlInputReset = 135, + + /// + /// Enum HtmlInputSubmit for value: html-input-submit + /// + [EnumMember(Value = "html-input-submit")] + HtmlInputSubmit = 136, + + /// + /// Enum HtmlInputText for value: html-input-text + /// + [EnumMember(Value = "html-input-text")] + HtmlInputText = 137, + + /// + /// Enum HtmlLang for value: html-lang + /// + [EnumMember(Value = "html-lang")] + HtmlLang = 138, + + /// + /// Enum HtmlLink for value: html-link + /// + [EnumMember(Value = "html-link")] + HtmlLink = 139, + + /// + /// Enum HtmlLists for value: html-lists + /// + [EnumMember(Value = "html-lists")] + HtmlLists = 140, + + /// + /// Enum HtmlLoadingAttribute for value: html-loading-attribute + /// + [EnumMember(Value = "html-loading-attribute")] + HtmlLoadingAttribute = 141, + + /// + /// Enum HtmlMailtoLinks for value: html-mailto-links + /// + [EnumMember(Value = "html-mailto-links")] + HtmlMailtoLinks = 142, + + /// + /// Enum HtmlMarquee for value: html-marquee + /// + [EnumMember(Value = "html-marquee")] + HtmlMarquee = 143, + + /// + /// Enum HtmlMeter for value: html-meter + /// + [EnumMember(Value = "html-meter")] + HtmlMeter = 144, + + /// + /// Enum HtmlObject for value: html-object + /// + [EnumMember(Value = "html-object")] + HtmlObject = 145, + + /// + /// Enum HtmlP for value: html-p + /// + [EnumMember(Value = "html-p")] + HtmlP = 146, + + /// + /// Enum HtmlPicture for value: html-picture + /// + [EnumMember(Value = "html-picture")] + HtmlPicture = 147, + + /// + /// Enum HtmlPre for value: html-pre + /// + [EnumMember(Value = "html-pre")] + HtmlPre = 148, + + /// + /// Enum HtmlProgress for value: html-progress + /// + [EnumMember(Value = "html-progress")] + HtmlProgress = 149, + + /// + /// Enum HtmlRequired for value: html-required + /// + [EnumMember(Value = "html-required")] + HtmlRequired = 150, + + /// + /// Enum HtmlRole for value: html-role + /// + [EnumMember(Value = "html-role")] + HtmlRole = 151, + + /// + /// Enum HtmlRp for value: html-rp + /// + [EnumMember(Value = "html-rp")] + HtmlRp = 152, + + /// + /// Enum HtmlRt for value: html-rt + /// + [EnumMember(Value = "html-rt")] + HtmlRt = 153, + + /// + /// Enum HtmlRuby for value: html-ruby + /// + [EnumMember(Value = "html-ruby")] + HtmlRuby = 154, + + /// + /// Enum HtmlSelect for value: html-select + /// + [EnumMember(Value = "html-select")] + HtmlSelect = 155, + + /// + /// Enum HtmlSemantics for value: html-semantics + /// + [EnumMember(Value = "html-semantics")] + HtmlSemantics = 156, + + /// + /// Enum HtmlSmall for value: html-small + /// + [EnumMember(Value = "html-small")] + HtmlSmall = 157, + + /// + /// Enum HtmlSpan for value: html-span + /// + [EnumMember(Value = "html-span")] + HtmlSpan = 158, + + /// + /// Enum HtmlSrcset for value: html-srcset + /// + [EnumMember(Value = "html-srcset")] + HtmlSrcset = 159, + + /// + /// Enum HtmlStrike for value: html-strike + /// + [EnumMember(Value = "html-strike")] + HtmlStrike = 160, + + /// + /// Enum HtmlStrong for value: html-strong + /// + [EnumMember(Value = "html-strong")] + HtmlStrong = 161, + + /// + /// Enum HtmlStyle for value: html-style + /// + [EnumMember(Value = "html-style")] + HtmlStyle = 162, + + /// + /// Enum HtmlSvg for value: html-svg + /// + [EnumMember(Value = "html-svg")] + HtmlSvg = 163, + + /// + /// Enum HtmlTable for value: html-table + /// + [EnumMember(Value = "html-table")] + HtmlTable = 164, + + /// + /// Enum HtmlTarget for value: html-target + /// + [EnumMember(Value = "html-target")] + HtmlTarget = 165, + + /// + /// Enum HtmlTextarea for value: html-textarea + /// + [EnumMember(Value = "html-textarea")] + HtmlTextarea = 166, + + /// + /// Enum HtmlValign for value: html-valign + /// + [EnumMember(Value = "html-valign")] + HtmlValign = 167, + + /// + /// Enum HtmlVideo for value: html-video + /// + [EnumMember(Value = "html-video")] + HtmlVideo = 168, + + /// + /// Enum HtmlWbr for value: html-wbr + /// + [EnumMember(Value = "html-wbr")] + HtmlWbr = 169, + + /// + /// Enum HtmlWidth for value: html-width + /// + [EnumMember(Value = "html-width")] + HtmlWidth = 170, + + /// + /// Enum ImageAvif for value: image-avif + /// + [EnumMember(Value = "image-avif")] + ImageAvif = 171, + + /// + /// Enum ImageBase64 for value: image-base64 + /// + [EnumMember(Value = "image-base64")] + ImageBase64 = 172, + + /// + /// Enum ImageBmp for value: image-bmp + /// + [EnumMember(Value = "image-bmp")] + ImageBmp = 173, + + /// + /// Enum ImageGif for value: image-gif + /// + [EnumMember(Value = "image-gif")] + ImageGif = 174, + + /// + /// Enum ImageIco for value: image-ico + /// + [EnumMember(Value = "image-ico")] + ImageIco = 175, + + /// + /// Enum ImageJpg for value: image-jpg + /// + [EnumMember(Value = "image-jpg")] + ImageJpg = 176, + + /// + /// Enum ImagePng for value: image-png + /// + [EnumMember(Value = "image-png")] + ImagePng = 177, + + /// + /// Enum ImageSvg for value: image-svg + /// + [EnumMember(Value = "image-svg")] + ImageSvg = 178, + + /// + /// Enum ImageWebp for value: image-webp + /// + [EnumMember(Value = "image-webp")] + ImageWebp = 179, + + /// + /// Enum Unsupported for value: unsupported + /// + [EnumMember(Value = "unsupported")] + Unsupported = 180 + + } + + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailFeatureSupportResult() { } + /// + /// Initializes a new instance of the class. + /// + /// names (required). + /// detectedFeatures (required). + /// featureOverviews (required). + /// featurePercentages (required). + public EmailFeatureSupportResult(EmailFeatureNames names = default(EmailFeatureNames), List detectedFeatures = default(List), List featureOverviews = default(List), List featurePercentages = default(List)) + { + // to ensure "names" is required (not null) + if (names == null) + { + throw new ArgumentNullException("names is a required property for EmailFeatureSupportResult and cannot be null"); + } + this.Names = names; + // to ensure "detectedFeatures" is required (not null) + if (detectedFeatures == null) + { + throw new ArgumentNullException("detectedFeatures is a required property for EmailFeatureSupportResult and cannot be null"); + } + this.DetectedFeatures = detectedFeatures; + // to ensure "featureOverviews" is required (not null) + if (featureOverviews == null) + { + throw new ArgumentNullException("featureOverviews is a required property for EmailFeatureSupportResult and cannot be null"); + } + this.FeatureOverviews = featureOverviews; + // to ensure "featurePercentages" is required (not null) + if (featurePercentages == null) + { + throw new ArgumentNullException("featurePercentages is a required property for EmailFeatureSupportResult and cannot be null"); + } + this.FeaturePercentages = featurePercentages; + } + + /// + /// Gets or Sets Names + /// + [DataMember(Name = "names", IsRequired = true, EmitDefaultValue = true)] + public EmailFeatureNames Names { get; set; } + + /// + /// Gets or Sets DetectedFeatures + /// + [DataMember(Name = "detectedFeatures", IsRequired = true, EmitDefaultValue = true)] + public List DetectedFeatures { get; set; } + + /// + /// Gets or Sets FeatureOverviews + /// + [DataMember(Name = "featureOverviews", IsRequired = true, EmitDefaultValue = true)] + public List FeatureOverviews { get; set; } + + /// + /// Gets or Sets FeaturePercentages + /// + [DataMember(Name = "featurePercentages", IsRequired = true, EmitDefaultValue = true)] + public List FeaturePercentages { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailFeatureSupportResult {\n"); + sb.Append(" Names: ").Append(Names).Append("\n"); + sb.Append(" DetectedFeatures: ").Append(DetectedFeatures).Append("\n"); + sb.Append(" FeatureOverviews: ").Append(FeatureOverviews).Append("\n"); + sb.Append(" FeaturePercentages: ").Append(FeaturePercentages).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailFeatureSupportResult); + } + + /// + /// Returns true if EmailFeatureSupportResult instances are equal + /// + /// Instance of EmailFeatureSupportResult to be compared + /// Boolean + public bool Equals(EmailFeatureSupportResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Names == input.Names || + (this.Names != null && + this.Names.Equals(input.Names)) + ) && + ( + this.DetectedFeatures == input.DetectedFeatures || + this.DetectedFeatures != null && + input.DetectedFeatures != null && + this.DetectedFeatures.SequenceEqual(input.DetectedFeatures) + ) && + ( + this.FeatureOverviews == input.FeatureOverviews || + this.FeatureOverviews != null && + input.FeatureOverviews != null && + this.FeatureOverviews.SequenceEqual(input.FeatureOverviews) + ) && + ( + this.FeaturePercentages == input.FeaturePercentages || + this.FeaturePercentages != null && + input.FeaturePercentages != null && + this.FeaturePercentages.SequenceEqual(input.FeaturePercentages) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Names != null) + { + hashCode = (hashCode * 59) + this.Names.GetHashCode(); + } + if (this.DetectedFeatures != null) + { + hashCode = (hashCode * 59) + this.DetectedFeatures.GetHashCode(); + } + if (this.FeatureOverviews != null) + { + hashCode = (hashCode * 59) + this.FeatureOverviews.GetHashCode(); + } + if (this.FeaturePercentages != null) + { + hashCode = (hashCode * 59) + this.FeaturePercentages.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailFeatureSupportStatusPercentage.cs b/src/mailslurp_netstandard_2x/Model/EmailFeatureSupportStatusPercentage.cs new file mode 100644 index 00000000..a6e08ded --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailFeatureSupportStatusPercentage.cs @@ -0,0 +1,176 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailFeatureSupportStatusPercentage + /// + [DataContract(Name = "EmailFeatureSupportStatusPercentage")] + public partial class EmailFeatureSupportStatusPercentage : IEquatable, IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum SUPPORTED for value: SUPPORTED + /// + [EnumMember(Value = "SUPPORTED")] + SUPPORTED = 1, + + /// + /// Enum PARTIAL for value: PARTIAL + /// + [EnumMember(Value = "PARTIAL")] + PARTIAL = 2, + + /// + /// Enum NOTSUPPORTED for value: NOT_SUPPORTED + /// + [EnumMember(Value = "NOT_SUPPORTED")] + NOTSUPPORTED = 3, + + /// + /// Enum UNKNOWN for value: UNKNOWN + /// + [EnumMember(Value = "UNKNOWN")] + UNKNOWN = 4 + + } + + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public StatusEnum Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailFeatureSupportStatusPercentage() { } + /// + /// Initializes a new instance of the class. + /// + /// status (required). + /// percentage (required). + public EmailFeatureSupportStatusPercentage(StatusEnum status = default(StatusEnum), float percentage = default(float)) + { + this.Status = status; + this.Percentage = percentage; + } + + /// + /// Gets or Sets Percentage + /// + [DataMember(Name = "percentage", IsRequired = true, EmitDefaultValue = true)] + public float Percentage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailFeatureSupportStatusPercentage {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Percentage: ").Append(Percentage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailFeatureSupportStatusPercentage); + } + + /// + /// Returns true if EmailFeatureSupportStatusPercentage instances are equal + /// + /// Instance of EmailFeatureSupportStatusPercentage to be compared + /// Boolean + public bool Equals(EmailFeatureSupportStatusPercentage input) + { + if (input == null) + { + return false; + } + return + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.Percentage == input.Percentage || + this.Percentage.Equals(input.Percentage) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + hashCode = (hashCode * 59) + this.Percentage.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailFeatureVersionStatistics.cs b/src/mailslurp_netstandard_2x/Model/EmailFeatureVersionStatistics.cs new file mode 100644 index 00000000..29bce325 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailFeatureVersionStatistics.cs @@ -0,0 +1,162 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailFeatureVersionStatistics + /// + [DataContract(Name = "EmailFeatureVersionStatistics")] + public partial class EmailFeatureVersionStatistics : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailFeatureVersionStatistics() { } + /// + /// Initializes a new instance of the class. + /// + /// version (required). + /// supportFlags (required). + public EmailFeatureVersionStatistics(string version = default(string), EmailFeatureSupportFlags supportFlags = default(EmailFeatureSupportFlags)) + { + // to ensure "version" is required (not null) + if (version == null) + { + throw new ArgumentNullException("version is a required property for EmailFeatureVersionStatistics and cannot be null"); + } + this._Version = version; + // to ensure "supportFlags" is required (not null) + if (supportFlags == null) + { + throw new ArgumentNullException("supportFlags is a required property for EmailFeatureVersionStatistics and cannot be null"); + } + this.SupportFlags = supportFlags; + } + + /// + /// Gets or Sets _Version + /// + [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)] + public string _Version { get; set; } + + /// + /// Gets or Sets SupportFlags + /// + [DataMember(Name = "supportFlags", IsRequired = true, EmitDefaultValue = true)] + public EmailFeatureSupportFlags SupportFlags { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailFeatureVersionStatistics {\n"); + sb.Append(" _Version: ").Append(_Version).Append("\n"); + sb.Append(" SupportFlags: ").Append(SupportFlags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailFeatureVersionStatistics); + } + + /// + /// Returns true if EmailFeatureVersionStatistics instances are equal + /// + /// Instance of EmailFeatureVersionStatistics to be compared + /// Boolean + public bool Equals(EmailFeatureVersionStatistics input) + { + if (input == null) + { + return false; + } + return + ( + this._Version == input._Version || + (this._Version != null && + this._Version.Equals(input._Version)) + ) && + ( + this.SupportFlags == input.SupportFlags || + (this.SupportFlags != null && + this.SupportFlags.Equals(input.SupportFlags)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this._Version != null) + { + hashCode = (hashCode * 59) + this._Version.GetHashCode(); + } + if (this.SupportFlags != null) + { + hashCode = (hashCode * 59) + this.SupportFlags.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailHtmlDto.cs b/src/mailslurp_netstandard_2x/Model/EmailHtmlDto.cs new file mode 100644 index 00000000..4bad7954 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailHtmlDto.cs @@ -0,0 +1,147 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailHtmlDto + /// + [DataContract(Name = "EmailHtmlDto")] + public partial class EmailHtmlDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// subject. + /// body. + public EmailHtmlDto(string subject = default(string), string body = default(string)) + { + this.Subject = subject; + this.Body = body; + } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = false)] + public string Subject { get; set; } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", EmitDefaultValue = false)] + public string Body { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailHtmlDto {\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailHtmlDto); + } + + /// + /// Returns true if EmailHtmlDto instances are equal + /// + /// Instance of EmailHtmlDto to be compared + /// Boolean + public bool Equals(EmailHtmlDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailLinksResult.cs b/src/mailslurp_netstandard_2x/Model/EmailLinksResult.cs new file mode 100644 index 00000000..77242f50 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailLinksResult.cs @@ -0,0 +1,163 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Links found in HTML + /// + [DataContract(Name = "EmailLinksResult")] + public partial class EmailLinksResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailLinksResult() { } + /// + /// Initializes a new instance of the class. + /// + /// links (required). + /// body (required). + public EmailLinksResult(List links = default(List), string body = default(string)) + { + // to ensure "links" is required (not null) + if (links == null) + { + throw new ArgumentNullException("links is a required property for EmailLinksResult and cannot be null"); + } + this.Links = links; + // to ensure "body" is required (not null) + if (body == null) + { + throw new ArgumentNullException("body is a required property for EmailLinksResult and cannot be null"); + } + this.Body = body; + } + + /// + /// Gets or Sets Links + /// + [DataMember(Name = "links", IsRequired = true, EmitDefaultValue = true)] + public List Links { get; set; } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailLinksResult {\n"); + sb.Append(" Links: ").Append(Links).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailLinksResult); + } + + /// + /// Returns true if EmailLinksResult instances are equal + /// + /// Instance of EmailLinksResult to be compared + /// Boolean + public bool Equals(EmailLinksResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Links == input.Links || + this.Links != null && + input.Links != null && + this.Links.SequenceEqual(input.Links) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Links != null) + { + hashCode = (hashCode * 59) + this.Links.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailPreview.cs b/src/mailslurp_netstandard_2x/Model/EmailPreview.cs new file mode 100644 index 00000000..fd1ad789 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailPreview.cs @@ -0,0 +1,311 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Preview of an email message. For full message (including body and attachments) call the `getEmail` or other email endpoints with the provided email ID. + /// + [DataContract(Name = "EmailPreview")] + public partial class EmailPreview : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailPreview() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of the email entity (required). + /// ID of the domain that received the email. + /// The subject line of the email message as specified by SMTP subject header. + /// List of `To` recipient email addresses that the email was addressed to. See recipients object for names. (required). + /// Who the email was sent from. An email address - see fromName for the sender name.. + /// List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names.. + /// List of `CC` recipients email addresses that the email was addressed to. See recipients object for names.. + /// When was the email received by MailSlurp (required). + /// Read flag. Has the email ever been viewed in the dashboard or fetched via the API with a hydrated body? If so the email is marked as read. Paginated results do not affect read status. Read status is different to email opened event as it depends on your own account accessing the email. Email opened is determined by tracking pixels sent to other uses if enable during sending. You can listened for both email read and email opened events using webhooks. (required). + /// List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension.. + public EmailPreview(Guid id = default(Guid), Guid? domainId = default(Guid?), string subject = default(string), List to = default(List), string from = default(string), List bcc = default(List), List cc = default(List), DateTime createdAt = default(DateTime), bool read = default(bool), List attachments = default(List)) + { + this.Id = id; + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for EmailPreview and cannot be null"); + } + this.To = to; + this.CreatedAt = createdAt; + this.Read = read; + this.DomainId = domainId; + this.Subject = subject; + this.From = from; + this.Bcc = bcc; + this.Cc = cc; + this.Attachments = attachments; + } + + /// + /// ID of the email entity + /// + /// ID of the email entity + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// ID of the domain that received the email + /// + /// ID of the domain that received the email + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// The subject line of the email message as specified by SMTP subject header + /// + /// The subject line of the email message as specified by SMTP subject header + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// List of `To` recipient email addresses that the email was addressed to. See recipients object for names. + /// + /// List of `To` recipient email addresses that the email was addressed to. See recipients object for names. + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public List To { get; set; } + + /// + /// Who the email was sent from. An email address - see fromName for the sender name. + /// + /// Who the email was sent from. An email address - see fromName for the sender name. + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names. + /// + /// List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names. + [DataMember(Name = "bcc", EmitDefaultValue = true)] + public List Bcc { get; set; } + + /// + /// List of `CC` recipients email addresses that the email was addressed to. See recipients object for names. + /// + /// List of `CC` recipients email addresses that the email was addressed to. See recipients object for names. + [DataMember(Name = "cc", EmitDefaultValue = true)] + public List Cc { get; set; } + + /// + /// When was the email received by MailSlurp + /// + /// When was the email received by MailSlurp + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Read flag. Has the email ever been viewed in the dashboard or fetched via the API with a hydrated body? If so the email is marked as read. Paginated results do not affect read status. Read status is different to email opened event as it depends on your own account accessing the email. Email opened is determined by tracking pixels sent to other uses if enable during sending. You can listened for both email read and email opened events using webhooks. + /// + /// Read flag. Has the email ever been viewed in the dashboard or fetched via the API with a hydrated body? If so the email is marked as read. Paginated results do not affect read status. Read status is different to email opened event as it depends on your own account accessing the email. Email opened is determined by tracking pixels sent to other uses if enable during sending. You can listened for both email read and email opened events using webhooks. + [DataMember(Name = "read", IsRequired = true, EmitDefaultValue = true)] + public bool Read { get; set; } + + /// + /// List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension. + /// + /// List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension. + [DataMember(Name = "attachments", EmitDefaultValue = true)] + public List Attachments { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailPreview {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Bcc: ").Append(Bcc).Append("\n"); + sb.Append(" Cc: ").Append(Cc).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Read: ").Append(Read).Append("\n"); + sb.Append(" Attachments: ").Append(Attachments).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailPreview); + } + + /// + /// Returns true if EmailPreview instances are equal + /// + /// Instance of EmailPreview to be compared + /// Boolean + public bool Equals(EmailPreview input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.Bcc == input.Bcc || + this.Bcc != null && + input.Bcc != null && + this.Bcc.SequenceEqual(input.Bcc) + ) && + ( + this.Cc == input.Cc || + this.Cc != null && + input.Cc != null && + this.Cc.SequenceEqual(input.Cc) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Read == input.Read || + this.Read.Equals(input.Read) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.Bcc != null) + { + hashCode = (hashCode * 59) + this.Bcc.GetHashCode(); + } + if (this.Cc != null) + { + hashCode = (hashCode * 59) + this.Cc.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Read.GetHashCode(); + if (this.Attachments != null) + { + hashCode = (hashCode * 59) + this.Attachments.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailPreviewUrls.cs b/src/mailslurp_netstandard_2x/Model/EmailPreviewUrls.cs new file mode 100644 index 00000000..a7bfaed2 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailPreviewUrls.cs @@ -0,0 +1,185 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// URLs for email body + /// + [DataContract(Name = "EmailPreviewUrls")] + public partial class EmailPreviewUrls : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailPreviewUrls() { } + /// + /// Initializes a new instance of the class. + /// + /// rawSmtpMessageUrl (required). + /// plainHtmlBodyUrl (required). + /// origin (required). + public EmailPreviewUrls(string rawSmtpMessageUrl = default(string), string plainHtmlBodyUrl = default(string), string origin = default(string)) + { + // to ensure "rawSmtpMessageUrl" is required (not null) + if (rawSmtpMessageUrl == null) + { + throw new ArgumentNullException("rawSmtpMessageUrl is a required property for EmailPreviewUrls and cannot be null"); + } + this.RawSmtpMessageUrl = rawSmtpMessageUrl; + // to ensure "plainHtmlBodyUrl" is required (not null) + if (plainHtmlBodyUrl == null) + { + throw new ArgumentNullException("plainHtmlBodyUrl is a required property for EmailPreviewUrls and cannot be null"); + } + this.PlainHtmlBodyUrl = plainHtmlBodyUrl; + // to ensure "origin" is required (not null) + if (origin == null) + { + throw new ArgumentNullException("origin is a required property for EmailPreviewUrls and cannot be null"); + } + this.Origin = origin; + } + + /// + /// Gets or Sets RawSmtpMessageUrl + /// + [DataMember(Name = "rawSmtpMessageUrl", IsRequired = true, EmitDefaultValue = true)] + public string RawSmtpMessageUrl { get; set; } + + /// + /// Gets or Sets PlainHtmlBodyUrl + /// + [DataMember(Name = "plainHtmlBodyUrl", IsRequired = true, EmitDefaultValue = true)] + public string PlainHtmlBodyUrl { get; set; } + + /// + /// Gets or Sets Origin + /// + [DataMember(Name = "origin", IsRequired = true, EmitDefaultValue = true)] + public string Origin { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailPreviewUrls {\n"); + sb.Append(" RawSmtpMessageUrl: ").Append(RawSmtpMessageUrl).Append("\n"); + sb.Append(" PlainHtmlBodyUrl: ").Append(PlainHtmlBodyUrl).Append("\n"); + sb.Append(" Origin: ").Append(Origin).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailPreviewUrls); + } + + /// + /// Returns true if EmailPreviewUrls instances are equal + /// + /// Instance of EmailPreviewUrls to be compared + /// Boolean + public bool Equals(EmailPreviewUrls input) + { + if (input == null) + { + return false; + } + return + ( + this.RawSmtpMessageUrl == input.RawSmtpMessageUrl || + (this.RawSmtpMessageUrl != null && + this.RawSmtpMessageUrl.Equals(input.RawSmtpMessageUrl)) + ) && + ( + this.PlainHtmlBodyUrl == input.PlainHtmlBodyUrl || + (this.PlainHtmlBodyUrl != null && + this.PlainHtmlBodyUrl.Equals(input.PlainHtmlBodyUrl)) + ) && + ( + this.Origin == input.Origin || + (this.Origin != null && + this.Origin.Equals(input.Origin)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RawSmtpMessageUrl != null) + { + hashCode = (hashCode * 59) + this.RawSmtpMessageUrl.GetHashCode(); + } + if (this.PlainHtmlBodyUrl != null) + { + hashCode = (hashCode * 59) + this.PlainHtmlBodyUrl.GetHashCode(); + } + if (this.Origin != null) + { + hashCode = (hashCode * 59) + this.Origin.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailProjection.cs b/src/mailslurp_netstandard_2x/Model/EmailProjection.cs new file mode 100644 index 00000000..9097a250 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailProjection.cs @@ -0,0 +1,387 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// A compact representation of a full email. Used in list endpoints to keep response sizes low. Body and attachments are not included. To get all fields of the email use the `getEmail` method with the email projection's ID. See `EmailDto` for documentation on projection properties. + /// + [DataContract(Name = "EmailProjection")] + public partial class EmailProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// attachments. + /// inboxId (required). + /// to (required). + /// domainId. + /// bcc. + /// cc. + /// read (required). + /// bodyExcerpt. + /// teamAccess (required). + /// bodyMD5Hash. + /// textExcerpt. + /// createdAt (required). + /// subject. + /// id (required). + /// from. + public EmailProjection(List attachments = default(List), Guid inboxId = default(Guid), List to = default(List), Guid? domainId = default(Guid?), List bcc = default(List), List cc = default(List), bool read = default(bool), string bodyExcerpt = default(string), bool teamAccess = default(bool), string bodyMD5Hash = default(string), string textExcerpt = default(string), DateTime createdAt = default(DateTime), string subject = default(string), Guid id = default(Guid), string from = default(string)) + { + this.InboxId = inboxId; + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for EmailProjection and cannot be null"); + } + this.To = to; + this.Read = read; + this.TeamAccess = teamAccess; + this.CreatedAt = createdAt; + this.Id = id; + this.Attachments = attachments; + this.DomainId = domainId; + this.Bcc = bcc; + this.Cc = cc; + this.BodyExcerpt = bodyExcerpt; + this.BodyMD5Hash = bodyMD5Hash; + this.TextExcerpt = textExcerpt; + this.Subject = subject; + this.From = from; + } + + /// + /// Gets or Sets Attachments + /// + [DataMember(Name = "attachments", EmitDefaultValue = true)] + public List Attachments { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets To + /// + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public List To { get; set; } + + /// + /// Gets or Sets DomainId + /// + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// Gets or Sets Bcc + /// + [DataMember(Name = "bcc", EmitDefaultValue = true)] + public List Bcc { get; set; } + + /// + /// Gets or Sets Cc + /// + [DataMember(Name = "cc", EmitDefaultValue = true)] + public List Cc { get; set; } + + /// + /// Gets or Sets Read + /// + [DataMember(Name = "read", IsRequired = true, EmitDefaultValue = true)] + public bool Read { get; set; } + + /// + /// Gets or Sets BodyExcerpt + /// + [DataMember(Name = "bodyExcerpt", EmitDefaultValue = true)] + public string BodyExcerpt { get; set; } + + /// + /// Gets or Sets TeamAccess + /// + [DataMember(Name = "teamAccess", IsRequired = true, EmitDefaultValue = true)] + public bool TeamAccess { get; set; } + + /// + /// Gets or Sets BodyMD5Hash + /// + [DataMember(Name = "bodyMD5Hash", EmitDefaultValue = true)] + public string BodyMD5Hash { get; set; } + + /// + /// Gets or Sets TextExcerpt + /// + [DataMember(Name = "textExcerpt", EmitDefaultValue = true)] + public string TextExcerpt { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets From + /// + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailProjection {\n"); + sb.Append(" Attachments: ").Append(Attachments).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" Bcc: ").Append(Bcc).Append("\n"); + sb.Append(" Cc: ").Append(Cc).Append("\n"); + sb.Append(" Read: ").Append(Read).Append("\n"); + sb.Append(" BodyExcerpt: ").Append(BodyExcerpt).Append("\n"); + sb.Append(" TeamAccess: ").Append(TeamAccess).Append("\n"); + sb.Append(" BodyMD5Hash: ").Append(BodyMD5Hash).Append("\n"); + sb.Append(" TextExcerpt: ").Append(TextExcerpt).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailProjection); + } + + /// + /// Returns true if EmailProjection instances are equal + /// + /// Instance of EmailProjection to be compared + /// Boolean + public bool Equals(EmailProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.Bcc == input.Bcc || + this.Bcc != null && + input.Bcc != null && + this.Bcc.SequenceEqual(input.Bcc) + ) && + ( + this.Cc == input.Cc || + this.Cc != null && + input.Cc != null && + this.Cc.SequenceEqual(input.Cc) + ) && + ( + this.Read == input.Read || + this.Read.Equals(input.Read) + ) && + ( + this.BodyExcerpt == input.BodyExcerpt || + (this.BodyExcerpt != null && + this.BodyExcerpt.Equals(input.BodyExcerpt)) + ) && + ( + this.TeamAccess == input.TeamAccess || + this.TeamAccess.Equals(input.TeamAccess) + ) && + ( + this.BodyMD5Hash == input.BodyMD5Hash || + (this.BodyMD5Hash != null && + this.BodyMD5Hash.Equals(input.BodyMD5Hash)) + ) && + ( + this.TextExcerpt == input.TextExcerpt || + (this.TextExcerpt != null && + this.TextExcerpt.Equals(input.TextExcerpt)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Attachments != null) + { + hashCode = (hashCode * 59) + this.Attachments.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.Bcc != null) + { + hashCode = (hashCode * 59) + this.Bcc.GetHashCode(); + } + if (this.Cc != null) + { + hashCode = (hashCode * 59) + this.Cc.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Read.GetHashCode(); + if (this.BodyExcerpt != null) + { + hashCode = (hashCode * 59) + this.BodyExcerpt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TeamAccess.GetHashCode(); + if (this.BodyMD5Hash != null) + { + hashCode = (hashCode * 59) + this.BodyMD5Hash.GetHashCode(); + } + if (this.TextExcerpt != null) + { + hashCode = (hashCode * 59) + this.TextExcerpt.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailRecipients.cs b/src/mailslurp_netstandard_2x/Model/EmailRecipients.cs new file mode 100644 index 00000000..d0373473 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailRecipients.cs @@ -0,0 +1,168 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// The `To`,`CC`,`BCC` recipients stored in object form with email address and name accessible. + /// + [DataContract(Name = "EmailRecipients")] + public partial class EmailRecipients : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// to. + /// cc. + /// bcc. + public EmailRecipients(List to = default(List), List cc = default(List), List bcc = default(List)) + { + this.To = to; + this.Cc = cc; + this.Bcc = bcc; + } + + /// + /// Gets or Sets To + /// + [DataMember(Name = "to", EmitDefaultValue = false)] + public List To { get; set; } + + /// + /// Gets or Sets Cc + /// + [DataMember(Name = "cc", EmitDefaultValue = false)] + public List Cc { get; set; } + + /// + /// Gets or Sets Bcc + /// + [DataMember(Name = "bcc", EmitDefaultValue = false)] + public List Bcc { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailRecipients {\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Cc: ").Append(Cc).Append("\n"); + sb.Append(" Bcc: ").Append(Bcc).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailRecipients); + } + + /// + /// Returns true if EmailRecipients instances are equal + /// + /// Instance of EmailRecipients to be compared + /// Boolean + public bool Equals(EmailRecipients input) + { + if (input == null) + { + return false; + } + return + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.Cc == input.Cc || + this.Cc != null && + input.Cc != null && + this.Cc.SequenceEqual(input.Cc) + ) && + ( + this.Bcc == input.Bcc || + this.Bcc != null && + input.Bcc != null && + this.Bcc.SequenceEqual(input.Bcc) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.Cc != null) + { + hashCode = (hashCode * 59) + this.Cc.GetHashCode(); + } + if (this.Bcc != null) + { + hashCode = (hashCode * 59) + this.Bcc.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailScreenshotResult.cs b/src/mailslurp_netstandard_2x/Model/EmailScreenshotResult.cs new file mode 100644 index 00000000..f7eae258 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailScreenshotResult.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmailScreenshotResult + /// + [DataContract(Name = "EmailScreenshotResult")] + public partial class EmailScreenshotResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailScreenshotResult() { } + /// + /// Initializes a new instance of the class. + /// + /// base64EncodedImage (required). + public EmailScreenshotResult(string base64EncodedImage = default(string)) + { + // to ensure "base64EncodedImage" is required (not null) + if (base64EncodedImage == null) + { + throw new ArgumentNullException("base64EncodedImage is a required property for EmailScreenshotResult and cannot be null"); + } + this.Base64EncodedImage = base64EncodedImage; + } + + /// + /// Gets or Sets Base64EncodedImage + /// + [DataMember(Name = "base64EncodedImage", IsRequired = true, EmitDefaultValue = true)] + public string Base64EncodedImage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailScreenshotResult {\n"); + sb.Append(" Base64EncodedImage: ").Append(Base64EncodedImage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailScreenshotResult); + } + + /// + /// Returns true if EmailScreenshotResult instances are equal + /// + /// Instance of EmailScreenshotResult to be compared + /// Boolean + public bool Equals(EmailScreenshotResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Base64EncodedImage == input.Base64EncodedImage || + (this.Base64EncodedImage != null && + this.Base64EncodedImage.Equals(input.Base64EncodedImage)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Base64EncodedImage != null) + { + hashCode = (hashCode * 59) + this.Base64EncodedImage.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailTextLinesResult.cs b/src/mailslurp_netstandard_2x/Model/EmailTextLinesResult.cs new file mode 100644 index 00000000..829ebb35 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailTextLinesResult.cs @@ -0,0 +1,163 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Parsed text of an email + /// + [DataContract(Name = "EmailTextLinesResult")] + public partial class EmailTextLinesResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailTextLinesResult() { } + /// + /// Initializes a new instance of the class. + /// + /// lines (required). + /// body (required). + public EmailTextLinesResult(List lines = default(List), string body = default(string)) + { + // to ensure "lines" is required (not null) + if (lines == null) + { + throw new ArgumentNullException("lines is a required property for EmailTextLinesResult and cannot be null"); + } + this.Lines = lines; + // to ensure "body" is required (not null) + if (body == null) + { + throw new ArgumentNullException("body is a required property for EmailTextLinesResult and cannot be null"); + } + this.Body = body; + } + + /// + /// Gets or Sets Lines + /// + [DataMember(Name = "lines", IsRequired = true, EmitDefaultValue = true)] + public List Lines { get; set; } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailTextLinesResult {\n"); + sb.Append(" Lines: ").Append(Lines).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailTextLinesResult); + } + + /// + /// Returns true if EmailTextLinesResult instances are equal + /// + /// Instance of EmailTextLinesResult to be compared + /// Boolean + public bool Equals(EmailTextLinesResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Lines == input.Lines || + this.Lines != null && + input.Lines != null && + this.Lines.SequenceEqual(input.Lines) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Lines != null) + { + hashCode = (hashCode * 59) + this.Lines.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailValidationRequestDto.cs b/src/mailslurp_netstandard_2x/Model/EmailValidationRequestDto.cs new file mode 100644 index 00000000..5a359ff5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailValidationRequestDto.cs @@ -0,0 +1,225 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Email validation request + /// + [DataContract(Name = "EmailValidationRequestDto")] + public partial class EmailValidationRequestDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailValidationRequestDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// emailAddress (required). + /// isValid (required). + /// createdAt (required). + /// updatedAt (required). + public EmailValidationRequestDto(Guid id = default(Guid), Guid userId = default(Guid), string emailAddress = default(string), bool isValid = default(bool), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + this.Id = id; + this.UserId = userId; + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for EmailValidationRequestDto and cannot be null"); + } + this.EmailAddress = emailAddress; + this.IsValid = isValid; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets IsValid + /// + [DataMember(Name = "isValid", IsRequired = true, EmitDefaultValue = true)] + public bool IsValid { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailValidationRequestDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" IsValid: ").Append(IsValid).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailValidationRequestDto); + } + + /// + /// Returns true if EmailValidationRequestDto instances are equal + /// + /// Instance of EmailValidationRequestDto to be compared + /// Boolean + public bool Equals(EmailValidationRequestDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.IsValid == input.IsValid || + this.IsValid.Equals(input.IsValid) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsValid.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmailVerificationResult.cs b/src/mailslurp_netstandard_2x/Model/EmailVerificationResult.cs new file mode 100644 index 00000000..7c358659 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmailVerificationResult.cs @@ -0,0 +1,208 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Email verification result. Valid means email address exists according to response from mail server running at the domain and port given. + /// + [DataContract(Name = "EmailVerificationResult")] + public partial class EmailVerificationResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmailVerificationResult() { } + /// + /// Initializes a new instance of the class. + /// + /// domainName (required). + /// port (required). + /// emailAddress (required). + /// isValid (required). + /// error. + public EmailVerificationResult(string domainName = default(string), int port = default(int), string emailAddress = default(string), bool isValid = default(bool), string error = default(string)) + { + // to ensure "domainName" is required (not null) + if (domainName == null) + { + throw new ArgumentNullException("domainName is a required property for EmailVerificationResult and cannot be null"); + } + this.DomainName = domainName; + this.Port = port; + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for EmailVerificationResult and cannot be null"); + } + this.EmailAddress = emailAddress; + this.IsValid = isValid; + this.Error = error; + } + + /// + /// Gets or Sets DomainName + /// + [DataMember(Name = "domainName", IsRequired = true, EmitDefaultValue = true)] + public string DomainName { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", IsRequired = true, EmitDefaultValue = true)] + public int Port { get; set; } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets IsValid + /// + [DataMember(Name = "isValid", IsRequired = true, EmitDefaultValue = true)] + public bool IsValid { get; set; } + + /// + /// Gets or Sets Error + /// + [DataMember(Name = "error", EmitDefaultValue = true)] + public string Error { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmailVerificationResult {\n"); + sb.Append(" DomainName: ").Append(DomainName).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" IsValid: ").Append(IsValid).Append("\n"); + sb.Append(" Error: ").Append(Error).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmailVerificationResult); + } + + /// + /// Returns true if EmailVerificationResult instances are equal + /// + /// Instance of EmailVerificationResult to be compared + /// Boolean + public bool Equals(EmailVerificationResult input) + { + if (input == null) + { + return false; + } + return + ( + this.DomainName == input.DomainName || + (this.DomainName != null && + this.DomainName.Equals(input.DomainName)) + ) && + ( + this.Port == input.Port || + this.Port.Equals(input.Port) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.IsValid == input.IsValid || + this.IsValid.Equals(input.IsValid) + ) && + ( + this.Error == input.Error || + (this.Error != null && + this.Error.Equals(input.Error)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DomainName != null) + { + hashCode = (hashCode * 59) + this.DomainName.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Port.GetHashCode(); + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsValid.GetHashCode(); + if (this.Error != null) + { + hashCode = (hashCode * 59) + this.Error.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmergencyAddress.cs b/src/mailslurp_netstandard_2x/Model/EmergencyAddress.cs new file mode 100644 index 00000000..ef9ea796 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmergencyAddress.cs @@ -0,0 +1,412 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmergencyAddress + /// + [DataContract(Name = "EmergencyAddress")] + public partial class EmergencyAddress : IEquatable, IValidatableObject + { + /// + /// Defines PhoneCountry + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PhoneCountryEnum + { + /// + /// Enum US for value: US + /// + [EnumMember(Value = "US")] + US = 1, + + /// + /// Enum GB for value: GB + /// + [EnumMember(Value = "GB")] + GB = 2, + + /// + /// Enum AU for value: AU + /// + [EnumMember(Value = "AU")] + AU = 3 + + } + + + /// + /// Gets or Sets PhoneCountry + /// + [DataMember(Name = "phoneCountry", IsRequired = true, EmitDefaultValue = true)] + public PhoneCountryEnum PhoneCountry { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmergencyAddress() { } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// sid (required). + /// userId (required). + /// displayName (required). + /// customerName (required). + /// address1 (required). + /// city (required). + /// region (required). + /// postalCode (required). + /// phoneCountry (required). + /// accountSid (required). + /// createdAt (required). + /// updatedAt (required). + public EmergencyAddress(Guid id = default(Guid), string sid = default(string), Guid userId = default(Guid), string displayName = default(string), string customerName = default(string), string address1 = default(string), string city = default(string), string region = default(string), string postalCode = default(string), PhoneCountryEnum phoneCountry = default(PhoneCountryEnum), string accountSid = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + // to ensure "sid" is required (not null) + if (sid == null) + { + throw new ArgumentNullException("sid is a required property for EmergencyAddress and cannot be null"); + } + this.Sid = sid; + this.UserId = userId; + // to ensure "displayName" is required (not null) + if (displayName == null) + { + throw new ArgumentNullException("displayName is a required property for EmergencyAddress and cannot be null"); + } + this.DisplayName = displayName; + // to ensure "customerName" is required (not null) + if (customerName == null) + { + throw new ArgumentNullException("customerName is a required property for EmergencyAddress and cannot be null"); + } + this.CustomerName = customerName; + // to ensure "address1" is required (not null) + if (address1 == null) + { + throw new ArgumentNullException("address1 is a required property for EmergencyAddress and cannot be null"); + } + this.Address1 = address1; + // to ensure "city" is required (not null) + if (city == null) + { + throw new ArgumentNullException("city is a required property for EmergencyAddress and cannot be null"); + } + this.City = city; + // to ensure "region" is required (not null) + if (region == null) + { + throw new ArgumentNullException("region is a required property for EmergencyAddress and cannot be null"); + } + this.Region = region; + // to ensure "postalCode" is required (not null) + if (postalCode == null) + { + throw new ArgumentNullException("postalCode is a required property for EmergencyAddress and cannot be null"); + } + this.PostalCode = postalCode; + this.PhoneCountry = phoneCountry; + // to ensure "accountSid" is required (not null) + if (accountSid == null) + { + throw new ArgumentNullException("accountSid is a required property for EmergencyAddress and cannot be null"); + } + this.AccountSid = accountSid; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Id = id; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Sid + /// + [DataMember(Name = "sid", IsRequired = true, EmitDefaultValue = true)] + public string Sid { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets DisplayName + /// + [DataMember(Name = "displayName", IsRequired = true, EmitDefaultValue = true)] + public string DisplayName { get; set; } + + /// + /// Gets or Sets CustomerName + /// + [DataMember(Name = "customerName", IsRequired = true, EmitDefaultValue = true)] + public string CustomerName { get; set; } + + /// + /// Gets or Sets Address1 + /// + [DataMember(Name = "address1", IsRequired = true, EmitDefaultValue = true)] + public string Address1 { get; set; } + + /// + /// Gets or Sets City + /// + [DataMember(Name = "city", IsRequired = true, EmitDefaultValue = true)] + public string City { get; set; } + + /// + /// Gets or Sets Region + /// + [DataMember(Name = "region", IsRequired = true, EmitDefaultValue = true)] + public string Region { get; set; } + + /// + /// Gets or Sets PostalCode + /// + [DataMember(Name = "postalCode", IsRequired = true, EmitDefaultValue = true)] + public string PostalCode { get; set; } + + /// + /// Gets or Sets AccountSid + /// + [DataMember(Name = "accountSid", IsRequired = true, EmitDefaultValue = true)] + public string AccountSid { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmergencyAddress {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Sid: ").Append(Sid).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); + sb.Append(" Address1: ").Append(Address1).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" Region: ").Append(Region).Append("\n"); + sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); + sb.Append(" PhoneCountry: ").Append(PhoneCountry).Append("\n"); + sb.Append(" AccountSid: ").Append(AccountSid).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmergencyAddress); + } + + /// + /// Returns true if EmergencyAddress instances are equal + /// + /// Instance of EmergencyAddress to be compared + /// Boolean + public bool Equals(EmergencyAddress input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Sid == input.Sid || + (this.Sid != null && + this.Sid.Equals(input.Sid)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.CustomerName == input.CustomerName || + (this.CustomerName != null && + this.CustomerName.Equals(input.CustomerName)) + ) && + ( + this.Address1 == input.Address1 || + (this.Address1 != null && + this.Address1.Equals(input.Address1)) + ) && + ( + this.City == input.City || + (this.City != null && + this.City.Equals(input.City)) + ) && + ( + this.Region == input.Region || + (this.Region != null && + this.Region.Equals(input.Region)) + ) && + ( + this.PostalCode == input.PostalCode || + (this.PostalCode != null && + this.PostalCode.Equals(input.PostalCode)) + ) && + ( + this.PhoneCountry == input.PhoneCountry || + this.PhoneCountry.Equals(input.PhoneCountry) + ) && + ( + this.AccountSid == input.AccountSid || + (this.AccountSid != null && + this.AccountSid.Equals(input.AccountSid)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Sid != null) + { + hashCode = (hashCode * 59) + this.Sid.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.DisplayName != null) + { + hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); + } + if (this.CustomerName != null) + { + hashCode = (hashCode * 59) + this.CustomerName.GetHashCode(); + } + if (this.Address1 != null) + { + hashCode = (hashCode * 59) + this.Address1.GetHashCode(); + } + if (this.City != null) + { + hashCode = (hashCode * 59) + this.City.GetHashCode(); + } + if (this.Region != null) + { + hashCode = (hashCode * 59) + this.Region.GetHashCode(); + } + if (this.PostalCode != null) + { + hashCode = (hashCode * 59) + this.PostalCode.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PhoneCountry.GetHashCode(); + if (this.AccountSid != null) + { + hashCode = (hashCode * 59) + this.AccountSid.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmergencyAddressDto.cs b/src/mailslurp_netstandard_2x/Model/EmergencyAddressDto.cs new file mode 100644 index 00000000..256b366e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmergencyAddressDto.cs @@ -0,0 +1,197 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmergencyAddressDto + /// + [DataContract(Name = "EmergencyAddressDto")] + public partial class EmergencyAddressDto : IEquatable, IValidatableObject + { + /// + /// Defines PhoneCountry + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PhoneCountryEnum + { + /// + /// Enum US for value: US + /// + [EnumMember(Value = "US")] + US = 1, + + /// + /// Enum GB for value: GB + /// + [EnumMember(Value = "GB")] + GB = 2, + + /// + /// Enum AU for value: AU + /// + [EnumMember(Value = "AU")] + AU = 3 + + } + + + /// + /// Gets or Sets PhoneCountry + /// + [DataMember(Name = "phoneCountry", IsRequired = true, EmitDefaultValue = true)] + public PhoneCountryEnum PhoneCountry { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EmergencyAddressDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// address1 (required). + /// phoneCountry (required). + public EmergencyAddressDto(Guid id = default(Guid), string address1 = default(string), PhoneCountryEnum phoneCountry = default(PhoneCountryEnum)) + { + this.Id = id; + // to ensure "address1" is required (not null) + if (address1 == null) + { + throw new ArgumentNullException("address1 is a required property for EmergencyAddressDto and cannot be null"); + } + this.Address1 = address1; + this.PhoneCountry = phoneCountry; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Address1 + /// + [DataMember(Name = "address1", IsRequired = true, EmitDefaultValue = true)] + public string Address1 { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmergencyAddressDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Address1: ").Append(Address1).Append("\n"); + sb.Append(" PhoneCountry: ").Append(PhoneCountry).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmergencyAddressDto); + } + + /// + /// Returns true if EmergencyAddressDto instances are equal + /// + /// Instance of EmergencyAddressDto to be compared + /// Boolean + public bool Equals(EmergencyAddressDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Address1 == input.Address1 || + (this.Address1 != null && + this.Address1.Equals(input.Address1)) + ) && + ( + this.PhoneCountry == input.PhoneCountry || + this.PhoneCountry.Equals(input.PhoneCountry) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Address1 != null) + { + hashCode = (hashCode * 59) + this.Address1.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PhoneCountry.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/EmptyResponseDto.cs b/src/mailslurp_netstandard_2x/Model/EmptyResponseDto.cs new file mode 100644 index 00000000..4154fd70 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/EmptyResponseDto.cs @@ -0,0 +1,129 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EmptyResponseDto + /// + [DataContract(Name = "EmptyResponseDto")] + public partial class EmptyResponseDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// message. + public EmptyResponseDto(string message = default(string)) + { + this.Message = message; + } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EmptyResponseDto {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmptyResponseDto); + } + + /// + /// Returns true if EmptyResponseDto instances are equal + /// + /// Instance of EmptyResponseDto to be compared + /// Boolean + public bool Equals(EmptyResponseDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ExpirationDefaults.cs b/src/mailslurp_netstandard_2x/Model/ExpirationDefaults.cs new file mode 100644 index 00000000..aa12a886 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ExpirationDefaults.cs @@ -0,0 +1,198 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Expiration defaults for your account + /// + [DataContract(Name = "ExpirationDefaults")] + public partial class ExpirationDefaults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ExpirationDefaults() { } + /// + /// Initializes a new instance of the class. + /// + /// defaultExpirationMillis. + /// maxExpirationMillis. + /// defaultExpiresAt. + /// canPermanentInbox (required). + /// nextInboxAllowsPermanent (required). + public ExpirationDefaults(long? defaultExpirationMillis = default(long?), long? maxExpirationMillis = default(long?), DateTime? defaultExpiresAt = default(DateTime?), bool canPermanentInbox = default(bool), bool nextInboxAllowsPermanent = default(bool)) + { + this.CanPermanentInbox = canPermanentInbox; + this.NextInboxAllowsPermanent = nextInboxAllowsPermanent; + this.DefaultExpirationMillis = defaultExpirationMillis; + this.MaxExpirationMillis = maxExpirationMillis; + this.DefaultExpiresAt = defaultExpiresAt; + } + + /// + /// Gets or Sets DefaultExpirationMillis + /// + [DataMember(Name = "defaultExpirationMillis", EmitDefaultValue = true)] + public long? DefaultExpirationMillis { get; set; } + + /// + /// Gets or Sets MaxExpirationMillis + /// + [DataMember(Name = "maxExpirationMillis", EmitDefaultValue = true)] + public long? MaxExpirationMillis { get; set; } + + /// + /// Gets or Sets DefaultExpiresAt + /// + [DataMember(Name = "defaultExpiresAt", EmitDefaultValue = true)] + public DateTime? DefaultExpiresAt { get; set; } + + /// + /// Gets or Sets CanPermanentInbox + /// + [DataMember(Name = "canPermanentInbox", IsRequired = true, EmitDefaultValue = true)] + public bool CanPermanentInbox { get; set; } + + /// + /// Gets or Sets NextInboxAllowsPermanent + /// + [DataMember(Name = "nextInboxAllowsPermanent", IsRequired = true, EmitDefaultValue = true)] + public bool NextInboxAllowsPermanent { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ExpirationDefaults {\n"); + sb.Append(" DefaultExpirationMillis: ").Append(DefaultExpirationMillis).Append("\n"); + sb.Append(" MaxExpirationMillis: ").Append(MaxExpirationMillis).Append("\n"); + sb.Append(" DefaultExpiresAt: ").Append(DefaultExpiresAt).Append("\n"); + sb.Append(" CanPermanentInbox: ").Append(CanPermanentInbox).Append("\n"); + sb.Append(" NextInboxAllowsPermanent: ").Append(NextInboxAllowsPermanent).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExpirationDefaults); + } + + /// + /// Returns true if ExpirationDefaults instances are equal + /// + /// Instance of ExpirationDefaults to be compared + /// Boolean + public bool Equals(ExpirationDefaults input) + { + if (input == null) + { + return false; + } + return + ( + this.DefaultExpirationMillis == input.DefaultExpirationMillis || + (this.DefaultExpirationMillis != null && + this.DefaultExpirationMillis.Equals(input.DefaultExpirationMillis)) + ) && + ( + this.MaxExpirationMillis == input.MaxExpirationMillis || + (this.MaxExpirationMillis != null && + this.MaxExpirationMillis.Equals(input.MaxExpirationMillis)) + ) && + ( + this.DefaultExpiresAt == input.DefaultExpiresAt || + (this.DefaultExpiresAt != null && + this.DefaultExpiresAt.Equals(input.DefaultExpiresAt)) + ) && + ( + this.CanPermanentInbox == input.CanPermanentInbox || + this.CanPermanentInbox.Equals(input.CanPermanentInbox) + ) && + ( + this.NextInboxAllowsPermanent == input.NextInboxAllowsPermanent || + this.NextInboxAllowsPermanent.Equals(input.NextInboxAllowsPermanent) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DefaultExpirationMillis != null) + { + hashCode = (hashCode * 59) + this.DefaultExpirationMillis.GetHashCode(); + } + if (this.MaxExpirationMillis != null) + { + hashCode = (hashCode * 59) + this.MaxExpirationMillis.GetHashCode(); + } + if (this.DefaultExpiresAt != null) + { + hashCode = (hashCode * 59) + this.DefaultExpiresAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.CanPermanentInbox.GetHashCode(); + hashCode = (hashCode * 59) + this.NextInboxAllowsPermanent.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ExpiredInboxDto.cs b/src/mailslurp_netstandard_2x/Model/ExpiredInboxDto.cs new file mode 100644 index 00000000..e855b6b0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ExpiredInboxDto.cs @@ -0,0 +1,175 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Expired inbox + /// + [DataContract(Name = "ExpiredInboxDto")] + public partial class ExpiredInboxDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ExpiredInboxDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// inboxId (required). + /// emailAddress (required). + public ExpiredInboxDto(Guid id = default(Guid), Guid inboxId = default(Guid), string emailAddress = default(string)) + { + this.Id = id; + this.InboxId = inboxId; + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for ExpiredInboxDto and cannot be null"); + } + this.EmailAddress = emailAddress; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ExpiredInboxDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExpiredInboxDto); + } + + /// + /// Returns true if ExpiredInboxDto instances are equal + /// + /// Instance of ExpiredInboxDto to be compared + /// Boolean + public bool Equals(ExpiredInboxDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ExpiredInboxRecordProjection.cs b/src/mailslurp_netstandard_2x/Model/ExpiredInboxRecordProjection.cs new file mode 100644 index 00000000..7743257e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ExpiredInboxRecordProjection.cs @@ -0,0 +1,193 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Record of inbox expiration + /// + [DataContract(Name = "ExpiredInboxRecordProjection")] + public partial class ExpiredInboxRecordProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ExpiredInboxRecordProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// emailAddress (required). + /// userId (required). + /// createdAt (required). + /// id (required). + public ExpiredInboxRecordProjection(string emailAddress = default(string), Guid userId = default(Guid), DateTime createdAt = default(DateTime), Guid id = default(Guid)) + { + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for ExpiredInboxRecordProjection and cannot be null"); + } + this.EmailAddress = emailAddress; + this.UserId = userId; + this.CreatedAt = createdAt; + this.Id = id; + } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ExpiredInboxRecordProjection {\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExpiredInboxRecordProjection); + } + + /// + /// Returns true if ExpiredInboxRecordProjection instances are equal + /// + /// Instance of ExpiredInboxRecordProjection to be compared + /// Boolean + public bool Equals(ExpiredInboxRecordProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ExportLink.cs b/src/mailslurp_netstandard_2x/Model/ExportLink.cs new file mode 100644 index 00000000..24d1fcc5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ExportLink.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Export download link + /// + [DataContract(Name = "ExportLink")] + public partial class ExportLink : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ExportLink() { } + /// + /// Initializes a new instance of the class. + /// + /// downloadLink (required). + public ExportLink(string downloadLink = default(string)) + { + // to ensure "downloadLink" is required (not null) + if (downloadLink == null) + { + throw new ArgumentNullException("downloadLink is a required property for ExportLink and cannot be null"); + } + this.DownloadLink = downloadLink; + } + + /// + /// Gets or Sets DownloadLink + /// + [DataMember(Name = "downloadLink", IsRequired = true, EmitDefaultValue = true)] + public string DownloadLink { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ExportLink {\n"); + sb.Append(" DownloadLink: ").Append(DownloadLink).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExportLink); + } + + /// + /// Returns true if ExportLink instances are equal + /// + /// Instance of ExportLink to be compared + /// Boolean + public bool Equals(ExportLink input) + { + if (input == null) + { + return false; + } + return + ( + this.DownloadLink == input.DownloadLink || + (this.DownloadLink != null && + this.DownloadLink.Equals(input.DownloadLink)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DownloadLink != null) + { + hashCode = (hashCode * 59) + this.DownloadLink.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ExportOptions.cs b/src/mailslurp_netstandard_2x/Model/ExportOptions.cs new file mode 100644 index 00000000..0bd19984 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ExportOptions.cs @@ -0,0 +1,240 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for exporting user data + /// + [DataContract(Name = "ExportOptions")] + public partial class ExportOptions : IEquatable, IValidatableObject + { + /// + /// Defines OutputFormat + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum OutputFormatEnum + { + /// + /// Enum DEFAULT for value: CSV_DEFAULT + /// + [EnumMember(Value = "CSV_DEFAULT")] + DEFAULT = 1, + + /// + /// Enum EXCEL for value: CSV_EXCEL + /// + [EnumMember(Value = "CSV_EXCEL")] + EXCEL = 2 + + } + + + /// + /// Gets or Sets OutputFormat + /// + [DataMember(Name = "outputFormat", IsRequired = true, EmitDefaultValue = true)] + public OutputFormatEnum OutputFormat { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ExportOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// outputFormat (required). + /// excludePreviouslyExported. + /// createdEarliestTime. + /// createdOldestTime. + /// filter. + /// listSeparatorToken. + public ExportOptions(OutputFormatEnum outputFormat = default(OutputFormatEnum), bool? excludePreviouslyExported = default(bool?), DateTime? createdEarliestTime = default(DateTime?), DateTime? createdOldestTime = default(DateTime?), string filter = default(string), string listSeparatorToken = default(string)) + { + this.OutputFormat = outputFormat; + this.ExcludePreviouslyExported = excludePreviouslyExported; + this.CreatedEarliestTime = createdEarliestTime; + this.CreatedOldestTime = createdOldestTime; + this.Filter = filter; + this.ListSeparatorToken = listSeparatorToken; + } + + /// + /// Gets or Sets ExcludePreviouslyExported + /// + [DataMember(Name = "excludePreviouslyExported", EmitDefaultValue = true)] + public bool? ExcludePreviouslyExported { get; set; } + + /// + /// Gets or Sets CreatedEarliestTime + /// + [DataMember(Name = "createdEarliestTime", EmitDefaultValue = true)] + public DateTime? CreatedEarliestTime { get; set; } + + /// + /// Gets or Sets CreatedOldestTime + /// + [DataMember(Name = "createdOldestTime", EmitDefaultValue = true)] + public DateTime? CreatedOldestTime { get; set; } + + /// + /// Gets or Sets Filter + /// + [DataMember(Name = "filter", EmitDefaultValue = true)] + public string Filter { get; set; } + + /// + /// Gets or Sets ListSeparatorToken + /// + [DataMember(Name = "listSeparatorToken", EmitDefaultValue = true)] + public string ListSeparatorToken { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ExportOptions {\n"); + sb.Append(" OutputFormat: ").Append(OutputFormat).Append("\n"); + sb.Append(" ExcludePreviouslyExported: ").Append(ExcludePreviouslyExported).Append("\n"); + sb.Append(" CreatedEarliestTime: ").Append(CreatedEarliestTime).Append("\n"); + sb.Append(" CreatedOldestTime: ").Append(CreatedOldestTime).Append("\n"); + sb.Append(" Filter: ").Append(Filter).Append("\n"); + sb.Append(" ListSeparatorToken: ").Append(ListSeparatorToken).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExportOptions); + } + + /// + /// Returns true if ExportOptions instances are equal + /// + /// Instance of ExportOptions to be compared + /// Boolean + public bool Equals(ExportOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.OutputFormat == input.OutputFormat || + this.OutputFormat.Equals(input.OutputFormat) + ) && + ( + this.ExcludePreviouslyExported == input.ExcludePreviouslyExported || + (this.ExcludePreviouslyExported != null && + this.ExcludePreviouslyExported.Equals(input.ExcludePreviouslyExported)) + ) && + ( + this.CreatedEarliestTime == input.CreatedEarliestTime || + (this.CreatedEarliestTime != null && + this.CreatedEarliestTime.Equals(input.CreatedEarliestTime)) + ) && + ( + this.CreatedOldestTime == input.CreatedOldestTime || + (this.CreatedOldestTime != null && + this.CreatedOldestTime.Equals(input.CreatedOldestTime)) + ) && + ( + this.Filter == input.Filter || + (this.Filter != null && + this.Filter.Equals(input.Filter)) + ) && + ( + this.ListSeparatorToken == input.ListSeparatorToken || + (this.ListSeparatorToken != null && + this.ListSeparatorToken.Equals(input.ListSeparatorToken)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.OutputFormat.GetHashCode(); + if (this.ExcludePreviouslyExported != null) + { + hashCode = (hashCode * 59) + this.ExcludePreviouslyExported.GetHashCode(); + } + if (this.CreatedEarliestTime != null) + { + hashCode = (hashCode * 59) + this.CreatedEarliestTime.GetHashCode(); + } + if (this.CreatedOldestTime != null) + { + hashCode = (hashCode * 59) + this.CreatedOldestTime.GetHashCode(); + } + if (this.Filter != null) + { + hashCode = (hashCode * 59) + this.Filter.GetHashCode(); + } + if (this.ListSeparatorToken != null) + { + hashCode = (hashCode * 59) + this.ListSeparatorToken.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/FakeEmailDto.cs b/src/mailslurp_netstandard_2x/Model/FakeEmailDto.cs new file mode 100644 index 00000000..aa8e70e3 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/FakeEmailDto.cs @@ -0,0 +1,284 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// FakeEmailDto + /// + [DataContract(Name = "FakeEmailDto")] + public partial class FakeEmailDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FakeEmailDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// emailAddress (required). + /// sender. + /// recipients. + /// subject. + /// preview. + /// body (required). + /// seen (required). + /// createdAt (required). + public FakeEmailDto(Guid id = default(Guid), string emailAddress = default(string), Sender sender = default(Sender), EmailRecipients recipients = default(EmailRecipients), string subject = default(string), string preview = default(string), string body = default(string), bool seen = default(bool), DateTime createdAt = default(DateTime)) + { + this.Id = id; + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for FakeEmailDto and cannot be null"); + } + this.EmailAddress = emailAddress; + // to ensure "body" is required (not null) + if (body == null) + { + throw new ArgumentNullException("body is a required property for FakeEmailDto and cannot be null"); + } + this.Body = body; + this.Seen = seen; + this.CreatedAt = createdAt; + this.Sender = sender; + this.Recipients = recipients; + this.Subject = subject; + this.Preview = preview; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets Sender + /// + [DataMember(Name = "sender", EmitDefaultValue = true)] + public Sender Sender { get; set; } + + /// + /// Gets or Sets Recipients + /// + [DataMember(Name = "recipients", EmitDefaultValue = true)] + public EmailRecipients Recipients { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = false)] + public string Subject { get; set; } + + /// + /// Gets or Sets Preview + /// + [DataMember(Name = "preview", EmitDefaultValue = false)] + public string Preview { get; set; } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Gets or Sets Seen + /// + [DataMember(Name = "seen", IsRequired = true, EmitDefaultValue = true)] + public bool Seen { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FakeEmailDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" Sender: ").Append(Sender).Append("\n"); + sb.Append(" Recipients: ").Append(Recipients).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Preview: ").Append(Preview).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Seen: ").Append(Seen).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FakeEmailDto); + } + + /// + /// Returns true if FakeEmailDto instances are equal + /// + /// Instance of FakeEmailDto to be compared + /// Boolean + public bool Equals(FakeEmailDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Sender == input.Sender || + (this.Sender != null && + this.Sender.Equals(input.Sender)) + ) && + ( + this.Recipients == input.Recipients || + (this.Recipients != null && + this.Recipients.Equals(input.Recipients)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Preview == input.Preview || + (this.Preview != null && + this.Preview.Equals(input.Preview)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.Seen == input.Seen || + this.Seen.Equals(input.Seen) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.Sender != null) + { + hashCode = (hashCode * 59) + this.Sender.GetHashCode(); + } + if (this.Recipients != null) + { + hashCode = (hashCode * 59) + this.Recipients.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Preview != null) + { + hashCode = (hashCode * 59) + this.Preview.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Seen.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/FakeEmailPreview.cs b/src/mailslurp_netstandard_2x/Model/FakeEmailPreview.cs new file mode 100644 index 00000000..dc297782 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/FakeEmailPreview.cs @@ -0,0 +1,261 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// FakeEmailPreview + /// + [DataContract(Name = "FakeEmailPreview")] + public partial class FakeEmailPreview : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FakeEmailPreview() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// emailAddress (required). + /// sender. + /// recipients. + /// subject. + /// preview. + /// createdAt (required). + /// seen (required). + public FakeEmailPreview(Guid id = default(Guid), string emailAddress = default(string), Sender sender = default(Sender), EmailRecipients recipients = default(EmailRecipients), string subject = default(string), string preview = default(string), DateTime createdAt = default(DateTime), bool seen = default(bool)) + { + this.Id = id; + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for FakeEmailPreview and cannot be null"); + } + this.EmailAddress = emailAddress; + this.CreatedAt = createdAt; + this.Seen = seen; + this.Sender = sender; + this.Recipients = recipients; + this.Subject = subject; + this.Preview = preview; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets Sender + /// + [DataMember(Name = "sender", EmitDefaultValue = true)] + public Sender Sender { get; set; } + + /// + /// Gets or Sets Recipients + /// + [DataMember(Name = "recipients", EmitDefaultValue = true)] + public EmailRecipients Recipients { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = false)] + public string Subject { get; set; } + + /// + /// Gets or Sets Preview + /// + [DataMember(Name = "preview", EmitDefaultValue = false)] + public string Preview { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Seen + /// + [DataMember(Name = "seen", IsRequired = true, EmitDefaultValue = true)] + public bool Seen { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FakeEmailPreview {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" Sender: ").Append(Sender).Append("\n"); + sb.Append(" Recipients: ").Append(Recipients).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Preview: ").Append(Preview).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Seen: ").Append(Seen).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FakeEmailPreview); + } + + /// + /// Returns true if FakeEmailPreview instances are equal + /// + /// Instance of FakeEmailPreview to be compared + /// Boolean + public bool Equals(FakeEmailPreview input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Sender == input.Sender || + (this.Sender != null && + this.Sender.Equals(input.Sender)) + ) && + ( + this.Recipients == input.Recipients || + (this.Recipients != null && + this.Recipients.Equals(input.Recipients)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Preview == input.Preview || + (this.Preview != null && + this.Preview.Equals(input.Preview)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Seen == input.Seen || + this.Seen.Equals(input.Seen) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.Sender != null) + { + hashCode = (hashCode * 59) + this.Sender.GetHashCode(); + } + if (this.Recipients != null) + { + hashCode = (hashCode * 59) + this.Recipients.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Preview != null) + { + hashCode = (hashCode * 59) + this.Preview.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Seen.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/FakeEmailResult.cs b/src/mailslurp_netstandard_2x/Model/FakeEmailResult.cs new file mode 100644 index 00000000..d3b09ed5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/FakeEmailResult.cs @@ -0,0 +1,129 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// FakeEmailResult + /// + [DataContract(Name = "FakeEmailResult")] + public partial class FakeEmailResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// email. + public FakeEmailResult(FakeEmailDto email = default(FakeEmailDto)) + { + this.Email = email; + } + + /// + /// Gets or Sets Email + /// + [DataMember(Name = "email", EmitDefaultValue = false)] + public FakeEmailDto Email { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FakeEmailResult {\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FakeEmailResult); + } + + /// + /// Returns true if FakeEmailResult instances are equal + /// + /// Instance of FakeEmailResult to be compared + /// Boolean + public bool Equals(FakeEmailResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Email != null) + { + hashCode = (hashCode * 59) + this.Email.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/FilterBouncedRecipientsOptions.cs b/src/mailslurp_netstandard_2x/Model/FilterBouncedRecipientsOptions.cs new file mode 100644 index 00000000..d74452dc --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/FilterBouncedRecipientsOptions.cs @@ -0,0 +1,140 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for filtering bounced email recipients + /// + [DataContract(Name = "FilterBouncedRecipientsOptions")] + public partial class FilterBouncedRecipientsOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FilterBouncedRecipientsOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// emailRecipients (required). + public FilterBouncedRecipientsOptions(List emailRecipients = default(List)) + { + // to ensure "emailRecipients" is required (not null) + if (emailRecipients == null) + { + throw new ArgumentNullException("emailRecipients is a required property for FilterBouncedRecipientsOptions and cannot be null"); + } + this.EmailRecipients = emailRecipients; + } + + /// + /// Gets or Sets EmailRecipients + /// + [DataMember(Name = "emailRecipients", IsRequired = true, EmitDefaultValue = true)] + public List EmailRecipients { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FilterBouncedRecipientsOptions {\n"); + sb.Append(" EmailRecipients: ").Append(EmailRecipients).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FilterBouncedRecipientsOptions); + } + + /// + /// Returns true if FilterBouncedRecipientsOptions instances are equal + /// + /// Instance of FilterBouncedRecipientsOptions to be compared + /// Boolean + public bool Equals(FilterBouncedRecipientsOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailRecipients == input.EmailRecipients || + this.EmailRecipients != null && + input.EmailRecipients != null && + this.EmailRecipients.SequenceEqual(input.EmailRecipients) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailRecipients != null) + { + hashCode = (hashCode * 59) + this.EmailRecipients.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/FilterBouncedRecipientsResult.cs b/src/mailslurp_netstandard_2x/Model/FilterBouncedRecipientsResult.cs new file mode 100644 index 00000000..1218a9cb --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/FilterBouncedRecipientsResult.cs @@ -0,0 +1,140 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Remaining recipients that were filtered to remove bounced recipients + /// + [DataContract(Name = "FilterBouncedRecipientsResult")] + public partial class FilterBouncedRecipientsResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FilterBouncedRecipientsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// filteredRecipients (required). + public FilterBouncedRecipientsResult(List filteredRecipients = default(List)) + { + // to ensure "filteredRecipients" is required (not null) + if (filteredRecipients == null) + { + throw new ArgumentNullException("filteredRecipients is a required property for FilterBouncedRecipientsResult and cannot be null"); + } + this.FilteredRecipients = filteredRecipients; + } + + /// + /// Gets or Sets FilteredRecipients + /// + [DataMember(Name = "filteredRecipients", IsRequired = true, EmitDefaultValue = true)] + public List FilteredRecipients { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FilterBouncedRecipientsResult {\n"); + sb.Append(" FilteredRecipients: ").Append(FilteredRecipients).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FilterBouncedRecipientsResult); + } + + /// + /// Returns true if FilterBouncedRecipientsResult instances are equal + /// + /// Instance of FilterBouncedRecipientsResult to be compared + /// Boolean + public bool Equals(FilterBouncedRecipientsResult input) + { + if (input == null) + { + return false; + } + return + ( + this.FilteredRecipients == input.FilteredRecipients || + this.FilteredRecipients != null && + input.FilteredRecipients != null && + this.FilteredRecipients.SequenceEqual(input.FilteredRecipients) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FilteredRecipients != null) + { + hashCode = (hashCode * 59) + this.FilteredRecipients.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/FlushExpiredInboxesResult.cs b/src/mailslurp_netstandard_2x/Model/FlushExpiredInboxesResult.cs new file mode 100644 index 00000000..f24e59e8 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/FlushExpiredInboxesResult.cs @@ -0,0 +1,160 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Result from calling expire on any inboxes that have applicable expiration dates given current time. + /// + [DataContract(Name = "FlushExpiredInboxesResult")] + public partial class FlushExpiredInboxesResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FlushExpiredInboxesResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Inbox IDs affected by expiration (required). + /// DateTime to filter inboxes so that those expiring before this time are expired (required). + public FlushExpiredInboxesResult(List inboxIds = default(List), DateTime expireBefore = default(DateTime)) + { + // to ensure "inboxIds" is required (not null) + if (inboxIds == null) + { + throw new ArgumentNullException("inboxIds is a required property for FlushExpiredInboxesResult and cannot be null"); + } + this.InboxIds = inboxIds; + this.ExpireBefore = expireBefore; + } + + /// + /// Inbox IDs affected by expiration + /// + /// Inbox IDs affected by expiration + [DataMember(Name = "inboxIds", IsRequired = true, EmitDefaultValue = true)] + public List InboxIds { get; set; } + + /// + /// DateTime to filter inboxes so that those expiring before this time are expired + /// + /// DateTime to filter inboxes so that those expiring before this time are expired + [DataMember(Name = "expireBefore", IsRequired = true, EmitDefaultValue = true)] + public DateTime ExpireBefore { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FlushExpiredInboxesResult {\n"); + sb.Append(" InboxIds: ").Append(InboxIds).Append("\n"); + sb.Append(" ExpireBefore: ").Append(ExpireBefore).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlushExpiredInboxesResult); + } + + /// + /// Returns true if FlushExpiredInboxesResult instances are equal + /// + /// Instance of FlushExpiredInboxesResult to be compared + /// Boolean + public bool Equals(FlushExpiredInboxesResult input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxIds == input.InboxIds || + this.InboxIds != null && + input.InboxIds != null && + this.InboxIds.SequenceEqual(input.InboxIds) + ) && + ( + this.ExpireBefore == input.ExpireBefore || + (this.ExpireBefore != null && + this.ExpireBefore.Equals(input.ExpireBefore)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxIds != null) + { + hashCode = (hashCode * 59) + this.InboxIds.GetHashCode(); + } + if (this.ExpireBefore != null) + { + hashCode = (hashCode * 59) + this.ExpireBefore.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ForwardEmailOptions.cs b/src/mailslurp_netstandard_2x/Model/ForwardEmailOptions.cs new file mode 100644 index 00000000..71209cbc --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ForwardEmailOptions.cs @@ -0,0 +1,257 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for forwarding an email + /// + [DataContract(Name = "ForwardEmailOptions")] + public partial class ForwardEmailOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ForwardEmailOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// To recipients for forwarded email (required). + /// Subject for forwarded email. + /// Optional cc recipients. + /// Optional bcc recipients. + /// Optional from override. + /// Optionally use inbox name as display name for sender email address. + /// Filter recipients to remove any bounced recipients from to, bcc, and cc before sending. + public ForwardEmailOptions(List to = default(List), string subject = default(string), List cc = default(List), List bcc = default(List), string from = default(string), bool? useInboxName = default(bool?), bool? filterBouncedRecipients = default(bool?)) + { + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for ForwardEmailOptions and cannot be null"); + } + this.To = to; + this.Subject = subject; + this.Cc = cc; + this.Bcc = bcc; + this.From = from; + this.UseInboxName = useInboxName; + this.FilterBouncedRecipients = filterBouncedRecipients; + } + + /// + /// To recipients for forwarded email + /// + /// To recipients for forwarded email + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public List To { get; set; } + + /// + /// Subject for forwarded email + /// + /// Subject for forwarded email + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Optional cc recipients + /// + /// Optional cc recipients + [DataMember(Name = "cc", EmitDefaultValue = true)] + public List Cc { get; set; } + + /// + /// Optional bcc recipients + /// + /// Optional bcc recipients + [DataMember(Name = "bcc", EmitDefaultValue = true)] + public List Bcc { get; set; } + + /// + /// Optional from override + /// + /// Optional from override + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Optionally use inbox name as display name for sender email address + /// + /// Optionally use inbox name as display name for sender email address + [DataMember(Name = "useInboxName", EmitDefaultValue = true)] + public bool? UseInboxName { get; set; } + + /// + /// Filter recipients to remove any bounced recipients from to, bcc, and cc before sending + /// + /// Filter recipients to remove any bounced recipients from to, bcc, and cc before sending + [DataMember(Name = "filterBouncedRecipients", EmitDefaultValue = true)] + public bool? FilterBouncedRecipients { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ForwardEmailOptions {\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Cc: ").Append(Cc).Append("\n"); + sb.Append(" Bcc: ").Append(Bcc).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" UseInboxName: ").Append(UseInboxName).Append("\n"); + sb.Append(" FilterBouncedRecipients: ").Append(FilterBouncedRecipients).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ForwardEmailOptions); + } + + /// + /// Returns true if ForwardEmailOptions instances are equal + /// + /// Instance of ForwardEmailOptions to be compared + /// Boolean + public bool Equals(ForwardEmailOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Cc == input.Cc || + this.Cc != null && + input.Cc != null && + this.Cc.SequenceEqual(input.Cc) + ) && + ( + this.Bcc == input.Bcc || + this.Bcc != null && + input.Bcc != null && + this.Bcc.SequenceEqual(input.Bcc) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.UseInboxName == input.UseInboxName || + (this.UseInboxName != null && + this.UseInboxName.Equals(input.UseInboxName)) + ) && + ( + this.FilterBouncedRecipients == input.FilterBouncedRecipients || + (this.FilterBouncedRecipients != null && + this.FilterBouncedRecipients.Equals(input.FilterBouncedRecipients)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Cc != null) + { + hashCode = (hashCode * 59) + this.Cc.GetHashCode(); + } + if (this.Bcc != null) + { + hashCode = (hashCode * 59) + this.Bcc.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.UseInboxName != null) + { + hashCode = (hashCode * 59) + this.UseInboxName.GetHashCode(); + } + if (this.FilterBouncedRecipients != null) + { + hashCode = (hashCode * 59) + this.FilterBouncedRecipients.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GenerateBimiRecordOptions.cs b/src/mailslurp_netstandard_2x/Model/GenerateBimiRecordOptions.cs new file mode 100644 index 00000000..206b0b8b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GenerateBimiRecordOptions.cs @@ -0,0 +1,208 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// GenerateBimiRecordOptions + /// + [DataContract(Name = "GenerateBimiRecordOptions")] + public partial class GenerateBimiRecordOptions : IEquatable, IValidatableObject + { + /// + /// Defines _Version + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum VersionEnum + { + /// + /// Enum BIMI1 for value: BIMI1 + /// + [EnumMember(Value = "BIMI1")] + BIMI1 = 1 + + } + + + /// + /// Gets or Sets _Version + /// + [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)] + public VersionEnum _Version { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GenerateBimiRecordOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// domain (required). + /// version (required). + /// logoUrl (required). + /// vmcUrl. + public GenerateBimiRecordOptions(string domain = default(string), VersionEnum version = default(VersionEnum), string logoUrl = default(string), string vmcUrl = default(string)) + { + // to ensure "domain" is required (not null) + if (domain == null) + { + throw new ArgumentNullException("domain is a required property for GenerateBimiRecordOptions and cannot be null"); + } + this.Domain = domain; + this._Version = version; + // to ensure "logoUrl" is required (not null) + if (logoUrl == null) + { + throw new ArgumentNullException("logoUrl is a required property for GenerateBimiRecordOptions and cannot be null"); + } + this.LogoUrl = logoUrl; + this.VmcUrl = vmcUrl; + } + + /// + /// Gets or Sets Domain + /// + [DataMember(Name = "domain", IsRequired = true, EmitDefaultValue = true)] + public string Domain { get; set; } + + /// + /// Gets or Sets LogoUrl + /// + [DataMember(Name = "logoUrl", IsRequired = true, EmitDefaultValue = true)] + public string LogoUrl { get; set; } + + /// + /// Gets or Sets VmcUrl + /// + [DataMember(Name = "vmcUrl", EmitDefaultValue = false)] + public string VmcUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GenerateBimiRecordOptions {\n"); + sb.Append(" Domain: ").Append(Domain).Append("\n"); + sb.Append(" _Version: ").Append(_Version).Append("\n"); + sb.Append(" LogoUrl: ").Append(LogoUrl).Append("\n"); + sb.Append(" VmcUrl: ").Append(VmcUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GenerateBimiRecordOptions); + } + + /// + /// Returns true if GenerateBimiRecordOptions instances are equal + /// + /// Instance of GenerateBimiRecordOptions to be compared + /// Boolean + public bool Equals(GenerateBimiRecordOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Domain == input.Domain || + (this.Domain != null && + this.Domain.Equals(input.Domain)) + ) && + ( + this._Version == input._Version || + this._Version.Equals(input._Version) + ) && + ( + this.LogoUrl == input.LogoUrl || + (this.LogoUrl != null && + this.LogoUrl.Equals(input.LogoUrl)) + ) && + ( + this.VmcUrl == input.VmcUrl || + (this.VmcUrl != null && + this.VmcUrl.Equals(input.VmcUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Domain != null) + { + hashCode = (hashCode * 59) + this.Domain.GetHashCode(); + } + hashCode = (hashCode * 59) + this._Version.GetHashCode(); + if (this.LogoUrl != null) + { + hashCode = (hashCode * 59) + this.LogoUrl.GetHashCode(); + } + if (this.VmcUrl != null) + { + hashCode = (hashCode * 59) + this.VmcUrl.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GenerateBimiRecordResults.cs b/src/mailslurp_netstandard_2x/Model/GenerateBimiRecordResults.cs new file mode 100644 index 00000000..1047f6e0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GenerateBimiRecordResults.cs @@ -0,0 +1,734 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// GenerateBimiRecordResults + /// + [DataContract(Name = "GenerateBimiRecordResults")] + public partial class GenerateBimiRecordResults : IEquatable, IValidatableObject + { + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum A for value: A + /// + [EnumMember(Value = "A")] + A = 1, + + /// + /// Enum NS for value: NS + /// + [EnumMember(Value = "NS")] + NS = 2, + + /// + /// Enum MD for value: MD + /// + [EnumMember(Value = "MD")] + MD = 3, + + /// + /// Enum MF for value: MF + /// + [EnumMember(Value = "MF")] + MF = 4, + + /// + /// Enum CNAME for value: CNAME + /// + [EnumMember(Value = "CNAME")] + CNAME = 5, + + /// + /// Enum SOA for value: SOA + /// + [EnumMember(Value = "SOA")] + SOA = 6, + + /// + /// Enum MB for value: MB + /// + [EnumMember(Value = "MB")] + MB = 7, + + /// + /// Enum MG for value: MG + /// + [EnumMember(Value = "MG")] + MG = 8, + + /// + /// Enum MR for value: MR + /// + [EnumMember(Value = "MR")] + MR = 9, + + /// + /// Enum NULL for value: NULL + /// + [EnumMember(Value = "NULL")] + NULL = 10, + + /// + /// Enum WKS for value: WKS + /// + [EnumMember(Value = "WKS")] + WKS = 11, + + /// + /// Enum PTR for value: PTR + /// + [EnumMember(Value = "PTR")] + PTR = 12, + + /// + /// Enum HINFO for value: HINFO + /// + [EnumMember(Value = "HINFO")] + HINFO = 13, + + /// + /// Enum MINFO for value: MINFO + /// + [EnumMember(Value = "MINFO")] + MINFO = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum TXT for value: TXT + /// + [EnumMember(Value = "TXT")] + TXT = 16, + + /// + /// Enum RP for value: RP + /// + [EnumMember(Value = "RP")] + RP = 17, + + /// + /// Enum AFSDB for value: AFSDB + /// + [EnumMember(Value = "AFSDB")] + AFSDB = 18, + + /// + /// Enum X25 for value: X25 + /// + [EnumMember(Value = "X25")] + X25 = 19, + + /// + /// Enum ISDN for value: ISDN + /// + [EnumMember(Value = "ISDN")] + ISDN = 20, + + /// + /// Enum RT for value: RT + /// + [EnumMember(Value = "RT")] + RT = 21, + + /// + /// Enum NSAP for value: NSAP + /// + [EnumMember(Value = "NSAP")] + NSAP = 22, + + /// + /// Enum NSAPPTR for value: NSAP_PTR + /// + [EnumMember(Value = "NSAP_PTR")] + NSAPPTR = 23, + + /// + /// Enum SIG for value: SIG + /// + [EnumMember(Value = "SIG")] + SIG = 24, + + /// + /// Enum KEY for value: KEY + /// + [EnumMember(Value = "KEY")] + KEY = 25, + + /// + /// Enum PX for value: PX + /// + [EnumMember(Value = "PX")] + PX = 26, + + /// + /// Enum GPOS for value: GPOS + /// + [EnumMember(Value = "GPOS")] + GPOS = 27, + + /// + /// Enum AAAA for value: AAAA + /// + [EnumMember(Value = "AAAA")] + AAAA = 28, + + /// + /// Enum LOC for value: LOC + /// + [EnumMember(Value = "LOC")] + LOC = 29, + + /// + /// Enum NXT for value: NXT + /// + [EnumMember(Value = "NXT")] + NXT = 30, + + /// + /// Enum EID for value: EID + /// + [EnumMember(Value = "EID")] + EID = 31, + + /// + /// Enum NIMLOC for value: NIMLOC + /// + [EnumMember(Value = "NIMLOC")] + NIMLOC = 32, + + /// + /// Enum SRV for value: SRV + /// + [EnumMember(Value = "SRV")] + SRV = 33, + + /// + /// Enum ATMA for value: ATMA + /// + [EnumMember(Value = "ATMA")] + ATMA = 34, + + /// + /// Enum NAPTR for value: NAPTR + /// + [EnumMember(Value = "NAPTR")] + NAPTR = 35, + + /// + /// Enum KX for value: KX + /// + [EnumMember(Value = "KX")] + KX = 36, + + /// + /// Enum CERT for value: CERT + /// + [EnumMember(Value = "CERT")] + CERT = 37, + + /// + /// Enum A6 for value: A6 + /// + [EnumMember(Value = "A6")] + A6 = 38, + + /// + /// Enum DNAME for value: DNAME + /// + [EnumMember(Value = "DNAME")] + DNAME = 39, + + /// + /// Enum SINK for value: SINK + /// + [EnumMember(Value = "SINK")] + SINK = 40, + + /// + /// Enum OPT for value: OPT + /// + [EnumMember(Value = "OPT")] + OPT = 41, + + /// + /// Enum APL for value: APL + /// + [EnumMember(Value = "APL")] + APL = 42, + + /// + /// Enum DS for value: DS + /// + [EnumMember(Value = "DS")] + DS = 43, + + /// + /// Enum SSHFP for value: SSHFP + /// + [EnumMember(Value = "SSHFP")] + SSHFP = 44, + + /// + /// Enum IPSECKEY for value: IPSECKEY + /// + [EnumMember(Value = "IPSECKEY")] + IPSECKEY = 45, + + /// + /// Enum RRSIG for value: RRSIG + /// + [EnumMember(Value = "RRSIG")] + RRSIG = 46, + + /// + /// Enum NSEC for value: NSEC + /// + [EnumMember(Value = "NSEC")] + NSEC = 47, + + /// + /// Enum DNSKEY for value: DNSKEY + /// + [EnumMember(Value = "DNSKEY")] + DNSKEY = 48, + + /// + /// Enum DHCID for value: DHCID + /// + [EnumMember(Value = "DHCID")] + DHCID = 49, + + /// + /// Enum NSEC3 for value: NSEC3 + /// + [EnumMember(Value = "NSEC3")] + NSEC3 = 50, + + /// + /// Enum NSEC3PARAM for value: NSEC3PARAM + /// + [EnumMember(Value = "NSEC3PARAM")] + NSEC3PARAM = 51, + + /// + /// Enum TLSA for value: TLSA + /// + [EnumMember(Value = "TLSA")] + TLSA = 52, + + /// + /// Enum SMIMEA for value: SMIMEA + /// + [EnumMember(Value = "SMIMEA")] + SMIMEA = 53, + + /// + /// Enum HIP for value: HIP + /// + [EnumMember(Value = "HIP")] + HIP = 54, + + /// + /// Enum NINFO for value: NINFO + /// + [EnumMember(Value = "NINFO")] + NINFO = 55, + + /// + /// Enum RKEY for value: RKEY + /// + [EnumMember(Value = "RKEY")] + RKEY = 56, + + /// + /// Enum TALINK for value: TALINK + /// + [EnumMember(Value = "TALINK")] + TALINK = 57, + + /// + /// Enum CDS for value: CDS + /// + [EnumMember(Value = "CDS")] + CDS = 58, + + /// + /// Enum CDNSKEY for value: CDNSKEY + /// + [EnumMember(Value = "CDNSKEY")] + CDNSKEY = 59, + + /// + /// Enum OPENPGPKEY for value: OPENPGPKEY + /// + [EnumMember(Value = "OPENPGPKEY")] + OPENPGPKEY = 60, + + /// + /// Enum CSYNC for value: CSYNC + /// + [EnumMember(Value = "CSYNC")] + CSYNC = 61, + + /// + /// Enum ZONEMD for value: ZONEMD + /// + [EnumMember(Value = "ZONEMD")] + ZONEMD = 62, + + /// + /// Enum SVCB for value: SVCB + /// + [EnumMember(Value = "SVCB")] + SVCB = 63, + + /// + /// Enum HTTPS for value: HTTPS + /// + [EnumMember(Value = "HTTPS")] + HTTPS = 64, + + /// + /// Enum SPF for value: SPF + /// + [EnumMember(Value = "SPF")] + SPF = 65, + + /// + /// Enum UINFO for value: UINFO + /// + [EnumMember(Value = "UINFO")] + UINFO = 66, + + /// + /// Enum UID for value: UID + /// + [EnumMember(Value = "UID")] + UID = 67, + + /// + /// Enum GID for value: GID + /// + [EnumMember(Value = "GID")] + GID = 68, + + /// + /// Enum UNSPEC for value: UNSPEC + /// + [EnumMember(Value = "UNSPEC")] + UNSPEC = 69, + + /// + /// Enum NID for value: NID + /// + [EnumMember(Value = "NID")] + NID = 70, + + /// + /// Enum L32 for value: L32 + /// + [EnumMember(Value = "L32")] + L32 = 71, + + /// + /// Enum L64 for value: L64 + /// + [EnumMember(Value = "L64")] + L64 = 72, + + /// + /// Enum LP for value: LP + /// + [EnumMember(Value = "LP")] + LP = 73, + + /// + /// Enum EUI48 for value: EUI48 + /// + [EnumMember(Value = "EUI48")] + EUI48 = 74, + + /// + /// Enum EUI64 for value: EUI64 + /// + [EnumMember(Value = "EUI64")] + EUI64 = 75, + + /// + /// Enum TKEY for value: TKEY + /// + [EnumMember(Value = "TKEY")] + TKEY = 76, + + /// + /// Enum TSIG for value: TSIG + /// + [EnumMember(Value = "TSIG")] + TSIG = 77, + + /// + /// Enum IXFR for value: IXFR + /// + [EnumMember(Value = "IXFR")] + IXFR = 78, + + /// + /// Enum AXFR for value: AXFR + /// + [EnumMember(Value = "AXFR")] + AXFR = 79, + + /// + /// Enum MAILB for value: MAILB + /// + [EnumMember(Value = "MAILB")] + MAILB = 80, + + /// + /// Enum MAILA for value: MAILA + /// + [EnumMember(Value = "MAILA")] + MAILA = 81, + + /// + /// Enum ANY for value: ANY + /// + [EnumMember(Value = "ANY")] + ANY = 82, + + /// + /// Enum URI for value: URI + /// + [EnumMember(Value = "URI")] + URI = 83, + + /// + /// Enum CAA for value: CAA + /// + [EnumMember(Value = "CAA")] + CAA = 84, + + /// + /// Enum AVC for value: AVC + /// + [EnumMember(Value = "AVC")] + AVC = 85, + + /// + /// Enum DOA for value: DOA + /// + [EnumMember(Value = "DOA")] + DOA = 86, + + /// + /// Enum AMTRELAY for value: AMTRELAY + /// + [EnumMember(Value = "AMTRELAY")] + AMTRELAY = 87, + + /// + /// Enum TA for value: TA + /// + [EnumMember(Value = "TA")] + TA = 88, + + /// + /// Enum DLV for value: DLV + /// + [EnumMember(Value = "DLV")] + DLV = 89 + + } + + + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GenerateBimiRecordResults() { } + /// + /// Initializes a new instance of the class. + /// + /// name (required). + /// Domain Name Server Record Types (required). + /// ttl (required). + /// value (required). + public GenerateBimiRecordResults(string name = default(string), TypeEnum type = default(TypeEnum), int ttl = default(int), string value = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for GenerateBimiRecordResults and cannot be null"); + } + this.Name = name; + this.Type = type; + this.Ttl = ttl; + // to ensure "value" is required (not null) + if (value == null) + { + throw new ArgumentNullException("value is a required property for GenerateBimiRecordResults and cannot be null"); + } + this.Value = value; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Ttl + /// + [DataMember(Name = "ttl", IsRequired = true, EmitDefaultValue = true)] + public int Ttl { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GenerateBimiRecordResults {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Ttl: ").Append(Ttl).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GenerateBimiRecordResults); + } + + /// + /// Returns true if GenerateBimiRecordResults instances are equal + /// + /// Instance of GenerateBimiRecordResults to be compared + /// Boolean + public bool Equals(GenerateBimiRecordResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.Ttl == input.Ttl || + this.Ttl.Equals(input.Ttl) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + hashCode = (hashCode * 59) + this.Ttl.GetHashCode(); + if (this.Value != null) + { + hashCode = (hashCode * 59) + this.Value.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GenerateDmarcRecordOptions.cs b/src/mailslurp_netstandard_2x/Model/GenerateDmarcRecordOptions.cs new file mode 100644 index 00000000..16aa2518 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GenerateDmarcRecordOptions.cs @@ -0,0 +1,467 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// GenerateDmarcRecordOptions + /// + [DataContract(Name = "GenerateDmarcRecordOptions")] + public partial class GenerateDmarcRecordOptions : IEquatable, IValidatableObject + { + /// + /// Defines _Version + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum VersionEnum + { + /// + /// Enum DMARC1 for value: DMARC1 + /// + [EnumMember(Value = "DMARC1")] + DMARC1 = 1 + + } + + + /// + /// Gets or Sets _Version + /// + [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)] + public VersionEnum _Version { get; set; } + /// + /// Defines Policy + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PolicyEnum + { + /// + /// Enum NONE for value: NONE + /// + [EnumMember(Value = "NONE")] + NONE = 1, + + /// + /// Enum QUARANTINE for value: QUARANTINE + /// + [EnumMember(Value = "QUARANTINE")] + QUARANTINE = 2, + + /// + /// Enum REJECT for value: REJECT + /// + [EnumMember(Value = "REJECT")] + REJECT = 3 + + } + + + /// + /// Gets or Sets Policy + /// + [DataMember(Name = "policy", IsRequired = true, EmitDefaultValue = true)] + public PolicyEnum Policy { get; set; } + /// + /// Defines SubdomainPolicy + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SubdomainPolicyEnum + { + /// + /// Enum NONE for value: NONE + /// + [EnumMember(Value = "NONE")] + NONE = 1, + + /// + /// Enum QUARANTINE for value: QUARANTINE + /// + [EnumMember(Value = "QUARANTINE")] + QUARANTINE = 2, + + /// + /// Enum REJECT for value: REJECT + /// + [EnumMember(Value = "REJECT")] + REJECT = 3 + + } + + + /// + /// Gets or Sets SubdomainPolicy + /// + [DataMember(Name = "subdomainPolicy", EmitDefaultValue = false)] + public SubdomainPolicyEnum? SubdomainPolicy { get; set; } + /// + /// Defines ReportFormat + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ReportFormatEnum + { + /// + /// Enum AFRF for value: AFRF + /// + [EnumMember(Value = "AFRF")] + AFRF = 1 + + } + + + /// + /// Gets or Sets ReportFormat + /// + [DataMember(Name = "reportFormat", EmitDefaultValue = false)] + public ReportFormatEnum? ReportFormat { get; set; } + /// + /// Defines Adkim + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AdkimEnum + { + /// + /// Enum STRICT for value: STRICT + /// + [EnumMember(Value = "STRICT")] + STRICT = 1, + + /// + /// Enum RELAXED for value: RELAXED + /// + [EnumMember(Value = "RELAXED")] + RELAXED = 2 + + } + + + /// + /// Gets or Sets Adkim + /// + [DataMember(Name = "adkim", EmitDefaultValue = false)] + public AdkimEnum? Adkim { get; set; } + /// + /// Defines Aspf + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AspfEnum + { + /// + /// Enum STRICT for value: STRICT + /// + [EnumMember(Value = "STRICT")] + STRICT = 1, + + /// + /// Enum RELAXED for value: RELAXED + /// + [EnumMember(Value = "RELAXED")] + RELAXED = 2 + + } + + + /// + /// Gets or Sets Aspf + /// + [DataMember(Name = "aspf", EmitDefaultValue = false)] + public AspfEnum? Aspf { get; set; } + /// + /// Defines Fo + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum FoEnum + { + /// + /// Enum _0 for value: FO_0 + /// + [EnumMember(Value = "FO_0")] + _0 = 1, + + /// + /// Enum _1 for value: FO_1 + /// + [EnumMember(Value = "FO_1")] + _1 = 2, + + /// + /// Enum D for value: FO_D + /// + [EnumMember(Value = "FO_D")] + D = 3, + + /// + /// Enum S for value: FO_S + /// + [EnumMember(Value = "FO_S")] + S = 4 + + } + + + /// + /// Gets or Sets Fo + /// + [DataMember(Name = "fo", EmitDefaultValue = false)] + public FoEnum? Fo { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GenerateDmarcRecordOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// domain (required). + /// version (required). + /// policy (required). + /// subdomainPolicy. + /// reportEmailAddress. + /// forensicEmailAddress. + /// percentage. + /// reportFormat. + /// secondsBetweenReports. + /// adkim. + /// aspf. + /// fo. + public GenerateDmarcRecordOptions(string domain = default(string), VersionEnum version = default(VersionEnum), PolicyEnum policy = default(PolicyEnum), SubdomainPolicyEnum? subdomainPolicy = default(SubdomainPolicyEnum?), List reportEmailAddress = default(List), List forensicEmailAddress = default(List), int percentage = default(int), ReportFormatEnum? reportFormat = default(ReportFormatEnum?), int secondsBetweenReports = default(int), AdkimEnum? adkim = default(AdkimEnum?), AspfEnum? aspf = default(AspfEnum?), FoEnum? fo = default(FoEnum?)) + { + // to ensure "domain" is required (not null) + if (domain == null) + { + throw new ArgumentNullException("domain is a required property for GenerateDmarcRecordOptions and cannot be null"); + } + this.Domain = domain; + this._Version = version; + this.Policy = policy; + this.SubdomainPolicy = subdomainPolicy; + this.ReportEmailAddress = reportEmailAddress; + this.ForensicEmailAddress = forensicEmailAddress; + this.Percentage = percentage; + this.ReportFormat = reportFormat; + this.SecondsBetweenReports = secondsBetweenReports; + this.Adkim = adkim; + this.Aspf = aspf; + this.Fo = fo; + } + + /// + /// Gets or Sets Domain + /// + [DataMember(Name = "domain", IsRequired = true, EmitDefaultValue = true)] + public string Domain { get; set; } + + /// + /// Gets or Sets ReportEmailAddress + /// + [DataMember(Name = "reportEmailAddress", EmitDefaultValue = false)] + public List ReportEmailAddress { get; set; } + + /// + /// Gets or Sets ForensicEmailAddress + /// + [DataMember(Name = "forensicEmailAddress", EmitDefaultValue = false)] + public List ForensicEmailAddress { get; set; } + + /// + /// Gets or Sets Percentage + /// + [DataMember(Name = "percentage", EmitDefaultValue = false)] + public int Percentage { get; set; } + + /// + /// Gets or Sets SecondsBetweenReports + /// + [DataMember(Name = "secondsBetweenReports", EmitDefaultValue = false)] + public int SecondsBetweenReports { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GenerateDmarcRecordOptions {\n"); + sb.Append(" Domain: ").Append(Domain).Append("\n"); + sb.Append(" _Version: ").Append(_Version).Append("\n"); + sb.Append(" Policy: ").Append(Policy).Append("\n"); + sb.Append(" SubdomainPolicy: ").Append(SubdomainPolicy).Append("\n"); + sb.Append(" ReportEmailAddress: ").Append(ReportEmailAddress).Append("\n"); + sb.Append(" ForensicEmailAddress: ").Append(ForensicEmailAddress).Append("\n"); + sb.Append(" Percentage: ").Append(Percentage).Append("\n"); + sb.Append(" ReportFormat: ").Append(ReportFormat).Append("\n"); + sb.Append(" SecondsBetweenReports: ").Append(SecondsBetweenReports).Append("\n"); + sb.Append(" Adkim: ").Append(Adkim).Append("\n"); + sb.Append(" Aspf: ").Append(Aspf).Append("\n"); + sb.Append(" Fo: ").Append(Fo).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GenerateDmarcRecordOptions); + } + + /// + /// Returns true if GenerateDmarcRecordOptions instances are equal + /// + /// Instance of GenerateDmarcRecordOptions to be compared + /// Boolean + public bool Equals(GenerateDmarcRecordOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Domain == input.Domain || + (this.Domain != null && + this.Domain.Equals(input.Domain)) + ) && + ( + this._Version == input._Version || + this._Version.Equals(input._Version) + ) && + ( + this.Policy == input.Policy || + this.Policy.Equals(input.Policy) + ) && + ( + this.SubdomainPolicy == input.SubdomainPolicy || + this.SubdomainPolicy.Equals(input.SubdomainPolicy) + ) && + ( + this.ReportEmailAddress == input.ReportEmailAddress || + this.ReportEmailAddress != null && + input.ReportEmailAddress != null && + this.ReportEmailAddress.SequenceEqual(input.ReportEmailAddress) + ) && + ( + this.ForensicEmailAddress == input.ForensicEmailAddress || + this.ForensicEmailAddress != null && + input.ForensicEmailAddress != null && + this.ForensicEmailAddress.SequenceEqual(input.ForensicEmailAddress) + ) && + ( + this.Percentage == input.Percentage || + this.Percentage.Equals(input.Percentage) + ) && + ( + this.ReportFormat == input.ReportFormat || + this.ReportFormat.Equals(input.ReportFormat) + ) && + ( + this.SecondsBetweenReports == input.SecondsBetweenReports || + this.SecondsBetweenReports.Equals(input.SecondsBetweenReports) + ) && + ( + this.Adkim == input.Adkim || + this.Adkim.Equals(input.Adkim) + ) && + ( + this.Aspf == input.Aspf || + this.Aspf.Equals(input.Aspf) + ) && + ( + this.Fo == input.Fo || + this.Fo.Equals(input.Fo) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Domain != null) + { + hashCode = (hashCode * 59) + this.Domain.GetHashCode(); + } + hashCode = (hashCode * 59) + this._Version.GetHashCode(); + hashCode = (hashCode * 59) + this.Policy.GetHashCode(); + hashCode = (hashCode * 59) + this.SubdomainPolicy.GetHashCode(); + if (this.ReportEmailAddress != null) + { + hashCode = (hashCode * 59) + this.ReportEmailAddress.GetHashCode(); + } + if (this.ForensicEmailAddress != null) + { + hashCode = (hashCode * 59) + this.ForensicEmailAddress.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Percentage.GetHashCode(); + hashCode = (hashCode * 59) + this.ReportFormat.GetHashCode(); + hashCode = (hashCode * 59) + this.SecondsBetweenReports.GetHashCode(); + hashCode = (hashCode * 59) + this.Adkim.GetHashCode(); + hashCode = (hashCode * 59) + this.Aspf.GetHashCode(); + hashCode = (hashCode * 59) + this.Fo.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Percentage (int) maximum + if (this.Percentage > (int)100) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Percentage, must be a value less than or equal to 100.", new [] { "Percentage" }); + } + + // Percentage (int) minimum + if (this.Percentage < (int)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Percentage, must be a value greater than or equal to 1.", new [] { "Percentage" }); + } + + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GenerateDmarcRecordResults.cs b/src/mailslurp_netstandard_2x/Model/GenerateDmarcRecordResults.cs new file mode 100644 index 00000000..672e6fe5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GenerateDmarcRecordResults.cs @@ -0,0 +1,734 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// GenerateDmarcRecordResults + /// + [DataContract(Name = "GenerateDmarcRecordResults")] + public partial class GenerateDmarcRecordResults : IEquatable, IValidatableObject + { + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum A for value: A + /// + [EnumMember(Value = "A")] + A = 1, + + /// + /// Enum NS for value: NS + /// + [EnumMember(Value = "NS")] + NS = 2, + + /// + /// Enum MD for value: MD + /// + [EnumMember(Value = "MD")] + MD = 3, + + /// + /// Enum MF for value: MF + /// + [EnumMember(Value = "MF")] + MF = 4, + + /// + /// Enum CNAME for value: CNAME + /// + [EnumMember(Value = "CNAME")] + CNAME = 5, + + /// + /// Enum SOA for value: SOA + /// + [EnumMember(Value = "SOA")] + SOA = 6, + + /// + /// Enum MB for value: MB + /// + [EnumMember(Value = "MB")] + MB = 7, + + /// + /// Enum MG for value: MG + /// + [EnumMember(Value = "MG")] + MG = 8, + + /// + /// Enum MR for value: MR + /// + [EnumMember(Value = "MR")] + MR = 9, + + /// + /// Enum NULL for value: NULL + /// + [EnumMember(Value = "NULL")] + NULL = 10, + + /// + /// Enum WKS for value: WKS + /// + [EnumMember(Value = "WKS")] + WKS = 11, + + /// + /// Enum PTR for value: PTR + /// + [EnumMember(Value = "PTR")] + PTR = 12, + + /// + /// Enum HINFO for value: HINFO + /// + [EnumMember(Value = "HINFO")] + HINFO = 13, + + /// + /// Enum MINFO for value: MINFO + /// + [EnumMember(Value = "MINFO")] + MINFO = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum TXT for value: TXT + /// + [EnumMember(Value = "TXT")] + TXT = 16, + + /// + /// Enum RP for value: RP + /// + [EnumMember(Value = "RP")] + RP = 17, + + /// + /// Enum AFSDB for value: AFSDB + /// + [EnumMember(Value = "AFSDB")] + AFSDB = 18, + + /// + /// Enum X25 for value: X25 + /// + [EnumMember(Value = "X25")] + X25 = 19, + + /// + /// Enum ISDN for value: ISDN + /// + [EnumMember(Value = "ISDN")] + ISDN = 20, + + /// + /// Enum RT for value: RT + /// + [EnumMember(Value = "RT")] + RT = 21, + + /// + /// Enum NSAP for value: NSAP + /// + [EnumMember(Value = "NSAP")] + NSAP = 22, + + /// + /// Enum NSAPPTR for value: NSAP_PTR + /// + [EnumMember(Value = "NSAP_PTR")] + NSAPPTR = 23, + + /// + /// Enum SIG for value: SIG + /// + [EnumMember(Value = "SIG")] + SIG = 24, + + /// + /// Enum KEY for value: KEY + /// + [EnumMember(Value = "KEY")] + KEY = 25, + + /// + /// Enum PX for value: PX + /// + [EnumMember(Value = "PX")] + PX = 26, + + /// + /// Enum GPOS for value: GPOS + /// + [EnumMember(Value = "GPOS")] + GPOS = 27, + + /// + /// Enum AAAA for value: AAAA + /// + [EnumMember(Value = "AAAA")] + AAAA = 28, + + /// + /// Enum LOC for value: LOC + /// + [EnumMember(Value = "LOC")] + LOC = 29, + + /// + /// Enum NXT for value: NXT + /// + [EnumMember(Value = "NXT")] + NXT = 30, + + /// + /// Enum EID for value: EID + /// + [EnumMember(Value = "EID")] + EID = 31, + + /// + /// Enum NIMLOC for value: NIMLOC + /// + [EnumMember(Value = "NIMLOC")] + NIMLOC = 32, + + /// + /// Enum SRV for value: SRV + /// + [EnumMember(Value = "SRV")] + SRV = 33, + + /// + /// Enum ATMA for value: ATMA + /// + [EnumMember(Value = "ATMA")] + ATMA = 34, + + /// + /// Enum NAPTR for value: NAPTR + /// + [EnumMember(Value = "NAPTR")] + NAPTR = 35, + + /// + /// Enum KX for value: KX + /// + [EnumMember(Value = "KX")] + KX = 36, + + /// + /// Enum CERT for value: CERT + /// + [EnumMember(Value = "CERT")] + CERT = 37, + + /// + /// Enum A6 for value: A6 + /// + [EnumMember(Value = "A6")] + A6 = 38, + + /// + /// Enum DNAME for value: DNAME + /// + [EnumMember(Value = "DNAME")] + DNAME = 39, + + /// + /// Enum SINK for value: SINK + /// + [EnumMember(Value = "SINK")] + SINK = 40, + + /// + /// Enum OPT for value: OPT + /// + [EnumMember(Value = "OPT")] + OPT = 41, + + /// + /// Enum APL for value: APL + /// + [EnumMember(Value = "APL")] + APL = 42, + + /// + /// Enum DS for value: DS + /// + [EnumMember(Value = "DS")] + DS = 43, + + /// + /// Enum SSHFP for value: SSHFP + /// + [EnumMember(Value = "SSHFP")] + SSHFP = 44, + + /// + /// Enum IPSECKEY for value: IPSECKEY + /// + [EnumMember(Value = "IPSECKEY")] + IPSECKEY = 45, + + /// + /// Enum RRSIG for value: RRSIG + /// + [EnumMember(Value = "RRSIG")] + RRSIG = 46, + + /// + /// Enum NSEC for value: NSEC + /// + [EnumMember(Value = "NSEC")] + NSEC = 47, + + /// + /// Enum DNSKEY for value: DNSKEY + /// + [EnumMember(Value = "DNSKEY")] + DNSKEY = 48, + + /// + /// Enum DHCID for value: DHCID + /// + [EnumMember(Value = "DHCID")] + DHCID = 49, + + /// + /// Enum NSEC3 for value: NSEC3 + /// + [EnumMember(Value = "NSEC3")] + NSEC3 = 50, + + /// + /// Enum NSEC3PARAM for value: NSEC3PARAM + /// + [EnumMember(Value = "NSEC3PARAM")] + NSEC3PARAM = 51, + + /// + /// Enum TLSA for value: TLSA + /// + [EnumMember(Value = "TLSA")] + TLSA = 52, + + /// + /// Enum SMIMEA for value: SMIMEA + /// + [EnumMember(Value = "SMIMEA")] + SMIMEA = 53, + + /// + /// Enum HIP for value: HIP + /// + [EnumMember(Value = "HIP")] + HIP = 54, + + /// + /// Enum NINFO for value: NINFO + /// + [EnumMember(Value = "NINFO")] + NINFO = 55, + + /// + /// Enum RKEY for value: RKEY + /// + [EnumMember(Value = "RKEY")] + RKEY = 56, + + /// + /// Enum TALINK for value: TALINK + /// + [EnumMember(Value = "TALINK")] + TALINK = 57, + + /// + /// Enum CDS for value: CDS + /// + [EnumMember(Value = "CDS")] + CDS = 58, + + /// + /// Enum CDNSKEY for value: CDNSKEY + /// + [EnumMember(Value = "CDNSKEY")] + CDNSKEY = 59, + + /// + /// Enum OPENPGPKEY for value: OPENPGPKEY + /// + [EnumMember(Value = "OPENPGPKEY")] + OPENPGPKEY = 60, + + /// + /// Enum CSYNC for value: CSYNC + /// + [EnumMember(Value = "CSYNC")] + CSYNC = 61, + + /// + /// Enum ZONEMD for value: ZONEMD + /// + [EnumMember(Value = "ZONEMD")] + ZONEMD = 62, + + /// + /// Enum SVCB for value: SVCB + /// + [EnumMember(Value = "SVCB")] + SVCB = 63, + + /// + /// Enum HTTPS for value: HTTPS + /// + [EnumMember(Value = "HTTPS")] + HTTPS = 64, + + /// + /// Enum SPF for value: SPF + /// + [EnumMember(Value = "SPF")] + SPF = 65, + + /// + /// Enum UINFO for value: UINFO + /// + [EnumMember(Value = "UINFO")] + UINFO = 66, + + /// + /// Enum UID for value: UID + /// + [EnumMember(Value = "UID")] + UID = 67, + + /// + /// Enum GID for value: GID + /// + [EnumMember(Value = "GID")] + GID = 68, + + /// + /// Enum UNSPEC for value: UNSPEC + /// + [EnumMember(Value = "UNSPEC")] + UNSPEC = 69, + + /// + /// Enum NID for value: NID + /// + [EnumMember(Value = "NID")] + NID = 70, + + /// + /// Enum L32 for value: L32 + /// + [EnumMember(Value = "L32")] + L32 = 71, + + /// + /// Enum L64 for value: L64 + /// + [EnumMember(Value = "L64")] + L64 = 72, + + /// + /// Enum LP for value: LP + /// + [EnumMember(Value = "LP")] + LP = 73, + + /// + /// Enum EUI48 for value: EUI48 + /// + [EnumMember(Value = "EUI48")] + EUI48 = 74, + + /// + /// Enum EUI64 for value: EUI64 + /// + [EnumMember(Value = "EUI64")] + EUI64 = 75, + + /// + /// Enum TKEY for value: TKEY + /// + [EnumMember(Value = "TKEY")] + TKEY = 76, + + /// + /// Enum TSIG for value: TSIG + /// + [EnumMember(Value = "TSIG")] + TSIG = 77, + + /// + /// Enum IXFR for value: IXFR + /// + [EnumMember(Value = "IXFR")] + IXFR = 78, + + /// + /// Enum AXFR for value: AXFR + /// + [EnumMember(Value = "AXFR")] + AXFR = 79, + + /// + /// Enum MAILB for value: MAILB + /// + [EnumMember(Value = "MAILB")] + MAILB = 80, + + /// + /// Enum MAILA for value: MAILA + /// + [EnumMember(Value = "MAILA")] + MAILA = 81, + + /// + /// Enum ANY for value: ANY + /// + [EnumMember(Value = "ANY")] + ANY = 82, + + /// + /// Enum URI for value: URI + /// + [EnumMember(Value = "URI")] + URI = 83, + + /// + /// Enum CAA for value: CAA + /// + [EnumMember(Value = "CAA")] + CAA = 84, + + /// + /// Enum AVC for value: AVC + /// + [EnumMember(Value = "AVC")] + AVC = 85, + + /// + /// Enum DOA for value: DOA + /// + [EnumMember(Value = "DOA")] + DOA = 86, + + /// + /// Enum AMTRELAY for value: AMTRELAY + /// + [EnumMember(Value = "AMTRELAY")] + AMTRELAY = 87, + + /// + /// Enum TA for value: TA + /// + [EnumMember(Value = "TA")] + TA = 88, + + /// + /// Enum DLV for value: DLV + /// + [EnumMember(Value = "DLV")] + DLV = 89 + + } + + + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GenerateDmarcRecordResults() { } + /// + /// Initializes a new instance of the class. + /// + /// name (required). + /// Domain Name Server Record Types (required). + /// ttl (required). + /// value (required). + public GenerateDmarcRecordResults(string name = default(string), TypeEnum type = default(TypeEnum), int ttl = default(int), string value = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for GenerateDmarcRecordResults and cannot be null"); + } + this.Name = name; + this.Type = type; + this.Ttl = ttl; + // to ensure "value" is required (not null) + if (value == null) + { + throw new ArgumentNullException("value is a required property for GenerateDmarcRecordResults and cannot be null"); + } + this.Value = value; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Ttl + /// + [DataMember(Name = "ttl", IsRequired = true, EmitDefaultValue = true)] + public int Ttl { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GenerateDmarcRecordResults {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Ttl: ").Append(Ttl).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GenerateDmarcRecordResults); + } + + /// + /// Returns true if GenerateDmarcRecordResults instances are equal + /// + /// Instance of GenerateDmarcRecordResults to be compared + /// Boolean + public bool Equals(GenerateDmarcRecordResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.Ttl == input.Ttl || + this.Ttl.Equals(input.Ttl) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + hashCode = (hashCode * 59) + this.Ttl.GetHashCode(); + if (this.Value != null) + { + hashCode = (hashCode * 59) + this.Value.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GenerateMtaStsRecordOptions.cs b/src/mailslurp_netstandard_2x/Model/GenerateMtaStsRecordOptions.cs new file mode 100644 index 00000000..33223f17 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GenerateMtaStsRecordOptions.cs @@ -0,0 +1,259 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// GenerateMtaStsRecordOptions + /// + [DataContract(Name = "GenerateMtaStsRecordOptions")] + public partial class GenerateMtaStsRecordOptions : IEquatable, IValidatableObject + { + /// + /// Defines _Version + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum VersionEnum + { + /// + /// Enum STSv1 for value: STSv1 + /// + [EnumMember(Value = "STSv1")] + STSv1 = 1 + + } + + + /// + /// Gets or Sets _Version + /// + [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)] + public VersionEnum _Version { get; set; } + /// + /// Defines Mode + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ModeEnum + { + /// + /// Enum TESTING for value: TESTING + /// + [EnumMember(Value = "TESTING")] + TESTING = 1, + + /// + /// Enum ENFORCE for value: ENFORCE + /// + [EnumMember(Value = "ENFORCE")] + ENFORCE = 2, + + /// + /// Enum NONE for value: NONE + /// + [EnumMember(Value = "NONE")] + NONE = 3 + + } + + + /// + /// Gets or Sets Mode + /// + [DataMember(Name = "mode", IsRequired = true, EmitDefaultValue = true)] + public ModeEnum Mode { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GenerateMtaStsRecordOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// host (required). + /// version (required). + /// mode (required). + /// ttl (required). + /// maxAgeSeconds (required). + /// mxRecords (required). + public GenerateMtaStsRecordOptions(string host = default(string), VersionEnum version = default(VersionEnum), ModeEnum mode = default(ModeEnum), int ttl = default(int), int maxAgeSeconds = default(int), List mxRecords = default(List)) + { + // to ensure "host" is required (not null) + if (host == null) + { + throw new ArgumentNullException("host is a required property for GenerateMtaStsRecordOptions and cannot be null"); + } + this.Host = host; + this._Version = version; + this.Mode = mode; + this.Ttl = ttl; + this.MaxAgeSeconds = maxAgeSeconds; + // to ensure "mxRecords" is required (not null) + if (mxRecords == null) + { + throw new ArgumentNullException("mxRecords is a required property for GenerateMtaStsRecordOptions and cannot be null"); + } + this.MxRecords = mxRecords; + } + + /// + /// Gets or Sets Host + /// + [DataMember(Name = "host", IsRequired = true, EmitDefaultValue = true)] + public string Host { get; set; } + + /// + /// Gets or Sets Ttl + /// + [DataMember(Name = "ttl", IsRequired = true, EmitDefaultValue = true)] + public int Ttl { get; set; } + + /// + /// Gets or Sets MaxAgeSeconds + /// + [DataMember(Name = "maxAgeSeconds", IsRequired = true, EmitDefaultValue = true)] + public int MaxAgeSeconds { get; set; } + + /// + /// Gets or Sets MxRecords + /// + [DataMember(Name = "mxRecords", IsRequired = true, EmitDefaultValue = true)] + public List MxRecords { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GenerateMtaStsRecordOptions {\n"); + sb.Append(" Host: ").Append(Host).Append("\n"); + sb.Append(" _Version: ").Append(_Version).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Ttl: ").Append(Ttl).Append("\n"); + sb.Append(" MaxAgeSeconds: ").Append(MaxAgeSeconds).Append("\n"); + sb.Append(" MxRecords: ").Append(MxRecords).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GenerateMtaStsRecordOptions); + } + + /// + /// Returns true if GenerateMtaStsRecordOptions instances are equal + /// + /// Instance of GenerateMtaStsRecordOptions to be compared + /// Boolean + public bool Equals(GenerateMtaStsRecordOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Host == input.Host || + (this.Host != null && + this.Host.Equals(input.Host)) + ) && + ( + this._Version == input._Version || + this._Version.Equals(input._Version) + ) && + ( + this.Mode == input.Mode || + this.Mode.Equals(input.Mode) + ) && + ( + this.Ttl == input.Ttl || + this.Ttl.Equals(input.Ttl) + ) && + ( + this.MaxAgeSeconds == input.MaxAgeSeconds || + this.MaxAgeSeconds.Equals(input.MaxAgeSeconds) + ) && + ( + this.MxRecords == input.MxRecords || + this.MxRecords != null && + input.MxRecords != null && + this.MxRecords.SequenceEqual(input.MxRecords) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Host != null) + { + hashCode = (hashCode * 59) + this.Host.GetHashCode(); + } + hashCode = (hashCode * 59) + this._Version.GetHashCode(); + hashCode = (hashCode * 59) + this.Mode.GetHashCode(); + hashCode = (hashCode * 59) + this.Ttl.GetHashCode(); + hashCode = (hashCode * 59) + this.MaxAgeSeconds.GetHashCode(); + if (this.MxRecords != null) + { + hashCode = (hashCode * 59) + this.MxRecords.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GenerateMtaStsRecordResults.cs b/src/mailslurp_netstandard_2x/Model/GenerateMtaStsRecordResults.cs new file mode 100644 index 00000000..2e5a79b1 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GenerateMtaStsRecordResults.cs @@ -0,0 +1,780 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// GenerateMtaStsRecordResults + /// + [DataContract(Name = "GenerateMtaStsRecordResults")] + public partial class GenerateMtaStsRecordResults : IEquatable, IValidatableObject + { + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum A for value: A + /// + [EnumMember(Value = "A")] + A = 1, + + /// + /// Enum NS for value: NS + /// + [EnumMember(Value = "NS")] + NS = 2, + + /// + /// Enum MD for value: MD + /// + [EnumMember(Value = "MD")] + MD = 3, + + /// + /// Enum MF for value: MF + /// + [EnumMember(Value = "MF")] + MF = 4, + + /// + /// Enum CNAME for value: CNAME + /// + [EnumMember(Value = "CNAME")] + CNAME = 5, + + /// + /// Enum SOA for value: SOA + /// + [EnumMember(Value = "SOA")] + SOA = 6, + + /// + /// Enum MB for value: MB + /// + [EnumMember(Value = "MB")] + MB = 7, + + /// + /// Enum MG for value: MG + /// + [EnumMember(Value = "MG")] + MG = 8, + + /// + /// Enum MR for value: MR + /// + [EnumMember(Value = "MR")] + MR = 9, + + /// + /// Enum NULL for value: NULL + /// + [EnumMember(Value = "NULL")] + NULL = 10, + + /// + /// Enum WKS for value: WKS + /// + [EnumMember(Value = "WKS")] + WKS = 11, + + /// + /// Enum PTR for value: PTR + /// + [EnumMember(Value = "PTR")] + PTR = 12, + + /// + /// Enum HINFO for value: HINFO + /// + [EnumMember(Value = "HINFO")] + HINFO = 13, + + /// + /// Enum MINFO for value: MINFO + /// + [EnumMember(Value = "MINFO")] + MINFO = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum TXT for value: TXT + /// + [EnumMember(Value = "TXT")] + TXT = 16, + + /// + /// Enum RP for value: RP + /// + [EnumMember(Value = "RP")] + RP = 17, + + /// + /// Enum AFSDB for value: AFSDB + /// + [EnumMember(Value = "AFSDB")] + AFSDB = 18, + + /// + /// Enum X25 for value: X25 + /// + [EnumMember(Value = "X25")] + X25 = 19, + + /// + /// Enum ISDN for value: ISDN + /// + [EnumMember(Value = "ISDN")] + ISDN = 20, + + /// + /// Enum RT for value: RT + /// + [EnumMember(Value = "RT")] + RT = 21, + + /// + /// Enum NSAP for value: NSAP + /// + [EnumMember(Value = "NSAP")] + NSAP = 22, + + /// + /// Enum NSAPPTR for value: NSAP_PTR + /// + [EnumMember(Value = "NSAP_PTR")] + NSAPPTR = 23, + + /// + /// Enum SIG for value: SIG + /// + [EnumMember(Value = "SIG")] + SIG = 24, + + /// + /// Enum KEY for value: KEY + /// + [EnumMember(Value = "KEY")] + KEY = 25, + + /// + /// Enum PX for value: PX + /// + [EnumMember(Value = "PX")] + PX = 26, + + /// + /// Enum GPOS for value: GPOS + /// + [EnumMember(Value = "GPOS")] + GPOS = 27, + + /// + /// Enum AAAA for value: AAAA + /// + [EnumMember(Value = "AAAA")] + AAAA = 28, + + /// + /// Enum LOC for value: LOC + /// + [EnumMember(Value = "LOC")] + LOC = 29, + + /// + /// Enum NXT for value: NXT + /// + [EnumMember(Value = "NXT")] + NXT = 30, + + /// + /// Enum EID for value: EID + /// + [EnumMember(Value = "EID")] + EID = 31, + + /// + /// Enum NIMLOC for value: NIMLOC + /// + [EnumMember(Value = "NIMLOC")] + NIMLOC = 32, + + /// + /// Enum SRV for value: SRV + /// + [EnumMember(Value = "SRV")] + SRV = 33, + + /// + /// Enum ATMA for value: ATMA + /// + [EnumMember(Value = "ATMA")] + ATMA = 34, + + /// + /// Enum NAPTR for value: NAPTR + /// + [EnumMember(Value = "NAPTR")] + NAPTR = 35, + + /// + /// Enum KX for value: KX + /// + [EnumMember(Value = "KX")] + KX = 36, + + /// + /// Enum CERT for value: CERT + /// + [EnumMember(Value = "CERT")] + CERT = 37, + + /// + /// Enum A6 for value: A6 + /// + [EnumMember(Value = "A6")] + A6 = 38, + + /// + /// Enum DNAME for value: DNAME + /// + [EnumMember(Value = "DNAME")] + DNAME = 39, + + /// + /// Enum SINK for value: SINK + /// + [EnumMember(Value = "SINK")] + SINK = 40, + + /// + /// Enum OPT for value: OPT + /// + [EnumMember(Value = "OPT")] + OPT = 41, + + /// + /// Enum APL for value: APL + /// + [EnumMember(Value = "APL")] + APL = 42, + + /// + /// Enum DS for value: DS + /// + [EnumMember(Value = "DS")] + DS = 43, + + /// + /// Enum SSHFP for value: SSHFP + /// + [EnumMember(Value = "SSHFP")] + SSHFP = 44, + + /// + /// Enum IPSECKEY for value: IPSECKEY + /// + [EnumMember(Value = "IPSECKEY")] + IPSECKEY = 45, + + /// + /// Enum RRSIG for value: RRSIG + /// + [EnumMember(Value = "RRSIG")] + RRSIG = 46, + + /// + /// Enum NSEC for value: NSEC + /// + [EnumMember(Value = "NSEC")] + NSEC = 47, + + /// + /// Enum DNSKEY for value: DNSKEY + /// + [EnumMember(Value = "DNSKEY")] + DNSKEY = 48, + + /// + /// Enum DHCID for value: DHCID + /// + [EnumMember(Value = "DHCID")] + DHCID = 49, + + /// + /// Enum NSEC3 for value: NSEC3 + /// + [EnumMember(Value = "NSEC3")] + NSEC3 = 50, + + /// + /// Enum NSEC3PARAM for value: NSEC3PARAM + /// + [EnumMember(Value = "NSEC3PARAM")] + NSEC3PARAM = 51, + + /// + /// Enum TLSA for value: TLSA + /// + [EnumMember(Value = "TLSA")] + TLSA = 52, + + /// + /// Enum SMIMEA for value: SMIMEA + /// + [EnumMember(Value = "SMIMEA")] + SMIMEA = 53, + + /// + /// Enum HIP for value: HIP + /// + [EnumMember(Value = "HIP")] + HIP = 54, + + /// + /// Enum NINFO for value: NINFO + /// + [EnumMember(Value = "NINFO")] + NINFO = 55, + + /// + /// Enum RKEY for value: RKEY + /// + [EnumMember(Value = "RKEY")] + RKEY = 56, + + /// + /// Enum TALINK for value: TALINK + /// + [EnumMember(Value = "TALINK")] + TALINK = 57, + + /// + /// Enum CDS for value: CDS + /// + [EnumMember(Value = "CDS")] + CDS = 58, + + /// + /// Enum CDNSKEY for value: CDNSKEY + /// + [EnumMember(Value = "CDNSKEY")] + CDNSKEY = 59, + + /// + /// Enum OPENPGPKEY for value: OPENPGPKEY + /// + [EnumMember(Value = "OPENPGPKEY")] + OPENPGPKEY = 60, + + /// + /// Enum CSYNC for value: CSYNC + /// + [EnumMember(Value = "CSYNC")] + CSYNC = 61, + + /// + /// Enum ZONEMD for value: ZONEMD + /// + [EnumMember(Value = "ZONEMD")] + ZONEMD = 62, + + /// + /// Enum SVCB for value: SVCB + /// + [EnumMember(Value = "SVCB")] + SVCB = 63, + + /// + /// Enum HTTPS for value: HTTPS + /// + [EnumMember(Value = "HTTPS")] + HTTPS = 64, + + /// + /// Enum SPF for value: SPF + /// + [EnumMember(Value = "SPF")] + SPF = 65, + + /// + /// Enum UINFO for value: UINFO + /// + [EnumMember(Value = "UINFO")] + UINFO = 66, + + /// + /// Enum UID for value: UID + /// + [EnumMember(Value = "UID")] + UID = 67, + + /// + /// Enum GID for value: GID + /// + [EnumMember(Value = "GID")] + GID = 68, + + /// + /// Enum UNSPEC for value: UNSPEC + /// + [EnumMember(Value = "UNSPEC")] + UNSPEC = 69, + + /// + /// Enum NID for value: NID + /// + [EnumMember(Value = "NID")] + NID = 70, + + /// + /// Enum L32 for value: L32 + /// + [EnumMember(Value = "L32")] + L32 = 71, + + /// + /// Enum L64 for value: L64 + /// + [EnumMember(Value = "L64")] + L64 = 72, + + /// + /// Enum LP for value: LP + /// + [EnumMember(Value = "LP")] + LP = 73, + + /// + /// Enum EUI48 for value: EUI48 + /// + [EnumMember(Value = "EUI48")] + EUI48 = 74, + + /// + /// Enum EUI64 for value: EUI64 + /// + [EnumMember(Value = "EUI64")] + EUI64 = 75, + + /// + /// Enum TKEY for value: TKEY + /// + [EnumMember(Value = "TKEY")] + TKEY = 76, + + /// + /// Enum TSIG for value: TSIG + /// + [EnumMember(Value = "TSIG")] + TSIG = 77, + + /// + /// Enum IXFR for value: IXFR + /// + [EnumMember(Value = "IXFR")] + IXFR = 78, + + /// + /// Enum AXFR for value: AXFR + /// + [EnumMember(Value = "AXFR")] + AXFR = 79, + + /// + /// Enum MAILB for value: MAILB + /// + [EnumMember(Value = "MAILB")] + MAILB = 80, + + /// + /// Enum MAILA for value: MAILA + /// + [EnumMember(Value = "MAILA")] + MAILA = 81, + + /// + /// Enum ANY for value: ANY + /// + [EnumMember(Value = "ANY")] + ANY = 82, + + /// + /// Enum URI for value: URI + /// + [EnumMember(Value = "URI")] + URI = 83, + + /// + /// Enum CAA for value: CAA + /// + [EnumMember(Value = "CAA")] + CAA = 84, + + /// + /// Enum AVC for value: AVC + /// + [EnumMember(Value = "AVC")] + AVC = 85, + + /// + /// Enum DOA for value: DOA + /// + [EnumMember(Value = "DOA")] + DOA = 86, + + /// + /// Enum AMTRELAY for value: AMTRELAY + /// + [EnumMember(Value = "AMTRELAY")] + AMTRELAY = 87, + + /// + /// Enum TA for value: TA + /// + [EnumMember(Value = "TA")] + TA = 88, + + /// + /// Enum DLV for value: DLV + /// + [EnumMember(Value = "DLV")] + DLV = 89 + + } + + + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GenerateMtaStsRecordResults() { } + /// + /// Initializes a new instance of the class. + /// + /// name (required). + /// Domain Name Server Record Types (required). + /// ttl (required). + /// value (required). + /// wellKnownValue (required). + /// wellKnownUrl (required). + public GenerateMtaStsRecordResults(string name = default(string), TypeEnum type = default(TypeEnum), int ttl = default(int), string value = default(string), string wellKnownValue = default(string), string wellKnownUrl = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for GenerateMtaStsRecordResults and cannot be null"); + } + this.Name = name; + this.Type = type; + this.Ttl = ttl; + // to ensure "value" is required (not null) + if (value == null) + { + throw new ArgumentNullException("value is a required property for GenerateMtaStsRecordResults and cannot be null"); + } + this.Value = value; + // to ensure "wellKnownValue" is required (not null) + if (wellKnownValue == null) + { + throw new ArgumentNullException("wellKnownValue is a required property for GenerateMtaStsRecordResults and cannot be null"); + } + this.WellKnownValue = wellKnownValue; + // to ensure "wellKnownUrl" is required (not null) + if (wellKnownUrl == null) + { + throw new ArgumentNullException("wellKnownUrl is a required property for GenerateMtaStsRecordResults and cannot be null"); + } + this.WellKnownUrl = wellKnownUrl; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Ttl + /// + [DataMember(Name = "ttl", IsRequired = true, EmitDefaultValue = true)] + public int Ttl { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public string Value { get; set; } + + /// + /// Gets or Sets WellKnownValue + /// + [DataMember(Name = "wellKnownValue", IsRequired = true, EmitDefaultValue = true)] + public string WellKnownValue { get; set; } + + /// + /// Gets or Sets WellKnownUrl + /// + [DataMember(Name = "wellKnownUrl", IsRequired = true, EmitDefaultValue = true)] + public string WellKnownUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GenerateMtaStsRecordResults {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Ttl: ").Append(Ttl).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" WellKnownValue: ").Append(WellKnownValue).Append("\n"); + sb.Append(" WellKnownUrl: ").Append(WellKnownUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GenerateMtaStsRecordResults); + } + + /// + /// Returns true if GenerateMtaStsRecordResults instances are equal + /// + /// Instance of GenerateMtaStsRecordResults to be compared + /// Boolean + public bool Equals(GenerateMtaStsRecordResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.Ttl == input.Ttl || + this.Ttl.Equals(input.Ttl) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ) && + ( + this.WellKnownValue == input.WellKnownValue || + (this.WellKnownValue != null && + this.WellKnownValue.Equals(input.WellKnownValue)) + ) && + ( + this.WellKnownUrl == input.WellKnownUrl || + (this.WellKnownUrl != null && + this.WellKnownUrl.Equals(input.WellKnownUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + hashCode = (hashCode * 59) + this.Ttl.GetHashCode(); + if (this.Value != null) + { + hashCode = (hashCode * 59) + this.Value.GetHashCode(); + } + if (this.WellKnownValue != null) + { + hashCode = (hashCode * 59) + this.WellKnownValue.GetHashCode(); + } + if (this.WellKnownUrl != null) + { + hashCode = (hashCode * 59) + this.WellKnownUrl.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GenerateTlsReportingRecordOptions.cs b/src/mailslurp_netstandard_2x/Model/GenerateTlsReportingRecordOptions.cs new file mode 100644 index 00000000..d6b4a2e9 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GenerateTlsReportingRecordOptions.cs @@ -0,0 +1,223 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// GenerateTlsReportingRecordOptions + /// + [DataContract(Name = "GenerateTlsReportingRecordOptions")] + public partial class GenerateTlsReportingRecordOptions : IEquatable, IValidatableObject + { + /// + /// Defines _Version + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum VersionEnum + { + /// + /// Enum TLSRPTv1 for value: TLSRPTv1 + /// + [EnumMember(Value = "TLSRPTv1")] + TLSRPTv1 = 1 + + } + + + /// + /// Gets or Sets _Version + /// + [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)] + public VersionEnum _Version { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GenerateTlsReportingRecordOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// reportingAddresses (required). + /// reportingUrl. + /// host (required). + /// version (required). + /// ttl (required). + public GenerateTlsReportingRecordOptions(List reportingAddresses = default(List), string reportingUrl = default(string), string host = default(string), VersionEnum version = default(VersionEnum), int ttl = default(int)) + { + // to ensure "reportingAddresses" is required (not null) + if (reportingAddresses == null) + { + throw new ArgumentNullException("reportingAddresses is a required property for GenerateTlsReportingRecordOptions and cannot be null"); + } + this.ReportingAddresses = reportingAddresses; + // to ensure "host" is required (not null) + if (host == null) + { + throw new ArgumentNullException("host is a required property for GenerateTlsReportingRecordOptions and cannot be null"); + } + this.Host = host; + this._Version = version; + this.Ttl = ttl; + this.ReportingUrl = reportingUrl; + } + + /// + /// Gets or Sets ReportingAddresses + /// + [DataMember(Name = "reportingAddresses", IsRequired = true, EmitDefaultValue = true)] + public List ReportingAddresses { get; set; } + + /// + /// Gets or Sets ReportingUrl + /// + [DataMember(Name = "reportingUrl", EmitDefaultValue = false)] + public string ReportingUrl { get; set; } + + /// + /// Gets or Sets Host + /// + [DataMember(Name = "host", IsRequired = true, EmitDefaultValue = true)] + public string Host { get; set; } + + /// + /// Gets or Sets Ttl + /// + [DataMember(Name = "ttl", IsRequired = true, EmitDefaultValue = true)] + public int Ttl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GenerateTlsReportingRecordOptions {\n"); + sb.Append(" ReportingAddresses: ").Append(ReportingAddresses).Append("\n"); + sb.Append(" ReportingUrl: ").Append(ReportingUrl).Append("\n"); + sb.Append(" Host: ").Append(Host).Append("\n"); + sb.Append(" _Version: ").Append(_Version).Append("\n"); + sb.Append(" Ttl: ").Append(Ttl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GenerateTlsReportingRecordOptions); + } + + /// + /// Returns true if GenerateTlsReportingRecordOptions instances are equal + /// + /// Instance of GenerateTlsReportingRecordOptions to be compared + /// Boolean + public bool Equals(GenerateTlsReportingRecordOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.ReportingAddresses == input.ReportingAddresses || + this.ReportingAddresses != null && + input.ReportingAddresses != null && + this.ReportingAddresses.SequenceEqual(input.ReportingAddresses) + ) && + ( + this.ReportingUrl == input.ReportingUrl || + (this.ReportingUrl != null && + this.ReportingUrl.Equals(input.ReportingUrl)) + ) && + ( + this.Host == input.Host || + (this.Host != null && + this.Host.Equals(input.Host)) + ) && + ( + this._Version == input._Version || + this._Version.Equals(input._Version) + ) && + ( + this.Ttl == input.Ttl || + this.Ttl.Equals(input.Ttl) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ReportingAddresses != null) + { + hashCode = (hashCode * 59) + this.ReportingAddresses.GetHashCode(); + } + if (this.ReportingUrl != null) + { + hashCode = (hashCode * 59) + this.ReportingUrl.GetHashCode(); + } + if (this.Host != null) + { + hashCode = (hashCode * 59) + this.Host.GetHashCode(); + } + hashCode = (hashCode * 59) + this._Version.GetHashCode(); + hashCode = (hashCode * 59) + this.Ttl.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GenerateTlsReportingRecordResults.cs b/src/mailslurp_netstandard_2x/Model/GenerateTlsReportingRecordResults.cs new file mode 100644 index 00000000..53c409a9 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GenerateTlsReportingRecordResults.cs @@ -0,0 +1,734 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// GenerateTlsReportingRecordResults + /// + [DataContract(Name = "GenerateTlsReportingRecordResults")] + public partial class GenerateTlsReportingRecordResults : IEquatable, IValidatableObject + { + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum A for value: A + /// + [EnumMember(Value = "A")] + A = 1, + + /// + /// Enum NS for value: NS + /// + [EnumMember(Value = "NS")] + NS = 2, + + /// + /// Enum MD for value: MD + /// + [EnumMember(Value = "MD")] + MD = 3, + + /// + /// Enum MF for value: MF + /// + [EnumMember(Value = "MF")] + MF = 4, + + /// + /// Enum CNAME for value: CNAME + /// + [EnumMember(Value = "CNAME")] + CNAME = 5, + + /// + /// Enum SOA for value: SOA + /// + [EnumMember(Value = "SOA")] + SOA = 6, + + /// + /// Enum MB for value: MB + /// + [EnumMember(Value = "MB")] + MB = 7, + + /// + /// Enum MG for value: MG + /// + [EnumMember(Value = "MG")] + MG = 8, + + /// + /// Enum MR for value: MR + /// + [EnumMember(Value = "MR")] + MR = 9, + + /// + /// Enum NULL for value: NULL + /// + [EnumMember(Value = "NULL")] + NULL = 10, + + /// + /// Enum WKS for value: WKS + /// + [EnumMember(Value = "WKS")] + WKS = 11, + + /// + /// Enum PTR for value: PTR + /// + [EnumMember(Value = "PTR")] + PTR = 12, + + /// + /// Enum HINFO for value: HINFO + /// + [EnumMember(Value = "HINFO")] + HINFO = 13, + + /// + /// Enum MINFO for value: MINFO + /// + [EnumMember(Value = "MINFO")] + MINFO = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum TXT for value: TXT + /// + [EnumMember(Value = "TXT")] + TXT = 16, + + /// + /// Enum RP for value: RP + /// + [EnumMember(Value = "RP")] + RP = 17, + + /// + /// Enum AFSDB for value: AFSDB + /// + [EnumMember(Value = "AFSDB")] + AFSDB = 18, + + /// + /// Enum X25 for value: X25 + /// + [EnumMember(Value = "X25")] + X25 = 19, + + /// + /// Enum ISDN for value: ISDN + /// + [EnumMember(Value = "ISDN")] + ISDN = 20, + + /// + /// Enum RT for value: RT + /// + [EnumMember(Value = "RT")] + RT = 21, + + /// + /// Enum NSAP for value: NSAP + /// + [EnumMember(Value = "NSAP")] + NSAP = 22, + + /// + /// Enum NSAPPTR for value: NSAP_PTR + /// + [EnumMember(Value = "NSAP_PTR")] + NSAPPTR = 23, + + /// + /// Enum SIG for value: SIG + /// + [EnumMember(Value = "SIG")] + SIG = 24, + + /// + /// Enum KEY for value: KEY + /// + [EnumMember(Value = "KEY")] + KEY = 25, + + /// + /// Enum PX for value: PX + /// + [EnumMember(Value = "PX")] + PX = 26, + + /// + /// Enum GPOS for value: GPOS + /// + [EnumMember(Value = "GPOS")] + GPOS = 27, + + /// + /// Enum AAAA for value: AAAA + /// + [EnumMember(Value = "AAAA")] + AAAA = 28, + + /// + /// Enum LOC for value: LOC + /// + [EnumMember(Value = "LOC")] + LOC = 29, + + /// + /// Enum NXT for value: NXT + /// + [EnumMember(Value = "NXT")] + NXT = 30, + + /// + /// Enum EID for value: EID + /// + [EnumMember(Value = "EID")] + EID = 31, + + /// + /// Enum NIMLOC for value: NIMLOC + /// + [EnumMember(Value = "NIMLOC")] + NIMLOC = 32, + + /// + /// Enum SRV for value: SRV + /// + [EnumMember(Value = "SRV")] + SRV = 33, + + /// + /// Enum ATMA for value: ATMA + /// + [EnumMember(Value = "ATMA")] + ATMA = 34, + + /// + /// Enum NAPTR for value: NAPTR + /// + [EnumMember(Value = "NAPTR")] + NAPTR = 35, + + /// + /// Enum KX for value: KX + /// + [EnumMember(Value = "KX")] + KX = 36, + + /// + /// Enum CERT for value: CERT + /// + [EnumMember(Value = "CERT")] + CERT = 37, + + /// + /// Enum A6 for value: A6 + /// + [EnumMember(Value = "A6")] + A6 = 38, + + /// + /// Enum DNAME for value: DNAME + /// + [EnumMember(Value = "DNAME")] + DNAME = 39, + + /// + /// Enum SINK for value: SINK + /// + [EnumMember(Value = "SINK")] + SINK = 40, + + /// + /// Enum OPT for value: OPT + /// + [EnumMember(Value = "OPT")] + OPT = 41, + + /// + /// Enum APL for value: APL + /// + [EnumMember(Value = "APL")] + APL = 42, + + /// + /// Enum DS for value: DS + /// + [EnumMember(Value = "DS")] + DS = 43, + + /// + /// Enum SSHFP for value: SSHFP + /// + [EnumMember(Value = "SSHFP")] + SSHFP = 44, + + /// + /// Enum IPSECKEY for value: IPSECKEY + /// + [EnumMember(Value = "IPSECKEY")] + IPSECKEY = 45, + + /// + /// Enum RRSIG for value: RRSIG + /// + [EnumMember(Value = "RRSIG")] + RRSIG = 46, + + /// + /// Enum NSEC for value: NSEC + /// + [EnumMember(Value = "NSEC")] + NSEC = 47, + + /// + /// Enum DNSKEY for value: DNSKEY + /// + [EnumMember(Value = "DNSKEY")] + DNSKEY = 48, + + /// + /// Enum DHCID for value: DHCID + /// + [EnumMember(Value = "DHCID")] + DHCID = 49, + + /// + /// Enum NSEC3 for value: NSEC3 + /// + [EnumMember(Value = "NSEC3")] + NSEC3 = 50, + + /// + /// Enum NSEC3PARAM for value: NSEC3PARAM + /// + [EnumMember(Value = "NSEC3PARAM")] + NSEC3PARAM = 51, + + /// + /// Enum TLSA for value: TLSA + /// + [EnumMember(Value = "TLSA")] + TLSA = 52, + + /// + /// Enum SMIMEA for value: SMIMEA + /// + [EnumMember(Value = "SMIMEA")] + SMIMEA = 53, + + /// + /// Enum HIP for value: HIP + /// + [EnumMember(Value = "HIP")] + HIP = 54, + + /// + /// Enum NINFO for value: NINFO + /// + [EnumMember(Value = "NINFO")] + NINFO = 55, + + /// + /// Enum RKEY for value: RKEY + /// + [EnumMember(Value = "RKEY")] + RKEY = 56, + + /// + /// Enum TALINK for value: TALINK + /// + [EnumMember(Value = "TALINK")] + TALINK = 57, + + /// + /// Enum CDS for value: CDS + /// + [EnumMember(Value = "CDS")] + CDS = 58, + + /// + /// Enum CDNSKEY for value: CDNSKEY + /// + [EnumMember(Value = "CDNSKEY")] + CDNSKEY = 59, + + /// + /// Enum OPENPGPKEY for value: OPENPGPKEY + /// + [EnumMember(Value = "OPENPGPKEY")] + OPENPGPKEY = 60, + + /// + /// Enum CSYNC for value: CSYNC + /// + [EnumMember(Value = "CSYNC")] + CSYNC = 61, + + /// + /// Enum ZONEMD for value: ZONEMD + /// + [EnumMember(Value = "ZONEMD")] + ZONEMD = 62, + + /// + /// Enum SVCB for value: SVCB + /// + [EnumMember(Value = "SVCB")] + SVCB = 63, + + /// + /// Enum HTTPS for value: HTTPS + /// + [EnumMember(Value = "HTTPS")] + HTTPS = 64, + + /// + /// Enum SPF for value: SPF + /// + [EnumMember(Value = "SPF")] + SPF = 65, + + /// + /// Enum UINFO for value: UINFO + /// + [EnumMember(Value = "UINFO")] + UINFO = 66, + + /// + /// Enum UID for value: UID + /// + [EnumMember(Value = "UID")] + UID = 67, + + /// + /// Enum GID for value: GID + /// + [EnumMember(Value = "GID")] + GID = 68, + + /// + /// Enum UNSPEC for value: UNSPEC + /// + [EnumMember(Value = "UNSPEC")] + UNSPEC = 69, + + /// + /// Enum NID for value: NID + /// + [EnumMember(Value = "NID")] + NID = 70, + + /// + /// Enum L32 for value: L32 + /// + [EnumMember(Value = "L32")] + L32 = 71, + + /// + /// Enum L64 for value: L64 + /// + [EnumMember(Value = "L64")] + L64 = 72, + + /// + /// Enum LP for value: LP + /// + [EnumMember(Value = "LP")] + LP = 73, + + /// + /// Enum EUI48 for value: EUI48 + /// + [EnumMember(Value = "EUI48")] + EUI48 = 74, + + /// + /// Enum EUI64 for value: EUI64 + /// + [EnumMember(Value = "EUI64")] + EUI64 = 75, + + /// + /// Enum TKEY for value: TKEY + /// + [EnumMember(Value = "TKEY")] + TKEY = 76, + + /// + /// Enum TSIG for value: TSIG + /// + [EnumMember(Value = "TSIG")] + TSIG = 77, + + /// + /// Enum IXFR for value: IXFR + /// + [EnumMember(Value = "IXFR")] + IXFR = 78, + + /// + /// Enum AXFR for value: AXFR + /// + [EnumMember(Value = "AXFR")] + AXFR = 79, + + /// + /// Enum MAILB for value: MAILB + /// + [EnumMember(Value = "MAILB")] + MAILB = 80, + + /// + /// Enum MAILA for value: MAILA + /// + [EnumMember(Value = "MAILA")] + MAILA = 81, + + /// + /// Enum ANY for value: ANY + /// + [EnumMember(Value = "ANY")] + ANY = 82, + + /// + /// Enum URI for value: URI + /// + [EnumMember(Value = "URI")] + URI = 83, + + /// + /// Enum CAA for value: CAA + /// + [EnumMember(Value = "CAA")] + CAA = 84, + + /// + /// Enum AVC for value: AVC + /// + [EnumMember(Value = "AVC")] + AVC = 85, + + /// + /// Enum DOA for value: DOA + /// + [EnumMember(Value = "DOA")] + DOA = 86, + + /// + /// Enum AMTRELAY for value: AMTRELAY + /// + [EnumMember(Value = "AMTRELAY")] + AMTRELAY = 87, + + /// + /// Enum TA for value: TA + /// + [EnumMember(Value = "TA")] + TA = 88, + + /// + /// Enum DLV for value: DLV + /// + [EnumMember(Value = "DLV")] + DLV = 89 + + } + + + /// + /// Domain Name Server Record Types + /// + /// Domain Name Server Record Types + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GenerateTlsReportingRecordResults() { } + /// + /// Initializes a new instance of the class. + /// + /// name (required). + /// Domain Name Server Record Types (required). + /// ttl (required). + /// value (required). + public GenerateTlsReportingRecordResults(string name = default(string), TypeEnum type = default(TypeEnum), int ttl = default(int), string value = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for GenerateTlsReportingRecordResults and cannot be null"); + } + this.Name = name; + this.Type = type; + this.Ttl = ttl; + // to ensure "value" is required (not null) + if (value == null) + { + throw new ArgumentNullException("value is a required property for GenerateTlsReportingRecordResults and cannot be null"); + } + this.Value = value; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Ttl + /// + [DataMember(Name = "ttl", IsRequired = true, EmitDefaultValue = true)] + public int Ttl { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GenerateTlsReportingRecordResults {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Ttl: ").Append(Ttl).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GenerateTlsReportingRecordResults); + } + + /// + /// Returns true if GenerateTlsReportingRecordResults instances are equal + /// + /// Instance of GenerateTlsReportingRecordResults to be compared + /// Boolean + public bool Equals(GenerateTlsReportingRecordResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.Ttl == input.Ttl || + this.Ttl.Equals(input.Ttl) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + hashCode = (hashCode * 59) + this.Ttl.GetHashCode(); + if (this.Value != null) + { + hashCode = (hashCode * 59) + this.Value.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GetEmailScreenshotOptions.cs b/src/mailslurp_netstandard_2x/Model/GetEmailScreenshotOptions.cs new file mode 100644 index 00000000..1bde8413 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GetEmailScreenshotOptions.cs @@ -0,0 +1,149 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options taking a screenshot capture of a rendered email + /// + [DataContract(Name = "GetEmailScreenshotOptions")] + public partial class GetEmailScreenshotOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Window height in pixels. + /// Window width in pixels. + public GetEmailScreenshotOptions(int? height = default(int?), int? width = default(int?)) + { + this.Height = height; + this.Width = width; + } + + /// + /// Window height in pixels + /// + /// Window height in pixels + [DataMember(Name = "height", EmitDefaultValue = true)] + public int? Height { get; set; } + + /// + /// Window width in pixels + /// + /// Window width in pixels + [DataMember(Name = "width", EmitDefaultValue = true)] + public int? Width { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetEmailScreenshotOptions {\n"); + sb.Append(" Height: ").Append(Height).Append("\n"); + sb.Append(" Width: ").Append(Width).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetEmailScreenshotOptions); + } + + /// + /// Returns true if GetEmailScreenshotOptions instances are equal + /// + /// Instance of GetEmailScreenshotOptions to be compared + /// Boolean + public bool Equals(GetEmailScreenshotOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Height == input.Height || + (this.Height != null && + this.Height.Equals(input.Height)) + ) && + ( + this.Width == input.Width || + (this.Width != null && + this.Width.Equals(input.Width)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Height != null) + { + hashCode = (hashCode * 59) + this.Height.GetHashCode(); + } + if (this.Width != null) + { + hashCode = (hashCode * 59) + this.Width.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GravatarUrl.cs b/src/mailslurp_netstandard_2x/Model/GravatarUrl.cs new file mode 100644 index 00000000..85f09cb7 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GravatarUrl.cs @@ -0,0 +1,162 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// User image + /// + [DataContract(Name = "GravatarUrl")] + public partial class GravatarUrl : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GravatarUrl() { } + /// + /// Initializes a new instance of the class. + /// + /// url (required). + /// hash (required). + public GravatarUrl(string url = default(string), string hash = default(string)) + { + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for GravatarUrl and cannot be null"); + } + this.Url = url; + // to ensure "hash" is required (not null) + if (hash == null) + { + throw new ArgumentNullException("hash is a required property for GravatarUrl and cannot be null"); + } + this.Hash = hash; + } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Gets or Sets Hash + /// + [DataMember(Name = "hash", IsRequired = true, EmitDefaultValue = true)] + public string Hash { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GravatarUrl {\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" Hash: ").Append(Hash).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GravatarUrl); + } + + /// + /// Returns true if GravatarUrl instances are equal + /// + /// Instance of GravatarUrl to be compared + /// Boolean + public bool Equals(GravatarUrl input) + { + if (input == null) + { + return false; + } + return + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ) && + ( + this.Hash == input.Hash || + (this.Hash != null && + this.Hash.Equals(input.Hash)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.GetHashCode(); + } + if (this.Hash != null) + { + hashCode = (hashCode * 59) + this.Hash.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GroupContactsDto.cs b/src/mailslurp_netstandard_2x/Model/GroupContactsDto.cs new file mode 100644 index 00000000..a1c6fe0e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GroupContactsDto.cs @@ -0,0 +1,163 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Describes contacts attached to a contact group + /// + [DataContract(Name = "GroupContactsDto")] + public partial class GroupContactsDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GroupContactsDto() { } + /// + /// Initializes a new instance of the class. + /// + /// group (required). + /// contacts (required). + public GroupContactsDto(GroupDto group = default(GroupDto), List contacts = default(List)) + { + // to ensure "group" is required (not null) + if (group == null) + { + throw new ArgumentNullException("group is a required property for GroupContactsDto and cannot be null"); + } + this.Group = group; + // to ensure "contacts" is required (not null) + if (contacts == null) + { + throw new ArgumentNullException("contacts is a required property for GroupContactsDto and cannot be null"); + } + this.Contacts = contacts; + } + + /// + /// Gets or Sets Group + /// + [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] + public GroupDto Group { get; set; } + + /// + /// Gets or Sets Contacts + /// + [DataMember(Name = "contacts", IsRequired = true, EmitDefaultValue = true)] + public List Contacts { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GroupContactsDto {\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" Contacts: ").Append(Contacts).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GroupContactsDto); + } + + /// + /// Returns true if GroupContactsDto instances are equal + /// + /// Instance of GroupContactsDto to be compared + /// Boolean + public bool Equals(GroupContactsDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.Contacts == input.Contacts || + this.Contacts != null && + input.Contacts != null && + this.Contacts.SequenceEqual(input.Contacts) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Group != null) + { + hashCode = (hashCode * 59) + this.Group.GetHashCode(); + } + if (this.Contacts != null) + { + hashCode = (hashCode * 59) + this.Contacts.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GroupDto.cs b/src/mailslurp_netstandard_2x/Model/GroupDto.cs new file mode 100644 index 00000000..d4c0f007 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GroupDto.cs @@ -0,0 +1,193 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Contact group data + /// + [DataContract(Name = "GroupDto")] + public partial class GroupDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GroupDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// name (required). + /// description. + /// createdAt (required). + public GroupDto(Guid id = default(Guid), string name = default(string), string description = default(string), DateTime createdAt = default(DateTime)) + { + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for GroupDto and cannot be null"); + } + this.Name = name; + this.CreatedAt = createdAt; + this.Description = description; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GroupDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GroupDto); + } + + /// + /// Returns true if GroupDto instances are equal + /// + /// Instance of GroupDto to be compared + /// Boolean + public bool Equals(GroupDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/GroupProjection.cs b/src/mailslurp_netstandard_2x/Model/GroupProjection.cs new file mode 100644 index 00000000..cb34100d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/GroupProjection.cs @@ -0,0 +1,193 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Data for contact group + /// + [DataContract(Name = "GroupProjection")] + public partial class GroupProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GroupProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// createdAt (required). + /// name (required). + /// id (required). + /// description. + public GroupProjection(DateTime createdAt = default(DateTime), string name = default(string), Guid id = default(Guid), string description = default(string)) + { + this.CreatedAt = createdAt; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for GroupProjection and cannot be null"); + } + this.Name = name; + this.Id = id; + this.Description = description; + } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GroupProjection {\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GroupProjection); + } + + /// + /// Returns true if GroupProjection instances are equal + /// + /// Instance of GroupProjection to be compared + /// Boolean + public bool Equals(GroupProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/HTMLValidationResult.cs b/src/mailslurp_netstandard_2x/Model/HTMLValidationResult.cs new file mode 100644 index 00000000..3254e7e4 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/HTMLValidationResult.cs @@ -0,0 +1,206 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// HTML Validation Results + /// + [DataContract(Name = "HTMLValidationResult")] + public partial class HTMLValidationResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected HTMLValidationResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Is HTML validation result valid (required). + /// Optional infos resulting from HTML validation (required). + /// Optional errors resulting from HTML validation (required). + /// Optional warnings resulting from HTML validation (required). + public HTMLValidationResult(bool isValid = default(bool), List infos = default(List), List errors = default(List), List warnings = default(List)) + { + this.IsValid = isValid; + // to ensure "infos" is required (not null) + if (infos == null) + { + throw new ArgumentNullException("infos is a required property for HTMLValidationResult and cannot be null"); + } + this.Infos = infos; + // to ensure "errors" is required (not null) + if (errors == null) + { + throw new ArgumentNullException("errors is a required property for HTMLValidationResult and cannot be null"); + } + this.Errors = errors; + // to ensure "warnings" is required (not null) + if (warnings == null) + { + throw new ArgumentNullException("warnings is a required property for HTMLValidationResult and cannot be null"); + } + this.Warnings = warnings; + } + + /// + /// Is HTML validation result valid + /// + /// Is HTML validation result valid + [DataMember(Name = "isValid", IsRequired = true, EmitDefaultValue = true)] + public bool IsValid { get; set; } + + /// + /// Optional infos resulting from HTML validation + /// + /// Optional infos resulting from HTML validation + [DataMember(Name = "infos", IsRequired = true, EmitDefaultValue = true)] + public List Infos { get; set; } + + /// + /// Optional errors resulting from HTML validation + /// + /// Optional errors resulting from HTML validation + [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] + public List Errors { get; set; } + + /// + /// Optional warnings resulting from HTML validation + /// + /// Optional warnings resulting from HTML validation + [DataMember(Name = "warnings", IsRequired = true, EmitDefaultValue = true)] + public List Warnings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class HTMLValidationResult {\n"); + sb.Append(" IsValid: ").Append(IsValid).Append("\n"); + sb.Append(" Infos: ").Append(Infos).Append("\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Warnings: ").Append(Warnings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HTMLValidationResult); + } + + /// + /// Returns true if HTMLValidationResult instances are equal + /// + /// Instance of HTMLValidationResult to be compared + /// Boolean + public bool Equals(HTMLValidationResult input) + { + if (input == null) + { + return false; + } + return + ( + this.IsValid == input.IsValid || + this.IsValid.Equals(input.IsValid) + ) && + ( + this.Infos == input.Infos || + this.Infos != null && + input.Infos != null && + this.Infos.SequenceEqual(input.Infos) + ) && + ( + this.Errors == input.Errors || + this.Errors != null && + input.Errors != null && + this.Errors.SequenceEqual(input.Errors) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.IsValid.GetHashCode(); + if (this.Infos != null) + { + hashCode = (hashCode * 59) + this.Infos.GetHashCode(); + } + if (this.Errors != null) + { + hashCode = (hashCode * 59) + this.Errors.GetHashCode(); + } + if (this.Warnings != null) + { + hashCode = (hashCode * 59) + this.Warnings.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/IPAddressResult.cs b/src/mailslurp_netstandard_2x/Model/IPAddressResult.cs new file mode 100644 index 00000000..2b7d2fdc --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/IPAddressResult.cs @@ -0,0 +1,162 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// IP Address look up result for a given domain / hostname + /// + [DataContract(Name = "IPAddressResult")] + public partial class IPAddressResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected IPAddressResult() { } + /// + /// Initializes a new instance of the class. + /// + /// address (required). + /// hostname (required). + public IPAddressResult(string address = default(string), string hostname = default(string)) + { + // to ensure "address" is required (not null) + if (address == null) + { + throw new ArgumentNullException("address is a required property for IPAddressResult and cannot be null"); + } + this.Address = address; + // to ensure "hostname" is required (not null) + if (hostname == null) + { + throw new ArgumentNullException("hostname is a required property for IPAddressResult and cannot be null"); + } + this.Hostname = hostname; + } + + /// + /// Gets or Sets Address + /// + [DataMember(Name = "address", IsRequired = true, EmitDefaultValue = true)] + public string Address { get; set; } + + /// + /// Gets or Sets Hostname + /// + [DataMember(Name = "hostname", IsRequired = true, EmitDefaultValue = true)] + public string Hostname { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class IPAddressResult {\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as IPAddressResult); + } + + /// + /// Returns true if IPAddressResult instances are equal + /// + /// Instance of IPAddressResult to be compared + /// Boolean + public bool Equals(IPAddressResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.Hostname == input.Hostname || + (this.Hostname != null && + this.Hostname.Equals(input.Hostname)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Address != null) + { + hashCode = (hashCode * 59) + this.Address.GetHashCode(); + } + if (this.Hostname != null) + { + hashCode = (hashCode * 59) + this.Hostname.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImageIssue.cs b/src/mailslurp_netstandard_2x/Model/ImageIssue.cs new file mode 100644 index 00000000..0c3d6841 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImageIssue.cs @@ -0,0 +1,210 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ImageIssue + /// + [DataContract(Name = "ImageIssue")] + public partial class ImageIssue : IEquatable, IValidatableObject + { + /// + /// Defines Severity + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SeverityEnum + { + /// + /// Enum Warning for value: Warning + /// + [EnumMember(Value = "Warning")] + Warning = 1, + + /// + /// Enum Error for value: Error + /// + [EnumMember(Value = "Error")] + Error = 2 + + } + + + /// + /// Gets or Sets Severity + /// + [DataMember(Name = "severity", IsRequired = true, EmitDefaultValue = true)] + public SeverityEnum Severity { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ImageIssue() { } + /// + /// Initializes a new instance of the class. + /// + /// url (required). + /// responseStatus. + /// severity (required). + /// message (required). + public ImageIssue(string url = default(string), int responseStatus = default(int), SeverityEnum severity = default(SeverityEnum), string message = default(string)) + { + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for ImageIssue and cannot be null"); + } + this.Url = url; + this.Severity = severity; + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for ImageIssue and cannot be null"); + } + this.Message = message; + this.ResponseStatus = responseStatus; + } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Gets or Sets ResponseStatus + /// + [DataMember(Name = "responseStatus", EmitDefaultValue = false)] + public int ResponseStatus { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImageIssue {\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" ResponseStatus: ").Append(ResponseStatus).Append("\n"); + sb.Append(" Severity: ").Append(Severity).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImageIssue); + } + + /// + /// Returns true if ImageIssue instances are equal + /// + /// Instance of ImageIssue to be compared + /// Boolean + public bool Equals(ImageIssue input) + { + if (input == null) + { + return false; + } + return + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ) && + ( + this.ResponseStatus == input.ResponseStatus || + this.ResponseStatus.Equals(input.ResponseStatus) + ) && + ( + this.Severity == input.Severity || + this.Severity.Equals(input.Severity) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ResponseStatus.GetHashCode(); + hashCode = (hashCode * 59) + this.Severity.GetHashCode(); + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapAccessDetails.cs b/src/mailslurp_netstandard_2x/Model/ImapAccessDetails.cs new file mode 100644 index 00000000..414329fc --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapAccessDetails.cs @@ -0,0 +1,314 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Access details for inbox using IMAP + /// + [DataContract(Name = "ImapAccessDetails")] + public partial class ImapAccessDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ImapAccessDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// Secure TLS IMAP server host domain (required). + /// Secure TLS IMAP server host port (required). + /// Secure TLS IMAP username for login (required). + /// Secure TLS IMAP password for login (required). + /// IMAP server host domain (required). + /// IMAP server host port (required). + /// IMAP username for login (required). + /// IMAP password for login (required). + /// IMAP mailbox to SELECT (required). + public ImapAccessDetails(string secureImapServerHost = default(string), int secureImapServerPort = default(int), string secureImapUsername = default(string), string secureImapPassword = default(string), string imapServerHost = default(string), int imapServerPort = default(int), string imapUsername = default(string), string imapPassword = default(string), string imapMailbox = default(string)) + { + // to ensure "secureImapServerHost" is required (not null) + if (secureImapServerHost == null) + { + throw new ArgumentNullException("secureImapServerHost is a required property for ImapAccessDetails and cannot be null"); + } + this.SecureImapServerHost = secureImapServerHost; + this.SecureImapServerPort = secureImapServerPort; + // to ensure "secureImapUsername" is required (not null) + if (secureImapUsername == null) + { + throw new ArgumentNullException("secureImapUsername is a required property for ImapAccessDetails and cannot be null"); + } + this.SecureImapUsername = secureImapUsername; + // to ensure "secureImapPassword" is required (not null) + if (secureImapPassword == null) + { + throw new ArgumentNullException("secureImapPassword is a required property for ImapAccessDetails and cannot be null"); + } + this.SecureImapPassword = secureImapPassword; + // to ensure "imapServerHost" is required (not null) + if (imapServerHost == null) + { + throw new ArgumentNullException("imapServerHost is a required property for ImapAccessDetails and cannot be null"); + } + this.ImapServerHost = imapServerHost; + this.ImapServerPort = imapServerPort; + // to ensure "imapUsername" is required (not null) + if (imapUsername == null) + { + throw new ArgumentNullException("imapUsername is a required property for ImapAccessDetails and cannot be null"); + } + this.ImapUsername = imapUsername; + // to ensure "imapPassword" is required (not null) + if (imapPassword == null) + { + throw new ArgumentNullException("imapPassword is a required property for ImapAccessDetails and cannot be null"); + } + this.ImapPassword = imapPassword; + // to ensure "imapMailbox" is required (not null) + if (imapMailbox == null) + { + throw new ArgumentNullException("imapMailbox is a required property for ImapAccessDetails and cannot be null"); + } + this.ImapMailbox = imapMailbox; + } + + /// + /// Secure TLS IMAP server host domain + /// + /// Secure TLS IMAP server host domain + [DataMember(Name = "secureImapServerHost", IsRequired = true, EmitDefaultValue = true)] + public string SecureImapServerHost { get; set; } + + /// + /// Secure TLS IMAP server host port + /// + /// Secure TLS IMAP server host port + [DataMember(Name = "secureImapServerPort", IsRequired = true, EmitDefaultValue = true)] + public int SecureImapServerPort { get; set; } + + /// + /// Secure TLS IMAP username for login + /// + /// Secure TLS IMAP username for login + [DataMember(Name = "secureImapUsername", IsRequired = true, EmitDefaultValue = true)] + public string SecureImapUsername { get; set; } + + /// + /// Secure TLS IMAP password for login + /// + /// Secure TLS IMAP password for login + [DataMember(Name = "secureImapPassword", IsRequired = true, EmitDefaultValue = true)] + public string SecureImapPassword { get; set; } + + /// + /// IMAP server host domain + /// + /// IMAP server host domain + [DataMember(Name = "imapServerHost", IsRequired = true, EmitDefaultValue = true)] + public string ImapServerHost { get; set; } + + /// + /// IMAP server host port + /// + /// IMAP server host port + [DataMember(Name = "imapServerPort", IsRequired = true, EmitDefaultValue = true)] + public int ImapServerPort { get; set; } + + /// + /// IMAP username for login + /// + /// IMAP username for login + [DataMember(Name = "imapUsername", IsRequired = true, EmitDefaultValue = true)] + public string ImapUsername { get; set; } + + /// + /// IMAP password for login + /// + /// IMAP password for login + [DataMember(Name = "imapPassword", IsRequired = true, EmitDefaultValue = true)] + public string ImapPassword { get; set; } + + /// + /// IMAP mailbox to SELECT + /// + /// IMAP mailbox to SELECT + [DataMember(Name = "imapMailbox", IsRequired = true, EmitDefaultValue = true)] + public string ImapMailbox { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapAccessDetails {\n"); + sb.Append(" SecureImapServerHost: ").Append(SecureImapServerHost).Append("\n"); + sb.Append(" SecureImapServerPort: ").Append(SecureImapServerPort).Append("\n"); + sb.Append(" SecureImapUsername: ").Append(SecureImapUsername).Append("\n"); + sb.Append(" SecureImapPassword: ").Append(SecureImapPassword).Append("\n"); + sb.Append(" ImapServerHost: ").Append(ImapServerHost).Append("\n"); + sb.Append(" ImapServerPort: ").Append(ImapServerPort).Append("\n"); + sb.Append(" ImapUsername: ").Append(ImapUsername).Append("\n"); + sb.Append(" ImapPassword: ").Append(ImapPassword).Append("\n"); + sb.Append(" ImapMailbox: ").Append(ImapMailbox).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapAccessDetails); + } + + /// + /// Returns true if ImapAccessDetails instances are equal + /// + /// Instance of ImapAccessDetails to be compared + /// Boolean + public bool Equals(ImapAccessDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.SecureImapServerHost == input.SecureImapServerHost || + (this.SecureImapServerHost != null && + this.SecureImapServerHost.Equals(input.SecureImapServerHost)) + ) && + ( + this.SecureImapServerPort == input.SecureImapServerPort || + this.SecureImapServerPort.Equals(input.SecureImapServerPort) + ) && + ( + this.SecureImapUsername == input.SecureImapUsername || + (this.SecureImapUsername != null && + this.SecureImapUsername.Equals(input.SecureImapUsername)) + ) && + ( + this.SecureImapPassword == input.SecureImapPassword || + (this.SecureImapPassword != null && + this.SecureImapPassword.Equals(input.SecureImapPassword)) + ) && + ( + this.ImapServerHost == input.ImapServerHost || + (this.ImapServerHost != null && + this.ImapServerHost.Equals(input.ImapServerHost)) + ) && + ( + this.ImapServerPort == input.ImapServerPort || + this.ImapServerPort.Equals(input.ImapServerPort) + ) && + ( + this.ImapUsername == input.ImapUsername || + (this.ImapUsername != null && + this.ImapUsername.Equals(input.ImapUsername)) + ) && + ( + this.ImapPassword == input.ImapPassword || + (this.ImapPassword != null && + this.ImapPassword.Equals(input.ImapPassword)) + ) && + ( + this.ImapMailbox == input.ImapMailbox || + (this.ImapMailbox != null && + this.ImapMailbox.Equals(input.ImapMailbox)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SecureImapServerHost != null) + { + hashCode = (hashCode * 59) + this.SecureImapServerHost.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SecureImapServerPort.GetHashCode(); + if (this.SecureImapUsername != null) + { + hashCode = (hashCode * 59) + this.SecureImapUsername.GetHashCode(); + } + if (this.SecureImapPassword != null) + { + hashCode = (hashCode * 59) + this.SecureImapPassword.GetHashCode(); + } + if (this.ImapServerHost != null) + { + hashCode = (hashCode * 59) + this.ImapServerHost.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ImapServerPort.GetHashCode(); + if (this.ImapUsername != null) + { + hashCode = (hashCode * 59) + this.ImapUsername.GetHashCode(); + } + if (this.ImapPassword != null) + { + hashCode = (hashCode * 59) + this.ImapPassword.GetHashCode(); + } + if (this.ImapMailbox != null) + { + hashCode = (hashCode * 59) + this.ImapMailbox.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapEmailProjection.cs b/src/mailslurp_netstandard_2x/Model/ImapEmailProjection.cs new file mode 100644 index 00000000..5128fcba --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapEmailProjection.cs @@ -0,0 +1,198 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ImapEmailProjection + /// + [DataContract(Name = "ImapEmailProjection")] + public partial class ImapEmailProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ImapEmailProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// read. + /// uid (required). + /// seqNum (required). + /// createdAt (required). + /// id (required). + public ImapEmailProjection(bool? read = default(bool?), long uid = default(long), long seqNum = default(long), DateTime createdAt = default(DateTime), Guid id = default(Guid)) + { + this.Uid = uid; + this.SeqNum = seqNum; + this.CreatedAt = createdAt; + this.Id = id; + this.Read = read; + } + + /// + /// Gets or Sets Read + /// + [DataMember(Name = "read", EmitDefaultValue = true)] + public bool? Read { get; set; } + + /// + /// Gets or Sets Uid + /// + [DataMember(Name = "uid", IsRequired = true, EmitDefaultValue = true)] + public long Uid { get; set; } + + /// + /// Gets or Sets SeqNum + /// + [DataMember(Name = "seqNum", IsRequired = true, EmitDefaultValue = true)] + public long SeqNum { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapEmailProjection {\n"); + sb.Append(" Read: ").Append(Read).Append("\n"); + sb.Append(" Uid: ").Append(Uid).Append("\n"); + sb.Append(" SeqNum: ").Append(SeqNum).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapEmailProjection); + } + + /// + /// Returns true if ImapEmailProjection instances are equal + /// + /// Instance of ImapEmailProjection to be compared + /// Boolean + public bool Equals(ImapEmailProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Read == input.Read || + (this.Read != null && + this.Read.Equals(input.Read)) + ) && + ( + this.Uid == input.Uid || + this.Uid.Equals(input.Uid) + ) && + ( + this.SeqNum == input.SeqNum || + this.SeqNum.Equals(input.SeqNum) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Read != null) + { + hashCode = (hashCode * 59) + this.Read.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Uid.GetHashCode(); + hashCode = (hashCode * 59) + this.SeqNum.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapFlagOperationOptions.cs b/src/mailslurp_netstandard_2x/Model/ImapFlagOperationOptions.cs new file mode 100644 index 00000000..43f28bb6 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapFlagOperationOptions.cs @@ -0,0 +1,180 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// IMAP operation flags + /// + [DataContract(Name = "ImapFlagOperationOptions")] + public partial class ImapFlagOperationOptions : IEquatable, IValidatableObject + { + /// + /// Defines FlagOperation + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum FlagOperationEnum + { + /// + /// Enum SETFLAGS for value: SET_FLAGS + /// + [EnumMember(Value = "SET_FLAGS")] + SETFLAGS = 1, + + /// + /// Enum ADDFLAGS for value: ADD_FLAGS + /// + [EnumMember(Value = "ADD_FLAGS")] + ADDFLAGS = 2, + + /// + /// Enum REMOVEFLAGS for value: REMOVE_FLAGS + /// + [EnumMember(Value = "REMOVE_FLAGS")] + REMOVEFLAGS = 3 + + } + + + /// + /// Gets or Sets FlagOperation + /// + [DataMember(Name = "flagOperation", IsRequired = true, EmitDefaultValue = true)] + public FlagOperationEnum FlagOperation { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ImapFlagOperationOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// flagOperation (required). + /// flags (required). + public ImapFlagOperationOptions(FlagOperationEnum flagOperation = default(FlagOperationEnum), List flags = default(List)) + { + this.FlagOperation = flagOperation; + // to ensure "flags" is required (not null) + if (flags == null) + { + throw new ArgumentNullException("flags is a required property for ImapFlagOperationOptions and cannot be null"); + } + this.Flags = flags; + } + + /// + /// Gets or Sets Flags + /// + [DataMember(Name = "flags", IsRequired = true, EmitDefaultValue = true)] + public List Flags { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapFlagOperationOptions {\n"); + sb.Append(" FlagOperation: ").Append(FlagOperation).Append("\n"); + sb.Append(" Flags: ").Append(Flags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapFlagOperationOptions); + } + + /// + /// Returns true if ImapFlagOperationOptions instances are equal + /// + /// Instance of ImapFlagOperationOptions to be compared + /// Boolean + public bool Equals(ImapFlagOperationOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.FlagOperation == input.FlagOperation || + this.FlagOperation.Equals(input.FlagOperation) + ) && + ( + this.Flags == input.Flags || + this.Flags != null && + input.Flags != null && + this.Flags.SequenceEqual(input.Flags) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.FlagOperation.GetHashCode(); + if (this.Flags != null) + { + hashCode = (hashCode * 59) + this.Flags.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapMailboxStatus.cs b/src/mailslurp_netstandard_2x/Model/ImapMailboxStatus.cs new file mode 100644 index 00000000..ff7b891a --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapMailboxStatus.cs @@ -0,0 +1,338 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ImapMailboxStatus + /// + [DataContract(Name = "ImapMailboxStatus")] + public partial class ImapMailboxStatus : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ImapMailboxStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// The mailbox name. (required). + /// True if the mailbox is open in read-only mode. (required). + /// Results map (required). + /// The mailbox flags. (required). + /// The mailbox permanent flags. (required). + /// The sequence number of the first unseen message in the mailbox. (required). + /// The number of messages in this mailbox. (required). + /// The number of messages not seen since the last time the mailbox was opened. (required). + /// The number of unread messages. (required). + /// The next UID. (required). + /// Together with a UID, it is a unique identifier for a message. Must be greater than or equal to 1. (required). + /// Per-mailbox limit of message size. Set only if server supports the APPENDLIMIT extension. + public ImapMailboxStatus(string name = default(string), bool readOnly = default(bool), Object items = default(Object), List flags = default(List), List permanentFlags = default(List), long unseenSeqNum = default(long), int messages = default(int), int recent = default(int), int unseen = default(int), long uidNext = default(long), int uidValidity = default(int), int? appendLimit = default(int?)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for ImapMailboxStatus and cannot be null"); + } + this.Name = name; + this.ReadOnly = readOnly; + // to ensure "items" is required (not null) + if (items == null) + { + throw new ArgumentNullException("items is a required property for ImapMailboxStatus and cannot be null"); + } + this.Items = items; + // to ensure "flags" is required (not null) + if (flags == null) + { + throw new ArgumentNullException("flags is a required property for ImapMailboxStatus and cannot be null"); + } + this.Flags = flags; + // to ensure "permanentFlags" is required (not null) + if (permanentFlags == null) + { + throw new ArgumentNullException("permanentFlags is a required property for ImapMailboxStatus and cannot be null"); + } + this.PermanentFlags = permanentFlags; + this.UnseenSeqNum = unseenSeqNum; + this.Messages = messages; + this.Recent = recent; + this.Unseen = unseen; + this.UidNext = uidNext; + this.UidValidity = uidValidity; + this.AppendLimit = appendLimit; + } + + /// + /// The mailbox name. + /// + /// The mailbox name. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// True if the mailbox is open in read-only mode. + /// + /// True if the mailbox is open in read-only mode. + [DataMember(Name = "readOnly", IsRequired = true, EmitDefaultValue = true)] + public bool ReadOnly { get; set; } + + /// + /// Results map + /// + /// Results map + [DataMember(Name = "items", IsRequired = true, EmitDefaultValue = true)] + public Object Items { get; set; } + + /// + /// The mailbox flags. + /// + /// The mailbox flags. + [DataMember(Name = "flags", IsRequired = true, EmitDefaultValue = true)] + public List Flags { get; set; } + + /// + /// The mailbox permanent flags. + /// + /// The mailbox permanent flags. + [DataMember(Name = "permanentFlags", IsRequired = true, EmitDefaultValue = true)] + public List PermanentFlags { get; set; } + + /// + /// The sequence number of the first unseen message in the mailbox. + /// + /// The sequence number of the first unseen message in the mailbox. + [DataMember(Name = "unseenSeqNum", IsRequired = true, EmitDefaultValue = true)] + public long UnseenSeqNum { get; set; } + + /// + /// The number of messages in this mailbox. + /// + /// The number of messages in this mailbox. + [DataMember(Name = "messages", IsRequired = true, EmitDefaultValue = true)] + public int Messages { get; set; } + + /// + /// The number of messages not seen since the last time the mailbox was opened. + /// + /// The number of messages not seen since the last time the mailbox was opened. + [DataMember(Name = "recent", IsRequired = true, EmitDefaultValue = true)] + public int Recent { get; set; } + + /// + /// The number of unread messages. + /// + /// The number of unread messages. + [DataMember(Name = "unseen", IsRequired = true, EmitDefaultValue = true)] + public int Unseen { get; set; } + + /// + /// The next UID. + /// + /// The next UID. + [DataMember(Name = "uidNext", IsRequired = true, EmitDefaultValue = true)] + public long UidNext { get; set; } + + /// + /// Together with a UID, it is a unique identifier for a message. Must be greater than or equal to 1. + /// + /// Together with a UID, it is a unique identifier for a message. Must be greater than or equal to 1. + [DataMember(Name = "uidValidity", IsRequired = true, EmitDefaultValue = true)] + public int UidValidity { get; set; } + + /// + /// Per-mailbox limit of message size. Set only if server supports the APPENDLIMIT extension + /// + /// Per-mailbox limit of message size. Set only if server supports the APPENDLIMIT extension + [DataMember(Name = "appendLimit", EmitDefaultValue = true)] + public int? AppendLimit { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapMailboxStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" ReadOnly: ").Append(ReadOnly).Append("\n"); + sb.Append(" Items: ").Append(Items).Append("\n"); + sb.Append(" Flags: ").Append(Flags).Append("\n"); + sb.Append(" PermanentFlags: ").Append(PermanentFlags).Append("\n"); + sb.Append(" UnseenSeqNum: ").Append(UnseenSeqNum).Append("\n"); + sb.Append(" Messages: ").Append(Messages).Append("\n"); + sb.Append(" Recent: ").Append(Recent).Append("\n"); + sb.Append(" Unseen: ").Append(Unseen).Append("\n"); + sb.Append(" UidNext: ").Append(UidNext).Append("\n"); + sb.Append(" UidValidity: ").Append(UidValidity).Append("\n"); + sb.Append(" AppendLimit: ").Append(AppendLimit).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapMailboxStatus); + } + + /// + /// Returns true if ImapMailboxStatus instances are equal + /// + /// Instance of ImapMailboxStatus to be compared + /// Boolean + public bool Equals(ImapMailboxStatus input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ReadOnly == input.ReadOnly || + this.ReadOnly.Equals(input.ReadOnly) + ) && + ( + this.Items == input.Items || + (this.Items != null && + this.Items.Equals(input.Items)) + ) && + ( + this.Flags == input.Flags || + this.Flags != null && + input.Flags != null && + this.Flags.SequenceEqual(input.Flags) + ) && + ( + this.PermanentFlags == input.PermanentFlags || + this.PermanentFlags != null && + input.PermanentFlags != null && + this.PermanentFlags.SequenceEqual(input.PermanentFlags) + ) && + ( + this.UnseenSeqNum == input.UnseenSeqNum || + this.UnseenSeqNum.Equals(input.UnseenSeqNum) + ) && + ( + this.Messages == input.Messages || + this.Messages.Equals(input.Messages) + ) && + ( + this.Recent == input.Recent || + this.Recent.Equals(input.Recent) + ) && + ( + this.Unseen == input.Unseen || + this.Unseen.Equals(input.Unseen) + ) && + ( + this.UidNext == input.UidNext || + this.UidNext.Equals(input.UidNext) + ) && + ( + this.UidValidity == input.UidValidity || + this.UidValidity.Equals(input.UidValidity) + ) && + ( + this.AppendLimit == input.AppendLimit || + (this.AppendLimit != null && + this.AppendLimit.Equals(input.AppendLimit)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ReadOnly.GetHashCode(); + if (this.Items != null) + { + hashCode = (hashCode * 59) + this.Items.GetHashCode(); + } + if (this.Flags != null) + { + hashCode = (hashCode * 59) + this.Flags.GetHashCode(); + } + if (this.PermanentFlags != null) + { + hashCode = (hashCode * 59) + this.PermanentFlags.GetHashCode(); + } + hashCode = (hashCode * 59) + this.UnseenSeqNum.GetHashCode(); + hashCode = (hashCode * 59) + this.Messages.GetHashCode(); + hashCode = (hashCode * 59) + this.Recent.GetHashCode(); + hashCode = (hashCode * 59) + this.Unseen.GetHashCode(); + hashCode = (hashCode * 59) + this.UidNext.GetHashCode(); + hashCode = (hashCode * 59) + this.UidValidity.GetHashCode(); + if (this.AppendLimit != null) + { + hashCode = (hashCode * 59) + this.AppendLimit.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapServerFetchItem.cs b/src/mailslurp_netstandard_2x/Model/ImapServerFetchItem.cs new file mode 100644 index 00000000..f9bf127e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapServerFetchItem.cs @@ -0,0 +1,204 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// IMAP fetch content in raw format + /// + [DataContract(Name = "ImapServerFetchItem")] + public partial class ImapServerFetchItem : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ImapServerFetchItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Content of the email (required). + /// ID of the email (required). + /// UID of the email (required). + /// Sequence number of the email (required). + /// Read status of the email (required). + public ImapServerFetchItem(string content = default(string), Guid id = default(Guid), long uid = default(long), long seqNum = default(long), bool read = default(bool)) + { + // to ensure "content" is required (not null) + if (content == null) + { + throw new ArgumentNullException("content is a required property for ImapServerFetchItem and cannot be null"); + } + this.Content = content; + this.Id = id; + this.Uid = uid; + this.SeqNum = seqNum; + this.Read = read; + } + + /// + /// Content of the email + /// + /// Content of the email + [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] + public string Content { get; set; } + + /// + /// ID of the email + /// + /// ID of the email + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// UID of the email + /// + /// UID of the email + [DataMember(Name = "uid", IsRequired = true, EmitDefaultValue = true)] + public long Uid { get; set; } + + /// + /// Sequence number of the email + /// + /// Sequence number of the email + [DataMember(Name = "seqNum", IsRequired = true, EmitDefaultValue = true)] + public long SeqNum { get; set; } + + /// + /// Read status of the email + /// + /// Read status of the email + [DataMember(Name = "read", IsRequired = true, EmitDefaultValue = true)] + public bool Read { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapServerFetchItem {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Uid: ").Append(Uid).Append("\n"); + sb.Append(" SeqNum: ").Append(SeqNum).Append("\n"); + sb.Append(" Read: ").Append(Read).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapServerFetchItem); + } + + /// + /// Returns true if ImapServerFetchItem instances are equal + /// + /// Instance of ImapServerFetchItem to be compared + /// Boolean + public bool Equals(ImapServerFetchItem input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uid == input.Uid || + this.Uid.Equals(input.Uid) + ) && + ( + this.SeqNum == input.SeqNum || + this.SeqNum.Equals(input.SeqNum) + ) && + ( + this.Read == input.Read || + this.Read.Equals(input.Read) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Uid.GetHashCode(); + hashCode = (hashCode * 59) + this.SeqNum.GetHashCode(); + hashCode = (hashCode * 59) + this.Read.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapServerFetchResult.cs b/src/mailslurp_netstandard_2x/Model/ImapServerFetchResult.cs new file mode 100644 index 00000000..05baca54 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapServerFetchResult.cs @@ -0,0 +1,129 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// IMAP fetch email result + /// + [DataContract(Name = "ImapServerFetchResult")] + public partial class ImapServerFetchResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// result. + public ImapServerFetchResult(ImapServerFetchItem result = default(ImapServerFetchItem)) + { + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", EmitDefaultValue = true)] + public ImapServerFetchItem Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapServerFetchResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapServerFetchResult); + } + + /// + /// Returns true if ImapServerFetchResult instances are equal + /// + /// Instance of ImapServerFetchResult to be compared + /// Boolean + public bool Equals(ImapServerFetchResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Result == input.Result || + (this.Result != null && + this.Result.Equals(input.Result)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Result != null) + { + hashCode = (hashCode * 59) + this.Result.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapServerGetResult.cs b/src/mailslurp_netstandard_2x/Model/ImapServerGetResult.cs new file mode 100644 index 00000000..97f96c82 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapServerGetResult.cs @@ -0,0 +1,129 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ImapServerGetResult + /// + [DataContract(Name = "ImapServerGetResult")] + public partial class ImapServerGetResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// result. + public ImapServerGetResult(ImapEmailProjection result = default(ImapEmailProjection)) + { + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", EmitDefaultValue = false)] + public ImapEmailProjection Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapServerGetResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapServerGetResult); + } + + /// + /// Returns true if ImapServerGetResult instances are equal + /// + /// Instance of ImapServerGetResult to be compared + /// Boolean + public bool Equals(ImapServerGetResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Result == input.Result || + (this.Result != null && + this.Result.Equals(input.Result)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Result != null) + { + hashCode = (hashCode * 59) + this.Result.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapServerListOptions.cs b/src/mailslurp_netstandard_2x/Model/ImapServerListOptions.cs new file mode 100644 index 00000000..0a9863a2 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapServerListOptions.cs @@ -0,0 +1,147 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ImapServerListOptions + /// + [DataContract(Name = "ImapServerListOptions")] + public partial class ImapServerListOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// uidSet. + /// seqSet. + public ImapServerListOptions(string uidSet = default(string), string seqSet = default(string)) + { + this.UidSet = uidSet; + this.SeqSet = seqSet; + } + + /// + /// Gets or Sets UidSet + /// + [DataMember(Name = "uidSet", EmitDefaultValue = true)] + public string UidSet { get; set; } + + /// + /// Gets or Sets SeqSet + /// + [DataMember(Name = "seqSet", EmitDefaultValue = true)] + public string SeqSet { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapServerListOptions {\n"); + sb.Append(" UidSet: ").Append(UidSet).Append("\n"); + sb.Append(" SeqSet: ").Append(SeqSet).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapServerListOptions); + } + + /// + /// Returns true if ImapServerListOptions instances are equal + /// + /// Instance of ImapServerListOptions to be compared + /// Boolean + public bool Equals(ImapServerListOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.UidSet == input.UidSet || + (this.UidSet != null && + this.UidSet.Equals(input.UidSet)) + ) && + ( + this.SeqSet == input.SeqSet || + (this.SeqSet != null && + this.SeqSet.Equals(input.SeqSet)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UidSet != null) + { + hashCode = (hashCode * 59) + this.UidSet.GetHashCode(); + } + if (this.SeqSet != null) + { + hashCode = (hashCode * 59) + this.SeqSet.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapServerListResult.cs b/src/mailslurp_netstandard_2x/Model/ImapServerListResult.cs new file mode 100644 index 00000000..d2a9a842 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapServerListResult.cs @@ -0,0 +1,140 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ImapServerListResult + /// + [DataContract(Name = "ImapServerListResult")] + public partial class ImapServerListResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ImapServerListResult() { } + /// + /// Initializes a new instance of the class. + /// + /// results (required). + public ImapServerListResult(List results = default(List)) + { + // to ensure "results" is required (not null) + if (results == null) + { + throw new ArgumentNullException("results is a required property for ImapServerListResult and cannot be null"); + } + this.Results = results; + } + + /// + /// Gets or Sets Results + /// + [DataMember(Name = "results", IsRequired = true, EmitDefaultValue = true)] + public List Results { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapServerListResult {\n"); + sb.Append(" Results: ").Append(Results).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapServerListResult); + } + + /// + /// Returns true if ImapServerListResult instances are equal + /// + /// Instance of ImapServerListResult to be compared + /// Boolean + public bool Equals(ImapServerListResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Results == input.Results || + this.Results != null && + input.Results != null && + this.Results.SequenceEqual(input.Results) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Results != null) + { + hashCode = (hashCode * 59) + this.Results.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapServerSearchOptions.cs b/src/mailslurp_netstandard_2x/Model/ImapServerSearchOptions.cs new file mode 100644 index 00000000..1d295aa6 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapServerSearchOptions.cs @@ -0,0 +1,314 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// IMAP server search options + /// + [DataContract(Name = "ImapServerSearchOptions")] + public partial class ImapServerSearchOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// seqNum. + /// uid. + /// since. + /// before. + /// sentSince. + /// sentBefore. + /// header. + /// body. + /// text. + /// withFlags. + /// withoutFlags. + public ImapServerSearchOptions(string seqNum = default(string), string uid = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), DateTime? sentSince = default(DateTime?), DateTime? sentBefore = default(DateTime?), Dictionary> header = default(Dictionary>), List body = default(List), List text = default(List), List withFlags = default(List), List withoutFlags = default(List)) + { + this.SeqNum = seqNum; + this.Uid = uid; + this.Since = since; + this.Before = before; + this.SentSince = sentSince; + this.SentBefore = sentBefore; + this.Header = header; + this.Body = body; + this.Text = text; + this.WithFlags = withFlags; + this.WithoutFlags = withoutFlags; + } + + /// + /// Gets or Sets SeqNum + /// + [DataMember(Name = "seqNum", EmitDefaultValue = true)] + public string SeqNum { get; set; } + + /// + /// Gets or Sets Uid + /// + [DataMember(Name = "uid", EmitDefaultValue = true)] + public string Uid { get; set; } + + /// + /// Gets or Sets Since + /// + [DataMember(Name = "since", EmitDefaultValue = true)] + public DateTime? Since { get; set; } + + /// + /// Gets or Sets Before + /// + [DataMember(Name = "before", EmitDefaultValue = true)] + public DateTime? Before { get; set; } + + /// + /// Gets or Sets SentSince + /// + [DataMember(Name = "sentSince", EmitDefaultValue = true)] + public DateTime? SentSince { get; set; } + + /// + /// Gets or Sets SentBefore + /// + [DataMember(Name = "sentBefore", EmitDefaultValue = true)] + public DateTime? SentBefore { get; set; } + + /// + /// Gets or Sets Header + /// + [DataMember(Name = "header", EmitDefaultValue = true)] + public Dictionary> Header { get; set; } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", EmitDefaultValue = true)] + public List Body { get; set; } + + /// + /// Gets or Sets Text + /// + [DataMember(Name = "text", EmitDefaultValue = true)] + public List Text { get; set; } + + /// + /// Gets or Sets WithFlags + /// + [DataMember(Name = "withFlags", EmitDefaultValue = true)] + public List WithFlags { get; set; } + + /// + /// Gets or Sets WithoutFlags + /// + [DataMember(Name = "withoutFlags", EmitDefaultValue = true)] + public List WithoutFlags { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapServerSearchOptions {\n"); + sb.Append(" SeqNum: ").Append(SeqNum).Append("\n"); + sb.Append(" Uid: ").Append(Uid).Append("\n"); + sb.Append(" Since: ").Append(Since).Append("\n"); + sb.Append(" Before: ").Append(Before).Append("\n"); + sb.Append(" SentSince: ").Append(SentSince).Append("\n"); + sb.Append(" SentBefore: ").Append(SentBefore).Append("\n"); + sb.Append(" Header: ").Append(Header).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" WithFlags: ").Append(WithFlags).Append("\n"); + sb.Append(" WithoutFlags: ").Append(WithoutFlags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapServerSearchOptions); + } + + /// + /// Returns true if ImapServerSearchOptions instances are equal + /// + /// Instance of ImapServerSearchOptions to be compared + /// Boolean + public bool Equals(ImapServerSearchOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.SeqNum == input.SeqNum || + (this.SeqNum != null && + this.SeqNum.Equals(input.SeqNum)) + ) && + ( + this.Uid == input.Uid || + (this.Uid != null && + this.Uid.Equals(input.Uid)) + ) && + ( + this.Since == input.Since || + (this.Since != null && + this.Since.Equals(input.Since)) + ) && + ( + this.Before == input.Before || + (this.Before != null && + this.Before.Equals(input.Before)) + ) && + ( + this.SentSince == input.SentSince || + (this.SentSince != null && + this.SentSince.Equals(input.SentSince)) + ) && + ( + this.SentBefore == input.SentBefore || + (this.SentBefore != null && + this.SentBefore.Equals(input.SentBefore)) + ) && + ( + this.Header == input.Header || + this.Header != null && + input.Header != null && + this.Header.SequenceEqual(input.Header) + ) && + ( + this.Body == input.Body || + this.Body != null && + input.Body != null && + this.Body.SequenceEqual(input.Body) + ) && + ( + this.Text == input.Text || + this.Text != null && + input.Text != null && + this.Text.SequenceEqual(input.Text) + ) && + ( + this.WithFlags == input.WithFlags || + this.WithFlags != null && + input.WithFlags != null && + this.WithFlags.SequenceEqual(input.WithFlags) + ) && + ( + this.WithoutFlags == input.WithoutFlags || + this.WithoutFlags != null && + input.WithoutFlags != null && + this.WithoutFlags.SequenceEqual(input.WithoutFlags) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SeqNum != null) + { + hashCode = (hashCode * 59) + this.SeqNum.GetHashCode(); + } + if (this.Uid != null) + { + hashCode = (hashCode * 59) + this.Uid.GetHashCode(); + } + if (this.Since != null) + { + hashCode = (hashCode * 59) + this.Since.GetHashCode(); + } + if (this.Before != null) + { + hashCode = (hashCode * 59) + this.Before.GetHashCode(); + } + if (this.SentSince != null) + { + hashCode = (hashCode * 59) + this.SentSince.GetHashCode(); + } + if (this.SentBefore != null) + { + hashCode = (hashCode * 59) + this.SentBefore.GetHashCode(); + } + if (this.Header != null) + { + hashCode = (hashCode * 59) + this.Header.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + if (this.Text != null) + { + hashCode = (hashCode * 59) + this.Text.GetHashCode(); + } + if (this.WithFlags != null) + { + hashCode = (hashCode * 59) + this.WithFlags.GetHashCode(); + } + if (this.WithoutFlags != null) + { + hashCode = (hashCode * 59) + this.WithoutFlags.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapServerSearchResult.cs b/src/mailslurp_netstandard_2x/Model/ImapServerSearchResult.cs new file mode 100644 index 00000000..41c0d784 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapServerSearchResult.cs @@ -0,0 +1,140 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ImapServerSearchResult + /// + [DataContract(Name = "ImapServerSearchResult")] + public partial class ImapServerSearchResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ImapServerSearchResult() { } + /// + /// Initializes a new instance of the class. + /// + /// results (required). + public ImapServerSearchResult(List results = default(List)) + { + // to ensure "results" is required (not null) + if (results == null) + { + throw new ArgumentNullException("results is a required property for ImapServerSearchResult and cannot be null"); + } + this.Results = results; + } + + /// + /// Gets or Sets Results + /// + [DataMember(Name = "results", IsRequired = true, EmitDefaultValue = true)] + public List Results { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapServerSearchResult {\n"); + sb.Append(" Results: ").Append(Results).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapServerSearchResult); + } + + /// + /// Returns true if ImapServerSearchResult instances are equal + /// + /// Instance of ImapServerSearchResult to be compared + /// Boolean + public bool Equals(ImapServerSearchResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Results == input.Results || + this.Results != null && + input.Results != null && + this.Results.SequenceEqual(input.Results) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Results != null) + { + hashCode = (hashCode * 59) + this.Results.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapServerStatusOptions.cs b/src/mailslurp_netstandard_2x/Model/ImapServerStatusOptions.cs new file mode 100644 index 00000000..e2f2a657 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapServerStatusOptions.cs @@ -0,0 +1,192 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ImapServerStatusOptions + /// + [DataContract(Name = "ImapServerStatusOptions")] + public partial class ImapServerStatusOptions : IEquatable, IValidatableObject + { + /// + /// Defines StatusItems + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusItemsEnum + { + /// + /// Enum MESSAGES for value: MESSAGES + /// + [EnumMember(Value = "MESSAGES")] + MESSAGES = 1, + + /// + /// Enum RECENT for value: RECENT + /// + [EnumMember(Value = "RECENT")] + RECENT = 2, + + /// + /// Enum UIDNEXT for value: UIDNEXT + /// + [EnumMember(Value = "UIDNEXT")] + UIDNEXT = 3, + + /// + /// Enum UIDVALIDITY for value: UIDVALIDITY + /// + [EnumMember(Value = "UIDVALIDITY")] + UIDVALIDITY = 4, + + /// + /// Enum UNSEEN for value: UNSEEN + /// + [EnumMember(Value = "UNSEEN")] + UNSEEN = 5, + + /// + /// Enum APPENDLIMIT for value: APPENDLIMIT + /// + [EnumMember(Value = "APPENDLIMIT")] + APPENDLIMIT = 6 + + } + + /// + /// Initializes a new instance of the class. + /// + /// name. + /// statusItems. + public ImapServerStatusOptions(string name = default(string), List statusItems = default(List)) + { + this.Name = name; + this.StatusItems = statusItems; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets StatusItems + /// + [DataMember(Name = "statusItems", EmitDefaultValue = true)] + public List StatusItems { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapServerStatusOptions {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" StatusItems: ").Append(StatusItems).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapServerStatusOptions); + } + + /// + /// Returns true if ImapServerStatusOptions instances are equal + /// + /// Instance of ImapServerStatusOptions to be compared + /// Boolean + public bool Equals(ImapServerStatusOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.StatusItems == input.StatusItems || + this.StatusItems != null && + input.StatusItems != null && + this.StatusItems.SequenceEqual(input.StatusItems) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.StatusItems != null) + { + hashCode = (hashCode * 59) + this.StatusItems.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapServerStatusResult.cs b/src/mailslurp_netstandard_2x/Model/ImapServerStatusResult.cs new file mode 100644 index 00000000..663b8276 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapServerStatusResult.cs @@ -0,0 +1,129 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ImapServerStatusResult + /// + [DataContract(Name = "ImapServerStatusResult")] + public partial class ImapServerStatusResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// result. + public ImapServerStatusResult(ImapMailboxStatus result = default(ImapMailboxStatus)) + { + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", EmitDefaultValue = true)] + public ImapMailboxStatus Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapServerStatusResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapServerStatusResult); + } + + /// + /// Returns true if ImapServerStatusResult instances are equal + /// + /// Instance of ImapServerStatusResult to be compared + /// Boolean + public bool Equals(ImapServerStatusResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Result == input.Result || + (this.Result != null && + this.Result.Equals(input.Result)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Result != null) + { + hashCode = (hashCode * 59) + this.Result.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapSmtpAccessDetails.cs b/src/mailslurp_netstandard_2x/Model/ImapSmtpAccessDetails.cs new file mode 100644 index 00000000..630af62b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapSmtpAccessDetails.cs @@ -0,0 +1,507 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Access details for inbox using SMTP or IMAP + /// + [DataContract(Name = "ImapSmtpAccessDetails")] + public partial class ImapSmtpAccessDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ImapSmtpAccessDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// Secure TLS SMTP server host domain (required). + /// Secure TLS SMTP server host port (required). + /// Secure TLS SMTP username for login (required). + /// Secure TLS SMTP password for login (required). + /// SMTP server host domain (required). + /// SMTP server host port (required). + /// SMTP username for login (required). + /// SMTP password for login (required). + /// Secure TLS IMAP server host domain (required). + /// Secure TLS IMAP server host port (required). + /// Secure TLS IMAP username for login (required). + /// Secure TLS IMAP password for login (required). + /// IMAP server host domain (required). + /// IMAP server host port (required). + /// IMAP username for login (required). + /// IMAP password for login (required). + /// IMAP mailbox to SELECT (required). + /// Mail from domain or SMTP HELO value. + public ImapSmtpAccessDetails(string secureSmtpServerHost = default(string), int secureSmtpServerPort = default(int), string secureSmtpUsername = default(string), string secureSmtpPassword = default(string), string smtpServerHost = default(string), int smtpServerPort = default(int), string smtpUsername = default(string), string smtpPassword = default(string), string secureImapServerHost = default(string), int secureImapServerPort = default(int), string secureImapUsername = default(string), string secureImapPassword = default(string), string imapServerHost = default(string), int imapServerPort = default(int), string imapUsername = default(string), string imapPassword = default(string), string imapMailbox = default(string), string mailFromDomain = default(string)) + { + // to ensure "secureSmtpServerHost" is required (not null) + if (secureSmtpServerHost == null) + { + throw new ArgumentNullException("secureSmtpServerHost is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.SecureSmtpServerHost = secureSmtpServerHost; + this.SecureSmtpServerPort = secureSmtpServerPort; + // to ensure "secureSmtpUsername" is required (not null) + if (secureSmtpUsername == null) + { + throw new ArgumentNullException("secureSmtpUsername is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.SecureSmtpUsername = secureSmtpUsername; + // to ensure "secureSmtpPassword" is required (not null) + if (secureSmtpPassword == null) + { + throw new ArgumentNullException("secureSmtpPassword is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.SecureSmtpPassword = secureSmtpPassword; + // to ensure "smtpServerHost" is required (not null) + if (smtpServerHost == null) + { + throw new ArgumentNullException("smtpServerHost is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.SmtpServerHost = smtpServerHost; + this.SmtpServerPort = smtpServerPort; + // to ensure "smtpUsername" is required (not null) + if (smtpUsername == null) + { + throw new ArgumentNullException("smtpUsername is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.SmtpUsername = smtpUsername; + // to ensure "smtpPassword" is required (not null) + if (smtpPassword == null) + { + throw new ArgumentNullException("smtpPassword is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.SmtpPassword = smtpPassword; + // to ensure "secureImapServerHost" is required (not null) + if (secureImapServerHost == null) + { + throw new ArgumentNullException("secureImapServerHost is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.SecureImapServerHost = secureImapServerHost; + this.SecureImapServerPort = secureImapServerPort; + // to ensure "secureImapUsername" is required (not null) + if (secureImapUsername == null) + { + throw new ArgumentNullException("secureImapUsername is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.SecureImapUsername = secureImapUsername; + // to ensure "secureImapPassword" is required (not null) + if (secureImapPassword == null) + { + throw new ArgumentNullException("secureImapPassword is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.SecureImapPassword = secureImapPassword; + // to ensure "imapServerHost" is required (not null) + if (imapServerHost == null) + { + throw new ArgumentNullException("imapServerHost is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.ImapServerHost = imapServerHost; + this.ImapServerPort = imapServerPort; + // to ensure "imapUsername" is required (not null) + if (imapUsername == null) + { + throw new ArgumentNullException("imapUsername is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.ImapUsername = imapUsername; + // to ensure "imapPassword" is required (not null) + if (imapPassword == null) + { + throw new ArgumentNullException("imapPassword is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.ImapPassword = imapPassword; + // to ensure "imapMailbox" is required (not null) + if (imapMailbox == null) + { + throw new ArgumentNullException("imapMailbox is a required property for ImapSmtpAccessDetails and cannot be null"); + } + this.ImapMailbox = imapMailbox; + this.MailFromDomain = mailFromDomain; + } + + /// + /// Secure TLS SMTP server host domain + /// + /// Secure TLS SMTP server host domain + [DataMember(Name = "secureSmtpServerHost", IsRequired = true, EmitDefaultValue = true)] + public string SecureSmtpServerHost { get; set; } + + /// + /// Secure TLS SMTP server host port + /// + /// Secure TLS SMTP server host port + [DataMember(Name = "secureSmtpServerPort", IsRequired = true, EmitDefaultValue = true)] + public int SecureSmtpServerPort { get; set; } + + /// + /// Secure TLS SMTP username for login + /// + /// Secure TLS SMTP username for login + [DataMember(Name = "secureSmtpUsername", IsRequired = true, EmitDefaultValue = true)] + public string SecureSmtpUsername { get; set; } + + /// + /// Secure TLS SMTP password for login + /// + /// Secure TLS SMTP password for login + [DataMember(Name = "secureSmtpPassword", IsRequired = true, EmitDefaultValue = true)] + public string SecureSmtpPassword { get; set; } + + /// + /// SMTP server host domain + /// + /// SMTP server host domain + [DataMember(Name = "smtpServerHost", IsRequired = true, EmitDefaultValue = true)] + public string SmtpServerHost { get; set; } + + /// + /// SMTP server host port + /// + /// SMTP server host port + [DataMember(Name = "smtpServerPort", IsRequired = true, EmitDefaultValue = true)] + public int SmtpServerPort { get; set; } + + /// + /// SMTP username for login + /// + /// SMTP username for login + [DataMember(Name = "smtpUsername", IsRequired = true, EmitDefaultValue = true)] + public string SmtpUsername { get; set; } + + /// + /// SMTP password for login + /// + /// SMTP password for login + [DataMember(Name = "smtpPassword", IsRequired = true, EmitDefaultValue = true)] + public string SmtpPassword { get; set; } + + /// + /// Secure TLS IMAP server host domain + /// + /// Secure TLS IMAP server host domain + [DataMember(Name = "secureImapServerHost", IsRequired = true, EmitDefaultValue = true)] + public string SecureImapServerHost { get; set; } + + /// + /// Secure TLS IMAP server host port + /// + /// Secure TLS IMAP server host port + [DataMember(Name = "secureImapServerPort", IsRequired = true, EmitDefaultValue = true)] + public int SecureImapServerPort { get; set; } + + /// + /// Secure TLS IMAP username for login + /// + /// Secure TLS IMAP username for login + [DataMember(Name = "secureImapUsername", IsRequired = true, EmitDefaultValue = true)] + public string SecureImapUsername { get; set; } + + /// + /// Secure TLS IMAP password for login + /// + /// Secure TLS IMAP password for login + [DataMember(Name = "secureImapPassword", IsRequired = true, EmitDefaultValue = true)] + public string SecureImapPassword { get; set; } + + /// + /// IMAP server host domain + /// + /// IMAP server host domain + [DataMember(Name = "imapServerHost", IsRequired = true, EmitDefaultValue = true)] + public string ImapServerHost { get; set; } + + /// + /// IMAP server host port + /// + /// IMAP server host port + [DataMember(Name = "imapServerPort", IsRequired = true, EmitDefaultValue = true)] + public int ImapServerPort { get; set; } + + /// + /// IMAP username for login + /// + /// IMAP username for login + [DataMember(Name = "imapUsername", IsRequired = true, EmitDefaultValue = true)] + public string ImapUsername { get; set; } + + /// + /// IMAP password for login + /// + /// IMAP password for login + [DataMember(Name = "imapPassword", IsRequired = true, EmitDefaultValue = true)] + public string ImapPassword { get; set; } + + /// + /// IMAP mailbox to SELECT + /// + /// IMAP mailbox to SELECT + [DataMember(Name = "imapMailbox", IsRequired = true, EmitDefaultValue = true)] + public string ImapMailbox { get; set; } + + /// + /// Mail from domain or SMTP HELO value + /// + /// Mail from domain or SMTP HELO value + [DataMember(Name = "mailFromDomain", EmitDefaultValue = true)] + public string MailFromDomain { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapSmtpAccessDetails {\n"); + sb.Append(" SecureSmtpServerHost: ").Append(SecureSmtpServerHost).Append("\n"); + sb.Append(" SecureSmtpServerPort: ").Append(SecureSmtpServerPort).Append("\n"); + sb.Append(" SecureSmtpUsername: ").Append(SecureSmtpUsername).Append("\n"); + sb.Append(" SecureSmtpPassword: ").Append(SecureSmtpPassword).Append("\n"); + sb.Append(" SmtpServerHost: ").Append(SmtpServerHost).Append("\n"); + sb.Append(" SmtpServerPort: ").Append(SmtpServerPort).Append("\n"); + sb.Append(" SmtpUsername: ").Append(SmtpUsername).Append("\n"); + sb.Append(" SmtpPassword: ").Append(SmtpPassword).Append("\n"); + sb.Append(" SecureImapServerHost: ").Append(SecureImapServerHost).Append("\n"); + sb.Append(" SecureImapServerPort: ").Append(SecureImapServerPort).Append("\n"); + sb.Append(" SecureImapUsername: ").Append(SecureImapUsername).Append("\n"); + sb.Append(" SecureImapPassword: ").Append(SecureImapPassword).Append("\n"); + sb.Append(" ImapServerHost: ").Append(ImapServerHost).Append("\n"); + sb.Append(" ImapServerPort: ").Append(ImapServerPort).Append("\n"); + sb.Append(" ImapUsername: ").Append(ImapUsername).Append("\n"); + sb.Append(" ImapPassword: ").Append(ImapPassword).Append("\n"); + sb.Append(" ImapMailbox: ").Append(ImapMailbox).Append("\n"); + sb.Append(" MailFromDomain: ").Append(MailFromDomain).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapSmtpAccessDetails); + } + + /// + /// Returns true if ImapSmtpAccessDetails instances are equal + /// + /// Instance of ImapSmtpAccessDetails to be compared + /// Boolean + public bool Equals(ImapSmtpAccessDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.SecureSmtpServerHost == input.SecureSmtpServerHost || + (this.SecureSmtpServerHost != null && + this.SecureSmtpServerHost.Equals(input.SecureSmtpServerHost)) + ) && + ( + this.SecureSmtpServerPort == input.SecureSmtpServerPort || + this.SecureSmtpServerPort.Equals(input.SecureSmtpServerPort) + ) && + ( + this.SecureSmtpUsername == input.SecureSmtpUsername || + (this.SecureSmtpUsername != null && + this.SecureSmtpUsername.Equals(input.SecureSmtpUsername)) + ) && + ( + this.SecureSmtpPassword == input.SecureSmtpPassword || + (this.SecureSmtpPassword != null && + this.SecureSmtpPassword.Equals(input.SecureSmtpPassword)) + ) && + ( + this.SmtpServerHost == input.SmtpServerHost || + (this.SmtpServerHost != null && + this.SmtpServerHost.Equals(input.SmtpServerHost)) + ) && + ( + this.SmtpServerPort == input.SmtpServerPort || + this.SmtpServerPort.Equals(input.SmtpServerPort) + ) && + ( + this.SmtpUsername == input.SmtpUsername || + (this.SmtpUsername != null && + this.SmtpUsername.Equals(input.SmtpUsername)) + ) && + ( + this.SmtpPassword == input.SmtpPassword || + (this.SmtpPassword != null && + this.SmtpPassword.Equals(input.SmtpPassword)) + ) && + ( + this.SecureImapServerHost == input.SecureImapServerHost || + (this.SecureImapServerHost != null && + this.SecureImapServerHost.Equals(input.SecureImapServerHost)) + ) && + ( + this.SecureImapServerPort == input.SecureImapServerPort || + this.SecureImapServerPort.Equals(input.SecureImapServerPort) + ) && + ( + this.SecureImapUsername == input.SecureImapUsername || + (this.SecureImapUsername != null && + this.SecureImapUsername.Equals(input.SecureImapUsername)) + ) && + ( + this.SecureImapPassword == input.SecureImapPassword || + (this.SecureImapPassword != null && + this.SecureImapPassword.Equals(input.SecureImapPassword)) + ) && + ( + this.ImapServerHost == input.ImapServerHost || + (this.ImapServerHost != null && + this.ImapServerHost.Equals(input.ImapServerHost)) + ) && + ( + this.ImapServerPort == input.ImapServerPort || + this.ImapServerPort.Equals(input.ImapServerPort) + ) && + ( + this.ImapUsername == input.ImapUsername || + (this.ImapUsername != null && + this.ImapUsername.Equals(input.ImapUsername)) + ) && + ( + this.ImapPassword == input.ImapPassword || + (this.ImapPassword != null && + this.ImapPassword.Equals(input.ImapPassword)) + ) && + ( + this.ImapMailbox == input.ImapMailbox || + (this.ImapMailbox != null && + this.ImapMailbox.Equals(input.ImapMailbox)) + ) && + ( + this.MailFromDomain == input.MailFromDomain || + (this.MailFromDomain != null && + this.MailFromDomain.Equals(input.MailFromDomain)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SecureSmtpServerHost != null) + { + hashCode = (hashCode * 59) + this.SecureSmtpServerHost.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SecureSmtpServerPort.GetHashCode(); + if (this.SecureSmtpUsername != null) + { + hashCode = (hashCode * 59) + this.SecureSmtpUsername.GetHashCode(); + } + if (this.SecureSmtpPassword != null) + { + hashCode = (hashCode * 59) + this.SecureSmtpPassword.GetHashCode(); + } + if (this.SmtpServerHost != null) + { + hashCode = (hashCode * 59) + this.SmtpServerHost.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SmtpServerPort.GetHashCode(); + if (this.SmtpUsername != null) + { + hashCode = (hashCode * 59) + this.SmtpUsername.GetHashCode(); + } + if (this.SmtpPassword != null) + { + hashCode = (hashCode * 59) + this.SmtpPassword.GetHashCode(); + } + if (this.SecureImapServerHost != null) + { + hashCode = (hashCode * 59) + this.SecureImapServerHost.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SecureImapServerPort.GetHashCode(); + if (this.SecureImapUsername != null) + { + hashCode = (hashCode * 59) + this.SecureImapUsername.GetHashCode(); + } + if (this.SecureImapPassword != null) + { + hashCode = (hashCode * 59) + this.SecureImapPassword.GetHashCode(); + } + if (this.ImapServerHost != null) + { + hashCode = (hashCode * 59) + this.ImapServerHost.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ImapServerPort.GetHashCode(); + if (this.ImapUsername != null) + { + hashCode = (hashCode * 59) + this.ImapUsername.GetHashCode(); + } + if (this.ImapPassword != null) + { + hashCode = (hashCode * 59) + this.ImapPassword.GetHashCode(); + } + if (this.ImapMailbox != null) + { + hashCode = (hashCode * 59) + this.ImapMailbox.GetHashCode(); + } + if (this.MailFromDomain != null) + { + hashCode = (hashCode * 59) + this.MailFromDomain.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapSmtpAccessServers.cs b/src/mailslurp_netstandard_2x/Model/ImapSmtpAccessServers.cs new file mode 100644 index 00000000..3e2af2b5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapSmtpAccessServers.cs @@ -0,0 +1,208 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// IMAP and SMTP server endpoints for MailSlurp + /// + [DataContract(Name = "ImapSmtpAccessServers")] + public partial class ImapSmtpAccessServers : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ImapSmtpAccessServers() { } + /// + /// Initializes a new instance of the class. + /// + /// imapServer (required). + /// secureImapServer (required). + /// smtpServer (required). + /// secureSmtpServer (required). + public ImapSmtpAccessServers(ServerEndpoints imapServer = default(ServerEndpoints), ServerEndpoints secureImapServer = default(ServerEndpoints), ServerEndpoints smtpServer = default(ServerEndpoints), ServerEndpoints secureSmtpServer = default(ServerEndpoints)) + { + // to ensure "imapServer" is required (not null) + if (imapServer == null) + { + throw new ArgumentNullException("imapServer is a required property for ImapSmtpAccessServers and cannot be null"); + } + this.ImapServer = imapServer; + // to ensure "secureImapServer" is required (not null) + if (secureImapServer == null) + { + throw new ArgumentNullException("secureImapServer is a required property for ImapSmtpAccessServers and cannot be null"); + } + this.SecureImapServer = secureImapServer; + // to ensure "smtpServer" is required (not null) + if (smtpServer == null) + { + throw new ArgumentNullException("smtpServer is a required property for ImapSmtpAccessServers and cannot be null"); + } + this.SmtpServer = smtpServer; + // to ensure "secureSmtpServer" is required (not null) + if (secureSmtpServer == null) + { + throw new ArgumentNullException("secureSmtpServer is a required property for ImapSmtpAccessServers and cannot be null"); + } + this.SecureSmtpServer = secureSmtpServer; + } + + /// + /// Gets or Sets ImapServer + /// + [DataMember(Name = "imapServer", IsRequired = true, EmitDefaultValue = true)] + public ServerEndpoints ImapServer { get; set; } + + /// + /// Gets or Sets SecureImapServer + /// + [DataMember(Name = "secureImapServer", IsRequired = true, EmitDefaultValue = true)] + public ServerEndpoints SecureImapServer { get; set; } + + /// + /// Gets or Sets SmtpServer + /// + [DataMember(Name = "smtpServer", IsRequired = true, EmitDefaultValue = true)] + public ServerEndpoints SmtpServer { get; set; } + + /// + /// Gets or Sets SecureSmtpServer + /// + [DataMember(Name = "secureSmtpServer", IsRequired = true, EmitDefaultValue = true)] + public ServerEndpoints SecureSmtpServer { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapSmtpAccessServers {\n"); + sb.Append(" ImapServer: ").Append(ImapServer).Append("\n"); + sb.Append(" SecureImapServer: ").Append(SecureImapServer).Append("\n"); + sb.Append(" SmtpServer: ").Append(SmtpServer).Append("\n"); + sb.Append(" SecureSmtpServer: ").Append(SecureSmtpServer).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapSmtpAccessServers); + } + + /// + /// Returns true if ImapSmtpAccessServers instances are equal + /// + /// Instance of ImapSmtpAccessServers to be compared + /// Boolean + public bool Equals(ImapSmtpAccessServers input) + { + if (input == null) + { + return false; + } + return + ( + this.ImapServer == input.ImapServer || + (this.ImapServer != null && + this.ImapServer.Equals(input.ImapServer)) + ) && + ( + this.SecureImapServer == input.SecureImapServer || + (this.SecureImapServer != null && + this.SecureImapServer.Equals(input.SecureImapServer)) + ) && + ( + this.SmtpServer == input.SmtpServer || + (this.SmtpServer != null && + this.SmtpServer.Equals(input.SmtpServer)) + ) && + ( + this.SecureSmtpServer == input.SecureSmtpServer || + (this.SecureSmtpServer != null && + this.SecureSmtpServer.Equals(input.SecureSmtpServer)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImapServer != null) + { + hashCode = (hashCode * 59) + this.ImapServer.GetHashCode(); + } + if (this.SecureImapServer != null) + { + hashCode = (hashCode * 59) + this.SecureImapServer.GetHashCode(); + } + if (this.SmtpServer != null) + { + hashCode = (hashCode * 59) + this.SmtpServer.GetHashCode(); + } + if (this.SecureSmtpServer != null) + { + hashCode = (hashCode * 59) + this.SecureSmtpServer.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ImapUpdateFlagsOptions.cs b/src/mailslurp_netstandard_2x/Model/ImapUpdateFlagsOptions.cs new file mode 100644 index 00000000..9995b420 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ImapUpdateFlagsOptions.cs @@ -0,0 +1,194 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ImapUpdateFlagsOptions + /// + [DataContract(Name = "ImapUpdateFlagsOptions")] + public partial class ImapUpdateFlagsOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ImapUpdateFlagsOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// operation (required). + /// flags. + /// uidSet. + /// seqSet. + public ImapUpdateFlagsOptions(string operation = default(string), List flags = default(List), string uidSet = default(string), string seqSet = default(string)) + { + // to ensure "operation" is required (not null) + if (operation == null) + { + throw new ArgumentNullException("operation is a required property for ImapUpdateFlagsOptions and cannot be null"); + } + this.Operation = operation; + this.Flags = flags; + this.UidSet = uidSet; + this.SeqSet = seqSet; + } + + /// + /// Gets or Sets Operation + /// + [DataMember(Name = "operation", IsRequired = true, EmitDefaultValue = true)] + public string Operation { get; set; } + + /// + /// Gets or Sets Flags + /// + [DataMember(Name = "flags", EmitDefaultValue = true)] + public List Flags { get; set; } + + /// + /// Gets or Sets UidSet + /// + [DataMember(Name = "uidSet", EmitDefaultValue = true)] + public string UidSet { get; set; } + + /// + /// Gets or Sets SeqSet + /// + [DataMember(Name = "seqSet", EmitDefaultValue = true)] + public string SeqSet { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ImapUpdateFlagsOptions {\n"); + sb.Append(" Operation: ").Append(Operation).Append("\n"); + sb.Append(" Flags: ").Append(Flags).Append("\n"); + sb.Append(" UidSet: ").Append(UidSet).Append("\n"); + sb.Append(" SeqSet: ").Append(SeqSet).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ImapUpdateFlagsOptions); + } + + /// + /// Returns true if ImapUpdateFlagsOptions instances are equal + /// + /// Instance of ImapUpdateFlagsOptions to be compared + /// Boolean + public bool Equals(ImapUpdateFlagsOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Operation == input.Operation || + (this.Operation != null && + this.Operation.Equals(input.Operation)) + ) && + ( + this.Flags == input.Flags || + this.Flags != null && + input.Flags != null && + this.Flags.SequenceEqual(input.Flags) + ) && + ( + this.UidSet == input.UidSet || + (this.UidSet != null && + this.UidSet.Equals(input.UidSet)) + ) && + ( + this.SeqSet == input.SeqSet || + (this.SeqSet != null && + this.SeqSet.Equals(input.SeqSet)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Operation != null) + { + hashCode = (hashCode * 59) + this.Operation.GetHashCode(); + } + if (this.Flags != null) + { + hashCode = (hashCode * 59) + this.Flags.GetHashCode(); + } + if (this.UidSet != null) + { + hashCode = (hashCode * 59) + this.UidSet.GetHashCode(); + } + if (this.SeqSet != null) + { + hashCode = (hashCode * 59) + this.SeqSet.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxByEmailAddressResult.cs b/src/mailslurp_netstandard_2x/Model/InboxByEmailAddressResult.cs new file mode 100644 index 00000000..1fa7718e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxByEmailAddressResult.cs @@ -0,0 +1,148 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Result of search for inbox by email address + /// + [DataContract(Name = "InboxByEmailAddressResult")] + public partial class InboxByEmailAddressResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxByEmailAddressResult() { } + /// + /// Initializes a new instance of the class. + /// + /// inboxId. + /// exists (required). + public InboxByEmailAddressResult(Guid? inboxId = default(Guid?), bool exists = default(bool)) + { + this.Exists = exists; + this.InboxId = inboxId; + } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = true)] + public Guid? InboxId { get; set; } + + /// + /// Gets or Sets Exists + /// + [DataMember(Name = "exists", IsRequired = true, EmitDefaultValue = true)] + public bool Exists { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxByEmailAddressResult {\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" Exists: ").Append(Exists).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxByEmailAddressResult); + } + + /// + /// Returns true if InboxByEmailAddressResult instances are equal + /// + /// Instance of InboxByEmailAddressResult to be compared + /// Boolean + public bool Equals(InboxByEmailAddressResult input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.Exists == input.Exists || + this.Exists.Equals(input.Exists) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Exists.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxByNameResult.cs b/src/mailslurp_netstandard_2x/Model/InboxByNameResult.cs new file mode 100644 index 00000000..5ff735cf --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxByNameResult.cs @@ -0,0 +1,148 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Result of search for inbox by name + /// + [DataContract(Name = "InboxByNameResult")] + public partial class InboxByNameResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxByNameResult() { } + /// + /// Initializes a new instance of the class. + /// + /// inboxId. + /// exists (required). + public InboxByNameResult(Guid? inboxId = default(Guid?), bool exists = default(bool)) + { + this.Exists = exists; + this.InboxId = inboxId; + } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = true)] + public Guid? InboxId { get; set; } + + /// + /// Gets or Sets Exists + /// + [DataMember(Name = "exists", IsRequired = true, EmitDefaultValue = true)] + public bool Exists { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxByNameResult {\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" Exists: ").Append(Exists).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxByNameResult); + } + + /// + /// Returns true if InboxByNameResult instances are equal + /// + /// Instance of InboxByNameResult to be compared + /// Boolean + public bool Equals(InboxByNameResult input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.Exists == input.Exists || + this.Exists.Equals(input.Exists) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Exists.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxDto.cs b/src/mailslurp_netstandard_2x/Model/InboxDto.cs new file mode 100644 index 00000000..a5f703b2 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxDto.cs @@ -0,0 +1,422 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Representation of a MailSlurp inbox. An inbox has an ID and a real email address. Emails can be sent to or from this email address. Inboxes are either `SMTP` or `HTTP` mailboxes. The default, `HTTP` inboxes, use AWS SES to process emails and are best suited as test email accounts and do not support IMAP or POP3. `SMTP` inboxes use a custom mail server at `mxslurp.click` and support SMTP login, IMAP and POP3. Use the `EmailController` or the `InboxController` methods to send and receive emails and attachments. Inboxes may have a description, name, and tags for display purposes. You can also favourite an inbox for easier searching. + /// + [DataContract(Name = "InboxDto")] + public partial class InboxDto : IEquatable, IValidatableObject + { + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + [JsonConverter(typeof(StringEnumConverter))] + public enum InboxTypeEnum + { + /// + /// Enum HTTPINBOX for value: HTTP_INBOX + /// + [EnumMember(Value = "HTTP_INBOX")] + HTTPINBOX = 1, + + /// + /// Enum SMTPINBOX for value: SMTP_INBOX + /// + [EnumMember(Value = "SMTP_INBOX")] + SMTPINBOX = 2 + + } + + + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + [DataMember(Name = "inboxType", EmitDefaultValue = true)] + public InboxTypeEnum? InboxType { get; set; } + /// + /// Inbox function if used as a primitive for another system. + /// + /// Inbox function if used as a primitive for another system. + [JsonConverter(typeof(StringEnumConverter))] + public enum FunctionsAsEnum + { + /// + /// Enum ALIAS for value: ALIAS + /// + [EnumMember(Value = "ALIAS")] + ALIAS = 1, + + /// + /// Enum THREAD for value: THREAD + /// + [EnumMember(Value = "THREAD")] + THREAD = 2, + + /// + /// Enum CATCHALL for value: CATCH_ALL + /// + [EnumMember(Value = "CATCH_ALL")] + CATCHALL = 3, + + /// + /// Enum CONNECTOR for value: CONNECTOR + /// + [EnumMember(Value = "CONNECTOR")] + CONNECTOR = 4 + + } + + + /// + /// Inbox function if used as a primitive for another system. + /// + /// Inbox function if used as a primitive for another system. + [DataMember(Name = "functionsAs", EmitDefaultValue = true)] + public FunctionsAsEnum? FunctionsAs { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxDto() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. (required). + /// ID of user that inbox belongs to. + /// When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. (required). + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search. + /// ID of custom domain used by the inbox if any. + /// Description of an inbox for labelling and searching purposes. + /// The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (required). + /// Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email.. + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering (required). + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.. + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).. + /// Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes. (required). + /// Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. (required). + /// Inbox function if used as a primitive for another system.. + public InboxDto(Guid id = default(Guid), Guid? userId = default(Guid?), DateTime createdAt = default(DateTime), string name = default(string), Guid? domainId = default(Guid?), string description = default(string), string emailAddress = default(string), string expiresAt = default(string), bool favourite = default(bool), List tags = default(List), InboxTypeEnum? inboxType = default(InboxTypeEnum?), bool readOnly = default(bool), bool virtualInbox = default(bool), FunctionsAsEnum? functionsAs = default(FunctionsAsEnum?)) + { + this.Id = id; + this.CreatedAt = createdAt; + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for InboxDto and cannot be null"); + } + this.EmailAddress = emailAddress; + this.Favourite = favourite; + this.ReadOnly = readOnly; + this.VirtualInbox = virtualInbox; + this.UserId = userId; + this.Name = name; + this.DomainId = domainId; + this.Description = description; + this.ExpiresAt = expiresAt; + this.Tags = tags; + this.InboxType = inboxType; + this.FunctionsAs = functionsAs; + } + + /// + /// ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. + /// + /// ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// ID of user that inbox belongs to + /// + /// ID of user that inbox belongs to + [DataMember(Name = "userId", EmitDefaultValue = true)] + public Guid? UserId { get; set; } + + /// + /// When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. + /// + /// When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search + /// + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// ID of custom domain used by the inbox if any + /// + /// ID of custom domain used by the inbox if any + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// Description of an inbox for labelling and searching purposes + /// + /// Description of an inbox for labelling and searching purposes + [DataMember(Name = "description", EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. + /// + /// The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email. + /// + /// Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email. + [DataMember(Name = "expiresAt", EmitDefaultValue = true)] + public string ExpiresAt { get; set; } + + /// + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering + /// + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering + [DataMember(Name = "favourite", IsRequired = true, EmitDefaultValue = true)] + public bool Favourite { get; set; } + + /// + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. + /// + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. + [DataMember(Name = "tags", EmitDefaultValue = true)] + public List Tags { get; set; } + + /// + /// Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes. + /// + /// Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes. + [DataMember(Name = "readOnly", IsRequired = true, EmitDefaultValue = true)] + public bool ReadOnly { get; set; } + + /// + /// Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. + /// + /// Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. + [DataMember(Name = "virtualInbox", IsRequired = true, EmitDefaultValue = true)] + public bool VirtualInbox { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n"); + sb.Append(" Favourite: ").Append(Favourite).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" InboxType: ").Append(InboxType).Append("\n"); + sb.Append(" ReadOnly: ").Append(ReadOnly).Append("\n"); + sb.Append(" VirtualInbox: ").Append(VirtualInbox).Append("\n"); + sb.Append(" FunctionsAs: ").Append(FunctionsAs).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxDto); + } + + /// + /// Returns true if InboxDto instances are equal + /// + /// Instance of InboxDto to be compared + /// Boolean + public bool Equals(InboxDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) + ) && + ( + this.Favourite == input.Favourite || + this.Favourite.Equals(input.Favourite) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.InboxType == input.InboxType || + this.InboxType.Equals(input.InboxType) + ) && + ( + this.ReadOnly == input.ReadOnly || + this.ReadOnly.Equals(input.ReadOnly) + ) && + ( + this.VirtualInbox == input.VirtualInbox || + this.VirtualInbox.Equals(input.VirtualInbox) + ) && + ( + this.FunctionsAs == input.FunctionsAs || + this.FunctionsAs.Equals(input.FunctionsAs) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.ExpiresAt != null) + { + hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Favourite.GetHashCode(); + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + hashCode = (hashCode * 59) + this.InboxType.GetHashCode(); + hashCode = (hashCode * 59) + this.ReadOnly.GetHashCode(); + hashCode = (hashCode * 59) + this.VirtualInbox.GetHashCode(); + hashCode = (hashCode * 59) + this.FunctionsAs.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxExistsDto.cs b/src/mailslurp_netstandard_2x/Model/InboxExistsDto.cs new file mode 100644 index 00000000..5993be3c --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxExistsDto.cs @@ -0,0 +1,130 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Result of email exists query + /// + [DataContract(Name = "InboxExistsDto")] + public partial class InboxExistsDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxExistsDto() { } + /// + /// Initializes a new instance of the class. + /// + /// exists (required). + public InboxExistsDto(bool exists = default(bool)) + { + this.Exists = exists; + } + + /// + /// Gets or Sets Exists + /// + [DataMember(Name = "exists", IsRequired = true, EmitDefaultValue = true)] + public bool Exists { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxExistsDto {\n"); + sb.Append(" Exists: ").Append(Exists).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxExistsDto); + } + + /// + /// Returns true if InboxExistsDto instances are equal + /// + /// Instance of InboxExistsDto to be compared + /// Boolean + public bool Equals(InboxExistsDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Exists == input.Exists || + this.Exists.Equals(input.Exists) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Exists.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxForwarderDto.cs b/src/mailslurp_netstandard_2x/Model/InboxForwarderDto.cs new file mode 100644 index 00000000..6c02a5d6 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxForwarderDto.cs @@ -0,0 +1,286 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Inbox forwarder. Describes how an inbox will forward matching emails to designated recipients. + /// + [DataContract(Name = "InboxForwarderDto")] + public partial class InboxForwarderDto : IEquatable, IValidatableObject + { + /// + /// Which field to match against + /// + /// Which field to match against + [JsonConverter(typeof(StringEnumConverter))] + public enum FieldEnum + { + /// + /// Enum RECIPIENTS for value: RECIPIENTS + /// + [EnumMember(Value = "RECIPIENTS")] + RECIPIENTS = 1, + + /// + /// Enum SENDER for value: SENDER + /// + [EnumMember(Value = "SENDER")] + SENDER = 2, + + /// + /// Enum SUBJECT for value: SUBJECT + /// + [EnumMember(Value = "SUBJECT")] + SUBJECT = 3, + + /// + /// Enum ATTACHMENTS for value: ATTACHMENTS + /// + [EnumMember(Value = "ATTACHMENTS")] + ATTACHMENTS = 4 + + } + + + /// + /// Which field to match against + /// + /// Which field to match against + [DataMember(Name = "field", IsRequired = true, EmitDefaultValue = true)] + public FieldEnum Field { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxForwarderDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// inboxId (required). + /// Name of inbox forwarder. + /// Which field to match against (required). + /// Wild-card type pattern to apply to field (required). + /// Who to send forwarded email to (required). + /// createdAt (required). + public InboxForwarderDto(Guid id = default(Guid), Guid inboxId = default(Guid), string name = default(string), FieldEnum field = default(FieldEnum), string match = default(string), List forwardToRecipients = default(List), DateTime createdAt = default(DateTime)) + { + this.Id = id; + this.InboxId = inboxId; + this.Field = field; + // to ensure "match" is required (not null) + if (match == null) + { + throw new ArgumentNullException("match is a required property for InboxForwarderDto and cannot be null"); + } + this.Match = match; + // to ensure "forwardToRecipients" is required (not null) + if (forwardToRecipients == null) + { + throw new ArgumentNullException("forwardToRecipients is a required property for InboxForwarderDto and cannot be null"); + } + this.ForwardToRecipients = forwardToRecipients; + this.CreatedAt = createdAt; + this.Name = name; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Name of inbox forwarder + /// + /// Name of inbox forwarder + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Wild-card type pattern to apply to field + /// + /// Wild-card type pattern to apply to field + [DataMember(Name = "match", IsRequired = true, EmitDefaultValue = true)] + public string Match { get; set; } + + /// + /// Who to send forwarded email to + /// + /// Who to send forwarded email to + [DataMember(Name = "forwardToRecipients", IsRequired = true, EmitDefaultValue = true)] + public List ForwardToRecipients { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxForwarderDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Field: ").Append(Field).Append("\n"); + sb.Append(" Match: ").Append(Match).Append("\n"); + sb.Append(" ForwardToRecipients: ").Append(ForwardToRecipients).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxForwarderDto); + } + + /// + /// Returns true if InboxForwarderDto instances are equal + /// + /// Instance of InboxForwarderDto to be compared + /// Boolean + public bool Equals(InboxForwarderDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Field == input.Field || + this.Field.Equals(input.Field) + ) && + ( + this.Match == input.Match || + (this.Match != null && + this.Match.Equals(input.Match)) + ) && + ( + this.ForwardToRecipients == input.ForwardToRecipients || + this.ForwardToRecipients != null && + input.ForwardToRecipients != null && + this.ForwardToRecipients.SequenceEqual(input.ForwardToRecipients) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Field.GetHashCode(); + if (this.Match != null) + { + hashCode = (hashCode * 59) + this.Match.GetHashCode(); + } + if (this.ForwardToRecipients != null) + { + hashCode = (hashCode * 59) + this.ForwardToRecipients.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxForwarderEventDto.cs b/src/mailslurp_netstandard_2x/Model/InboxForwarderEventDto.cs new file mode 100644 index 00000000..71d481be --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxForwarderEventDto.cs @@ -0,0 +1,276 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Inbox forwarder event. Describes how an email was handled by an inbox forwarder. + /// + [DataContract(Name = "InboxForwarderEventDto")] + public partial class InboxForwarderEventDto : IEquatable, IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum SUCCESS for value: SUCCESS + /// + [EnumMember(Value = "SUCCESS")] + SUCCESS = 1, + + /// + /// Enum FAILURE for value: FAILURE + /// + [EnumMember(Value = "FAILURE")] + FAILURE = 2 + + } + + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", EmitDefaultValue = true)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxForwarderEventDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// inboxId. + /// emailId. + /// userId. + /// forwarderId. + /// message. + /// status. + /// createdAt (required). + public InboxForwarderEventDto(Guid? id = default(Guid?), Guid? inboxId = default(Guid?), Guid? emailId = default(Guid?), Guid? userId = default(Guid?), Guid? forwarderId = default(Guid?), string message = default(string), StatusEnum? status = default(StatusEnum?), DateTime createdAt = default(DateTime)) + { + this.CreatedAt = createdAt; + this.Id = id; + this.InboxId = inboxId; + this.EmailId = emailId; + this.UserId = userId; + this.ForwarderId = forwarderId; + this.Message = message; + this.Status = status; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = true)] + public Guid? Id { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = true)] + public Guid? InboxId { get; set; } + + /// + /// Gets or Sets EmailId + /// + [DataMember(Name = "emailId", EmitDefaultValue = true)] + public Guid? EmailId { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", EmitDefaultValue = true)] + public Guid? UserId { get; set; } + + /// + /// Gets or Sets ForwarderId + /// + [DataMember(Name = "forwarderId", EmitDefaultValue = true)] + public Guid? ForwarderId { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxForwarderEventDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" EmailId: ").Append(EmailId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" ForwarderId: ").Append(ForwarderId).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxForwarderEventDto); + } + + /// + /// Returns true if InboxForwarderEventDto instances are equal + /// + /// Instance of InboxForwarderEventDto to be compared + /// Boolean + public bool Equals(InboxForwarderEventDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.EmailId == input.EmailId || + (this.EmailId != null && + this.EmailId.Equals(input.EmailId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.ForwarderId == input.ForwarderId || + (this.ForwarderId != null && + this.ForwarderId.Equals(input.ForwarderId)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.EmailId != null) + { + hashCode = (hashCode * 59) + this.EmailId.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.ForwarderId != null) + { + hashCode = (hashCode * 59) + this.ForwarderId.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxForwarderEventProjection.cs b/src/mailslurp_netstandard_2x/Model/InboxForwarderEventProjection.cs new file mode 100644 index 00000000..50a774e9 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxForwarderEventProjection.cs @@ -0,0 +1,276 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Inbox forwarder event + /// + [DataContract(Name = "InboxForwarderEventProjection")] + public partial class InboxForwarderEventProjection : IEquatable, IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum SUCCESS for value: SUCCESS + /// + [EnumMember(Value = "SUCCESS")] + SUCCESS = 1, + + /// + /// Enum FAILURE for value: FAILURE + /// + [EnumMember(Value = "FAILURE")] + FAILURE = 2 + + } + + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", EmitDefaultValue = true)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxForwarderEventProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// emailId. + /// inboxId. + /// userId. + /// forwarderId. + /// createdAt (required). + /// message. + /// id. + /// status. + public InboxForwarderEventProjection(Guid? emailId = default(Guid?), Guid? inboxId = default(Guid?), Guid? userId = default(Guid?), Guid? forwarderId = default(Guid?), DateTime createdAt = default(DateTime), string message = default(string), Guid? id = default(Guid?), StatusEnum? status = default(StatusEnum?)) + { + this.CreatedAt = createdAt; + this.EmailId = emailId; + this.InboxId = inboxId; + this.UserId = userId; + this.ForwarderId = forwarderId; + this.Message = message; + this.Id = id; + this.Status = status; + } + + /// + /// Gets or Sets EmailId + /// + [DataMember(Name = "emailId", EmitDefaultValue = true)] + public Guid? EmailId { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = true)] + public Guid? InboxId { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", EmitDefaultValue = true)] + public Guid? UserId { get; set; } + + /// + /// Gets or Sets ForwarderId + /// + [DataMember(Name = "forwarderId", EmitDefaultValue = true)] + public Guid? ForwarderId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = true)] + public Guid? Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxForwarderEventProjection {\n"); + sb.Append(" EmailId: ").Append(EmailId).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" ForwarderId: ").Append(ForwarderId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxForwarderEventProjection); + } + + /// + /// Returns true if InboxForwarderEventProjection instances are equal + /// + /// Instance of InboxForwarderEventProjection to be compared + /// Boolean + public bool Equals(InboxForwarderEventProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailId == input.EmailId || + (this.EmailId != null && + this.EmailId.Equals(input.EmailId)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.ForwarderId == input.ForwarderId || + (this.ForwarderId != null && + this.ForwarderId.Equals(input.ForwarderId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailId != null) + { + hashCode = (hashCode * 59) + this.EmailId.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.ForwarderId != null) + { + hashCode = (hashCode * 59) + this.ForwarderId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxForwarderTestOptions.cs b/src/mailslurp_netstandard_2x/Model/InboxForwarderTestOptions.cs new file mode 100644 index 00000000..5b04fae1 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxForwarderTestOptions.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for testing an inbox forwarder against a value + /// + [DataContract(Name = "InboxForwarderTestOptions")] + public partial class InboxForwarderTestOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxForwarderTestOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// testValue (required). + public InboxForwarderTestOptions(string testValue = default(string)) + { + // to ensure "testValue" is required (not null) + if (testValue == null) + { + throw new ArgumentNullException("testValue is a required property for InboxForwarderTestOptions and cannot be null"); + } + this.TestValue = testValue; + } + + /// + /// Gets or Sets TestValue + /// + [DataMember(Name = "testValue", IsRequired = true, EmitDefaultValue = true)] + public string TestValue { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxForwarderTestOptions {\n"); + sb.Append(" TestValue: ").Append(TestValue).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxForwarderTestOptions); + } + + /// + /// Returns true if InboxForwarderTestOptions instances are equal + /// + /// Instance of InboxForwarderTestOptions to be compared + /// Boolean + public bool Equals(InboxForwarderTestOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.TestValue == input.TestValue || + (this.TestValue != null && + this.TestValue.Equals(input.TestValue)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TestValue != null) + { + hashCode = (hashCode * 59) + this.TestValue.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxForwarderTestResult.cs b/src/mailslurp_netstandard_2x/Model/InboxForwarderTestResult.cs new file mode 100644 index 00000000..9f52a01c --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxForwarderTestResult.cs @@ -0,0 +1,154 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Results of inbox forwarder test + /// + [DataContract(Name = "InboxForwarderTestResult")] + public partial class InboxForwarderTestResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxForwarderTestResult() { } + /// + /// Initializes a new instance of the class. + /// + /// matches (required). + /// doesMatch (required). + public InboxForwarderTestResult(Dictionary matches = default(Dictionary), bool doesMatch = default(bool)) + { + // to ensure "matches" is required (not null) + if (matches == null) + { + throw new ArgumentNullException("matches is a required property for InboxForwarderTestResult and cannot be null"); + } + this.Matches = matches; + this.DoesMatch = doesMatch; + } + + /// + /// Gets or Sets Matches + /// + [DataMember(Name = "matches", IsRequired = true, EmitDefaultValue = true)] + public Dictionary Matches { get; set; } + + /// + /// Gets or Sets DoesMatch + /// + [DataMember(Name = "doesMatch", IsRequired = true, EmitDefaultValue = true)] + public bool DoesMatch { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxForwarderTestResult {\n"); + sb.Append(" Matches: ").Append(Matches).Append("\n"); + sb.Append(" DoesMatch: ").Append(DoesMatch).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxForwarderTestResult); + } + + /// + /// Returns true if InboxForwarderTestResult instances are equal + /// + /// Instance of InboxForwarderTestResult to be compared + /// Boolean + public bool Equals(InboxForwarderTestResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Matches == input.Matches || + this.Matches != null && + input.Matches != null && + this.Matches.SequenceEqual(input.Matches) + ) && + ( + this.DoesMatch == input.DoesMatch || + this.DoesMatch.Equals(input.DoesMatch) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Matches != null) + { + hashCode = (hashCode * 59) + this.Matches.GetHashCode(); + } + hashCode = (hashCode * 59) + this.DoesMatch.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxIdItem.cs b/src/mailslurp_netstandard_2x/Model/InboxIdItem.cs new file mode 100644 index 00000000..69cca7cb --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxIdItem.cs @@ -0,0 +1,157 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Inbox ID and email address pair + /// + [DataContract(Name = "InboxIdItem")] + public partial class InboxIdItem : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxIdItem() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// emailAddress (required). + public InboxIdItem(Guid id = default(Guid), string emailAddress = default(string)) + { + this.Id = id; + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for InboxIdItem and cannot be null"); + } + this.EmailAddress = emailAddress; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxIdItem {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxIdItem); + } + + /// + /// Returns true if InboxIdItem instances are equal + /// + /// Instance of InboxIdItem to be compared + /// Boolean + public bool Equals(InboxIdItem input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxIdsResult.cs b/src/mailslurp_netstandard_2x/Model/InboxIdsResult.cs new file mode 100644 index 00000000..2fa5658a --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxIdsResult.cs @@ -0,0 +1,140 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// List of inbox IDs and email addresses + /// + [DataContract(Name = "InboxIdsResult")] + public partial class InboxIdsResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxIdsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// inboxIds (required). + public InboxIdsResult(List inboxIds = default(List)) + { + // to ensure "inboxIds" is required (not null) + if (inboxIds == null) + { + throw new ArgumentNullException("inboxIds is a required property for InboxIdsResult and cannot be null"); + } + this.InboxIds = inboxIds; + } + + /// + /// Gets or Sets InboxIds + /// + [DataMember(Name = "inboxIds", IsRequired = true, EmitDefaultValue = true)] + public List InboxIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxIdsResult {\n"); + sb.Append(" InboxIds: ").Append(InboxIds).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxIdsResult); + } + + /// + /// Returns true if InboxIdsResult instances are equal + /// + /// Instance of InboxIdsResult to be compared + /// Boolean + public bool Equals(InboxIdsResult input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxIds == input.InboxIds || + this.InboxIds != null && + input.InboxIds != null && + this.InboxIds.SequenceEqual(input.InboxIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxIds != null) + { + hashCode = (hashCode * 59) + this.InboxIds.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxPreview.cs b/src/mailslurp_netstandard_2x/Model/InboxPreview.cs new file mode 100644 index 00000000..d5bd1d56 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxPreview.cs @@ -0,0 +1,379 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Inbox data preview element. + /// + [DataContract(Name = "InboxPreview")] + public partial class InboxPreview : IEquatable, IValidatableObject + { + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + [JsonConverter(typeof(StringEnumConverter))] + public enum InboxTypeEnum + { + /// + /// Enum HTTPINBOX for value: HTTP_INBOX + /// + [EnumMember(Value = "HTTP_INBOX")] + HTTPINBOX = 1, + + /// + /// Enum SMTPINBOX for value: SMTP_INBOX + /// + [EnumMember(Value = "SMTP_INBOX")] + SMTPINBOX = 2 + + } + + + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + [DataMember(Name = "inboxType", EmitDefaultValue = true)] + public InboxTypeEnum? InboxType { get; set; } + /// + /// Inbox function if used as a primitive for another system. + /// + /// Inbox function if used as a primitive for another system. + [JsonConverter(typeof(StringEnumConverter))] + public enum FunctionsAsEnum + { + /// + /// Enum ALIAS for value: ALIAS + /// + [EnumMember(Value = "ALIAS")] + ALIAS = 1, + + /// + /// Enum THREAD for value: THREAD + /// + [EnumMember(Value = "THREAD")] + THREAD = 2, + + /// + /// Enum CATCHALL for value: CATCH_ALL + /// + [EnumMember(Value = "CATCH_ALL")] + CATCHALL = 3, + + /// + /// Enum CONNECTOR for value: CONNECTOR + /// + [EnumMember(Value = "CONNECTOR")] + CONNECTOR = 4 + + } + + + /// + /// Inbox function if used as a primitive for another system. + /// + /// Inbox function if used as a primitive for another system. + [DataMember(Name = "functionsAs", EmitDefaultValue = true)] + public FunctionsAsEnum? FunctionsAs { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxPreview() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. (required). + /// ID of custom domain used by the inbox if any. + /// The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.. + /// When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. (required). + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering (required). + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search. + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.. + /// Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/ (required). + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).. + /// Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. (required). + /// Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email.. + /// Inbox function if used as a primitive for another system.. + public InboxPreview(Guid id = default(Guid), Guid? domainId = default(Guid?), string emailAddress = default(string), DateTime createdAt = default(DateTime), bool favourite = default(bool), string name = default(string), List tags = default(List), bool teamAccess = default(bool), InboxTypeEnum? inboxType = default(InboxTypeEnum?), bool virtualInbox = default(bool), string expiresAt = default(string), FunctionsAsEnum? functionsAs = default(FunctionsAsEnum?)) + { + this.Id = id; + this.CreatedAt = createdAt; + this.Favourite = favourite; + this.TeamAccess = teamAccess; + this.VirtualInbox = virtualInbox; + this.DomainId = domainId; + this.EmailAddress = emailAddress; + this.Name = name; + this.Tags = tags; + this.InboxType = inboxType; + this.ExpiresAt = expiresAt; + this.FunctionsAs = functionsAs; + } + + /// + /// ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. + /// + /// ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// ID of custom domain used by the inbox if any + /// + /// ID of custom domain used by the inbox if any + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. + /// + /// The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. + [DataMember(Name = "emailAddress", EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. + /// + /// When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering + /// + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering + [DataMember(Name = "favourite", IsRequired = true, EmitDefaultValue = true)] + public bool Favourite { get; set; } + + /// + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search + /// + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. + /// + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. + [DataMember(Name = "tags", EmitDefaultValue = true)] + public List Tags { get; set; } + + /// + /// Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/ + /// + /// Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/ + [DataMember(Name = "teamAccess", IsRequired = true, EmitDefaultValue = true)] + public bool TeamAccess { get; set; } + + /// + /// Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. + /// + /// Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. + [DataMember(Name = "virtualInbox", IsRequired = true, EmitDefaultValue = true)] + public bool VirtualInbox { get; set; } + + /// + /// Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email. + /// + /// Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email. + [DataMember(Name = "expiresAt", EmitDefaultValue = true)] + public string ExpiresAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxPreview {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Favourite: ").Append(Favourite).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" TeamAccess: ").Append(TeamAccess).Append("\n"); + sb.Append(" InboxType: ").Append(InboxType).Append("\n"); + sb.Append(" VirtualInbox: ").Append(VirtualInbox).Append("\n"); + sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n"); + sb.Append(" FunctionsAs: ").Append(FunctionsAs).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxPreview); + } + + /// + /// Returns true if InboxPreview instances are equal + /// + /// Instance of InboxPreview to be compared + /// Boolean + public bool Equals(InboxPreview input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Favourite == input.Favourite || + this.Favourite.Equals(input.Favourite) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.TeamAccess == input.TeamAccess || + this.TeamAccess.Equals(input.TeamAccess) + ) && + ( + this.InboxType == input.InboxType || + this.InboxType.Equals(input.InboxType) + ) && + ( + this.VirtualInbox == input.VirtualInbox || + this.VirtualInbox.Equals(input.VirtualInbox) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) + ) && + ( + this.FunctionsAs == input.FunctionsAs || + this.FunctionsAs.Equals(input.FunctionsAs) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Favourite.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TeamAccess.GetHashCode(); + hashCode = (hashCode * 59) + this.InboxType.GetHashCode(); + hashCode = (hashCode * 59) + this.VirtualInbox.GetHashCode(); + if (this.ExpiresAt != null) + { + hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.FunctionsAs.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxReplierDto.cs b/src/mailslurp_netstandard_2x/Model/InboxReplierDto.cs new file mode 100644 index 00000000..fb0fbcce --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxReplierDto.cs @@ -0,0 +1,394 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Inbox replier. Will automatically reply to inbound emails that match given field for an inbox. + /// + [DataContract(Name = "InboxReplierDto")] + public partial class InboxReplierDto : IEquatable, IValidatableObject + { + /// + /// Defines Field + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum FieldEnum + { + /// + /// Enum RECIPIENTS for value: RECIPIENTS + /// + [EnumMember(Value = "RECIPIENTS")] + RECIPIENTS = 1, + + /// + /// Enum SENDER for value: SENDER + /// + [EnumMember(Value = "SENDER")] + SENDER = 2, + + /// + /// Enum SUBJECT for value: SUBJECT + /// + [EnumMember(Value = "SUBJECT")] + SUBJECT = 3, + + /// + /// Enum ATTACHMENTS for value: ATTACHMENTS + /// + [EnumMember(Value = "ATTACHMENTS")] + ATTACHMENTS = 4 + + } + + + /// + /// Gets or Sets Field + /// + [DataMember(Name = "field", IsRequired = true, EmitDefaultValue = true)] + public FieldEnum Field { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxReplierDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// inboxId (required). + /// name. + /// field (required). + /// match (required). + /// replyTo. + /// subject. + /// from. + /// charset. + /// isHTML (required). + /// templateId. + /// templateVariables. + /// ignoreReplyTo (required). + /// createdAt (required). + public InboxReplierDto(Guid id = default(Guid), Guid inboxId = default(Guid), string name = default(string), FieldEnum field = default(FieldEnum), string match = default(string), string replyTo = default(string), string subject = default(string), string from = default(string), string charset = default(string), bool isHTML = default(bool), Guid? templateId = default(Guid?), Dictionary templateVariables = default(Dictionary), bool ignoreReplyTo = default(bool), DateTime createdAt = default(DateTime)) + { + this.Id = id; + this.InboxId = inboxId; + this.Field = field; + // to ensure "match" is required (not null) + if (match == null) + { + throw new ArgumentNullException("match is a required property for InboxReplierDto and cannot be null"); + } + this.Match = match; + this.IsHTML = isHTML; + this.IgnoreReplyTo = ignoreReplyTo; + this.CreatedAt = createdAt; + this.Name = name; + this.ReplyTo = replyTo; + this.Subject = subject; + this.From = from; + this.Charset = charset; + this.TemplateId = templateId; + this.TemplateVariables = templateVariables; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Match + /// + [DataMember(Name = "match", IsRequired = true, EmitDefaultValue = true)] + public string Match { get; set; } + + /// + /// Gets or Sets ReplyTo + /// + [DataMember(Name = "replyTo", EmitDefaultValue = true)] + public string ReplyTo { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Gets or Sets From + /// + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Gets or Sets Charset + /// + [DataMember(Name = "charset", EmitDefaultValue = true)] + public string Charset { get; set; } + + /// + /// Gets or Sets IsHTML + /// + [DataMember(Name = "isHTML", IsRequired = true, EmitDefaultValue = true)] + public bool IsHTML { get; set; } + + /// + /// Gets or Sets TemplateId + /// + [DataMember(Name = "templateId", EmitDefaultValue = true)] + public Guid? TemplateId { get; set; } + + /// + /// Gets or Sets TemplateVariables + /// + [DataMember(Name = "templateVariables", EmitDefaultValue = true)] + public Dictionary TemplateVariables { get; set; } + + /// + /// Gets or Sets IgnoreReplyTo + /// + [DataMember(Name = "ignoreReplyTo", IsRequired = true, EmitDefaultValue = true)] + public bool IgnoreReplyTo { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxReplierDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Field: ").Append(Field).Append("\n"); + sb.Append(" Match: ").Append(Match).Append("\n"); + sb.Append(" ReplyTo: ").Append(ReplyTo).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Charset: ").Append(Charset).Append("\n"); + sb.Append(" IsHTML: ").Append(IsHTML).Append("\n"); + sb.Append(" TemplateId: ").Append(TemplateId).Append("\n"); + sb.Append(" TemplateVariables: ").Append(TemplateVariables).Append("\n"); + sb.Append(" IgnoreReplyTo: ").Append(IgnoreReplyTo).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxReplierDto); + } + + /// + /// Returns true if InboxReplierDto instances are equal + /// + /// Instance of InboxReplierDto to be compared + /// Boolean + public bool Equals(InboxReplierDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Field == input.Field || + this.Field.Equals(input.Field) + ) && + ( + this.Match == input.Match || + (this.Match != null && + this.Match.Equals(input.Match)) + ) && + ( + this.ReplyTo == input.ReplyTo || + (this.ReplyTo != null && + this.ReplyTo.Equals(input.ReplyTo)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.Charset == input.Charset || + (this.Charset != null && + this.Charset.Equals(input.Charset)) + ) && + ( + this.IsHTML == input.IsHTML || + this.IsHTML.Equals(input.IsHTML) + ) && + ( + this.TemplateId == input.TemplateId || + (this.TemplateId != null && + this.TemplateId.Equals(input.TemplateId)) + ) && + ( + this.TemplateVariables == input.TemplateVariables || + this.TemplateVariables != null && + input.TemplateVariables != null && + this.TemplateVariables.SequenceEqual(input.TemplateVariables) + ) && + ( + this.IgnoreReplyTo == input.IgnoreReplyTo || + this.IgnoreReplyTo.Equals(input.IgnoreReplyTo) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Field.GetHashCode(); + if (this.Match != null) + { + hashCode = (hashCode * 59) + this.Match.GetHashCode(); + } + if (this.ReplyTo != null) + { + hashCode = (hashCode * 59) + this.ReplyTo.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.Charset != null) + { + hashCode = (hashCode * 59) + this.Charset.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsHTML.GetHashCode(); + if (this.TemplateId != null) + { + hashCode = (hashCode * 59) + this.TemplateId.GetHashCode(); + } + if (this.TemplateVariables != null) + { + hashCode = (hashCode * 59) + this.TemplateVariables.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IgnoreReplyTo.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxReplierEventProjection.cs b/src/mailslurp_netstandard_2x/Model/InboxReplierEventProjection.cs new file mode 100644 index 00000000..a92266ca --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxReplierEventProjection.cs @@ -0,0 +1,313 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Inbox replier event + /// + [DataContract(Name = "InboxReplierEventProjection")] + public partial class InboxReplierEventProjection : IEquatable, IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum SUCCESS for value: SUCCESS + /// + [EnumMember(Value = "SUCCESS")] + SUCCESS = 1, + + /// + /// Enum FAILURE for value: FAILURE + /// + [EnumMember(Value = "FAILURE")] + FAILURE = 2 + + } + + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", EmitDefaultValue = true)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxReplierEventProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// recipients. + /// emailId. + /// inboxId. + /// userId. + /// sentId. + /// replierId. + /// createdAt (required). + /// message. + /// id. + /// status. + public InboxReplierEventProjection(List recipients = default(List), Guid? emailId = default(Guid?), Guid? inboxId = default(Guid?), Guid? userId = default(Guid?), Guid? sentId = default(Guid?), Guid? replierId = default(Guid?), DateTime createdAt = default(DateTime), string message = default(string), Guid? id = default(Guid?), StatusEnum? status = default(StatusEnum?)) + { + this.CreatedAt = createdAt; + this.Recipients = recipients; + this.EmailId = emailId; + this.InboxId = inboxId; + this.UserId = userId; + this.SentId = sentId; + this.ReplierId = replierId; + this.Message = message; + this.Id = id; + this.Status = status; + } + + /// + /// Gets or Sets Recipients + /// + [DataMember(Name = "recipients", EmitDefaultValue = true)] + public List Recipients { get; set; } + + /// + /// Gets or Sets EmailId + /// + [DataMember(Name = "emailId", EmitDefaultValue = true)] + public Guid? EmailId { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = true)] + public Guid? InboxId { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", EmitDefaultValue = true)] + public Guid? UserId { get; set; } + + /// + /// Gets or Sets SentId + /// + [DataMember(Name = "sentId", EmitDefaultValue = true)] + public Guid? SentId { get; set; } + + /// + /// Gets or Sets ReplierId + /// + [DataMember(Name = "replierId", EmitDefaultValue = true)] + public Guid? ReplierId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = true)] + public Guid? Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxReplierEventProjection {\n"); + sb.Append(" Recipients: ").Append(Recipients).Append("\n"); + sb.Append(" EmailId: ").Append(EmailId).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" SentId: ").Append(SentId).Append("\n"); + sb.Append(" ReplierId: ").Append(ReplierId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxReplierEventProjection); + } + + /// + /// Returns true if InboxReplierEventProjection instances are equal + /// + /// Instance of InboxReplierEventProjection to be compared + /// Boolean + public bool Equals(InboxReplierEventProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Recipients == input.Recipients || + this.Recipients != null && + input.Recipients != null && + this.Recipients.SequenceEqual(input.Recipients) + ) && + ( + this.EmailId == input.EmailId || + (this.EmailId != null && + this.EmailId.Equals(input.EmailId)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.SentId == input.SentId || + (this.SentId != null && + this.SentId.Equals(input.SentId)) + ) && + ( + this.ReplierId == input.ReplierId || + (this.ReplierId != null && + this.ReplierId.Equals(input.ReplierId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Recipients != null) + { + hashCode = (hashCode * 59) + this.Recipients.GetHashCode(); + } + if (this.EmailId != null) + { + hashCode = (hashCode * 59) + this.EmailId.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.SentId != null) + { + hashCode = (hashCode * 59) + this.SentId.GetHashCode(); + } + if (this.ReplierId != null) + { + hashCode = (hashCode * 59) + this.ReplierId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxRulesetDto.cs b/src/mailslurp_netstandard_2x/Model/InboxRulesetDto.cs new file mode 100644 index 00000000..8ce1ddec --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxRulesetDto.cs @@ -0,0 +1,295 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Rules for inbox + /// + [DataContract(Name = "InboxRulesetDto")] + public partial class InboxRulesetDto : IEquatable, IValidatableObject + { + /// + /// Defines Scope + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ScopeEnum + { + /// + /// Enum RECEIVINGEMAILS for value: RECEIVING_EMAILS + /// + [EnumMember(Value = "RECEIVING_EMAILS")] + RECEIVINGEMAILS = 1, + + /// + /// Enum SENDINGEMAILS for value: SENDING_EMAILS + /// + [EnumMember(Value = "SENDING_EMAILS")] + SENDINGEMAILS = 2 + + } + + + /// + /// Gets or Sets Scope + /// + [DataMember(Name = "scope", IsRequired = true, EmitDefaultValue = true)] + public ScopeEnum Scope { get; set; } + /// + /// Defines Action + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ActionEnum + { + /// + /// Enum BLOCK for value: BLOCK + /// + [EnumMember(Value = "BLOCK")] + BLOCK = 1, + + /// + /// Enum ALLOW for value: ALLOW + /// + [EnumMember(Value = "ALLOW")] + ALLOW = 2, + + /// + /// Enum FILTERREMOVE for value: FILTER_REMOVE + /// + [EnumMember(Value = "FILTER_REMOVE")] + FILTERREMOVE = 3 + + } + + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = true)] + public ActionEnum Action { get; set; } + /// + /// Defines Handler + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum HandlerEnum + { + /// + /// Enum EXCEPTION for value: EXCEPTION + /// + [EnumMember(Value = "EXCEPTION")] + EXCEPTION = 1 + + } + + + /// + /// Gets or Sets Handler + /// + [DataMember(Name = "handler", IsRequired = true, EmitDefaultValue = true)] + public HandlerEnum Handler { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxRulesetDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// inboxId. + /// scope (required). + /// action (required). + /// target (required). + /// handler (required). + /// createdAt (required). + public InboxRulesetDto(Guid id = default(Guid), Guid? inboxId = default(Guid?), ScopeEnum scope = default(ScopeEnum), ActionEnum action = default(ActionEnum), string target = default(string), HandlerEnum handler = default(HandlerEnum), DateTime createdAt = default(DateTime)) + { + this.Id = id; + this.Scope = scope; + this.Action = action; + // to ensure "target" is required (not null) + if (target == null) + { + throw new ArgumentNullException("target is a required property for InboxRulesetDto and cannot be null"); + } + this.Target = target; + this.Handler = handler; + this.CreatedAt = createdAt; + this.InboxId = inboxId; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = true)] + public Guid? InboxId { get; set; } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", IsRequired = true, EmitDefaultValue = true)] + public string Target { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxRulesetDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" Scope: ").Append(Scope).Append("\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append(" Handler: ").Append(Handler).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxRulesetDto); + } + + /// + /// Returns true if InboxRulesetDto instances are equal + /// + /// Instance of InboxRulesetDto to be compared + /// Boolean + public bool Equals(InboxRulesetDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.Scope == input.Scope || + this.Scope.Equals(input.Scope) + ) && + ( + this.Action == input.Action || + this.Action.Equals(input.Action) + ) && + ( + this.Target == input.Target || + (this.Target != null && + this.Target.Equals(input.Target)) + ) && + ( + this.Handler == input.Handler || + this.Handler.Equals(input.Handler) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Scope.GetHashCode(); + hashCode = (hashCode * 59) + this.Action.GetHashCode(); + if (this.Target != null) + { + hashCode = (hashCode * 59) + this.Target.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Handler.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxRulesetTestOptions.cs b/src/mailslurp_netstandard_2x/Model/InboxRulesetTestOptions.cs new file mode 100644 index 00000000..fc406ae7 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxRulesetTestOptions.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Test options for inbox ruleset + /// + [DataContract(Name = "InboxRulesetTestOptions")] + public partial class InboxRulesetTestOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxRulesetTestOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// testTarget (required). + public InboxRulesetTestOptions(string testTarget = default(string)) + { + // to ensure "testTarget" is required (not null) + if (testTarget == null) + { + throw new ArgumentNullException("testTarget is a required property for InboxRulesetTestOptions and cannot be null"); + } + this.TestTarget = testTarget; + } + + /// + /// Gets or Sets TestTarget + /// + [DataMember(Name = "testTarget", IsRequired = true, EmitDefaultValue = true)] + public string TestTarget { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxRulesetTestOptions {\n"); + sb.Append(" TestTarget: ").Append(TestTarget).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxRulesetTestOptions); + } + + /// + /// Returns true if InboxRulesetTestOptions instances are equal + /// + /// Instance of InboxRulesetTestOptions to be compared + /// Boolean + public bool Equals(InboxRulesetTestOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.TestTarget == input.TestTarget || + (this.TestTarget != null && + this.TestTarget.Equals(input.TestTarget)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TestTarget != null) + { + hashCode = (hashCode * 59) + this.TestTarget.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/InboxRulesetTestResult.cs b/src/mailslurp_netstandard_2x/Model/InboxRulesetTestResult.cs new file mode 100644 index 00000000..27f1577d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/InboxRulesetTestResult.cs @@ -0,0 +1,155 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Result of test of inbox ruleset + /// + [DataContract(Name = "InboxRulesetTestResult")] + public partial class InboxRulesetTestResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InboxRulesetTestResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Map of inbox ruleset ID to boolean of if target matches (required). + /// matches (required). + public InboxRulesetTestResult(Dictionary rulesetMatches = default(Dictionary), bool matches = default(bool)) + { + // to ensure "rulesetMatches" is required (not null) + if (rulesetMatches == null) + { + throw new ArgumentNullException("rulesetMatches is a required property for InboxRulesetTestResult and cannot be null"); + } + this.RulesetMatches = rulesetMatches; + this.Matches = matches; + } + + /// + /// Map of inbox ruleset ID to boolean of if target matches + /// + /// Map of inbox ruleset ID to boolean of if target matches + [DataMember(Name = "rulesetMatches", IsRequired = true, EmitDefaultValue = true)] + public Dictionary RulesetMatches { get; set; } + + /// + /// Gets or Sets Matches + /// + [DataMember(Name = "matches", IsRequired = true, EmitDefaultValue = true)] + public bool Matches { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InboxRulesetTestResult {\n"); + sb.Append(" RulesetMatches: ").Append(RulesetMatches).Append("\n"); + sb.Append(" Matches: ").Append(Matches).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InboxRulesetTestResult); + } + + /// + /// Returns true if InboxRulesetTestResult instances are equal + /// + /// Instance of InboxRulesetTestResult to be compared + /// Boolean + public bool Equals(InboxRulesetTestResult input) + { + if (input == null) + { + return false; + } + return + ( + this.RulesetMatches == input.RulesetMatches || + this.RulesetMatches != null && + input.RulesetMatches != null && + this.RulesetMatches.SequenceEqual(input.RulesetMatches) + ) && + ( + this.Matches == input.Matches || + this.Matches.Equals(input.Matches) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RulesetMatches != null) + { + hashCode = (hashCode * 59) + this.RulesetMatches.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Matches.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/JSONSchemaDto.cs b/src/mailslurp_netstandard_2x/Model/JSONSchemaDto.cs new file mode 100644 index 00000000..b34f0866 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/JSONSchemaDto.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// JSONSchema for payload + /// + [DataContract(Name = "JSONSchemaDto")] + public partial class JSONSchemaDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected JSONSchemaDto() { } + /// + /// Initializes a new instance of the class. + /// + /// value (required). + public JSONSchemaDto(string value = default(string)) + { + // to ensure "value" is required (not null) + if (value == null) + { + throw new ArgumentNullException("value is a required property for JSONSchemaDto and cannot be null"); + } + this.Value = value; + } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class JSONSchemaDto {\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as JSONSchemaDto); + } + + /// + /// Returns true if JSONSchemaDto instances are equal + /// + /// Instance of JSONSchemaDto to be compared + /// Boolean + public bool Equals(JSONSchemaDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Value != null) + { + hashCode = (hashCode * 59) + this.Value.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/LinkIssue.cs b/src/mailslurp_netstandard_2x/Model/LinkIssue.cs new file mode 100644 index 00000000..1dc8e246 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/LinkIssue.cs @@ -0,0 +1,210 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// LinkIssue + /// + [DataContract(Name = "LinkIssue")] + public partial class LinkIssue : IEquatable, IValidatableObject + { + /// + /// Defines Severity + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SeverityEnum + { + /// + /// Enum Warning for value: Warning + /// + [EnumMember(Value = "Warning")] + Warning = 1, + + /// + /// Enum Error for value: Error + /// + [EnumMember(Value = "Error")] + Error = 2 + + } + + + /// + /// Gets or Sets Severity + /// + [DataMember(Name = "severity", IsRequired = true, EmitDefaultValue = true)] + public SeverityEnum Severity { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LinkIssue() { } + /// + /// Initializes a new instance of the class. + /// + /// url (required). + /// responseStatus. + /// severity (required). + /// message (required). + public LinkIssue(string url = default(string), int responseStatus = default(int), SeverityEnum severity = default(SeverityEnum), string message = default(string)) + { + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for LinkIssue and cannot be null"); + } + this.Url = url; + this.Severity = severity; + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for LinkIssue and cannot be null"); + } + this.Message = message; + this.ResponseStatus = responseStatus; + } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Gets or Sets ResponseStatus + /// + [DataMember(Name = "responseStatus", EmitDefaultValue = false)] + public int ResponseStatus { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LinkIssue {\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" ResponseStatus: ").Append(ResponseStatus).Append("\n"); + sb.Append(" Severity: ").Append(Severity).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LinkIssue); + } + + /// + /// Returns true if LinkIssue instances are equal + /// + /// Instance of LinkIssue to be compared + /// Boolean + public bool Equals(LinkIssue input) + { + if (input == null) + { + return false; + } + return + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ) && + ( + this.ResponseStatus == input.ResponseStatus || + this.ResponseStatus.Equals(input.ResponseStatus) + ) && + ( + this.Severity == input.Severity || + this.Severity.Equals(input.Severity) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ResponseStatus.GetHashCode(); + hashCode = (hashCode * 59) + this.Severity.GetHashCode(); + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ListUnsubscribeRecipientProjection.cs b/src/mailslurp_netstandard_2x/Model/ListUnsubscribeRecipientProjection.cs new file mode 100644 index 00000000..d460237b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ListUnsubscribeRecipientProjection.cs @@ -0,0 +1,193 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// List unsubscribe recipient + /// + [DataContract(Name = "ListUnsubscribeRecipientProjection")] + public partial class ListUnsubscribeRecipientProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListUnsubscribeRecipientProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// emailAddress (required). + /// domainId. + /// createdAt (required). + /// id (required). + public ListUnsubscribeRecipientProjection(string emailAddress = default(string), Guid? domainId = default(Guid?), DateTime createdAt = default(DateTime), Guid id = default(Guid)) + { + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for ListUnsubscribeRecipientProjection and cannot be null"); + } + this.EmailAddress = emailAddress; + this.CreatedAt = createdAt; + this.Id = id; + this.DomainId = domainId; + } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets DomainId + /// + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListUnsubscribeRecipientProjection {\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ListUnsubscribeRecipientProjection); + } + + /// + /// Returns true if ListUnsubscribeRecipientProjection instances are equal + /// + /// Instance of ListUnsubscribeRecipientProjection to be compared + /// Boolean + public bool Equals(ListUnsubscribeRecipientProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/LookupBimiDomainOptions.cs b/src/mailslurp_netstandard_2x/Model/LookupBimiDomainOptions.cs new file mode 100644 index 00000000..2dd994b3 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/LookupBimiDomainOptions.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// LookupBimiDomainOptions + /// + [DataContract(Name = "LookupBimiDomainOptions")] + public partial class LookupBimiDomainOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LookupBimiDomainOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// host (required). + public LookupBimiDomainOptions(string host = default(string)) + { + // to ensure "host" is required (not null) + if (host == null) + { + throw new ArgumentNullException("host is a required property for LookupBimiDomainOptions and cannot be null"); + } + this.Host = host; + } + + /// + /// Gets or Sets Host + /// + [DataMember(Name = "host", IsRequired = true, EmitDefaultValue = true)] + public string Host { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LookupBimiDomainOptions {\n"); + sb.Append(" Host: ").Append(Host).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LookupBimiDomainOptions); + } + + /// + /// Returns true if LookupBimiDomainOptions instances are equal + /// + /// Instance of LookupBimiDomainOptions to be compared + /// Boolean + public bool Equals(LookupBimiDomainOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Host == input.Host || + (this.Host != null && + this.Host.Equals(input.Host)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Host != null) + { + hashCode = (hashCode * 59) + this.Host.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/LookupBimiDomainResults.cs b/src/mailslurp_netstandard_2x/Model/LookupBimiDomainResults.cs new file mode 100644 index 00000000..dd531d0b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/LookupBimiDomainResults.cs @@ -0,0 +1,225 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// LookupBimiDomainResults + /// + [DataContract(Name = "LookupBimiDomainResults")] + public partial class LookupBimiDomainResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LookupBimiDomainResults() { } + /// + /// Initializes a new instance of the class. + /// + /// valid (required). + /// query (required). + /// records (required). + /// errors (required). + /// warnings (required). + public LookupBimiDomainResults(bool valid = default(bool), DNSLookupOptions query = default(DNSLookupOptions), List records = default(List), List errors = default(List), List warnings = default(List)) + { + this.Valid = valid; + // to ensure "query" is required (not null) + if (query == null) + { + throw new ArgumentNullException("query is a required property for LookupBimiDomainResults and cannot be null"); + } + this.Query = query; + // to ensure "records" is required (not null) + if (records == null) + { + throw new ArgumentNullException("records is a required property for LookupBimiDomainResults and cannot be null"); + } + this.Records = records; + // to ensure "errors" is required (not null) + if (errors == null) + { + throw new ArgumentNullException("errors is a required property for LookupBimiDomainResults and cannot be null"); + } + this.Errors = errors; + // to ensure "warnings" is required (not null) + if (warnings == null) + { + throw new ArgumentNullException("warnings is a required property for LookupBimiDomainResults and cannot be null"); + } + this.Warnings = warnings; + } + + /// + /// Gets or Sets Valid + /// + [DataMember(Name = "valid", IsRequired = true, EmitDefaultValue = true)] + public bool Valid { get; set; } + + /// + /// Gets or Sets Query + /// + [DataMember(Name = "query", IsRequired = true, EmitDefaultValue = true)] + public DNSLookupOptions Query { get; set; } + + /// + /// Gets or Sets Records + /// + [DataMember(Name = "records", IsRequired = true, EmitDefaultValue = true)] + public List Records { get; set; } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] + public List Errors { get; set; } + + /// + /// Gets or Sets Warnings + /// + [DataMember(Name = "warnings", IsRequired = true, EmitDefaultValue = true)] + public List Warnings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LookupBimiDomainResults {\n"); + sb.Append(" Valid: ").Append(Valid).Append("\n"); + sb.Append(" Query: ").Append(Query).Append("\n"); + sb.Append(" Records: ").Append(Records).Append("\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Warnings: ").Append(Warnings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LookupBimiDomainResults); + } + + /// + /// Returns true if LookupBimiDomainResults instances are equal + /// + /// Instance of LookupBimiDomainResults to be compared + /// Boolean + public bool Equals(LookupBimiDomainResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Valid == input.Valid || + this.Valid.Equals(input.Valid) + ) && + ( + this.Query == input.Query || + (this.Query != null && + this.Query.Equals(input.Query)) + ) && + ( + this.Records == input.Records || + this.Records != null && + input.Records != null && + this.Records.SequenceEqual(input.Records) + ) && + ( + this.Errors == input.Errors || + this.Errors != null && + input.Errors != null && + this.Errors.SequenceEqual(input.Errors) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Valid.GetHashCode(); + if (this.Query != null) + { + hashCode = (hashCode * 59) + this.Query.GetHashCode(); + } + if (this.Records != null) + { + hashCode = (hashCode * 59) + this.Records.GetHashCode(); + } + if (this.Errors != null) + { + hashCode = (hashCode * 59) + this.Errors.GetHashCode(); + } + if (this.Warnings != null) + { + hashCode = (hashCode * 59) + this.Warnings.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/LookupDmarcDomainOptions.cs b/src/mailslurp_netstandard_2x/Model/LookupDmarcDomainOptions.cs new file mode 100644 index 00000000..d242e19f --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/LookupDmarcDomainOptions.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// LookupDmarcDomainOptions + /// + [DataContract(Name = "LookupDmarcDomainOptions")] + public partial class LookupDmarcDomainOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LookupDmarcDomainOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// host (required). + public LookupDmarcDomainOptions(string host = default(string)) + { + // to ensure "host" is required (not null) + if (host == null) + { + throw new ArgumentNullException("host is a required property for LookupDmarcDomainOptions and cannot be null"); + } + this.Host = host; + } + + /// + /// Gets or Sets Host + /// + [DataMember(Name = "host", IsRequired = true, EmitDefaultValue = true)] + public string Host { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LookupDmarcDomainOptions {\n"); + sb.Append(" Host: ").Append(Host).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LookupDmarcDomainOptions); + } + + /// + /// Returns true if LookupDmarcDomainOptions instances are equal + /// + /// Instance of LookupDmarcDomainOptions to be compared + /// Boolean + public bool Equals(LookupDmarcDomainOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Host == input.Host || + (this.Host != null && + this.Host.Equals(input.Host)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Host != null) + { + hashCode = (hashCode * 59) + this.Host.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/LookupDmarcDomainResults.cs b/src/mailslurp_netstandard_2x/Model/LookupDmarcDomainResults.cs new file mode 100644 index 00000000..835b26de --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/LookupDmarcDomainResults.cs @@ -0,0 +1,225 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// LookupDmarcDomainResults + /// + [DataContract(Name = "LookupDmarcDomainResults")] + public partial class LookupDmarcDomainResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LookupDmarcDomainResults() { } + /// + /// Initializes a new instance of the class. + /// + /// valid (required). + /// query (required). + /// records (required). + /// errors (required). + /// warnings (required). + public LookupDmarcDomainResults(bool valid = default(bool), DNSLookupOptions query = default(DNSLookupOptions), List records = default(List), List errors = default(List), List warnings = default(List)) + { + this.Valid = valid; + // to ensure "query" is required (not null) + if (query == null) + { + throw new ArgumentNullException("query is a required property for LookupDmarcDomainResults and cannot be null"); + } + this.Query = query; + // to ensure "records" is required (not null) + if (records == null) + { + throw new ArgumentNullException("records is a required property for LookupDmarcDomainResults and cannot be null"); + } + this.Records = records; + // to ensure "errors" is required (not null) + if (errors == null) + { + throw new ArgumentNullException("errors is a required property for LookupDmarcDomainResults and cannot be null"); + } + this.Errors = errors; + // to ensure "warnings" is required (not null) + if (warnings == null) + { + throw new ArgumentNullException("warnings is a required property for LookupDmarcDomainResults and cannot be null"); + } + this.Warnings = warnings; + } + + /// + /// Gets or Sets Valid + /// + [DataMember(Name = "valid", IsRequired = true, EmitDefaultValue = true)] + public bool Valid { get; set; } + + /// + /// Gets or Sets Query + /// + [DataMember(Name = "query", IsRequired = true, EmitDefaultValue = true)] + public DNSLookupOptions Query { get; set; } + + /// + /// Gets or Sets Records + /// + [DataMember(Name = "records", IsRequired = true, EmitDefaultValue = true)] + public List Records { get; set; } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] + public List Errors { get; set; } + + /// + /// Gets or Sets Warnings + /// + [DataMember(Name = "warnings", IsRequired = true, EmitDefaultValue = true)] + public List Warnings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LookupDmarcDomainResults {\n"); + sb.Append(" Valid: ").Append(Valid).Append("\n"); + sb.Append(" Query: ").Append(Query).Append("\n"); + sb.Append(" Records: ").Append(Records).Append("\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Warnings: ").Append(Warnings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LookupDmarcDomainResults); + } + + /// + /// Returns true if LookupDmarcDomainResults instances are equal + /// + /// Instance of LookupDmarcDomainResults to be compared + /// Boolean + public bool Equals(LookupDmarcDomainResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Valid == input.Valid || + this.Valid.Equals(input.Valid) + ) && + ( + this.Query == input.Query || + (this.Query != null && + this.Query.Equals(input.Query)) + ) && + ( + this.Records == input.Records || + this.Records != null && + input.Records != null && + this.Records.SequenceEqual(input.Records) + ) && + ( + this.Errors == input.Errors || + this.Errors != null && + input.Errors != null && + this.Errors.SequenceEqual(input.Errors) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Valid.GetHashCode(); + if (this.Query != null) + { + hashCode = (hashCode * 59) + this.Query.GetHashCode(); + } + if (this.Records != null) + { + hashCode = (hashCode * 59) + this.Records.GetHashCode(); + } + if (this.Errors != null) + { + hashCode = (hashCode * 59) + this.Errors.GetHashCode(); + } + if (this.Warnings != null) + { + hashCode = (hashCode * 59) + this.Warnings.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/LookupMtaStsDomainOptions.cs b/src/mailslurp_netstandard_2x/Model/LookupMtaStsDomainOptions.cs new file mode 100644 index 00000000..4616e4ab --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/LookupMtaStsDomainOptions.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// LookupMtaStsDomainOptions + /// + [DataContract(Name = "LookupMtaStsDomainOptions")] + public partial class LookupMtaStsDomainOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LookupMtaStsDomainOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// host (required). + public LookupMtaStsDomainOptions(string host = default(string)) + { + // to ensure "host" is required (not null) + if (host == null) + { + throw new ArgumentNullException("host is a required property for LookupMtaStsDomainOptions and cannot be null"); + } + this.Host = host; + } + + /// + /// Gets or Sets Host + /// + [DataMember(Name = "host", IsRequired = true, EmitDefaultValue = true)] + public string Host { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LookupMtaStsDomainOptions {\n"); + sb.Append(" Host: ").Append(Host).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LookupMtaStsDomainOptions); + } + + /// + /// Returns true if LookupMtaStsDomainOptions instances are equal + /// + /// Instance of LookupMtaStsDomainOptions to be compared + /// Boolean + public bool Equals(LookupMtaStsDomainOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Host == input.Host || + (this.Host != null && + this.Host.Equals(input.Host)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Host != null) + { + hashCode = (hashCode * 59) + this.Host.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/LookupMtaStsDomainResults.cs b/src/mailslurp_netstandard_2x/Model/LookupMtaStsDomainResults.cs new file mode 100644 index 00000000..87b86de8 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/LookupMtaStsDomainResults.cs @@ -0,0 +1,285 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// LookupMtaStsDomainResults + /// + [DataContract(Name = "LookupMtaStsDomainResults")] + public partial class LookupMtaStsDomainResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LookupMtaStsDomainResults() { } + /// + /// Initializes a new instance of the class. + /// + /// valid (required). + /// query (required). + /// records (required). + /// wellKnownQuery (required). + /// wellKnownPresent (required). + /// wellKnownValue (required). + /// errors (required). + /// warnings (required). + public LookupMtaStsDomainResults(bool valid = default(bool), DNSLookupOptions query = default(DNSLookupOptions), List records = default(List), string wellKnownQuery = default(string), bool wellKnownPresent = default(bool), string wellKnownValue = default(string), List errors = default(List), List warnings = default(List)) + { + this.Valid = valid; + // to ensure "query" is required (not null) + if (query == null) + { + throw new ArgumentNullException("query is a required property for LookupMtaStsDomainResults and cannot be null"); + } + this.Query = query; + // to ensure "records" is required (not null) + if (records == null) + { + throw new ArgumentNullException("records is a required property for LookupMtaStsDomainResults and cannot be null"); + } + this.Records = records; + // to ensure "wellKnownQuery" is required (not null) + if (wellKnownQuery == null) + { + throw new ArgumentNullException("wellKnownQuery is a required property for LookupMtaStsDomainResults and cannot be null"); + } + this.WellKnownQuery = wellKnownQuery; + this.WellKnownPresent = wellKnownPresent; + // to ensure "wellKnownValue" is required (not null) + if (wellKnownValue == null) + { + throw new ArgumentNullException("wellKnownValue is a required property for LookupMtaStsDomainResults and cannot be null"); + } + this.WellKnownValue = wellKnownValue; + // to ensure "errors" is required (not null) + if (errors == null) + { + throw new ArgumentNullException("errors is a required property for LookupMtaStsDomainResults and cannot be null"); + } + this.Errors = errors; + // to ensure "warnings" is required (not null) + if (warnings == null) + { + throw new ArgumentNullException("warnings is a required property for LookupMtaStsDomainResults and cannot be null"); + } + this.Warnings = warnings; + } + + /// + /// Gets or Sets Valid + /// + [DataMember(Name = "valid", IsRequired = true, EmitDefaultValue = true)] + public bool Valid { get; set; } + + /// + /// Gets or Sets Query + /// + [DataMember(Name = "query", IsRequired = true, EmitDefaultValue = true)] + public DNSLookupOptions Query { get; set; } + + /// + /// Gets or Sets Records + /// + [DataMember(Name = "records", IsRequired = true, EmitDefaultValue = true)] + public List Records { get; set; } + + /// + /// Gets or Sets WellKnownQuery + /// + [DataMember(Name = "wellKnownQuery", IsRequired = true, EmitDefaultValue = true)] + public string WellKnownQuery { get; set; } + + /// + /// Gets or Sets WellKnownPresent + /// + [DataMember(Name = "wellKnownPresent", IsRequired = true, EmitDefaultValue = true)] + public bool WellKnownPresent { get; set; } + + /// + /// Gets or Sets WellKnownValue + /// + [DataMember(Name = "wellKnownValue", IsRequired = true, EmitDefaultValue = true)] + public string WellKnownValue { get; set; } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] + public List Errors { get; set; } + + /// + /// Gets or Sets Warnings + /// + [DataMember(Name = "warnings", IsRequired = true, EmitDefaultValue = true)] + public List Warnings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LookupMtaStsDomainResults {\n"); + sb.Append(" Valid: ").Append(Valid).Append("\n"); + sb.Append(" Query: ").Append(Query).Append("\n"); + sb.Append(" Records: ").Append(Records).Append("\n"); + sb.Append(" WellKnownQuery: ").Append(WellKnownQuery).Append("\n"); + sb.Append(" WellKnownPresent: ").Append(WellKnownPresent).Append("\n"); + sb.Append(" WellKnownValue: ").Append(WellKnownValue).Append("\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Warnings: ").Append(Warnings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LookupMtaStsDomainResults); + } + + /// + /// Returns true if LookupMtaStsDomainResults instances are equal + /// + /// Instance of LookupMtaStsDomainResults to be compared + /// Boolean + public bool Equals(LookupMtaStsDomainResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Valid == input.Valid || + this.Valid.Equals(input.Valid) + ) && + ( + this.Query == input.Query || + (this.Query != null && + this.Query.Equals(input.Query)) + ) && + ( + this.Records == input.Records || + this.Records != null && + input.Records != null && + this.Records.SequenceEqual(input.Records) + ) && + ( + this.WellKnownQuery == input.WellKnownQuery || + (this.WellKnownQuery != null && + this.WellKnownQuery.Equals(input.WellKnownQuery)) + ) && + ( + this.WellKnownPresent == input.WellKnownPresent || + this.WellKnownPresent.Equals(input.WellKnownPresent) + ) && + ( + this.WellKnownValue == input.WellKnownValue || + (this.WellKnownValue != null && + this.WellKnownValue.Equals(input.WellKnownValue)) + ) && + ( + this.Errors == input.Errors || + this.Errors != null && + input.Errors != null && + this.Errors.SequenceEqual(input.Errors) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Valid.GetHashCode(); + if (this.Query != null) + { + hashCode = (hashCode * 59) + this.Query.GetHashCode(); + } + if (this.Records != null) + { + hashCode = (hashCode * 59) + this.Records.GetHashCode(); + } + if (this.WellKnownQuery != null) + { + hashCode = (hashCode * 59) + this.WellKnownQuery.GetHashCode(); + } + hashCode = (hashCode * 59) + this.WellKnownPresent.GetHashCode(); + if (this.WellKnownValue != null) + { + hashCode = (hashCode * 59) + this.WellKnownValue.GetHashCode(); + } + if (this.Errors != null) + { + hashCode = (hashCode * 59) + this.Errors.GetHashCode(); + } + if (this.Warnings != null) + { + hashCode = (hashCode * 59) + this.Warnings.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/LookupTlsReportingDomainOptions.cs b/src/mailslurp_netstandard_2x/Model/LookupTlsReportingDomainOptions.cs new file mode 100644 index 00000000..e04f5686 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/LookupTlsReportingDomainOptions.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// LookupTlsReportingDomainOptions + /// + [DataContract(Name = "LookupTlsReportingDomainOptions")] + public partial class LookupTlsReportingDomainOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LookupTlsReportingDomainOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// host (required). + public LookupTlsReportingDomainOptions(string host = default(string)) + { + // to ensure "host" is required (not null) + if (host == null) + { + throw new ArgumentNullException("host is a required property for LookupTlsReportingDomainOptions and cannot be null"); + } + this.Host = host; + } + + /// + /// Gets or Sets Host + /// + [DataMember(Name = "host", IsRequired = true, EmitDefaultValue = true)] + public string Host { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LookupTlsReportingDomainOptions {\n"); + sb.Append(" Host: ").Append(Host).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LookupTlsReportingDomainOptions); + } + + /// + /// Returns true if LookupTlsReportingDomainOptions instances are equal + /// + /// Instance of LookupTlsReportingDomainOptions to be compared + /// Boolean + public bool Equals(LookupTlsReportingDomainOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Host == input.Host || + (this.Host != null && + this.Host.Equals(input.Host)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Host != null) + { + hashCode = (hashCode * 59) + this.Host.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/LookupTlsReportingDomainResults.cs b/src/mailslurp_netstandard_2x/Model/LookupTlsReportingDomainResults.cs new file mode 100644 index 00000000..b6fa8fcc --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/LookupTlsReportingDomainResults.cs @@ -0,0 +1,225 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// LookupTlsReportingDomainResults + /// + [DataContract(Name = "LookupTlsReportingDomainResults")] + public partial class LookupTlsReportingDomainResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LookupTlsReportingDomainResults() { } + /// + /// Initializes a new instance of the class. + /// + /// valid (required). + /// query (required). + /// records (required). + /// errors (required). + /// warnings (required). + public LookupTlsReportingDomainResults(bool valid = default(bool), DNSLookupOptions query = default(DNSLookupOptions), List records = default(List), List errors = default(List), List warnings = default(List)) + { + this.Valid = valid; + // to ensure "query" is required (not null) + if (query == null) + { + throw new ArgumentNullException("query is a required property for LookupTlsReportingDomainResults and cannot be null"); + } + this.Query = query; + // to ensure "records" is required (not null) + if (records == null) + { + throw new ArgumentNullException("records is a required property for LookupTlsReportingDomainResults and cannot be null"); + } + this.Records = records; + // to ensure "errors" is required (not null) + if (errors == null) + { + throw new ArgumentNullException("errors is a required property for LookupTlsReportingDomainResults and cannot be null"); + } + this.Errors = errors; + // to ensure "warnings" is required (not null) + if (warnings == null) + { + throw new ArgumentNullException("warnings is a required property for LookupTlsReportingDomainResults and cannot be null"); + } + this.Warnings = warnings; + } + + /// + /// Gets or Sets Valid + /// + [DataMember(Name = "valid", IsRequired = true, EmitDefaultValue = true)] + public bool Valid { get; set; } + + /// + /// Gets or Sets Query + /// + [DataMember(Name = "query", IsRequired = true, EmitDefaultValue = true)] + public DNSLookupOptions Query { get; set; } + + /// + /// Gets or Sets Records + /// + [DataMember(Name = "records", IsRequired = true, EmitDefaultValue = true)] + public List Records { get; set; } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] + public List Errors { get; set; } + + /// + /// Gets or Sets Warnings + /// + [DataMember(Name = "warnings", IsRequired = true, EmitDefaultValue = true)] + public List Warnings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LookupTlsReportingDomainResults {\n"); + sb.Append(" Valid: ").Append(Valid).Append("\n"); + sb.Append(" Query: ").Append(Query).Append("\n"); + sb.Append(" Records: ").Append(Records).Append("\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Warnings: ").Append(Warnings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LookupTlsReportingDomainResults); + } + + /// + /// Returns true if LookupTlsReportingDomainResults instances are equal + /// + /// Instance of LookupTlsReportingDomainResults to be compared + /// Boolean + public bool Equals(LookupTlsReportingDomainResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Valid == input.Valid || + this.Valid.Equals(input.Valid) + ) && + ( + this.Query == input.Query || + (this.Query != null && + this.Query.Equals(input.Query)) + ) && + ( + this.Records == input.Records || + this.Records != null && + input.Records != null && + this.Records.SequenceEqual(input.Records) + ) && + ( + this.Errors == input.Errors || + this.Errors != null && + input.Errors != null && + this.Errors.SequenceEqual(input.Errors) + ) && + ( + this.Warnings == input.Warnings || + this.Warnings != null && + input.Warnings != null && + this.Warnings.SequenceEqual(input.Warnings) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Valid.GetHashCode(); + if (this.Query != null) + { + hashCode = (hashCode * 59) + this.Query.GetHashCode(); + } + if (this.Records != null) + { + hashCode = (hashCode * 59) + this.Records.GetHashCode(); + } + if (this.Errors != null) + { + hashCode = (hashCode * 59) + this.Errors.GetHashCode(); + } + if (this.Warnings != null) + { + hashCode = (hashCode * 59) + this.Warnings.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/MatchOption.cs b/src/mailslurp_netstandard_2x/Model/MatchOption.cs new file mode 100644 index 00000000..ad07d057 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/MatchOption.cs @@ -0,0 +1,242 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for matching emails in an inbox. Each match option object contains a `field`, `should` and `value` property. Together they form logical conditions such as `SUBJECT` should `CONTAIN` value. + /// + [DataContract(Name = "MatchOption")] + public partial class MatchOption : IEquatable, IValidatableObject + { + /// + /// Fields of an email object that can be used to filter results + /// + /// Fields of an email object that can be used to filter results + [JsonConverter(typeof(StringEnumConverter))] + public enum FieldEnum + { + /// + /// Enum SUBJECT for value: SUBJECT + /// + [EnumMember(Value = "SUBJECT")] + SUBJECT = 1, + + /// + /// Enum TO for value: TO + /// + [EnumMember(Value = "TO")] + TO = 2, + + /// + /// Enum BCC for value: BCC + /// + [EnumMember(Value = "BCC")] + BCC = 3, + + /// + /// Enum CC for value: CC + /// + [EnumMember(Value = "CC")] + CC = 4, + + /// + /// Enum FROM for value: FROM + /// + [EnumMember(Value = "FROM")] + FROM = 5, + + /// + /// Enum HEADERS for value: HEADERS + /// + [EnumMember(Value = "HEADERS")] + HEADERS = 6 + + } + + + /// + /// Fields of an email object that can be used to filter results + /// + /// Fields of an email object that can be used to filter results + [DataMember(Name = "field", IsRequired = true, EmitDefaultValue = true)] + public FieldEnum Field { get; set; } + /// + /// How the value of the email field specified should be compared to the value given in the match options. + /// + /// How the value of the email field specified should be compared to the value given in the match options. + [JsonConverter(typeof(StringEnumConverter))] + public enum ShouldEnum + { + /// + /// Enum MATCH for value: MATCH + /// + [EnumMember(Value = "MATCH")] + MATCH = 1, + + /// + /// Enum CONTAIN for value: CONTAIN + /// + [EnumMember(Value = "CONTAIN")] + CONTAIN = 2, + + /// + /// Enum EQUAL for value: EQUAL + /// + [EnumMember(Value = "EQUAL")] + EQUAL = 3 + + } + + + /// + /// How the value of the email field specified should be compared to the value given in the match options. + /// + /// How the value of the email field specified should be compared to the value given in the match options. + [DataMember(Name = "should", IsRequired = true, EmitDefaultValue = true)] + public ShouldEnum Should { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MatchOption() { } + /// + /// Initializes a new instance of the class. + /// + /// Fields of an email object that can be used to filter results (required). + /// How the value of the email field specified should be compared to the value given in the match options. (required). + /// The value you wish to compare with the value of the field specified using the `should` value passed. For example `BODY` should `CONTAIN` a value passed. (required). + public MatchOption(FieldEnum field = default(FieldEnum), ShouldEnum should = default(ShouldEnum), string value = default(string)) + { + this.Field = field; + this.Should = should; + // to ensure "value" is required (not null) + if (value == null) + { + throw new ArgumentNullException("value is a required property for MatchOption and cannot be null"); + } + this.Value = value; + } + + /// + /// The value you wish to compare with the value of the field specified using the `should` value passed. For example `BODY` should `CONTAIN` a value passed. + /// + /// The value you wish to compare with the value of the field specified using the `should` value passed. For example `BODY` should `CONTAIN` a value passed. + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MatchOption {\n"); + sb.Append(" Field: ").Append(Field).Append("\n"); + sb.Append(" Should: ").Append(Should).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MatchOption); + } + + /// + /// Returns true if MatchOption instances are equal + /// + /// Instance of MatchOption to be compared + /// Boolean + public bool Equals(MatchOption input) + { + if (input == null) + { + return false; + } + return + ( + this.Field == input.Field || + this.Field.Equals(input.Field) + ) && + ( + this.Should == input.Should || + this.Should.Equals(input.Should) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Field.GetHashCode(); + hashCode = (hashCode * 59) + this.Should.GetHashCode(); + if (this.Value != null) + { + hashCode = (hashCode * 59) + this.Value.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/MatchOptions.cs b/src/mailslurp_netstandard_2x/Model/MatchOptions.cs new file mode 100644 index 00000000..0d8c4cf2 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/MatchOptions.cs @@ -0,0 +1,151 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Optional filter for matching emails based on fields. For instance filter results to only include emails whose `SUBJECT` value does `CONTAIN` given match value. An example payload would be `{ matches: [{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }] }`. You can also pass conditions such as `HAS_ATTACHMENT`. If you wish to extract regex matches inside the email content see the `getEmailContentMatch` method in the EmailController. + /// + [DataContract(Name = "MatchOptions")] + public partial class MatchOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Zero or more match options such as `{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }`. Options are additive so if one does not match the email is excluded from results. + /// Zero or more conditions such as `{ condition: 'HAS_ATTACHMENTS', value: 'TRUE' }`. Note the values are the strings `TRUE|FALSE` not booleans.. + public MatchOptions(List matches = default(List), List conditions = default(List)) + { + this.Matches = matches; + this.Conditions = conditions; + } + + /// + /// Zero or more match options such as `{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }`. Options are additive so if one does not match the email is excluded from results + /// + /// Zero or more match options such as `{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }`. Options are additive so if one does not match the email is excluded from results + [DataMember(Name = "matches", EmitDefaultValue = true)] + public List Matches { get; set; } + + /// + /// Zero or more conditions such as `{ condition: 'HAS_ATTACHMENTS', value: 'TRUE' }`. Note the values are the strings `TRUE|FALSE` not booleans. + /// + /// Zero or more conditions such as `{ condition: 'HAS_ATTACHMENTS', value: 'TRUE' }`. Note the values are the strings `TRUE|FALSE` not booleans. + [DataMember(Name = "conditions", EmitDefaultValue = true)] + public List Conditions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MatchOptions {\n"); + sb.Append(" Matches: ").Append(Matches).Append("\n"); + sb.Append(" Conditions: ").Append(Conditions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MatchOptions); + } + + /// + /// Returns true if MatchOptions instances are equal + /// + /// Instance of MatchOptions to be compared + /// Boolean + public bool Equals(MatchOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Matches == input.Matches || + this.Matches != null && + input.Matches != null && + this.Matches.SequenceEqual(input.Matches) + ) && + ( + this.Conditions == input.Conditions || + this.Conditions != null && + input.Conditions != null && + this.Conditions.SequenceEqual(input.Conditions) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Matches != null) + { + hashCode = (hashCode * 59) + this.Matches.GetHashCode(); + } + if (this.Conditions != null) + { + hashCode = (hashCode * 59) + this.Conditions.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/MissedEmailDto.cs b/src/mailslurp_netstandard_2x/Model/MissedEmailDto.cs new file mode 100644 index 00000000..2d1cc6b5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/MissedEmailDto.cs @@ -0,0 +1,424 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Missed email + /// + [DataContract(Name = "MissedEmailDto")] + public partial class MissedEmailDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MissedEmailDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId. + /// subject. + /// bodyExcerpt. + /// attachmentCount (required). + /// from. + /// rawUrl. + /// rawKey. + /// rawBucket. + /// canRestore. + /// to (required). + /// cc (required). + /// bcc (required). + /// inboxIds (required). + /// createdAt (required). + /// updatedAt (required). + public MissedEmailDto(Guid id = default(Guid), Guid? userId = default(Guid?), string subject = default(string), string bodyExcerpt = default(string), int attachmentCount = default(int), string from = default(string), string rawUrl = default(string), string rawKey = default(string), string rawBucket = default(string), bool? canRestore = default(bool?), List to = default(List), List cc = default(List), List bcc = default(List), List inboxIds = default(List), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + this.Id = id; + this.AttachmentCount = attachmentCount; + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for MissedEmailDto and cannot be null"); + } + this.To = to; + // to ensure "cc" is required (not null) + if (cc == null) + { + throw new ArgumentNullException("cc is a required property for MissedEmailDto and cannot be null"); + } + this.Cc = cc; + // to ensure "bcc" is required (not null) + if (bcc == null) + { + throw new ArgumentNullException("bcc is a required property for MissedEmailDto and cannot be null"); + } + this.Bcc = bcc; + // to ensure "inboxIds" is required (not null) + if (inboxIds == null) + { + throw new ArgumentNullException("inboxIds is a required property for MissedEmailDto and cannot be null"); + } + this.InboxIds = inboxIds; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.UserId = userId; + this.Subject = subject; + this.BodyExcerpt = bodyExcerpt; + this.From = from; + this.RawUrl = rawUrl; + this.RawKey = rawKey; + this.RawBucket = rawBucket; + this.CanRestore = canRestore; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", EmitDefaultValue = true)] + public Guid? UserId { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Gets or Sets BodyExcerpt + /// + [DataMember(Name = "bodyExcerpt", EmitDefaultValue = true)] + public string BodyExcerpt { get; set; } + + /// + /// Gets or Sets AttachmentCount + /// + [DataMember(Name = "attachmentCount", IsRequired = true, EmitDefaultValue = true)] + public int AttachmentCount { get; set; } + + /// + /// Gets or Sets From + /// + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Gets or Sets RawUrl + /// + [DataMember(Name = "rawUrl", EmitDefaultValue = true)] + public string RawUrl { get; set; } + + /// + /// Gets or Sets RawKey + /// + [DataMember(Name = "rawKey", EmitDefaultValue = true)] + public string RawKey { get; set; } + + /// + /// Gets or Sets RawBucket + /// + [DataMember(Name = "rawBucket", EmitDefaultValue = true)] + public string RawBucket { get; set; } + + /// + /// Gets or Sets CanRestore + /// + [DataMember(Name = "canRestore", EmitDefaultValue = true)] + public bool? CanRestore { get; set; } + + /// + /// Gets or Sets To + /// + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public List To { get; set; } + + /// + /// Gets or Sets Cc + /// + [DataMember(Name = "cc", IsRequired = true, EmitDefaultValue = true)] + public List Cc { get; set; } + + /// + /// Gets or Sets Bcc + /// + [DataMember(Name = "bcc", IsRequired = true, EmitDefaultValue = true)] + public List Bcc { get; set; } + + /// + /// Gets or Sets InboxIds + /// + [DataMember(Name = "inboxIds", IsRequired = true, EmitDefaultValue = true)] + public List InboxIds { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MissedEmailDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" BodyExcerpt: ").Append(BodyExcerpt).Append("\n"); + sb.Append(" AttachmentCount: ").Append(AttachmentCount).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" RawUrl: ").Append(RawUrl).Append("\n"); + sb.Append(" RawKey: ").Append(RawKey).Append("\n"); + sb.Append(" RawBucket: ").Append(RawBucket).Append("\n"); + sb.Append(" CanRestore: ").Append(CanRestore).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Cc: ").Append(Cc).Append("\n"); + sb.Append(" Bcc: ").Append(Bcc).Append("\n"); + sb.Append(" InboxIds: ").Append(InboxIds).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MissedEmailDto); + } + + /// + /// Returns true if MissedEmailDto instances are equal + /// + /// Instance of MissedEmailDto to be compared + /// Boolean + public bool Equals(MissedEmailDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.BodyExcerpt == input.BodyExcerpt || + (this.BodyExcerpt != null && + this.BodyExcerpt.Equals(input.BodyExcerpt)) + ) && + ( + this.AttachmentCount == input.AttachmentCount || + this.AttachmentCount.Equals(input.AttachmentCount) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.RawUrl == input.RawUrl || + (this.RawUrl != null && + this.RawUrl.Equals(input.RawUrl)) + ) && + ( + this.RawKey == input.RawKey || + (this.RawKey != null && + this.RawKey.Equals(input.RawKey)) + ) && + ( + this.RawBucket == input.RawBucket || + (this.RawBucket != null && + this.RawBucket.Equals(input.RawBucket)) + ) && + ( + this.CanRestore == input.CanRestore || + (this.CanRestore != null && + this.CanRestore.Equals(input.CanRestore)) + ) && + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.Cc == input.Cc || + this.Cc != null && + input.Cc != null && + this.Cc.SequenceEqual(input.Cc) + ) && + ( + this.Bcc == input.Bcc || + this.Bcc != null && + input.Bcc != null && + this.Bcc.SequenceEqual(input.Bcc) + ) && + ( + this.InboxIds == input.InboxIds || + this.InboxIds != null && + input.InboxIds != null && + this.InboxIds.SequenceEqual(input.InboxIds) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.BodyExcerpt != null) + { + hashCode = (hashCode * 59) + this.BodyExcerpt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.AttachmentCount.GetHashCode(); + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.RawUrl != null) + { + hashCode = (hashCode * 59) + this.RawUrl.GetHashCode(); + } + if (this.RawKey != null) + { + hashCode = (hashCode * 59) + this.RawKey.GetHashCode(); + } + if (this.RawBucket != null) + { + hashCode = (hashCode * 59) + this.RawBucket.GetHashCode(); + } + if (this.CanRestore != null) + { + hashCode = (hashCode * 59) + this.CanRestore.GetHashCode(); + } + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.Cc != null) + { + hashCode = (hashCode * 59) + this.Cc.GetHashCode(); + } + if (this.Bcc != null) + { + hashCode = (hashCode * 59) + this.Bcc.GetHashCode(); + } + if (this.InboxIds != null) + { + hashCode = (hashCode * 59) + this.InboxIds.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/MissedEmailProjection.cs b/src/mailslurp_netstandard_2x/Model/MissedEmailProjection.cs new file mode 100644 index 00000000..364bb4ec --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/MissedEmailProjection.cs @@ -0,0 +1,206 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Missed email data + /// + [DataContract(Name = "MissedEmailProjection")] + public partial class MissedEmailProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MissedEmailProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// userId. + /// createdAt (required). + /// subject. + /// id (required). + /// from. + public MissedEmailProjection(Guid? userId = default(Guid?), DateTime createdAt = default(DateTime), string subject = default(string), Guid id = default(Guid), string from = default(string)) + { + this.CreatedAt = createdAt; + this.Id = id; + this.UserId = userId; + this.Subject = subject; + this.From = from; + } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", EmitDefaultValue = true)] + public Guid? UserId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets From + /// + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MissedEmailProjection {\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MissedEmailProjection); + } + + /// + /// Returns true if MissedEmailProjection instances are equal + /// + /// Instance of MissedEmailProjection to be compared + /// Boolean + public bool Equals(MissedEmailProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/NameServerRecord.cs b/src/mailslurp_netstandard_2x/Model/NameServerRecord.cs new file mode 100644 index 00000000..04e809cf --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/NameServerRecord.cs @@ -0,0 +1,208 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Name Server Record + /// + [DataContract(Name = "NameServerRecord")] + public partial class NameServerRecord : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NameServerRecord() { } + /// + /// Initializes a new instance of the class. + /// + /// raw (required). + /// recordType (required). + /// priority (required). + /// value (required). + public NameServerRecord(string raw = default(string), string recordType = default(string), string priority = default(string), string value = default(string)) + { + // to ensure "raw" is required (not null) + if (raw == null) + { + throw new ArgumentNullException("raw is a required property for NameServerRecord and cannot be null"); + } + this.Raw = raw; + // to ensure "recordType" is required (not null) + if (recordType == null) + { + throw new ArgumentNullException("recordType is a required property for NameServerRecord and cannot be null"); + } + this.RecordType = recordType; + // to ensure "priority" is required (not null) + if (priority == null) + { + throw new ArgumentNullException("priority is a required property for NameServerRecord and cannot be null"); + } + this.Priority = priority; + // to ensure "value" is required (not null) + if (value == null) + { + throw new ArgumentNullException("value is a required property for NameServerRecord and cannot be null"); + } + this.Value = value; + } + + /// + /// Gets or Sets Raw + /// + [DataMember(Name = "raw", IsRequired = true, EmitDefaultValue = true)] + public string Raw { get; set; } + + /// + /// Gets or Sets RecordType + /// + [DataMember(Name = "recordType", IsRequired = true, EmitDefaultValue = true)] + public string RecordType { get; set; } + + /// + /// Gets or Sets Priority + /// + [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] + public string Priority { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NameServerRecord {\n"); + sb.Append(" Raw: ").Append(Raw).Append("\n"); + sb.Append(" RecordType: ").Append(RecordType).Append("\n"); + sb.Append(" Priority: ").Append(Priority).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NameServerRecord); + } + + /// + /// Returns true if NameServerRecord instances are equal + /// + /// Instance of NameServerRecord to be compared + /// Boolean + public bool Equals(NameServerRecord input) + { + if (input == null) + { + return false; + } + return + ( + this.Raw == input.Raw || + (this.Raw != null && + this.Raw.Equals(input.Raw)) + ) && + ( + this.RecordType == input.RecordType || + (this.RecordType != null && + this.RecordType.Equals(input.RecordType)) + ) && + ( + this.Priority == input.Priority || + (this.Priority != null && + this.Priority.Equals(input.Priority)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Raw != null) + { + hashCode = (hashCode * 59) + this.Raw.GetHashCode(); + } + if (this.RecordType != null) + { + hashCode = (hashCode * 59) + this.RecordType.GetHashCode(); + } + if (this.Priority != null) + { + hashCode = (hashCode * 59) + this.Priority.GetHashCode(); + } + if (this.Value != null) + { + hashCode = (hashCode * 59) + this.Value.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/NewFakeEmailAddressResult.cs b/src/mailslurp_netstandard_2x/Model/NewFakeEmailAddressResult.cs new file mode 100644 index 00000000..5bcdde9d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/NewFakeEmailAddressResult.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// NewFakeEmailAddressResult + /// + [DataContract(Name = "NewFakeEmailAddressResult")] + public partial class NewFakeEmailAddressResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NewFakeEmailAddressResult() { } + /// + /// Initializes a new instance of the class. + /// + /// emailAddress (required). + public NewFakeEmailAddressResult(string emailAddress = default(string)) + { + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for NewFakeEmailAddressResult and cannot be null"); + } + this.EmailAddress = emailAddress; + } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NewFakeEmailAddressResult {\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NewFakeEmailAddressResult); + } + + /// + /// Returns true if NewFakeEmailAddressResult instances are equal + /// + /// Instance of NewFakeEmailAddressResult to be compared + /// Boolean + public bool Equals(NewFakeEmailAddressResult input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/OrganizationInboxProjection.cs b/src/mailslurp_netstandard_2x/Model/OrganizationInboxProjection.cs new file mode 100644 index 00000000..667991e1 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/OrganizationInboxProjection.cs @@ -0,0 +1,375 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Organization team inbox + /// + [DataContract(Name = "OrganizationInboxProjection")] + public partial class OrganizationInboxProjection : IEquatable, IValidatableObject + { + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + [JsonConverter(typeof(StringEnumConverter))] + public enum InboxTypeEnum + { + /// + /// Enum HTTPINBOX for value: HTTP_INBOX + /// + [EnumMember(Value = "HTTP_INBOX")] + HTTPINBOX = 1, + + /// + /// Enum SMTPINBOX for value: SMTP_INBOX + /// + [EnumMember(Value = "SMTP_INBOX")] + SMTPINBOX = 2 + + } + + + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + [DataMember(Name = "inboxType", EmitDefaultValue = true)] + public InboxTypeEnum? InboxType { get; set; } + /// + /// Inbox function if used as a primitive for another system. + /// + /// Inbox function if used as a primitive for another system. + [JsonConverter(typeof(StringEnumConverter))] + public enum FunctionsAsEnum + { + /// + /// Enum ALIAS for value: ALIAS + /// + [EnumMember(Value = "ALIAS")] + ALIAS = 1, + + /// + /// Enum THREAD for value: THREAD + /// + [EnumMember(Value = "THREAD")] + THREAD = 2, + + /// + /// Enum CATCHALL for value: CATCH_ALL + /// + [EnumMember(Value = "CATCH_ALL")] + CATCHALL = 3, + + /// + /// Enum CONNECTOR for value: CONNECTOR + /// + [EnumMember(Value = "CONNECTOR")] + CONNECTOR = 4 + + } + + + /// + /// Inbox function if used as a primitive for another system. + /// + /// Inbox function if used as a primitive for another system. + [DataMember(Name = "functionsAs", EmitDefaultValue = true)] + public FunctionsAsEnum? FunctionsAs { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected OrganizationInboxProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. (required). + /// ID of custom domain used by the inbox if any. + /// When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. (required). + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search. + /// The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.. + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering (required). + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.. + /// Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/ (required). + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).. + /// Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes. (required). + /// Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. (required). + /// Inbox function if used as a primitive for another system.. + public OrganizationInboxProjection(Guid id = default(Guid), Guid? domainId = default(Guid?), DateTime createdAt = default(DateTime), string name = default(string), string emailAddress = default(string), bool favourite = default(bool), List tags = default(List), bool teamAccess = default(bool), InboxTypeEnum? inboxType = default(InboxTypeEnum?), bool readOnly = default(bool), bool virtualInbox = default(bool), FunctionsAsEnum? functionsAs = default(FunctionsAsEnum?)) + { + this.Id = id; + this.CreatedAt = createdAt; + this.Favourite = favourite; + this.TeamAccess = teamAccess; + this.ReadOnly = readOnly; + this.VirtualInbox = virtualInbox; + this.DomainId = domainId; + this.Name = name; + this.EmailAddress = emailAddress; + this.Tags = tags; + this.InboxType = inboxType; + this.FunctionsAs = functionsAs; + } + + /// + /// ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. + /// + /// ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically. + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// ID of custom domain used by the inbox if any + /// + /// ID of custom domain used by the inbox if any + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. + /// + /// When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`. + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search + /// + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. + /// + /// The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. + [DataMember(Name = "emailAddress", EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering + /// + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering + [DataMember(Name = "favourite", IsRequired = true, EmitDefaultValue = true)] + public bool Favourite { get; set; } + + /// + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. + /// + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. + [DataMember(Name = "tags", EmitDefaultValue = true)] + public List Tags { get; set; } + + /// + /// Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/ + /// + /// Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/ + [DataMember(Name = "teamAccess", IsRequired = true, EmitDefaultValue = true)] + public bool TeamAccess { get; set; } + + /// + /// Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes. + /// + /// Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes. + [DataMember(Name = "readOnly", IsRequired = true, EmitDefaultValue = true)] + public bool ReadOnly { get; set; } + + /// + /// Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. + /// + /// Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions. + [DataMember(Name = "virtualInbox", IsRequired = true, EmitDefaultValue = true)] + public bool VirtualInbox { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class OrganizationInboxProjection {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" Favourite: ").Append(Favourite).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" TeamAccess: ").Append(TeamAccess).Append("\n"); + sb.Append(" InboxType: ").Append(InboxType).Append("\n"); + sb.Append(" ReadOnly: ").Append(ReadOnly).Append("\n"); + sb.Append(" VirtualInbox: ").Append(VirtualInbox).Append("\n"); + sb.Append(" FunctionsAs: ").Append(FunctionsAs).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrganizationInboxProjection); + } + + /// + /// Returns true if OrganizationInboxProjection instances are equal + /// + /// Instance of OrganizationInboxProjection to be compared + /// Boolean + public bool Equals(OrganizationInboxProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Favourite == input.Favourite || + this.Favourite.Equals(input.Favourite) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.TeamAccess == input.TeamAccess || + this.TeamAccess.Equals(input.TeamAccess) + ) && + ( + this.InboxType == input.InboxType || + this.InboxType.Equals(input.InboxType) + ) && + ( + this.ReadOnly == input.ReadOnly || + this.ReadOnly.Equals(input.ReadOnly) + ) && + ( + this.VirtualInbox == input.VirtualInbox || + this.VirtualInbox.Equals(input.VirtualInbox) + ) && + ( + this.FunctionsAs == input.FunctionsAs || + this.FunctionsAs.Equals(input.FunctionsAs) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Favourite.GetHashCode(); + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TeamAccess.GetHashCode(); + hashCode = (hashCode * 59) + this.InboxType.GetHashCode(); + hashCode = (hashCode * 59) + this.ReadOnly.GetHashCode(); + hashCode = (hashCode * 59) + this.VirtualInbox.GetHashCode(); + hashCode = (hashCode * 59) + this.FunctionsAs.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageAlias.cs b/src/mailslurp_netstandard_2x/Model/PageAlias.cs new file mode 100644 index 00000000..947290c1 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageAlias.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated email alias results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageAlias")] + public partial class PageAlias : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageAlias() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageAlias(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageAlias {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageAlias); + } + + /// + /// Returns true if PageAlias instances are equal + /// + /// Instance of PageAlias to be compared + /// Boolean + public bool Equals(PageAlias input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageAttachmentEntity.cs b/src/mailslurp_netstandard_2x/Model/PageAttachmentEntity.cs new file mode 100644 index 00000000..c3f221a9 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageAttachmentEntity.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated attachment entity results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageAttachmentEntity")] + public partial class PageAttachmentEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageAttachmentEntity() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageAttachmentEntity(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageAttachmentEntity {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageAttachmentEntity); + } + + /// + /// Returns true if PageAttachmentEntity instances are equal + /// + /// Instance of PageAttachmentEntity to be compared + /// Boolean + public bool Equals(PageAttachmentEntity input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageBouncedEmail.cs b/src/mailslurp_netstandard_2x/Model/PageBouncedEmail.cs new file mode 100644 index 00000000..fc975ad4 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageBouncedEmail.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated bounced email. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageBouncedEmail")] + public partial class PageBouncedEmail : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageBouncedEmail() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageBouncedEmail(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageBouncedEmail {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageBouncedEmail); + } + + /// + /// Returns true if PageBouncedEmail instances are equal + /// + /// Instance of PageBouncedEmail to be compared + /// Boolean + public bool Equals(PageBouncedEmail input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageBouncedRecipients.cs b/src/mailslurp_netstandard_2x/Model/PageBouncedRecipients.cs new file mode 100644 index 00000000..4d183152 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageBouncedRecipients.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated bounced recipients. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageBouncedRecipients")] + public partial class PageBouncedRecipients : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageBouncedRecipients() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageBouncedRecipients(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageBouncedRecipients {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageBouncedRecipients); + } + + /// + /// Returns true if PageBouncedRecipients instances are equal + /// + /// Instance of PageBouncedRecipients to be compared + /// Boolean + public bool Equals(PageBouncedRecipients input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageComplaint.cs b/src/mailslurp_netstandard_2x/Model/PageComplaint.cs new file mode 100644 index 00000000..fc7aaf91 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageComplaint.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated complaint email. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageComplaint")] + public partial class PageComplaint : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageComplaint() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageComplaint(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageComplaint {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageComplaint); + } + + /// + /// Returns true if PageComplaint instances are equal + /// + /// Instance of PageComplaint to be compared + /// Boolean + public bool Equals(PageComplaint input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageConnector.cs b/src/mailslurp_netstandard_2x/Model/PageConnector.cs new file mode 100644 index 00000000..14ea2bf4 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageConnector.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated inbox connectors. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageConnector")] + public partial class PageConnector : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageConnector() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageConnector(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageConnector {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageConnector); + } + + /// + /// Returns true if PageConnector instances are equal + /// + /// Instance of PageConnector to be compared + /// Boolean + public bool Equals(PageConnector input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageConnectorSyncEvents.cs b/src/mailslurp_netstandard_2x/Model/PageConnectorSyncEvents.cs new file mode 100644 index 00000000..52a24a7c --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageConnectorSyncEvents.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated inbox connector sync events. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageConnectorSyncEvents")] + public partial class PageConnectorSyncEvents : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageConnectorSyncEvents() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageConnectorSyncEvents(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageConnectorSyncEvents {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageConnectorSyncEvents); + } + + /// + /// Returns true if PageConnectorSyncEvents instances are equal + /// + /// Instance of PageConnectorSyncEvents to be compared + /// Boolean + public bool Equals(PageConnectorSyncEvents input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageContactProjection.cs b/src/mailslurp_netstandard_2x/Model/PageContactProjection.cs new file mode 100644 index 00000000..af0aafd6 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageContactProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated contact results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageContactProjection")] + public partial class PageContactProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageContactProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageContactProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageContactProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageContactProjection); + } + + /// + /// Returns true if PageContactProjection instances are equal + /// + /// Instance of PageContactProjection to be compared + /// Boolean + public bool Equals(PageContactProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageDeliveryStatus.cs b/src/mailslurp_netstandard_2x/Model/PageDeliveryStatus.cs new file mode 100644 index 00000000..f9a54d0b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageDeliveryStatus.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated delivery status results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageDeliveryStatus")] + public partial class PageDeliveryStatus : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageDeliveryStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageDeliveryStatus(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageDeliveryStatus {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageDeliveryStatus); + } + + /// + /// Returns true if PageDeliveryStatus instances are equal + /// + /// Instance of PageDeliveryStatus to be compared + /// Boolean + public bool Equals(PageDeliveryStatus input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageEmailPreview.cs b/src/mailslurp_netstandard_2x/Model/PageEmailPreview.cs new file mode 100644 index 00000000..df47c2ac --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageEmailPreview.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated email preview results. EmailProjections and EmailPreviews are essentially the same but have legacy naming issues. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. For emails there are several methods for fetching message bodies and attachments. + /// + [DataContract(Name = "PageEmailPreview")] + public partial class PageEmailPreview : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageEmailPreview() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageEmailPreview(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageEmailPreview {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageEmailPreview); + } + + /// + /// Returns true if PageEmailPreview instances are equal + /// + /// Instance of PageEmailPreview to be compared + /// Boolean + public bool Equals(PageEmailPreview input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageEmailProjection.cs b/src/mailslurp_netstandard_2x/Model/PageEmailProjection.cs new file mode 100644 index 00000000..0736fc11 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageEmailProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated email projection results. EmailProjections and EmailPreviews are essentially the same but have legacy naming issues. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full email entity use the projection ID with individual method calls. For emails there are several methods for fetching message bodies and attachments. + /// + [DataContract(Name = "PageEmailProjection")] + public partial class PageEmailProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageEmailProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageEmailProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageEmailProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageEmailProjection); + } + + /// + /// Returns true if PageEmailProjection instances are equal + /// + /// Instance of PageEmailProjection to be compared + /// Boolean + public bool Equals(PageEmailProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageEmailValidationRequest.cs b/src/mailslurp_netstandard_2x/Model/PageEmailValidationRequest.cs new file mode 100644 index 00000000..50ea3cc7 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageEmailValidationRequest.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated email validation request records. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageEmailValidationRequest")] + public partial class PageEmailValidationRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageEmailValidationRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageEmailValidationRequest(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageEmailValidationRequest {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageEmailValidationRequest); + } + + /// + /// Returns true if PageEmailValidationRequest instances are equal + /// + /// Instance of PageEmailValidationRequest to be compared + /// Boolean + public bool Equals(PageEmailValidationRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageExpiredInboxRecordProjection.cs b/src/mailslurp_netstandard_2x/Model/PageExpiredInboxRecordProjection.cs new file mode 100644 index 00000000..37d43791 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageExpiredInboxRecordProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated expired inbox results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageExpiredInboxRecordProjection")] + public partial class PageExpiredInboxRecordProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageExpiredInboxRecordProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageExpiredInboxRecordProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageExpiredInboxRecordProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageExpiredInboxRecordProjection); + } + + /// + /// Returns true if PageExpiredInboxRecordProjection instances are equal + /// + /// Instance of PageExpiredInboxRecordProjection to be compared + /// Boolean + public bool Equals(PageExpiredInboxRecordProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageGroupProjection.cs b/src/mailslurp_netstandard_2x/Model/PageGroupProjection.cs new file mode 100644 index 00000000..bde93a87 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageGroupProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated missed email results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageGroupProjection")] + public partial class PageGroupProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageGroupProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageGroupProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageGroupProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageGroupProjection); + } + + /// + /// Returns true if PageGroupProjection instances are equal + /// + /// Instance of PageGroupProjection to be compared + /// Boolean + public bool Equals(PageGroupProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageInboxForwarderDto.cs b/src/mailslurp_netstandard_2x/Model/PageInboxForwarderDto.cs new file mode 100644 index 00000000..90ba8abf --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageInboxForwarderDto.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated inbox forwarder results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageInboxForwarderDto")] + public partial class PageInboxForwarderDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageInboxForwarderDto() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageInboxForwarderDto(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageInboxForwarderDto {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageInboxForwarderDto); + } + + /// + /// Returns true if PageInboxForwarderDto instances are equal + /// + /// Instance of PageInboxForwarderDto to be compared + /// Boolean + public bool Equals(PageInboxForwarderDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageInboxForwarderEvents.cs b/src/mailslurp_netstandard_2x/Model/PageInboxForwarderEvents.cs new file mode 100644 index 00000000..f14a7098 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageInboxForwarderEvents.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated inbox forwarder events. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageInboxForwarderEvents")] + public partial class PageInboxForwarderEvents : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageInboxForwarderEvents() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageInboxForwarderEvents(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageInboxForwarderEvents {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageInboxForwarderEvents); + } + + /// + /// Returns true if PageInboxForwarderEvents instances are equal + /// + /// Instance of PageInboxForwarderEvents to be compared + /// Boolean + public bool Equals(PageInboxForwarderEvents input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageInboxProjection.cs b/src/mailslurp_netstandard_2x/Model/PageInboxProjection.cs new file mode 100644 index 00000000..e838ccfd --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageInboxProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated inbox results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageInboxProjection")] + public partial class PageInboxProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageInboxProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageInboxProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageInboxProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageInboxProjection); + } + + /// + /// Returns true if PageInboxProjection instances are equal + /// + /// Instance of PageInboxProjection to be compared + /// Boolean + public bool Equals(PageInboxProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageInboxReplierDto.cs b/src/mailslurp_netstandard_2x/Model/PageInboxReplierDto.cs new file mode 100644 index 00000000..826c90bb --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageInboxReplierDto.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated inbox replier results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageInboxReplierDto")] + public partial class PageInboxReplierDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageInboxReplierDto() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageInboxReplierDto(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageInboxReplierDto {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageInboxReplierDto); + } + + /// + /// Returns true if PageInboxReplierDto instances are equal + /// + /// Instance of PageInboxReplierDto to be compared + /// Boolean + public bool Equals(PageInboxReplierDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageInboxReplierEvents.cs b/src/mailslurp_netstandard_2x/Model/PageInboxReplierEvents.cs new file mode 100644 index 00000000..25b8a9ed --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageInboxReplierEvents.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated inbox replier events. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageInboxReplierEvents")] + public partial class PageInboxReplierEvents : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageInboxReplierEvents() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageInboxReplierEvents(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageInboxReplierEvents {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageInboxReplierEvents); + } + + /// + /// Returns true if PageInboxReplierEvents instances are equal + /// + /// Instance of PageInboxReplierEvents to be compared + /// Boolean + public bool Equals(PageInboxReplierEvents input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageInboxRulesetDto.cs b/src/mailslurp_netstandard_2x/Model/PageInboxRulesetDto.cs new file mode 100644 index 00000000..9c54ff67 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageInboxRulesetDto.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated inbox ruleset results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageInboxRulesetDto")] + public partial class PageInboxRulesetDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageInboxRulesetDto() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageInboxRulesetDto(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageInboxRulesetDto {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageInboxRulesetDto); + } + + /// + /// Returns true if PageInboxRulesetDto instances are equal + /// + /// Instance of PageInboxRulesetDto to be compared + /// Boolean + public bool Equals(PageInboxRulesetDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageListUnsubscribeRecipients.cs b/src/mailslurp_netstandard_2x/Model/PageListUnsubscribeRecipients.cs new file mode 100644 index 00000000..1bf4aaec --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageListUnsubscribeRecipients.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated list unsubscribe recipients. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageListUnsubscribeRecipients")] + public partial class PageListUnsubscribeRecipients : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageListUnsubscribeRecipients() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageListUnsubscribeRecipients(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageListUnsubscribeRecipients {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageListUnsubscribeRecipients); + } + + /// + /// Returns true if PageListUnsubscribeRecipients instances are equal + /// + /// Instance of PageListUnsubscribeRecipients to be compared + /// Boolean + public bool Equals(PageListUnsubscribeRecipients input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageMissedEmailProjection.cs b/src/mailslurp_netstandard_2x/Model/PageMissedEmailProjection.cs new file mode 100644 index 00000000..51044535 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageMissedEmailProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated MissedEmail results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageMissedEmailProjection")] + public partial class PageMissedEmailProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageMissedEmailProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageMissedEmailProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageMissedEmailProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageMissedEmailProjection); + } + + /// + /// Returns true if PageMissedEmailProjection instances are equal + /// + /// Instance of PageMissedEmailProjection to be compared + /// Boolean + public bool Equals(PageMissedEmailProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageOrganizationInboxProjection.cs b/src/mailslurp_netstandard_2x/Model/PageOrganizationInboxProjection.cs new file mode 100644 index 00000000..c6434d77 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageOrganizationInboxProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated organization inbox results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageOrganizationInboxProjection")] + public partial class PageOrganizationInboxProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageOrganizationInboxProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageOrganizationInboxProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageOrganizationInboxProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageOrganizationInboxProjection); + } + + /// + /// Returns true if PageOrganizationInboxProjection instances are equal + /// + /// Instance of PageOrganizationInboxProjection to be compared + /// Boolean + public bool Equals(PageOrganizationInboxProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PagePhoneNumberProjection.cs b/src/mailslurp_netstandard_2x/Model/PagePhoneNumberProjection.cs new file mode 100644 index 00000000..67f197d6 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PagePhoneNumberProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated phone numbers. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PagePhoneNumberProjection")] + public partial class PagePhoneNumberProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PagePhoneNumberProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PagePhoneNumberProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PagePhoneNumberProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PagePhoneNumberProjection); + } + + /// + /// Returns true if PagePhoneNumberProjection instances are equal + /// + /// Instance of PagePhoneNumberProjection to be compared + /// Boolean + public bool Equals(PagePhoneNumberProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageScheduledJobs.cs b/src/mailslurp_netstandard_2x/Model/PageScheduledJobs.cs new file mode 100644 index 00000000..a5d074f0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageScheduledJobs.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated scheduled jobs results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageScheduledJobs")] + public partial class PageScheduledJobs : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageScheduledJobs() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageScheduledJobs(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageScheduledJobs {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageScheduledJobs); + } + + /// + /// Returns true if PageScheduledJobs instances are equal + /// + /// Instance of PageScheduledJobs to be compared + /// Boolean + public bool Equals(PageScheduledJobs input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageSentEmailProjection.cs b/src/mailslurp_netstandard_2x/Model/PageSentEmailProjection.cs new file mode 100644 index 00000000..fe8d41e9 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageSentEmailProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated sent email results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full sent email entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageSentEmailProjection")] + public partial class PageSentEmailProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageSentEmailProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageSentEmailProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageSentEmailProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageSentEmailProjection); + } + + /// + /// Returns true if PageSentEmailProjection instances are equal + /// + /// Instance of PageSentEmailProjection to be compared + /// Boolean + public bool Equals(PageSentEmailProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageSentEmailWithQueueProjection.cs b/src/mailslurp_netstandard_2x/Model/PageSentEmailWithQueueProjection.cs new file mode 100644 index 00000000..cd7a23c6 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageSentEmailWithQueueProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated sent email results for emails sent with queue. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full sent email entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageSentEmailWithQueueProjection")] + public partial class PageSentEmailWithQueueProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageSentEmailWithQueueProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageSentEmailWithQueueProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageSentEmailWithQueueProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageSentEmailWithQueueProjection); + } + + /// + /// Returns true if PageSentEmailWithQueueProjection instances are equal + /// + /// Instance of PageSentEmailWithQueueProjection to be compared + /// Boolean + public bool Equals(PageSentEmailWithQueueProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageSmsProjection.cs b/src/mailslurp_netstandard_2x/Model/PageSmsProjection.cs new file mode 100644 index 00000000..86720b94 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageSmsProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated SMS messages. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageSmsProjection")] + public partial class PageSmsProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageSmsProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageSmsProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageSmsProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageSmsProjection); + } + + /// + /// Returns true if PageSmsProjection instances are equal + /// + /// Instance of PageSmsProjection to be compared + /// Boolean + public bool Equals(PageSmsProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageTemplateProjection.cs b/src/mailslurp_netstandard_2x/Model/PageTemplateProjection.cs new file mode 100644 index 00000000..4dd7c84b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageTemplateProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated email template results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageTemplateProjection")] + public partial class PageTemplateProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageTemplateProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageTemplateProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageTemplateProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageTemplateProjection); + } + + /// + /// Returns true if PageTemplateProjection instances are equal + /// + /// Instance of PageTemplateProjection to be compared + /// Boolean + public bool Equals(PageTemplateProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageThreadProjection.cs b/src/mailslurp_netstandard_2x/Model/PageThreadProjection.cs new file mode 100644 index 00000000..3c4a7eb0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageThreadProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated email projection results. EmailProjections and EmailPreviews are essentially the same but have legacy naming issues. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full email entity use the projection ID with individual method calls. For emails there are several methods for fetching message bodies and attachments. + /// + [DataContract(Name = "PageThreadProjection")] + public partial class PageThreadProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageThreadProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageThreadProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageThreadProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageThreadProjection); + } + + /// + /// Returns true if PageThreadProjection instances are equal + /// + /// Instance of PageThreadProjection to be compared + /// Boolean + public bool Equals(PageThreadProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageTrackingPixelProjection.cs b/src/mailslurp_netstandard_2x/Model/PageTrackingPixelProjection.cs new file mode 100644 index 00000000..a713e6a2 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageTrackingPixelProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated TrackingPixel results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageTrackingPixelProjection")] + public partial class PageTrackingPixelProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageTrackingPixelProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageTrackingPixelProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageTrackingPixelProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageTrackingPixelProjection); + } + + /// + /// Returns true if PageTrackingPixelProjection instances are equal + /// + /// Instance of PageTrackingPixelProjection to be compared + /// Boolean + public bool Equals(PageTrackingPixelProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageUnknownMissedEmailProjection.cs b/src/mailslurp_netstandard_2x/Model/PageUnknownMissedEmailProjection.cs new file mode 100644 index 00000000..65af6022 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageUnknownMissedEmailProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated unknown MissedEmail results. Unknown missed emails are emails that were sent to MailSlurp /Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageUnknownMissedEmailProjection")] + public partial class PageUnknownMissedEmailProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageUnknownMissedEmailProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageUnknownMissedEmailProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageUnknownMissedEmailProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageUnknownMissedEmailProjection); + } + + /// + /// Returns true if PageUnknownMissedEmailProjection instances are equal + /// + /// Instance of PageUnknownMissedEmailProjection to be compared + /// Boolean + public bool Equals(PageUnknownMissedEmailProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageWebhookProjection.cs b/src/mailslurp_netstandard_2x/Model/PageWebhookProjection.cs new file mode 100644 index 00000000..cbff93c0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageWebhookProjection.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated webhook entity. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageWebhookProjection")] + public partial class PageWebhookProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageWebhookProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageWebhookProjection(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageWebhookProjection {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageWebhookProjection); + } + + /// + /// Returns true if PageWebhookProjection instances are equal + /// + /// Instance of PageWebhookProjection to be compared + /// Boolean + public bool Equals(PageWebhookProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageWebhookResult.cs b/src/mailslurp_netstandard_2x/Model/PageWebhookResult.cs new file mode 100644 index 00000000..6acc9a38 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageWebhookResult.cs @@ -0,0 +1,283 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Paginated webhook results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls. + /// + [DataContract(Name = "PageWebhookResult")] + public partial class PageWebhookResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PageWebhookResult() { } + /// + /// Initializes a new instance of the class. + /// + /// content. + /// pageable. + /// totalPages (required). + /// totalElements (required). + /// last. + /// numberOfElements. + /// size. + /// number. + /// sort. + /// first. + /// empty. + public PageWebhookResult(List content = default(List), PageableObject pageable = default(PageableObject), int totalPages = default(int), long totalElements = default(long), bool last = default(bool), int numberOfElements = default(int), int size = default(int), int number = default(int), SortObject sort = default(SortObject), bool first = default(bool), bool empty = default(bool)) + { + this.TotalPages = totalPages; + this.TotalElements = totalElements; + this.Content = content; + this.Pageable = pageable; + this.Last = last; + this.NumberOfElements = numberOfElements; + this.Size = size; + this.Number = number; + this.Sort = sort; + this.First = first; + this.Empty = empty; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public List Content { get; set; } + + /// + /// Gets or Sets Pageable + /// + [DataMember(Name = "pageable", EmitDefaultValue = false)] + public PageableObject Pageable { get; set; } + + /// + /// Gets or Sets TotalPages + /// + [DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)] + public int TotalPages { get; set; } + + /// + /// Gets or Sets TotalElements + /// + [DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)] + public long TotalElements { get; set; } + + /// + /// Gets or Sets Last + /// + [DataMember(Name = "last", EmitDefaultValue = true)] + public bool Last { get; set; } + + /// + /// Gets or Sets NumberOfElements + /// + [DataMember(Name = "numberOfElements", EmitDefaultValue = false)] + public int NumberOfElements { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets Number + /// + [DataMember(Name = "number", EmitDefaultValue = false)] + public int Number { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Gets or Sets First + /// + [DataMember(Name = "first", EmitDefaultValue = true)] + public bool First { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageWebhookResult {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Pageable: ").Append(Pageable).Append("\n"); + sb.Append(" TotalPages: ").Append(TotalPages).Append("\n"); + sb.Append(" TotalElements: ").Append(TotalElements).Append("\n"); + sb.Append(" Last: ").Append(Last).Append("\n"); + sb.Append(" NumberOfElements: ").Append(NumberOfElements).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append(" First: ").Append(First).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageWebhookResult); + } + + /// + /// Returns true if PageWebhookResult instances are equal + /// + /// Instance of PageWebhookResult to be compared + /// Boolean + public bool Equals(PageWebhookResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + this.Content != null && + input.Content != null && + this.Content.SequenceEqual(input.Content) + ) && + ( + this.Pageable == input.Pageable || + (this.Pageable != null && + this.Pageable.Equals(input.Pageable)) + ) && + ( + this.TotalPages == input.TotalPages || + this.TotalPages.Equals(input.TotalPages) + ) && + ( + this.TotalElements == input.TotalElements || + this.TotalElements.Equals(input.TotalElements) + ) && + ( + this.Last == input.Last || + this.Last.Equals(input.Last) + ) && + ( + this.NumberOfElements == input.NumberOfElements || + this.NumberOfElements.Equals(input.NumberOfElements) + ) && + ( + this.Size == input.Size || + this.Size.Equals(input.Size) + ) && + ( + this.Number == input.Number || + this.Number.Equals(input.Number) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ) && + ( + this.First == input.First || + this.First.Equals(input.First) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.Pageable != null) + { + hashCode = (hashCode * 59) + this.Pageable.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalPages.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Last.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfElements.GetHashCode(); + hashCode = (hashCode * 59) + this.Size.GetHashCode(); + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + hashCode = (hashCode * 59) + this.First.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PageableObject.cs b/src/mailslurp_netstandard_2x/Model/PageableObject.cs new file mode 100644 index 00000000..04c26210 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PageableObject.cs @@ -0,0 +1,199 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// PageableObject + /// + [DataContract(Name = "PageableObject")] + public partial class PageableObject : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// pageNumber. + /// pageSize. + /// paged. + /// unpaged. + /// offset. + /// sort. + public PageableObject(int pageNumber = default(int), int pageSize = default(int), bool paged = default(bool), bool unpaged = default(bool), long offset = default(long), SortObject sort = default(SortObject)) + { + this.PageNumber = pageNumber; + this.PageSize = pageSize; + this.Paged = paged; + this.Unpaged = unpaged; + this.Offset = offset; + this.Sort = sort; + } + + /// + /// Gets or Sets PageNumber + /// + [DataMember(Name = "pageNumber", EmitDefaultValue = false)] + public int PageNumber { get; set; } + + /// + /// Gets or Sets PageSize + /// + [DataMember(Name = "pageSize", EmitDefaultValue = false)] + public int PageSize { get; set; } + + /// + /// Gets or Sets Paged + /// + [DataMember(Name = "paged", EmitDefaultValue = true)] + public bool Paged { get; set; } + + /// + /// Gets or Sets Unpaged + /// + [DataMember(Name = "unpaged", EmitDefaultValue = true)] + public bool Unpaged { get; set; } + + /// + /// Gets or Sets Offset + /// + [DataMember(Name = "offset", EmitDefaultValue = false)] + public long Offset { get; set; } + + /// + /// Gets or Sets Sort + /// + [DataMember(Name = "sort", EmitDefaultValue = false)] + public SortObject Sort { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PageableObject {\n"); + sb.Append(" PageNumber: ").Append(PageNumber).Append("\n"); + sb.Append(" PageSize: ").Append(PageSize).Append("\n"); + sb.Append(" Paged: ").Append(Paged).Append("\n"); + sb.Append(" Unpaged: ").Append(Unpaged).Append("\n"); + sb.Append(" Offset: ").Append(Offset).Append("\n"); + sb.Append(" Sort: ").Append(Sort).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageableObject); + } + + /// + /// Returns true if PageableObject instances are equal + /// + /// Instance of PageableObject to be compared + /// Boolean + public bool Equals(PageableObject input) + { + if (input == null) + { + return false; + } + return + ( + this.PageNumber == input.PageNumber || + this.PageNumber.Equals(input.PageNumber) + ) && + ( + this.PageSize == input.PageSize || + this.PageSize.Equals(input.PageSize) + ) && + ( + this.Paged == input.Paged || + this.Paged.Equals(input.Paged) + ) && + ( + this.Unpaged == input.Unpaged || + this.Unpaged.Equals(input.Unpaged) + ) && + ( + this.Offset == input.Offset || + this.Offset.Equals(input.Offset) + ) && + ( + this.Sort == input.Sort || + (this.Sort != null && + this.Sort.Equals(input.Sort)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.PageNumber.GetHashCode(); + hashCode = (hashCode * 59) + this.PageSize.GetHashCode(); + hashCode = (hashCode * 59) + this.Paged.GetHashCode(); + hashCode = (hashCode * 59) + this.Unpaged.GetHashCode(); + hashCode = (hashCode * 59) + this.Offset.GetHashCode(); + if (this.Sort != null) + { + hashCode = (hashCode * 59) + this.Sort.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PhoneNumberDto.cs b/src/mailslurp_netstandard_2x/Model/PhoneNumberDto.cs new file mode 100644 index 00000000..1b31ae31 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PhoneNumberDto.cs @@ -0,0 +1,305 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// PhoneNumberDto + /// + [DataContract(Name = "PhoneNumberDto")] + public partial class PhoneNumberDto : IEquatable, IValidatableObject + { + /// + /// Defines PhoneCountry + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PhoneCountryEnum + { + /// + /// Enum US for value: US + /// + [EnumMember(Value = "US")] + US = 1, + + /// + /// Enum GB for value: GB + /// + [EnumMember(Value = "GB")] + GB = 2, + + /// + /// Enum AU for value: AU + /// + [EnumMember(Value = "AU")] + AU = 3 + + } + + + /// + /// Gets or Sets PhoneCountry + /// + [DataMember(Name = "phoneCountry", IsRequired = true, EmitDefaultValue = true)] + public PhoneCountryEnum PhoneCountry { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PhoneNumberDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// complianceAddress. + /// emergencyAddress. + /// phoneNumber (required). + /// phoneCountry (required). + /// phonePlan (required). + /// createdAt (required). + /// updatedAt (required). + public PhoneNumberDto(Guid id = default(Guid), Guid userId = default(Guid), Guid complianceAddress = default(Guid), Guid emergencyAddress = default(Guid), string phoneNumber = default(string), PhoneCountryEnum phoneCountry = default(PhoneCountryEnum), Guid phonePlan = default(Guid), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + this.Id = id; + this.UserId = userId; + // to ensure "phoneNumber" is required (not null) + if (phoneNumber == null) + { + throw new ArgumentNullException("phoneNumber is a required property for PhoneNumberDto and cannot be null"); + } + this.PhoneNumber = phoneNumber; + this.PhoneCountry = phoneCountry; + this.PhonePlan = phonePlan; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.ComplianceAddress = complianceAddress; + this.EmergencyAddress = emergencyAddress; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets ComplianceAddress + /// + [DataMember(Name = "complianceAddress", EmitDefaultValue = false)] + public Guid ComplianceAddress { get; set; } + + /// + /// Gets or Sets EmergencyAddress + /// + [DataMember(Name = "emergencyAddress", EmitDefaultValue = false)] + public Guid EmergencyAddress { get; set; } + + /// + /// Gets or Sets PhoneNumber + /// + [DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)] + public string PhoneNumber { get; set; } + + /// + /// Gets or Sets PhonePlan + /// + [DataMember(Name = "phonePlan", IsRequired = true, EmitDefaultValue = true)] + public Guid PhonePlan { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PhoneNumberDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" ComplianceAddress: ").Append(ComplianceAddress).Append("\n"); + sb.Append(" EmergencyAddress: ").Append(EmergencyAddress).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" PhoneCountry: ").Append(PhoneCountry).Append("\n"); + sb.Append(" PhonePlan: ").Append(PhonePlan).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PhoneNumberDto); + } + + /// + /// Returns true if PhoneNumberDto instances are equal + /// + /// Instance of PhoneNumberDto to be compared + /// Boolean + public bool Equals(PhoneNumberDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.ComplianceAddress == input.ComplianceAddress || + (this.ComplianceAddress != null && + this.ComplianceAddress.Equals(input.ComplianceAddress)) + ) && + ( + this.EmergencyAddress == input.EmergencyAddress || + (this.EmergencyAddress != null && + this.EmergencyAddress.Equals(input.EmergencyAddress)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.PhoneCountry == input.PhoneCountry || + this.PhoneCountry.Equals(input.PhoneCountry) + ) && + ( + this.PhonePlan == input.PhonePlan || + (this.PhonePlan != null && + this.PhonePlan.Equals(input.PhonePlan)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.ComplianceAddress != null) + { + hashCode = (hashCode * 59) + this.ComplianceAddress.GetHashCode(); + } + if (this.EmergencyAddress != null) + { + hashCode = (hashCode * 59) + this.EmergencyAddress.GetHashCode(); + } + if (this.PhoneNumber != null) + { + hashCode = (hashCode * 59) + this.PhoneNumber.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PhoneCountry.GetHashCode(); + if (this.PhonePlan != null) + { + hashCode = (hashCode * 59) + this.PhonePlan.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PhoneNumberProjection.cs b/src/mailslurp_netstandard_2x/Model/PhoneNumberProjection.cs new file mode 100644 index 00000000..3241e206 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PhoneNumberProjection.cs @@ -0,0 +1,233 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Phone number projection + /// + [DataContract(Name = "PhoneNumberProjection")] + public partial class PhoneNumberProjection : IEquatable, IValidatableObject + { + /// + /// Defines PhoneCountry + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PhoneCountryEnum + { + /// + /// Enum US for value: US + /// + [EnumMember(Value = "US")] + US = 1, + + /// + /// Enum GB for value: GB + /// + [EnumMember(Value = "GB")] + GB = 2, + + /// + /// Enum AU for value: AU + /// + [EnumMember(Value = "AU")] + AU = 3 + + } + + + /// + /// Gets or Sets PhoneCountry + /// + [DataMember(Name = "phoneCountry", IsRequired = true, EmitDefaultValue = true)] + public PhoneCountryEnum PhoneCountry { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PhoneNumberProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// userId (required). + /// phoneNumber (required). + /// phoneCountry (required). + /// createdAt (required). + /// id (required). + public PhoneNumberProjection(Guid userId = default(Guid), string phoneNumber = default(string), PhoneCountryEnum phoneCountry = default(PhoneCountryEnum), DateTime createdAt = default(DateTime), Guid id = default(Guid)) + { + this.UserId = userId; + // to ensure "phoneNumber" is required (not null) + if (phoneNumber == null) + { + throw new ArgumentNullException("phoneNumber is a required property for PhoneNumberProjection and cannot be null"); + } + this.PhoneNumber = phoneNumber; + this.PhoneCountry = phoneCountry; + this.CreatedAt = createdAt; + this.Id = id; + } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets PhoneNumber + /// + [DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)] + public string PhoneNumber { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PhoneNumberProjection {\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" PhoneCountry: ").Append(PhoneCountry).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PhoneNumberProjection); + } + + /// + /// Returns true if PhoneNumberProjection instances are equal + /// + /// Instance of PhoneNumberProjection to be compared + /// Boolean + public bool Equals(PhoneNumberProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.PhoneCountry == input.PhoneCountry || + this.PhoneCountry.Equals(input.PhoneCountry) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.PhoneNumber != null) + { + hashCode = (hashCode * 59) + this.PhoneNumber.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PhoneCountry.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/PhonePlanDto.cs b/src/mailslurp_netstandard_2x/Model/PhonePlanDto.cs new file mode 100644 index 00000000..49826614 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/PhonePlanDto.cs @@ -0,0 +1,210 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// PhonePlanDto + /// + [DataContract(Name = "PhonePlanDto")] + public partial class PhonePlanDto : IEquatable, IValidatableObject + { + /// + /// Defines PhoneCountry + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PhoneCountryEnum + { + /// + /// Enum US for value: US + /// + [EnumMember(Value = "US")] + US = 1, + + /// + /// Enum GB for value: GB + /// + [EnumMember(Value = "GB")] + GB = 2, + + /// + /// Enum AU for value: AU + /// + [EnumMember(Value = "AU")] + AU = 3 + + } + + + /// + /// Gets or Sets PhoneCountry + /// + [DataMember(Name = "phoneCountry", IsRequired = true, EmitDefaultValue = true)] + public PhoneCountryEnum PhoneCountry { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PhonePlanDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// phoneCountry (required). + /// createdAt (required). + public PhonePlanDto(Guid id = default(Guid), Guid userId = default(Guid), PhoneCountryEnum phoneCountry = default(PhoneCountryEnum), DateTime createdAt = default(DateTime)) + { + this.Id = id; + this.UserId = userId; + this.PhoneCountry = phoneCountry; + this.CreatedAt = createdAt; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PhonePlanDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" PhoneCountry: ").Append(PhoneCountry).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PhonePlanDto); + } + + /// + /// Returns true if PhonePlanDto instances are equal + /// + /// Instance of PhonePlanDto to be compared + /// Boolean + public bool Equals(PhonePlanDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.PhoneCountry == input.PhoneCountry || + this.PhoneCountry.Equals(input.PhoneCountry) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PhoneCountry.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/RawEmailJson.cs b/src/mailslurp_netstandard_2x/Model/RawEmailJson.cs new file mode 100644 index 00000000..650bd8e2 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/RawEmailJson.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Content in raw format + /// + [DataContract(Name = "RawEmailJson")] + public partial class RawEmailJson : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RawEmailJson() { } + /// + /// Initializes a new instance of the class. + /// + /// content (required). + public RawEmailJson(string content = default(string)) + { + // to ensure "content" is required (not null) + if (content == null) + { + throw new ArgumentNullException("content is a required property for RawEmailJson and cannot be null"); + } + this.Content = content; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] + public string Content { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RawEmailJson {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RawEmailJson); + } + + /// + /// Returns true if RawEmailJson instances are equal + /// + /// Instance of RawEmailJson to be compared + /// Boolean + public bool Equals(RawEmailJson input) + { + if (input == null) + { + return false; + } + return + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/Recipient.cs b/src/mailslurp_netstandard_2x/Model/Recipient.cs new file mode 100644 index 00000000..47ec96a7 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/Recipient.cs @@ -0,0 +1,180 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Email recipient + /// + [DataContract(Name = "Recipient")] + public partial class Recipient : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Recipient() { } + /// + /// Initializes a new instance of the class. + /// + /// rawValue (required). + /// emailAddress (required). + /// name. + public Recipient(string rawValue = default(string), string emailAddress = default(string), string name = default(string)) + { + // to ensure "rawValue" is required (not null) + if (rawValue == null) + { + throw new ArgumentNullException("rawValue is a required property for Recipient and cannot be null"); + } + this.RawValue = rawValue; + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for Recipient and cannot be null"); + } + this.EmailAddress = emailAddress; + this.Name = name; + } + + /// + /// Gets or Sets RawValue + /// + [DataMember(Name = "rawValue", IsRequired = true, EmitDefaultValue = true)] + public string RawValue { get; set; } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Recipient {\n"); + sb.Append(" RawValue: ").Append(RawValue).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Recipient); + } + + /// + /// Returns true if Recipient instances are equal + /// + /// Instance of Recipient to be compared + /// Boolean + public bool Equals(Recipient input) + { + if (input == null) + { + return false; + } + return + ( + this.RawValue == input.RawValue || + (this.RawValue != null && + this.RawValue.Equals(input.RawValue)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RawValue != null) + { + hashCode = (hashCode * 59) + this.RawValue.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ReplyForSms.cs b/src/mailslurp_netstandard_2x/Model/ReplyForSms.cs new file mode 100644 index 00000000..fdfc0684 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ReplyForSms.cs @@ -0,0 +1,129 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ReplyForSms + /// + [DataContract(Name = "ReplyForSms")] + public partial class ReplyForSms : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// reply. + public ReplyForSms(SentSmsDto reply = default(SentSmsDto)) + { + this.Reply = reply; + } + + /// + /// Gets or Sets Reply + /// + [DataMember(Name = "reply", EmitDefaultValue = false)] + public SentSmsDto Reply { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ReplyForSms {\n"); + sb.Append(" Reply: ").Append(Reply).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ReplyForSms); + } + + /// + /// Returns true if ReplyForSms instances are equal + /// + /// Instance of ReplyForSms to be compared + /// Boolean + public bool Equals(ReplyForSms input) + { + if (input == null) + { + return false; + } + return + ( + this.Reply == input.Reply || + (this.Reply != null && + this.Reply.Equals(input.Reply)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Reply != null) + { + hashCode = (hashCode * 59) + this.Reply.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ReplyToAliasEmailOptions.cs b/src/mailslurp_netstandard_2x/Model/ReplyToAliasEmailOptions.cs new file mode 100644 index 00000000..3ee13115 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ReplyToAliasEmailOptions.cs @@ -0,0 +1,316 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for replying to an alias email using the alias inbox + /// + [DataContract(Name = "ReplyToAliasEmailOptions")] + public partial class ReplyToAliasEmailOptions : IEquatable, IValidatableObject + { + /// + /// How an email should be sent based on its recipients + /// + /// How an email should be sent based on its recipients + [JsonConverter(typeof(StringEnumConverter))] + public enum SendStrategyEnum + { + /// + /// Enum SINGLEMESSAGE for value: SINGLE_MESSAGE + /// + [EnumMember(Value = "SINGLE_MESSAGE")] + SINGLEMESSAGE = 1 + + } + + + /// + /// How an email should be sent based on its recipients + /// + /// How an email should be sent based on its recipients + [DataMember(Name = "sendStrategy", EmitDefaultValue = true)] + public SendStrategyEnum? SendStrategy { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ReplyToAliasEmailOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Body of the reply email you want to send (required). + /// Is the reply HTML (required). + /// The charset that your message should be sent with. Optional. Default is UTF-8. + /// List of uploaded attachments to send with the reply. Optional.. + /// Template variables if using a template. + /// Template ID to use instead of body. Will use template variable map to fill defined variable slots.. + /// How an email should be sent based on its recipients. + /// Optional custom headers. + /// Optionally use inbox name as display name for sender email address. + /// html. + public ReplyToAliasEmailOptions(string body = default(string), bool isHTML = default(bool), string charset = default(string), List attachments = default(List), Dictionary templateVariables = default(Dictionary), Guid? template = default(Guid?), SendStrategyEnum? sendStrategy = default(SendStrategyEnum?), Dictionary customHeaders = default(Dictionary), bool? useInboxName = default(bool?), bool html = default(bool)) + { + // to ensure "body" is required (not null) + if (body == null) + { + throw new ArgumentNullException("body is a required property for ReplyToAliasEmailOptions and cannot be null"); + } + this.Body = body; + this.IsHTML = isHTML; + this.Charset = charset; + this.Attachments = attachments; + this.TemplateVariables = templateVariables; + this.Template = template; + this.SendStrategy = sendStrategy; + this.CustomHeaders = customHeaders; + this.UseInboxName = useInboxName; + this.Html = html; + } + + /// + /// Body of the reply email you want to send + /// + /// Body of the reply email you want to send + [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Is the reply HTML + /// + /// Is the reply HTML + [DataMember(Name = "isHTML", IsRequired = true, EmitDefaultValue = true)] + public bool IsHTML { get; set; } + + /// + /// The charset that your message should be sent with. Optional. Default is UTF-8 + /// + /// The charset that your message should be sent with. Optional. Default is UTF-8 + [DataMember(Name = "charset", EmitDefaultValue = true)] + public string Charset { get; set; } + + /// + /// List of uploaded attachments to send with the reply. Optional. + /// + /// List of uploaded attachments to send with the reply. Optional. + [DataMember(Name = "attachments", EmitDefaultValue = true)] + public List Attachments { get; set; } + + /// + /// Template variables if using a template + /// + /// Template variables if using a template + [DataMember(Name = "templateVariables", EmitDefaultValue = true)] + public Dictionary TemplateVariables { get; set; } + + /// + /// Template ID to use instead of body. Will use template variable map to fill defined variable slots. + /// + /// Template ID to use instead of body. Will use template variable map to fill defined variable slots. + [DataMember(Name = "template", EmitDefaultValue = true)] + public Guid? Template { get; set; } + + /// + /// Optional custom headers + /// + /// Optional custom headers + [DataMember(Name = "customHeaders", EmitDefaultValue = true)] + public Dictionary CustomHeaders { get; set; } + + /// + /// Optionally use inbox name as display name for sender email address + /// + /// Optionally use inbox name as display name for sender email address + [DataMember(Name = "useInboxName", EmitDefaultValue = true)] + public bool? UseInboxName { get; set; } + + /// + /// Gets or Sets Html + /// + [DataMember(Name = "html", EmitDefaultValue = true)] + public bool Html { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ReplyToAliasEmailOptions {\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" IsHTML: ").Append(IsHTML).Append("\n"); + sb.Append(" Charset: ").Append(Charset).Append("\n"); + sb.Append(" Attachments: ").Append(Attachments).Append("\n"); + sb.Append(" TemplateVariables: ").Append(TemplateVariables).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" SendStrategy: ").Append(SendStrategy).Append("\n"); + sb.Append(" CustomHeaders: ").Append(CustomHeaders).Append("\n"); + sb.Append(" UseInboxName: ").Append(UseInboxName).Append("\n"); + sb.Append(" Html: ").Append(Html).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ReplyToAliasEmailOptions); + } + + /// + /// Returns true if ReplyToAliasEmailOptions instances are equal + /// + /// Instance of ReplyToAliasEmailOptions to be compared + /// Boolean + public bool Equals(ReplyToAliasEmailOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.IsHTML == input.IsHTML || + this.IsHTML.Equals(input.IsHTML) + ) && + ( + this.Charset == input.Charset || + (this.Charset != null && + this.Charset.Equals(input.Charset)) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.TemplateVariables == input.TemplateVariables || + this.TemplateVariables != null && + input.TemplateVariables != null && + this.TemplateVariables.SequenceEqual(input.TemplateVariables) + ) && + ( + this.Template == input.Template || + (this.Template != null && + this.Template.Equals(input.Template)) + ) && + ( + this.SendStrategy == input.SendStrategy || + this.SendStrategy.Equals(input.SendStrategy) + ) && + ( + this.CustomHeaders == input.CustomHeaders || + this.CustomHeaders != null && + input.CustomHeaders != null && + this.CustomHeaders.SequenceEqual(input.CustomHeaders) + ) && + ( + this.UseInboxName == input.UseInboxName || + (this.UseInboxName != null && + this.UseInboxName.Equals(input.UseInboxName)) + ) && + ( + this.Html == input.Html || + this.Html.Equals(input.Html) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsHTML.GetHashCode(); + if (this.Charset != null) + { + hashCode = (hashCode * 59) + this.Charset.GetHashCode(); + } + if (this.Attachments != null) + { + hashCode = (hashCode * 59) + this.Attachments.GetHashCode(); + } + if (this.TemplateVariables != null) + { + hashCode = (hashCode * 59) + this.TemplateVariables.GetHashCode(); + } + if (this.Template != null) + { + hashCode = (hashCode * 59) + this.Template.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SendStrategy.GetHashCode(); + if (this.CustomHeaders != null) + { + hashCode = (hashCode * 59) + this.CustomHeaders.GetHashCode(); + } + if (this.UseInboxName != null) + { + hashCode = (hashCode * 59) + this.UseInboxName.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Html.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ReplyToEmailOptions.cs b/src/mailslurp_netstandard_2x/Model/ReplyToEmailOptions.cs new file mode 100644 index 00000000..7b0a348c --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ReplyToEmailOptions.cs @@ -0,0 +1,354 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for replying to email with API + /// + [DataContract(Name = "ReplyToEmailOptions")] + public partial class ReplyToEmailOptions : IEquatable, IValidatableObject + { + /// + /// How an email should be sent based on its recipients + /// + /// How an email should be sent based on its recipients + [JsonConverter(typeof(StringEnumConverter))] + public enum SendStrategyEnum + { + /// + /// Enum SINGLEMESSAGE for value: SINGLE_MESSAGE + /// + [EnumMember(Value = "SINGLE_MESSAGE")] + SINGLEMESSAGE = 1 + + } + + + /// + /// How an email should be sent based on its recipients + /// + /// How an email should be sent based on its recipients + [DataMember(Name = "sendStrategy", EmitDefaultValue = true)] + public SendStrategyEnum? SendStrategy { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ReplyToEmailOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Body of the reply email you want to send (required). + /// Is the reply HTML (required). + /// The from header that should be used. Optional. + /// The replyTo header that should be used. Optional. + /// Optional custom headers. + /// The charset that your message should be sent with. Optional. Default is UTF-8. + /// List of uploaded attachments to send with the reply. Optional.. + /// Template variables if using a template. + /// Template ID to use instead of body. Will use template variable map to fill defined variable slots.. + /// How an email should be sent based on its recipients. + /// Optionally use inbox name as display name for sender email address. + /// html. + public ReplyToEmailOptions(string body = default(string), bool isHTML = default(bool), string from = default(string), string replyTo = default(string), Dictionary customHeaders = default(Dictionary), string charset = default(string), List attachments = default(List), Dictionary templateVariables = default(Dictionary), Guid? template = default(Guid?), SendStrategyEnum? sendStrategy = default(SendStrategyEnum?), bool? useInboxName = default(bool?), bool html = default(bool)) + { + // to ensure "body" is required (not null) + if (body == null) + { + throw new ArgumentNullException("body is a required property for ReplyToEmailOptions and cannot be null"); + } + this.Body = body; + this.IsHTML = isHTML; + this.From = from; + this.ReplyTo = replyTo; + this.CustomHeaders = customHeaders; + this.Charset = charset; + this.Attachments = attachments; + this.TemplateVariables = templateVariables; + this.Template = template; + this.SendStrategy = sendStrategy; + this.UseInboxName = useInboxName; + this.Html = html; + } + + /// + /// Body of the reply email you want to send + /// + /// Body of the reply email you want to send + [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Is the reply HTML + /// + /// Is the reply HTML + [DataMember(Name = "isHTML", IsRequired = true, EmitDefaultValue = true)] + public bool IsHTML { get; set; } + + /// + /// The from header that should be used. Optional + /// + /// The from header that should be used. Optional + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// The replyTo header that should be used. Optional + /// + /// The replyTo header that should be used. Optional + [DataMember(Name = "replyTo", EmitDefaultValue = true)] + public string ReplyTo { get; set; } + + /// + /// Optional custom headers + /// + /// Optional custom headers + [DataMember(Name = "customHeaders", EmitDefaultValue = true)] + public Dictionary CustomHeaders { get; set; } + + /// + /// The charset that your message should be sent with. Optional. Default is UTF-8 + /// + /// The charset that your message should be sent with. Optional. Default is UTF-8 + [DataMember(Name = "charset", EmitDefaultValue = true)] + public string Charset { get; set; } + + /// + /// List of uploaded attachments to send with the reply. Optional. + /// + /// List of uploaded attachments to send with the reply. Optional. + [DataMember(Name = "attachments", EmitDefaultValue = true)] + public List Attachments { get; set; } + + /// + /// Template variables if using a template + /// + /// Template variables if using a template + [DataMember(Name = "templateVariables", EmitDefaultValue = true)] + public Dictionary TemplateVariables { get; set; } + + /// + /// Template ID to use instead of body. Will use template variable map to fill defined variable slots. + /// + /// Template ID to use instead of body. Will use template variable map to fill defined variable slots. + [DataMember(Name = "template", EmitDefaultValue = true)] + public Guid? Template { get; set; } + + /// + /// Optionally use inbox name as display name for sender email address + /// + /// Optionally use inbox name as display name for sender email address + [DataMember(Name = "useInboxName", EmitDefaultValue = true)] + public bool? UseInboxName { get; set; } + + /// + /// Gets or Sets Html + /// + [DataMember(Name = "html", EmitDefaultValue = true)] + public bool Html { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ReplyToEmailOptions {\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" IsHTML: ").Append(IsHTML).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" ReplyTo: ").Append(ReplyTo).Append("\n"); + sb.Append(" CustomHeaders: ").Append(CustomHeaders).Append("\n"); + sb.Append(" Charset: ").Append(Charset).Append("\n"); + sb.Append(" Attachments: ").Append(Attachments).Append("\n"); + sb.Append(" TemplateVariables: ").Append(TemplateVariables).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" SendStrategy: ").Append(SendStrategy).Append("\n"); + sb.Append(" UseInboxName: ").Append(UseInboxName).Append("\n"); + sb.Append(" Html: ").Append(Html).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ReplyToEmailOptions); + } + + /// + /// Returns true if ReplyToEmailOptions instances are equal + /// + /// Instance of ReplyToEmailOptions to be compared + /// Boolean + public bool Equals(ReplyToEmailOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.IsHTML == input.IsHTML || + this.IsHTML.Equals(input.IsHTML) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.ReplyTo == input.ReplyTo || + (this.ReplyTo != null && + this.ReplyTo.Equals(input.ReplyTo)) + ) && + ( + this.CustomHeaders == input.CustomHeaders || + this.CustomHeaders != null && + input.CustomHeaders != null && + this.CustomHeaders.SequenceEqual(input.CustomHeaders) + ) && + ( + this.Charset == input.Charset || + (this.Charset != null && + this.Charset.Equals(input.Charset)) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.TemplateVariables == input.TemplateVariables || + this.TemplateVariables != null && + input.TemplateVariables != null && + this.TemplateVariables.SequenceEqual(input.TemplateVariables) + ) && + ( + this.Template == input.Template || + (this.Template != null && + this.Template.Equals(input.Template)) + ) && + ( + this.SendStrategy == input.SendStrategy || + this.SendStrategy.Equals(input.SendStrategy) + ) && + ( + this.UseInboxName == input.UseInboxName || + (this.UseInboxName != null && + this.UseInboxName.Equals(input.UseInboxName)) + ) && + ( + this.Html == input.Html || + this.Html.Equals(input.Html) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsHTML.GetHashCode(); + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.ReplyTo != null) + { + hashCode = (hashCode * 59) + this.ReplyTo.GetHashCode(); + } + if (this.CustomHeaders != null) + { + hashCode = (hashCode * 59) + this.CustomHeaders.GetHashCode(); + } + if (this.Charset != null) + { + hashCode = (hashCode * 59) + this.Charset.GetHashCode(); + } + if (this.Attachments != null) + { + hashCode = (hashCode * 59) + this.Attachments.GetHashCode(); + } + if (this.TemplateVariables != null) + { + hashCode = (hashCode * 59) + this.TemplateVariables.GetHashCode(); + } + if (this.Template != null) + { + hashCode = (hashCode * 59) + this.Template.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SendStrategy.GetHashCode(); + if (this.UseInboxName != null) + { + hashCode = (hashCode * 59) + this.UseInboxName.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Html.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ScheduledJob.cs b/src/mailslurp_netstandard_2x/Model/ScheduledJob.cs new file mode 100644 index 00000000..4aeaefea --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ScheduledJob.cs @@ -0,0 +1,345 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ScheduledJob + /// + [DataContract(Name = "ScheduledJob")] + public partial class ScheduledJob : IEquatable, IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum SUBMITTED for value: SUBMITTED + /// + [EnumMember(Value = "SUBMITTED")] + SUBMITTED = 1, + + /// + /// Enum COMPLETED for value: COMPLETED + /// + [EnumMember(Value = "COMPLETED")] + COMPLETED = 2, + + /// + /// Enum ABORTED for value: ABORTED + /// + [EnumMember(Value = "ABORTED")] + ABORTED = 3, + + /// + /// Enum FAILED for value: FAILED + /// + [EnumMember(Value = "FAILED")] + FAILED = 4, + + /// + /// Enum CANCELLED for value: CANCELLED + /// + [EnumMember(Value = "CANCELLED")] + CANCELLED = 5 + + } + + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public StatusEnum Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ScheduledJob() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// inboxId (required). + /// jobId (required). + /// groupId (required). + /// triggerId (required). + /// status (required). + /// sendAtTimestamp (required). + /// createdAt (required). + /// updatedAt (required). + public ScheduledJob(Guid id = default(Guid), Guid userId = default(Guid), Guid inboxId = default(Guid), string jobId = default(string), string groupId = default(string), string triggerId = default(string), StatusEnum status = default(StatusEnum), DateTime sendAtTimestamp = default(DateTime), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + this.Id = id; + this.UserId = userId; + this.InboxId = inboxId; + // to ensure "jobId" is required (not null) + if (jobId == null) + { + throw new ArgumentNullException("jobId is a required property for ScheduledJob and cannot be null"); + } + this.JobId = jobId; + // to ensure "groupId" is required (not null) + if (groupId == null) + { + throw new ArgumentNullException("groupId is a required property for ScheduledJob and cannot be null"); + } + this.GroupId = groupId; + // to ensure "triggerId" is required (not null) + if (triggerId == null) + { + throw new ArgumentNullException("triggerId is a required property for ScheduledJob and cannot be null"); + } + this.TriggerId = triggerId; + this.Status = status; + this.SendAtTimestamp = sendAtTimestamp; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets JobId + /// + [DataMember(Name = "jobId", IsRequired = true, EmitDefaultValue = true)] + public string JobId { get; set; } + + /// + /// Gets or Sets GroupId + /// + [DataMember(Name = "groupId", IsRequired = true, EmitDefaultValue = true)] + public string GroupId { get; set; } + + /// + /// Gets or Sets TriggerId + /// + [DataMember(Name = "triggerId", IsRequired = true, EmitDefaultValue = true)] + public string TriggerId { get; set; } + + /// + /// Gets or Sets SendAtTimestamp + /// + [DataMember(Name = "sendAtTimestamp", IsRequired = true, EmitDefaultValue = true)] + public DateTime SendAtTimestamp { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ScheduledJob {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" JobId: ").Append(JobId).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append(" TriggerId: ").Append(TriggerId).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" SendAtTimestamp: ").Append(SendAtTimestamp).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ScheduledJob); + } + + /// + /// Returns true if ScheduledJob instances are equal + /// + /// Instance of ScheduledJob to be compared + /// Boolean + public bool Equals(ScheduledJob input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.TriggerId == input.TriggerId || + (this.TriggerId != null && + this.TriggerId.Equals(input.TriggerId)) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.SendAtTimestamp == input.SendAtTimestamp || + (this.SendAtTimestamp != null && + this.SendAtTimestamp.Equals(input.SendAtTimestamp)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.JobId != null) + { + hashCode = (hashCode * 59) + this.JobId.GetHashCode(); + } + if (this.GroupId != null) + { + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); + } + if (this.TriggerId != null) + { + hashCode = (hashCode * 59) + this.TriggerId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.SendAtTimestamp != null) + { + hashCode = (hashCode * 59) + this.SendAtTimestamp.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ScheduledJobDto.cs b/src/mailslurp_netstandard_2x/Model/ScheduledJobDto.cs new file mode 100644 index 00000000..91006030 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ScheduledJobDto.cs @@ -0,0 +1,345 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ScheduledJobDto + /// + [DataContract(Name = "ScheduledJobDto")] + public partial class ScheduledJobDto : IEquatable, IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum SUBMITTED for value: SUBMITTED + /// + [EnumMember(Value = "SUBMITTED")] + SUBMITTED = 1, + + /// + /// Enum COMPLETED for value: COMPLETED + /// + [EnumMember(Value = "COMPLETED")] + COMPLETED = 2, + + /// + /// Enum ABORTED for value: ABORTED + /// + [EnumMember(Value = "ABORTED")] + ABORTED = 3, + + /// + /// Enum FAILED for value: FAILED + /// + [EnumMember(Value = "FAILED")] + FAILED = 4, + + /// + /// Enum CANCELLED for value: CANCELLED + /// + [EnumMember(Value = "CANCELLED")] + CANCELLED = 5 + + } + + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public StatusEnum Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ScheduledJobDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// inboxId (required). + /// jobId (required). + /// groupId (required). + /// triggerId (required). + /// status (required). + /// sendAtTimestamp (required). + /// createdAt (required). + /// updatedAt (required). + public ScheduledJobDto(Guid id = default(Guid), Guid userId = default(Guid), Guid inboxId = default(Guid), string jobId = default(string), string groupId = default(string), string triggerId = default(string), StatusEnum status = default(StatusEnum), DateTime sendAtTimestamp = default(DateTime), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + this.Id = id; + this.UserId = userId; + this.InboxId = inboxId; + // to ensure "jobId" is required (not null) + if (jobId == null) + { + throw new ArgumentNullException("jobId is a required property for ScheduledJobDto and cannot be null"); + } + this.JobId = jobId; + // to ensure "groupId" is required (not null) + if (groupId == null) + { + throw new ArgumentNullException("groupId is a required property for ScheduledJobDto and cannot be null"); + } + this.GroupId = groupId; + // to ensure "triggerId" is required (not null) + if (triggerId == null) + { + throw new ArgumentNullException("triggerId is a required property for ScheduledJobDto and cannot be null"); + } + this.TriggerId = triggerId; + this.Status = status; + this.SendAtTimestamp = sendAtTimestamp; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets JobId + /// + [DataMember(Name = "jobId", IsRequired = true, EmitDefaultValue = true)] + public string JobId { get; set; } + + /// + /// Gets or Sets GroupId + /// + [DataMember(Name = "groupId", IsRequired = true, EmitDefaultValue = true)] + public string GroupId { get; set; } + + /// + /// Gets or Sets TriggerId + /// + [DataMember(Name = "triggerId", IsRequired = true, EmitDefaultValue = true)] + public string TriggerId { get; set; } + + /// + /// Gets or Sets SendAtTimestamp + /// + [DataMember(Name = "sendAtTimestamp", IsRequired = true, EmitDefaultValue = true)] + public DateTime SendAtTimestamp { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ScheduledJobDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" JobId: ").Append(JobId).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append(" TriggerId: ").Append(TriggerId).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" SendAtTimestamp: ").Append(SendAtTimestamp).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ScheduledJobDto); + } + + /// + /// Returns true if ScheduledJobDto instances are equal + /// + /// Instance of ScheduledJobDto to be compared + /// Boolean + public bool Equals(ScheduledJobDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.TriggerId == input.TriggerId || + (this.TriggerId != null && + this.TriggerId.Equals(input.TriggerId)) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.SendAtTimestamp == input.SendAtTimestamp || + (this.SendAtTimestamp != null && + this.SendAtTimestamp.Equals(input.SendAtTimestamp)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.JobId != null) + { + hashCode = (hashCode * 59) + this.JobId.GetHashCode(); + } + if (this.GroupId != null) + { + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); + } + if (this.TriggerId != null) + { + hashCode = (hashCode * 59) + this.TriggerId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.SendAtTimestamp != null) + { + hashCode = (hashCode * 59) + this.SendAtTimestamp.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SearchEmailsOptions.cs b/src/mailslurp_netstandard_2x/Model/SearchEmailsOptions.cs new file mode 100644 index 00000000..135a4d61 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SearchEmailsOptions.cs @@ -0,0 +1,275 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// SearchEmailsOptions + /// + [DataContract(Name = "SearchEmailsOptions")] + public partial class SearchEmailsOptions : IEquatable, IValidatableObject + { + /// + /// Optional createdAt sort direction ASC or DESC + /// + /// Optional createdAt sort direction ASC or DESC + [JsonConverter(typeof(StringEnumConverter))] + public enum SortDirectionEnum + { + /// + /// Enum ASC for value: ASC + /// + [EnumMember(Value = "ASC")] + ASC = 1, + + /// + /// Enum DESC for value: DESC + /// + [EnumMember(Value = "DESC")] + DESC = 2 + + } + + + /// + /// Optional createdAt sort direction ASC or DESC + /// + /// Optional createdAt sort direction ASC or DESC + [DataMember(Name = "sortDirection", EmitDefaultValue = false)] + public SortDirectionEnum? SortDirection { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account.. + /// Optional page index in email list pagination. + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results. + /// Optional createdAt sort direction ASC or DESC. + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly. + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body. + /// Optional filter emails received after given date time. + /// Optional filter emails received before given date time. + public SearchEmailsOptions(List inboxIds = default(List), int pageIndex = default(int), int pageSize = default(int), SortDirectionEnum? sortDirection = default(SortDirectionEnum?), bool unreadOnly = default(bool), string searchFilter = default(string), DateTime since = default(DateTime), DateTime before = default(DateTime)) + { + this.InboxIds = inboxIds; + this.PageIndex = pageIndex; + this.PageSize = pageSize; + this.SortDirection = sortDirection; + this.UnreadOnly = unreadOnly; + this.SearchFilter = searchFilter; + this.Since = since; + this.Before = before; + } + + /// + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. + /// + /// Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account. + [DataMember(Name = "inboxIds", EmitDefaultValue = false)] + public List InboxIds { get; set; } + + /// + /// Optional page index in email list pagination + /// + /// Optional page index in email list pagination + [DataMember(Name = "pageIndex", EmitDefaultValue = false)] + public int PageIndex { get; set; } + + /// + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results + /// + /// Optional page size in email list pagination. Maximum size is 100. Use page index and sort to page through larger results + [DataMember(Name = "pageSize", EmitDefaultValue = false)] + public int PageSize { get; set; } + + /// + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly + /// + /// Optional filter for unread emails only. All emails are considered unread until they are viewed in the dashboard or requested directly + [DataMember(Name = "unreadOnly", EmitDefaultValue = true)] + public bool UnreadOnly { get; set; } + + /// + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body + /// + /// Optional search filter. Searches email recipients, sender, subject, email address and ID. Does not search email body + [DataMember(Name = "searchFilter", EmitDefaultValue = false)] + public string SearchFilter { get; set; } + + /// + /// Optional filter emails received after given date time + /// + /// Optional filter emails received after given date time + [DataMember(Name = "since", EmitDefaultValue = false)] + public DateTime Since { get; set; } + + /// + /// Optional filter emails received before given date time + /// + /// Optional filter emails received before given date time + [DataMember(Name = "before", EmitDefaultValue = false)] + public DateTime Before { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SearchEmailsOptions {\n"); + sb.Append(" InboxIds: ").Append(InboxIds).Append("\n"); + sb.Append(" PageIndex: ").Append(PageIndex).Append("\n"); + sb.Append(" PageSize: ").Append(PageSize).Append("\n"); + sb.Append(" SortDirection: ").Append(SortDirection).Append("\n"); + sb.Append(" UnreadOnly: ").Append(UnreadOnly).Append("\n"); + sb.Append(" SearchFilter: ").Append(SearchFilter).Append("\n"); + sb.Append(" Since: ").Append(Since).Append("\n"); + sb.Append(" Before: ").Append(Before).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SearchEmailsOptions); + } + + /// + /// Returns true if SearchEmailsOptions instances are equal + /// + /// Instance of SearchEmailsOptions to be compared + /// Boolean + public bool Equals(SearchEmailsOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxIds == input.InboxIds || + this.InboxIds != null && + input.InboxIds != null && + this.InboxIds.SequenceEqual(input.InboxIds) + ) && + ( + this.PageIndex == input.PageIndex || + this.PageIndex.Equals(input.PageIndex) + ) && + ( + this.PageSize == input.PageSize || + this.PageSize.Equals(input.PageSize) + ) && + ( + this.SortDirection == input.SortDirection || + this.SortDirection.Equals(input.SortDirection) + ) && + ( + this.UnreadOnly == input.UnreadOnly || + this.UnreadOnly.Equals(input.UnreadOnly) + ) && + ( + this.SearchFilter == input.SearchFilter || + (this.SearchFilter != null && + this.SearchFilter.Equals(input.SearchFilter)) + ) && + ( + this.Since == input.Since || + (this.Since != null && + this.Since.Equals(input.Since)) + ) && + ( + this.Before == input.Before || + (this.Before != null && + this.Before.Equals(input.Before)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxIds != null) + { + hashCode = (hashCode * 59) + this.InboxIds.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PageIndex.GetHashCode(); + hashCode = (hashCode * 59) + this.PageSize.GetHashCode(); + hashCode = (hashCode * 59) + this.SortDirection.GetHashCode(); + hashCode = (hashCode * 59) + this.UnreadOnly.GetHashCode(); + if (this.SearchFilter != null) + { + hashCode = (hashCode * 59) + this.SearchFilter.GetHashCode(); + } + if (this.Since != null) + { + hashCode = (hashCode * 59) + this.Since.GetHashCode(); + } + if (this.Before != null) + { + hashCode = (hashCode * 59) + this.Before.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // PageSize (int) maximum + if (this.PageSize > (int)100) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PageSize, must be a value less than or equal to 100.", new [] { "PageSize" }); + } + + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SearchInboxesOptions.cs b/src/mailslurp_netstandard_2x/Model/SearchInboxesOptions.cs new file mode 100644 index 00000000..52d2be8f --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SearchInboxesOptions.cs @@ -0,0 +1,383 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// SearchInboxesOptions + /// + [DataContract(Name = "SearchInboxesOptions")] + public partial class SearchInboxesOptions : IEquatable, IValidatableObject + { + /// + /// Optional createdAt sort direction ASC or DESC + /// + /// Optional createdAt sort direction ASC or DESC + [JsonConverter(typeof(StringEnumConverter))] + public enum SortDirectionEnum + { + /// + /// Enum ASC for value: ASC + /// + [EnumMember(Value = "ASC")] + ASC = 1, + + /// + /// Enum DESC for value: DESC + /// + [EnumMember(Value = "DESC")] + DESC = 2 + + } + + + /// + /// Optional createdAt sort direction ASC or DESC + /// + /// Optional createdAt sort direction ASC or DESC + [DataMember(Name = "sortDirection", EmitDefaultValue = true)] + public SortDirectionEnum? SortDirection { get; set; } + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + [JsonConverter(typeof(StringEnumConverter))] + public enum InboxTypeEnum + { + /// + /// Enum HTTPINBOX for value: HTTP_INBOX + /// + [EnumMember(Value = "HTTP_INBOX")] + HTTPINBOX = 1, + + /// + /// Enum SMTPINBOX for value: SMTP_INBOX + /// + [EnumMember(Value = "SMTP_INBOX")] + SMTPINBOX = 2 + + } + + + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + /// + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send). + [DataMember(Name = "inboxType", EmitDefaultValue = true)] + public InboxTypeEnum? InboxType { get; set; } + /// + /// Optional filter by inbox function + /// + /// Optional filter by inbox function + [JsonConverter(typeof(StringEnumConverter))] + public enum InboxFunctionEnum + { + /// + /// Enum ALIAS for value: ALIAS + /// + [EnumMember(Value = "ALIAS")] + ALIAS = 1, + + /// + /// Enum THREAD for value: THREAD + /// + [EnumMember(Value = "THREAD")] + THREAD = 2, + + /// + /// Enum CATCHALL for value: CATCH_ALL + /// + [EnumMember(Value = "CATCH_ALL")] + CATCHALL = 3, + + /// + /// Enum CONNECTOR for value: CONNECTOR + /// + [EnumMember(Value = "CONNECTOR")] + CONNECTOR = 4 + + } + + + /// + /// Optional filter by inbox function + /// + /// Optional filter by inbox function + [DataMember(Name = "inboxFunction", EmitDefaultValue = true)] + public InboxFunctionEnum? InboxFunction { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Optional page index in list pagination. + /// Optional page size in list pagination. + /// Optional createdAt sort direction ASC or DESC. + /// Optionally filter results for favourites only. + /// Optionally filter by search words partial matching ID, tags, name, and email address. + /// Optionally filter by tags. Will return inboxes that include given tags. + /// Optional filter by created after given date time. + /// Optional filter by created before given date time. + /// Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).. + /// Optional filter by inbox function. + /// Optional domain ID filter. + public SearchInboxesOptions(int? pageIndex = default(int?), int? pageSize = default(int?), SortDirectionEnum? sortDirection = default(SortDirectionEnum?), bool? favourite = default(bool?), string search = default(string), string tag = default(string), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?), InboxTypeEnum? inboxType = default(InboxTypeEnum?), InboxFunctionEnum? inboxFunction = default(InboxFunctionEnum?), Guid? domainId = default(Guid?)) + { + this.PageIndex = pageIndex; + this.PageSize = pageSize; + this.SortDirection = sortDirection; + this.Favourite = favourite; + this.Search = search; + this.Tag = tag; + this.Since = since; + this.Before = before; + this.InboxType = inboxType; + this.InboxFunction = inboxFunction; + this.DomainId = domainId; + } + + /// + /// Optional page index in list pagination + /// + /// Optional page index in list pagination + [DataMember(Name = "pageIndex", EmitDefaultValue = true)] + public int? PageIndex { get; set; } + + /// + /// Optional page size in list pagination + /// + /// Optional page size in list pagination + [DataMember(Name = "pageSize", EmitDefaultValue = true)] + public int? PageSize { get; set; } + + /// + /// Optionally filter results for favourites only + /// + /// Optionally filter results for favourites only + [DataMember(Name = "favourite", EmitDefaultValue = true)] + public bool? Favourite { get; set; } + + /// + /// Optionally filter by search words partial matching ID, tags, name, and email address + /// + /// Optionally filter by search words partial matching ID, tags, name, and email address + [DataMember(Name = "search", EmitDefaultValue = true)] + public string Search { get; set; } + + /// + /// Optionally filter by tags. Will return inboxes that include given tags + /// + /// Optionally filter by tags. Will return inboxes that include given tags + [DataMember(Name = "tag", EmitDefaultValue = true)] + public string Tag { get; set; } + + /// + /// Optional filter by created after given date time + /// + /// Optional filter by created after given date time + [DataMember(Name = "since", EmitDefaultValue = true)] + public DateTime? Since { get; set; } + + /// + /// Optional filter by created before given date time + /// + /// Optional filter by created before given date time + [DataMember(Name = "before", EmitDefaultValue = true)] + public DateTime? Before { get; set; } + + /// + /// Optional domain ID filter + /// + /// Optional domain ID filter + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SearchInboxesOptions {\n"); + sb.Append(" PageIndex: ").Append(PageIndex).Append("\n"); + sb.Append(" PageSize: ").Append(PageSize).Append("\n"); + sb.Append(" SortDirection: ").Append(SortDirection).Append("\n"); + sb.Append(" Favourite: ").Append(Favourite).Append("\n"); + sb.Append(" Search: ").Append(Search).Append("\n"); + sb.Append(" Tag: ").Append(Tag).Append("\n"); + sb.Append(" Since: ").Append(Since).Append("\n"); + sb.Append(" Before: ").Append(Before).Append("\n"); + sb.Append(" InboxType: ").Append(InboxType).Append("\n"); + sb.Append(" InboxFunction: ").Append(InboxFunction).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SearchInboxesOptions); + } + + /// + /// Returns true if SearchInboxesOptions instances are equal + /// + /// Instance of SearchInboxesOptions to be compared + /// Boolean + public bool Equals(SearchInboxesOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.PageIndex == input.PageIndex || + (this.PageIndex != null && + this.PageIndex.Equals(input.PageIndex)) + ) && + ( + this.PageSize == input.PageSize || + (this.PageSize != null && + this.PageSize.Equals(input.PageSize)) + ) && + ( + this.SortDirection == input.SortDirection || + this.SortDirection.Equals(input.SortDirection) + ) && + ( + this.Favourite == input.Favourite || + (this.Favourite != null && + this.Favourite.Equals(input.Favourite)) + ) && + ( + this.Search == input.Search || + (this.Search != null && + this.Search.Equals(input.Search)) + ) && + ( + this.Tag == input.Tag || + (this.Tag != null && + this.Tag.Equals(input.Tag)) + ) && + ( + this.Since == input.Since || + (this.Since != null && + this.Since.Equals(input.Since)) + ) && + ( + this.Before == input.Before || + (this.Before != null && + this.Before.Equals(input.Before)) + ) && + ( + this.InboxType == input.InboxType || + this.InboxType.Equals(input.InboxType) + ) && + ( + this.InboxFunction == input.InboxFunction || + this.InboxFunction.Equals(input.InboxFunction) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PageIndex != null) + { + hashCode = (hashCode * 59) + this.PageIndex.GetHashCode(); + } + if (this.PageSize != null) + { + hashCode = (hashCode * 59) + this.PageSize.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SortDirection.GetHashCode(); + if (this.Favourite != null) + { + hashCode = (hashCode * 59) + this.Favourite.GetHashCode(); + } + if (this.Search != null) + { + hashCode = (hashCode * 59) + this.Search.GetHashCode(); + } + if (this.Tag != null) + { + hashCode = (hashCode * 59) + this.Tag.GetHashCode(); + } + if (this.Since != null) + { + hashCode = (hashCode * 59) + this.Since.GetHashCode(); + } + if (this.Before != null) + { + hashCode = (hashCode * 59) + this.Before.GetHashCode(); + } + hashCode = (hashCode * 59) + this.InboxType.GetHashCode(); + hashCode = (hashCode * 59) + this.InboxFunction.GetHashCode(); + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SendEmailBodyPart.cs b/src/mailslurp_netstandard_2x/Model/SendEmailBodyPart.cs new file mode 100644 index 00000000..1d826a5b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SendEmailBodyPart.cs @@ -0,0 +1,162 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Email body content parts for multipart mime message. Will override body. + /// + [DataContract(Name = "SendEmailBodyPart")] + public partial class SendEmailBodyPart : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SendEmailBodyPart() { } + /// + /// Initializes a new instance of the class. + /// + /// contentType (required). + /// contentBody (required). + public SendEmailBodyPart(string contentType = default(string), string contentBody = default(string)) + { + // to ensure "contentType" is required (not null) + if (contentType == null) + { + throw new ArgumentNullException("contentType is a required property for SendEmailBodyPart and cannot be null"); + } + this.ContentType = contentType; + // to ensure "contentBody" is required (not null) + if (contentBody == null) + { + throw new ArgumentNullException("contentBody is a required property for SendEmailBodyPart and cannot be null"); + } + this.ContentBody = contentBody; + } + + /// + /// Gets or Sets ContentType + /// + [DataMember(Name = "contentType", IsRequired = true, EmitDefaultValue = true)] + public string ContentType { get; set; } + + /// + /// Gets or Sets ContentBody + /// + [DataMember(Name = "contentBody", IsRequired = true, EmitDefaultValue = true)] + public string ContentBody { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SendEmailBodyPart {\n"); + sb.Append(" ContentType: ").Append(ContentType).Append("\n"); + sb.Append(" ContentBody: ").Append(ContentBody).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SendEmailBodyPart); + } + + /// + /// Returns true if SendEmailBodyPart instances are equal + /// + /// Instance of SendEmailBodyPart to be compared + /// Boolean + public bool Equals(SendEmailBodyPart input) + { + if (input == null) + { + return false; + } + return + ( + this.ContentType == input.ContentType || + (this.ContentType != null && + this.ContentType.Equals(input.ContentType)) + ) && + ( + this.ContentBody == input.ContentBody || + (this.ContentBody != null && + this.ContentBody.Equals(input.ContentBody)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ContentType != null) + { + hashCode = (hashCode * 59) + this.ContentType.GetHashCode(); + } + if (this.ContentBody != null) + { + hashCode = (hashCode * 59) + this.ContentBody.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SendEmailOptions.cs b/src/mailslurp_netstandard_2x/Model/SendEmailOptions.cs new file mode 100644 index 00000000..8e9907df --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SendEmailOptions.cs @@ -0,0 +1,609 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for the email to be sent + /// + [DataContract(Name = "SendEmailOptions")] + public partial class SendEmailOptions : IEquatable, IValidatableObject + { + /// + /// How an email should be sent based on its recipients + /// + /// How an email should be sent based on its recipients + [JsonConverter(typeof(StringEnumConverter))] + public enum SendStrategyEnum + { + /// + /// Enum SINGLEMESSAGE for value: SINGLE_MESSAGE + /// + [EnumMember(Value = "SINGLE_MESSAGE")] + SINGLEMESSAGE = 1 + + } + + + /// + /// How an email should be sent based on its recipients + /// + /// How an email should be sent based on its recipients + [DataMember(Name = "sendStrategy", EmitDefaultValue = true)] + public SendStrategyEnum? SendStrategy { get; set; } + /// + /// Validate recipient email addresses before sending + /// + /// Validate recipient email addresses before sending + [JsonConverter(typeof(StringEnumConverter))] + public enum ValidateEmailAddressesEnum + { + /// + /// Enum VALIDATEFILTERREMOVEINVALID for value: VALIDATE_FILTER_REMOVE_INVALID + /// + [EnumMember(Value = "VALIDATE_FILTER_REMOVE_INVALID")] + VALIDATEFILTERREMOVEINVALID = 1, + + /// + /// Enum VALIDATEERRORIFINVALID for value: VALIDATE_ERROR_IF_INVALID + /// + [EnumMember(Value = "VALIDATE_ERROR_IF_INVALID")] + VALIDATEERRORIFINVALID = 2, + + /// + /// Enum NOVALIDATION for value: NO_VALIDATION + /// + [EnumMember(Value = "NO_VALIDATION")] + NOVALIDATION = 3 + + } + + + /// + /// Validate recipient email addresses before sending + /// + /// Validate recipient email addresses before sending + [DataMember(Name = "validateEmailAddresses", EmitDefaultValue = true)] + public ValidateEmailAddressesEnum? ValidateEmailAddresses { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Optional list of contact IDs to send email to. Manage your contacts via the API or dashboard. When contacts are used the email is sent to each contact separately so they will not see other recipients.. + /// Optional contact group ID to send email to. You can create contacts and contact groups in the API or dashboard and use them for email campaigns. When contact groups are used the email is sent to each contact separately so they will not see other recipients. + /// List of destination email addresses. Each email address must be RFC 5322 format. Even single recipients must be in array form. Maximum recipients per email depends on your plan. If you need to send many emails try using contacts or contact groups or use a non standard sendStrategy to ensure that spam filters are not triggered (many recipients in one email can affect your spam rating). Be cautious when sending emails that your recipients exist. High bounce rates (meaning a high percentage of emails cannot be delivered because an address does not exist) can result in account freezing.. + /// Optional from address. Email address is RFC 5322 format and may include a display name and email in angle brackets (`my@address.com` or `My inbox <my@address.com>`). If no sender is set the source inbox address will be used for this field. If you set `useInboxName` to `true` the from field will include the inbox name as a display name: `inbox_name <inbox@address.com>`. For this to work use the name field when creating an inbox. Beware of potential spam penalties when setting the from field to an address not used by the inbox. Your emails may get blocked by services if you impersonate another address. To use a custom email addresses use a custom domain. You can create domains with the DomainController. The domain must be verified in the dashboard before it can be used.. + /// Optional list of cc destination email addresses. + /// Optional list of bcc destination email addresses. + /// Optional email subject line. + /// Optional replyTo header. + /// Optional custom headers. + /// Optional contents of email. If body contains HTML then set `isHTML` to true to ensure that email clients render it correctly. You can use moustache template syntax in the email body in conjunction with `toGroup` contact variables or `templateVariables` data. If you need more templating control consider creating a template and using the `template` property instead of the body.. + /// Optional HTML flag to indicate that contents is HTML. Set's a `content-type: text/html` for email. (Deprecated: use `isHTML` instead.). + /// Optional HTML flag. If true the `content-type` of the email will be `text/html`. Set to true when sending HTML to ensure proper rending on email clients. + /// Optional charset. + /// Optional list of attachment IDs to send with this email. You must first upload each attachment separately via method call or dashboard in order to obtain attachment IDs. This way you can reuse attachments with different emails once uploaded. There are several ways to upload that support `multi-part form`, `base64 file encoding`, and octet stream binary uploads. See the `UploadController` for available methods. . + /// Optional map of template variables. Will replace moustache syntax variables in subject and body or template with the associated values if found.. + /// Optional template ID to use for body. Will override body if provided. When using a template make sure you pass the corresponding map of `templateVariables`. You can find which variables are needed by fetching the template itself or viewing it in the dashboard.. + /// How an email should be sent based on its recipients. + /// Use name of inbox as sender email address name. Will construct RFC 5322 email address with `Inbox name <inbox@address.com>` if the inbox has a name.. + /// Add tracking pixel to email. + /// Filter recipients to remove any bounced recipients from to, bcc, and cc before sending. + /// Validate recipient email addresses before sending. + /// Ignore empty recipients after validation removes all recipients as invalid and fail silently. + /// Is content AMP4EMAIL compatible. If set will send as x-amp-html part.. + /// Email body content parts for multipart mime message. Will override body.. + public SendEmailOptions(List toContacts = default(List), Guid? toGroup = default(Guid?), List to = default(List), string from = default(string), List cc = default(List), List bcc = default(List), string subject = default(string), string replyTo = default(string), Dictionary customHeaders = default(Dictionary), string body = default(string), bool? html = default(bool?), bool? isHTML = default(bool?), string charset = default(string), List attachments = default(List), Dictionary templateVariables = default(Dictionary), Guid? template = default(Guid?), SendStrategyEnum? sendStrategy = default(SendStrategyEnum?), bool? useInboxName = default(bool?), bool? addTrackingPixel = default(bool?), bool? filterBouncedRecipients = default(bool?), ValidateEmailAddressesEnum? validateEmailAddresses = default(ValidateEmailAddressesEnum?), bool? ignoreEmptyRecipients = default(bool?), bool? isXAmpHtml = default(bool?), List bodyParts = default(List)) + { + this.ToContacts = toContacts; + this.ToGroup = toGroup; + this.To = to; + this.From = from; + this.Cc = cc; + this.Bcc = bcc; + this.Subject = subject; + this.ReplyTo = replyTo; + this.CustomHeaders = customHeaders; + this.Body = body; + this.Html = html; + this.IsHTML = isHTML; + this.Charset = charset; + this.Attachments = attachments; + this.TemplateVariables = templateVariables; + this.Template = template; + this.SendStrategy = sendStrategy; + this.UseInboxName = useInboxName; + this.AddTrackingPixel = addTrackingPixel; + this.FilterBouncedRecipients = filterBouncedRecipients; + this.ValidateEmailAddresses = validateEmailAddresses; + this.IgnoreEmptyRecipients = ignoreEmptyRecipients; + this.IsXAmpHtml = isXAmpHtml; + this.BodyParts = bodyParts; + } + + /// + /// Optional list of contact IDs to send email to. Manage your contacts via the API or dashboard. When contacts are used the email is sent to each contact separately so they will not see other recipients. + /// + /// Optional list of contact IDs to send email to. Manage your contacts via the API or dashboard. When contacts are used the email is sent to each contact separately so they will not see other recipients. + [DataMember(Name = "toContacts", EmitDefaultValue = true)] + public List ToContacts { get; set; } + + /// + /// Optional contact group ID to send email to. You can create contacts and contact groups in the API or dashboard and use them for email campaigns. When contact groups are used the email is sent to each contact separately so they will not see other recipients + /// + /// Optional contact group ID to send email to. You can create contacts and contact groups in the API or dashboard and use them for email campaigns. When contact groups are used the email is sent to each contact separately so they will not see other recipients + [DataMember(Name = "toGroup", EmitDefaultValue = true)] + public Guid? ToGroup { get; set; } + + /// + /// List of destination email addresses. Each email address must be RFC 5322 format. Even single recipients must be in array form. Maximum recipients per email depends on your plan. If you need to send many emails try using contacts or contact groups or use a non standard sendStrategy to ensure that spam filters are not triggered (many recipients in one email can affect your spam rating). Be cautious when sending emails that your recipients exist. High bounce rates (meaning a high percentage of emails cannot be delivered because an address does not exist) can result in account freezing. + /// + /// List of destination email addresses. Each email address must be RFC 5322 format. Even single recipients must be in array form. Maximum recipients per email depends on your plan. If you need to send many emails try using contacts or contact groups or use a non standard sendStrategy to ensure that spam filters are not triggered (many recipients in one email can affect your spam rating). Be cautious when sending emails that your recipients exist. High bounce rates (meaning a high percentage of emails cannot be delivered because an address does not exist) can result in account freezing. + [DataMember(Name = "to", EmitDefaultValue = true)] + public List To { get; set; } + + /// + /// Optional from address. Email address is RFC 5322 format and may include a display name and email in angle brackets (`my@address.com` or `My inbox <my@address.com>`). If no sender is set the source inbox address will be used for this field. If you set `useInboxName` to `true` the from field will include the inbox name as a display name: `inbox_name <inbox@address.com>`. For this to work use the name field when creating an inbox. Beware of potential spam penalties when setting the from field to an address not used by the inbox. Your emails may get blocked by services if you impersonate another address. To use a custom email addresses use a custom domain. You can create domains with the DomainController. The domain must be verified in the dashboard before it can be used. + /// + /// Optional from address. Email address is RFC 5322 format and may include a display name and email in angle brackets (`my@address.com` or `My inbox <my@address.com>`). If no sender is set the source inbox address will be used for this field. If you set `useInboxName` to `true` the from field will include the inbox name as a display name: `inbox_name <inbox@address.com>`. For this to work use the name field when creating an inbox. Beware of potential spam penalties when setting the from field to an address not used by the inbox. Your emails may get blocked by services if you impersonate another address. To use a custom email addresses use a custom domain. You can create domains with the DomainController. The domain must be verified in the dashboard before it can be used. + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Optional list of cc destination email addresses + /// + /// Optional list of cc destination email addresses + [DataMember(Name = "cc", EmitDefaultValue = true)] + public List Cc { get; set; } + + /// + /// Optional list of bcc destination email addresses + /// + /// Optional list of bcc destination email addresses + [DataMember(Name = "bcc", EmitDefaultValue = true)] + public List Bcc { get; set; } + + /// + /// Optional email subject line + /// + /// Optional email subject line + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Optional replyTo header + /// + /// Optional replyTo header + [DataMember(Name = "replyTo", EmitDefaultValue = true)] + public string ReplyTo { get; set; } + + /// + /// Optional custom headers + /// + /// Optional custom headers + [DataMember(Name = "customHeaders", EmitDefaultValue = true)] + public Dictionary CustomHeaders { get; set; } + + /// + /// Optional contents of email. If body contains HTML then set `isHTML` to true to ensure that email clients render it correctly. You can use moustache template syntax in the email body in conjunction with `toGroup` contact variables or `templateVariables` data. If you need more templating control consider creating a template and using the `template` property instead of the body. + /// + /// Optional contents of email. If body contains HTML then set `isHTML` to true to ensure that email clients render it correctly. You can use moustache template syntax in the email body in conjunction with `toGroup` contact variables or `templateVariables` data. If you need more templating control consider creating a template and using the `template` property instead of the body. + [DataMember(Name = "body", EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Optional HTML flag to indicate that contents is HTML. Set's a `content-type: text/html` for email. (Deprecated: use `isHTML` instead.) + /// + /// Optional HTML flag to indicate that contents is HTML. Set's a `content-type: text/html` for email. (Deprecated: use `isHTML` instead.) + [DataMember(Name = "html", EmitDefaultValue = true)] + public bool? Html { get; set; } + + /// + /// Optional HTML flag. If true the `content-type` of the email will be `text/html`. Set to true when sending HTML to ensure proper rending on email clients + /// + /// Optional HTML flag. If true the `content-type` of the email will be `text/html`. Set to true when sending HTML to ensure proper rending on email clients + [DataMember(Name = "isHTML", EmitDefaultValue = true)] + public bool? IsHTML { get; set; } + + /// + /// Optional charset + /// + /// Optional charset + [DataMember(Name = "charset", EmitDefaultValue = true)] + public string Charset { get; set; } + + /// + /// Optional list of attachment IDs to send with this email. You must first upload each attachment separately via method call or dashboard in order to obtain attachment IDs. This way you can reuse attachments with different emails once uploaded. There are several ways to upload that support `multi-part form`, `base64 file encoding`, and octet stream binary uploads. See the `UploadController` for available methods. + /// + /// Optional list of attachment IDs to send with this email. You must first upload each attachment separately via method call or dashboard in order to obtain attachment IDs. This way you can reuse attachments with different emails once uploaded. There are several ways to upload that support `multi-part form`, `base64 file encoding`, and octet stream binary uploads. See the `UploadController` for available methods. + [DataMember(Name = "attachments", EmitDefaultValue = true)] + public List Attachments { get; set; } + + /// + /// Optional map of template variables. Will replace moustache syntax variables in subject and body or template with the associated values if found. + /// + /// Optional map of template variables. Will replace moustache syntax variables in subject and body or template with the associated values if found. + [DataMember(Name = "templateVariables", EmitDefaultValue = true)] + public Dictionary TemplateVariables { get; set; } + + /// + /// Optional template ID to use for body. Will override body if provided. When using a template make sure you pass the corresponding map of `templateVariables`. You can find which variables are needed by fetching the template itself or viewing it in the dashboard. + /// + /// Optional template ID to use for body. Will override body if provided. When using a template make sure you pass the corresponding map of `templateVariables`. You can find which variables are needed by fetching the template itself or viewing it in the dashboard. + [DataMember(Name = "template", EmitDefaultValue = true)] + public Guid? Template { get; set; } + + /// + /// Use name of inbox as sender email address name. Will construct RFC 5322 email address with `Inbox name <inbox@address.com>` if the inbox has a name. + /// + /// Use name of inbox as sender email address name. Will construct RFC 5322 email address with `Inbox name <inbox@address.com>` if the inbox has a name. + [DataMember(Name = "useInboxName", EmitDefaultValue = true)] + public bool? UseInboxName { get; set; } + + /// + /// Add tracking pixel to email + /// + /// Add tracking pixel to email + [DataMember(Name = "addTrackingPixel", EmitDefaultValue = true)] + public bool? AddTrackingPixel { get; set; } + + /// + /// Filter recipients to remove any bounced recipients from to, bcc, and cc before sending + /// + /// Filter recipients to remove any bounced recipients from to, bcc, and cc before sending + [DataMember(Name = "filterBouncedRecipients", EmitDefaultValue = true)] + public bool? FilterBouncedRecipients { get; set; } + + /// + /// Ignore empty recipients after validation removes all recipients as invalid and fail silently + /// + /// Ignore empty recipients after validation removes all recipients as invalid and fail silently + [DataMember(Name = "ignoreEmptyRecipients", EmitDefaultValue = true)] + public bool? IgnoreEmptyRecipients { get; set; } + + /// + /// Is content AMP4EMAIL compatible. If set will send as x-amp-html part. + /// + /// Is content AMP4EMAIL compatible. If set will send as x-amp-html part. + [DataMember(Name = "isXAmpHtml", EmitDefaultValue = true)] + public bool? IsXAmpHtml { get; set; } + + /// + /// Email body content parts for multipart mime message. Will override body. + /// + /// Email body content parts for multipart mime message. Will override body. + [DataMember(Name = "bodyParts", EmitDefaultValue = true)] + public List BodyParts { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SendEmailOptions {\n"); + sb.Append(" ToContacts: ").Append(ToContacts).Append("\n"); + sb.Append(" ToGroup: ").Append(ToGroup).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Cc: ").Append(Cc).Append("\n"); + sb.Append(" Bcc: ").Append(Bcc).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" ReplyTo: ").Append(ReplyTo).Append("\n"); + sb.Append(" CustomHeaders: ").Append(CustomHeaders).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Html: ").Append(Html).Append("\n"); + sb.Append(" IsHTML: ").Append(IsHTML).Append("\n"); + sb.Append(" Charset: ").Append(Charset).Append("\n"); + sb.Append(" Attachments: ").Append(Attachments).Append("\n"); + sb.Append(" TemplateVariables: ").Append(TemplateVariables).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" SendStrategy: ").Append(SendStrategy).Append("\n"); + sb.Append(" UseInboxName: ").Append(UseInboxName).Append("\n"); + sb.Append(" AddTrackingPixel: ").Append(AddTrackingPixel).Append("\n"); + sb.Append(" FilterBouncedRecipients: ").Append(FilterBouncedRecipients).Append("\n"); + sb.Append(" ValidateEmailAddresses: ").Append(ValidateEmailAddresses).Append("\n"); + sb.Append(" IgnoreEmptyRecipients: ").Append(IgnoreEmptyRecipients).Append("\n"); + sb.Append(" IsXAmpHtml: ").Append(IsXAmpHtml).Append("\n"); + sb.Append(" BodyParts: ").Append(BodyParts).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SendEmailOptions); + } + + /// + /// Returns true if SendEmailOptions instances are equal + /// + /// Instance of SendEmailOptions to be compared + /// Boolean + public bool Equals(SendEmailOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.ToContacts == input.ToContacts || + this.ToContacts != null && + input.ToContacts != null && + this.ToContacts.SequenceEqual(input.ToContacts) + ) && + ( + this.ToGroup == input.ToGroup || + (this.ToGroup != null && + this.ToGroup.Equals(input.ToGroup)) + ) && + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.Cc == input.Cc || + this.Cc != null && + input.Cc != null && + this.Cc.SequenceEqual(input.Cc) + ) && + ( + this.Bcc == input.Bcc || + this.Bcc != null && + input.Bcc != null && + this.Bcc.SequenceEqual(input.Bcc) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.ReplyTo == input.ReplyTo || + (this.ReplyTo != null && + this.ReplyTo.Equals(input.ReplyTo)) + ) && + ( + this.CustomHeaders == input.CustomHeaders || + this.CustomHeaders != null && + input.CustomHeaders != null && + this.CustomHeaders.SequenceEqual(input.CustomHeaders) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.Html == input.Html || + (this.Html != null && + this.Html.Equals(input.Html)) + ) && + ( + this.IsHTML == input.IsHTML || + (this.IsHTML != null && + this.IsHTML.Equals(input.IsHTML)) + ) && + ( + this.Charset == input.Charset || + (this.Charset != null && + this.Charset.Equals(input.Charset)) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.TemplateVariables == input.TemplateVariables || + this.TemplateVariables != null && + input.TemplateVariables != null && + this.TemplateVariables.SequenceEqual(input.TemplateVariables) + ) && + ( + this.Template == input.Template || + (this.Template != null && + this.Template.Equals(input.Template)) + ) && + ( + this.SendStrategy == input.SendStrategy || + this.SendStrategy.Equals(input.SendStrategy) + ) && + ( + this.UseInboxName == input.UseInboxName || + (this.UseInboxName != null && + this.UseInboxName.Equals(input.UseInboxName)) + ) && + ( + this.AddTrackingPixel == input.AddTrackingPixel || + (this.AddTrackingPixel != null && + this.AddTrackingPixel.Equals(input.AddTrackingPixel)) + ) && + ( + this.FilterBouncedRecipients == input.FilterBouncedRecipients || + (this.FilterBouncedRecipients != null && + this.FilterBouncedRecipients.Equals(input.FilterBouncedRecipients)) + ) && + ( + this.ValidateEmailAddresses == input.ValidateEmailAddresses || + this.ValidateEmailAddresses.Equals(input.ValidateEmailAddresses) + ) && + ( + this.IgnoreEmptyRecipients == input.IgnoreEmptyRecipients || + (this.IgnoreEmptyRecipients != null && + this.IgnoreEmptyRecipients.Equals(input.IgnoreEmptyRecipients)) + ) && + ( + this.IsXAmpHtml == input.IsXAmpHtml || + (this.IsXAmpHtml != null && + this.IsXAmpHtml.Equals(input.IsXAmpHtml)) + ) && + ( + this.BodyParts == input.BodyParts || + this.BodyParts != null && + input.BodyParts != null && + this.BodyParts.SequenceEqual(input.BodyParts) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ToContacts != null) + { + hashCode = (hashCode * 59) + this.ToContacts.GetHashCode(); + } + if (this.ToGroup != null) + { + hashCode = (hashCode * 59) + this.ToGroup.GetHashCode(); + } + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.Cc != null) + { + hashCode = (hashCode * 59) + this.Cc.GetHashCode(); + } + if (this.Bcc != null) + { + hashCode = (hashCode * 59) + this.Bcc.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.ReplyTo != null) + { + hashCode = (hashCode * 59) + this.ReplyTo.GetHashCode(); + } + if (this.CustomHeaders != null) + { + hashCode = (hashCode * 59) + this.CustomHeaders.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + if (this.Html != null) + { + hashCode = (hashCode * 59) + this.Html.GetHashCode(); + } + if (this.IsHTML != null) + { + hashCode = (hashCode * 59) + this.IsHTML.GetHashCode(); + } + if (this.Charset != null) + { + hashCode = (hashCode * 59) + this.Charset.GetHashCode(); + } + if (this.Attachments != null) + { + hashCode = (hashCode * 59) + this.Attachments.GetHashCode(); + } + if (this.TemplateVariables != null) + { + hashCode = (hashCode * 59) + this.TemplateVariables.GetHashCode(); + } + if (this.Template != null) + { + hashCode = (hashCode * 59) + this.Template.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SendStrategy.GetHashCode(); + if (this.UseInboxName != null) + { + hashCode = (hashCode * 59) + this.UseInboxName.GetHashCode(); + } + if (this.AddTrackingPixel != null) + { + hashCode = (hashCode * 59) + this.AddTrackingPixel.GetHashCode(); + } + if (this.FilterBouncedRecipients != null) + { + hashCode = (hashCode * 59) + this.FilterBouncedRecipients.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ValidateEmailAddresses.GetHashCode(); + if (this.IgnoreEmptyRecipients != null) + { + hashCode = (hashCode * 59) + this.IgnoreEmptyRecipients.GetHashCode(); + } + if (this.IsXAmpHtml != null) + { + hashCode = (hashCode * 59) + this.IsXAmpHtml.GetHashCode(); + } + if (this.BodyParts != null) + { + hashCode = (hashCode * 59) + this.BodyParts.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SendSMTPEnvelopeOptions.cs b/src/mailslurp_netstandard_2x/Model/SendSMTPEnvelopeOptions.cs new file mode 100644 index 00000000..0d2fd658 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SendSMTPEnvelopeOptions.cs @@ -0,0 +1,186 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for the email envelope + /// + [DataContract(Name = "SendSMTPEnvelopeOptions")] + public partial class SendSMTPEnvelopeOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SendSMTPEnvelopeOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// rcptTo (required). + /// mailFrom (required). + /// data (required). + public SendSMTPEnvelopeOptions(List rcptTo = default(List), string mailFrom = default(string), string data = default(string)) + { + // to ensure "rcptTo" is required (not null) + if (rcptTo == null) + { + throw new ArgumentNullException("rcptTo is a required property for SendSMTPEnvelopeOptions and cannot be null"); + } + this.RcptTo = rcptTo; + // to ensure "mailFrom" is required (not null) + if (mailFrom == null) + { + throw new ArgumentNullException("mailFrom is a required property for SendSMTPEnvelopeOptions and cannot be null"); + } + this.MailFrom = mailFrom; + // to ensure "data" is required (not null) + if (data == null) + { + throw new ArgumentNullException("data is a required property for SendSMTPEnvelopeOptions and cannot be null"); + } + this.Data = data; + } + + /// + /// Gets or Sets RcptTo + /// + [DataMember(Name = "rcptTo", IsRequired = true, EmitDefaultValue = true)] + public List RcptTo { get; set; } + + /// + /// Gets or Sets MailFrom + /// + [DataMember(Name = "mailFrom", IsRequired = true, EmitDefaultValue = true)] + public string MailFrom { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = true)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SendSMTPEnvelopeOptions {\n"); + sb.Append(" RcptTo: ").Append(RcptTo).Append("\n"); + sb.Append(" MailFrom: ").Append(MailFrom).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SendSMTPEnvelopeOptions); + } + + /// + /// Returns true if SendSMTPEnvelopeOptions instances are equal + /// + /// Instance of SendSMTPEnvelopeOptions to be compared + /// Boolean + public bool Equals(SendSMTPEnvelopeOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.RcptTo == input.RcptTo || + this.RcptTo != null && + input.RcptTo != null && + this.RcptTo.SequenceEqual(input.RcptTo) + ) && + ( + this.MailFrom == input.MailFrom || + (this.MailFrom != null && + this.MailFrom.Equals(input.MailFrom)) + ) && + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RcptTo != null) + { + hashCode = (hashCode * 59) + this.RcptTo.GetHashCode(); + } + if (this.MailFrom != null) + { + hashCode = (hashCode * 59) + this.MailFrom.GetHashCode(); + } + if (this.Data != null) + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SendWithQueueResult.cs b/src/mailslurp_netstandard_2x/Model/SendWithQueueResult.cs new file mode 100644 index 00000000..f2c34695 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SendWithQueueResult.cs @@ -0,0 +1,297 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// SendWithQueueResult + /// + [DataContract(Name = "SendWithQueueResult")] + public partial class SendWithQueueResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SendWithQueueResult() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// subject. + /// inboxId. + /// headerId (required). + /// delivered (required). + /// exceptionName. + /// message. + /// createdAt (required). + /// updatedAt (required). + public SendWithQueueResult(Guid id = default(Guid), Guid userId = default(Guid), string subject = default(string), Guid inboxId = default(Guid), string headerId = default(string), bool delivered = default(bool), string exceptionName = default(string), string message = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + this.Id = id; + this.UserId = userId; + // to ensure "headerId" is required (not null) + if (headerId == null) + { + throw new ArgumentNullException("headerId is a required property for SendWithQueueResult and cannot be null"); + } + this.HeaderId = headerId; + this.Delivered = delivered; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Subject = subject; + this.InboxId = inboxId; + this.ExceptionName = exceptionName; + this.Message = message; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = false)] + public string Subject { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = false)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets HeaderId + /// + [DataMember(Name = "headerId", IsRequired = true, EmitDefaultValue = true)] + public string HeaderId { get; set; } + + /// + /// Gets or Sets Delivered + /// + [DataMember(Name = "delivered", IsRequired = true, EmitDefaultValue = true)] + public bool Delivered { get; set; } + + /// + /// Gets or Sets ExceptionName + /// + [DataMember(Name = "exceptionName", EmitDefaultValue = false)] + public string ExceptionName { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SendWithQueueResult {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" HeaderId: ").Append(HeaderId).Append("\n"); + sb.Append(" Delivered: ").Append(Delivered).Append("\n"); + sb.Append(" ExceptionName: ").Append(ExceptionName).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SendWithQueueResult); + } + + /// + /// Returns true if SendWithQueueResult instances are equal + /// + /// Instance of SendWithQueueResult to be compared + /// Boolean + public bool Equals(SendWithQueueResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.HeaderId == input.HeaderId || + (this.HeaderId != null && + this.HeaderId.Equals(input.HeaderId)) + ) && + ( + this.Delivered == input.Delivered || + this.Delivered.Equals(input.Delivered) + ) && + ( + this.ExceptionName == input.ExceptionName || + (this.ExceptionName != null && + this.ExceptionName.Equals(input.ExceptionName)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.HeaderId != null) + { + hashCode = (hashCode * 59) + this.HeaderId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Delivered.GetHashCode(); + if (this.ExceptionName != null) + { + hashCode = (hashCode * 59) + this.ExceptionName.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/Sender.cs b/src/mailslurp_netstandard_2x/Model/Sender.cs new file mode 100644 index 00000000..3c1fe716 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/Sender.cs @@ -0,0 +1,180 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Sender object containing from email address and from personal name if provided in address + /// + [DataContract(Name = "Sender")] + public partial class Sender : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Sender() { } + /// + /// Initializes a new instance of the class. + /// + /// rawValue (required). + /// emailAddress (required). + /// name. + public Sender(string rawValue = default(string), string emailAddress = default(string), string name = default(string)) + { + // to ensure "rawValue" is required (not null) + if (rawValue == null) + { + throw new ArgumentNullException("rawValue is a required property for Sender and cannot be null"); + } + this.RawValue = rawValue; + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for Sender and cannot be null"); + } + this.EmailAddress = emailAddress; + this.Name = name; + } + + /// + /// Gets or Sets RawValue + /// + [DataMember(Name = "rawValue", IsRequired = true, EmitDefaultValue = true)] + public string RawValue { get; set; } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Sender {\n"); + sb.Append(" RawValue: ").Append(RawValue).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Sender); + } + + /// + /// Returns true if Sender instances are equal + /// + /// Instance of Sender to be compared + /// Boolean + public bool Equals(Sender input) + { + if (input == null) + { + return false; + } + return + ( + this.RawValue == input.RawValue || + (this.RawValue != null && + this.RawValue.Equals(input.RawValue)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RawValue != null) + { + hashCode = (hashCode * 59) + this.RawValue.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SentEmailDto.cs b/src/mailslurp_netstandard_2x/Model/SentEmailDto.cs new file mode 100644 index 00000000..e79d1810 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SentEmailDto.cs @@ -0,0 +1,598 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Sent email details + /// + [DataContract(Name = "SentEmailDto")] + public partial class SentEmailDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SentEmailDto() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of sent email (required). + /// User ID (required). + /// Inbox ID email was sent from (required). + /// Domain ID. + /// Recipients email was sent to. + /// Sent from address. + /// replyTo. + /// cc. + /// bcc. + /// Array of IDs of attachments that were sent with this email. + /// subject. + /// MD5 Hash. + /// Sent email body. + /// toContacts. + /// toGroup. + /// charset. + /// isHTML. + /// sentAt (required). + /// pixelIds. + /// messageId. + /// messageIds. + /// virtualSend. + /// templateId. + /// templateVariables. + /// headers. + /// html. + public SentEmailDto(Guid id = default(Guid), Guid userId = default(Guid), Guid inboxId = default(Guid), Guid? domainId = default(Guid?), List to = default(List), string from = default(string), string replyTo = default(string), List cc = default(List), List bcc = default(List), List attachments = default(List), string subject = default(string), string bodyMD5Hash = default(string), string body = default(string), List toContacts = default(List), Guid? toGroup = default(Guid?), string charset = default(string), bool? isHTML = default(bool?), DateTime sentAt = default(DateTime), List pixelIds = default(List), string messageId = default(string), List messageIds = default(List), bool? virtualSend = default(bool?), Guid? templateId = default(Guid?), Dictionary templateVariables = default(Dictionary), Dictionary headers = default(Dictionary), bool html = default(bool)) + { + this.Id = id; + this.UserId = userId; + this.InboxId = inboxId; + this.SentAt = sentAt; + this.DomainId = domainId; + this.To = to; + this.From = from; + this.ReplyTo = replyTo; + this.Cc = cc; + this.Bcc = bcc; + this.Attachments = attachments; + this.Subject = subject; + this.BodyMD5Hash = bodyMD5Hash; + this.Body = body; + this.ToContacts = toContacts; + this.ToGroup = toGroup; + this.Charset = charset; + this.IsHTML = isHTML; + this.PixelIds = pixelIds; + this.MessageId = messageId; + this.MessageIds = messageIds; + this.VirtualSend = virtualSend; + this.TemplateId = templateId; + this.TemplateVariables = templateVariables; + this.Headers = headers; + this.Html = html; + } + + /// + /// ID of sent email + /// + /// ID of sent email + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// User ID + /// + /// User ID + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Inbox ID email was sent from + /// + /// Inbox ID email was sent from + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Domain ID + /// + /// Domain ID + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// Recipients email was sent to + /// + /// Recipients email was sent to + [DataMember(Name = "to", EmitDefaultValue = true)] + public List To { get; set; } + + /// + /// Sent from address + /// + /// Sent from address + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Gets or Sets ReplyTo + /// + [DataMember(Name = "replyTo", EmitDefaultValue = true)] + public string ReplyTo { get; set; } + + /// + /// Gets or Sets Cc + /// + [DataMember(Name = "cc", EmitDefaultValue = true)] + public List Cc { get; set; } + + /// + /// Gets or Sets Bcc + /// + [DataMember(Name = "bcc", EmitDefaultValue = true)] + public List Bcc { get; set; } + + /// + /// Array of IDs of attachments that were sent with this email + /// + /// Array of IDs of attachments that were sent with this email + [DataMember(Name = "attachments", EmitDefaultValue = true)] + public List Attachments { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// MD5 Hash + /// + /// MD5 Hash + [DataMember(Name = "bodyMD5Hash", EmitDefaultValue = true)] + public string BodyMD5Hash { get; set; } + + /// + /// Sent email body + /// + /// Sent email body + [DataMember(Name = "body", EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Gets or Sets ToContacts + /// + [DataMember(Name = "toContacts", EmitDefaultValue = true)] + public List ToContacts { get; set; } + + /// + /// Gets or Sets ToGroup + /// + [DataMember(Name = "toGroup", EmitDefaultValue = true)] + public Guid? ToGroup { get; set; } + + /// + /// Gets or Sets Charset + /// + [DataMember(Name = "charset", EmitDefaultValue = true)] + public string Charset { get; set; } + + /// + /// Gets or Sets IsHTML + /// + [DataMember(Name = "isHTML", EmitDefaultValue = true)] + public bool? IsHTML { get; set; } + + /// + /// Gets or Sets SentAt + /// + [DataMember(Name = "sentAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime SentAt { get; set; } + + /// + /// Gets or Sets PixelIds + /// + [DataMember(Name = "pixelIds", EmitDefaultValue = true)] + public List PixelIds { get; set; } + + /// + /// Gets or Sets MessageId + /// + [DataMember(Name = "messageId", EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// Gets or Sets MessageIds + /// + [DataMember(Name = "messageIds", EmitDefaultValue = true)] + public List MessageIds { get; set; } + + /// + /// Gets or Sets VirtualSend + /// + [DataMember(Name = "virtualSend", EmitDefaultValue = true)] + public bool? VirtualSend { get; set; } + + /// + /// Gets or Sets TemplateId + /// + [DataMember(Name = "templateId", EmitDefaultValue = true)] + public Guid? TemplateId { get; set; } + + /// + /// Gets or Sets TemplateVariables + /// + [DataMember(Name = "templateVariables", EmitDefaultValue = true)] + public Dictionary TemplateVariables { get; set; } + + /// + /// Gets or Sets Headers + /// + [DataMember(Name = "headers", EmitDefaultValue = true)] + public Dictionary Headers { get; set; } + + /// + /// Gets or Sets Html + /// + [DataMember(Name = "html", EmitDefaultValue = true)] + public bool Html { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SentEmailDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" ReplyTo: ").Append(ReplyTo).Append("\n"); + sb.Append(" Cc: ").Append(Cc).Append("\n"); + sb.Append(" Bcc: ").Append(Bcc).Append("\n"); + sb.Append(" Attachments: ").Append(Attachments).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" BodyMD5Hash: ").Append(BodyMD5Hash).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" ToContacts: ").Append(ToContacts).Append("\n"); + sb.Append(" ToGroup: ").Append(ToGroup).Append("\n"); + sb.Append(" Charset: ").Append(Charset).Append("\n"); + sb.Append(" IsHTML: ").Append(IsHTML).Append("\n"); + sb.Append(" SentAt: ").Append(SentAt).Append("\n"); + sb.Append(" PixelIds: ").Append(PixelIds).Append("\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" MessageIds: ").Append(MessageIds).Append("\n"); + sb.Append(" VirtualSend: ").Append(VirtualSend).Append("\n"); + sb.Append(" TemplateId: ").Append(TemplateId).Append("\n"); + sb.Append(" TemplateVariables: ").Append(TemplateVariables).Append("\n"); + sb.Append(" Headers: ").Append(Headers).Append("\n"); + sb.Append(" Html: ").Append(Html).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SentEmailDto); + } + + /// + /// Returns true if SentEmailDto instances are equal + /// + /// Instance of SentEmailDto to be compared + /// Boolean + public bool Equals(SentEmailDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.ReplyTo == input.ReplyTo || + (this.ReplyTo != null && + this.ReplyTo.Equals(input.ReplyTo)) + ) && + ( + this.Cc == input.Cc || + this.Cc != null && + input.Cc != null && + this.Cc.SequenceEqual(input.Cc) + ) && + ( + this.Bcc == input.Bcc || + this.Bcc != null && + input.Bcc != null && + this.Bcc.SequenceEqual(input.Bcc) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.BodyMD5Hash == input.BodyMD5Hash || + (this.BodyMD5Hash != null && + this.BodyMD5Hash.Equals(input.BodyMD5Hash)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.ToContacts == input.ToContacts || + this.ToContacts != null && + input.ToContacts != null && + this.ToContacts.SequenceEqual(input.ToContacts) + ) && + ( + this.ToGroup == input.ToGroup || + (this.ToGroup != null && + this.ToGroup.Equals(input.ToGroup)) + ) && + ( + this.Charset == input.Charset || + (this.Charset != null && + this.Charset.Equals(input.Charset)) + ) && + ( + this.IsHTML == input.IsHTML || + (this.IsHTML != null && + this.IsHTML.Equals(input.IsHTML)) + ) && + ( + this.SentAt == input.SentAt || + (this.SentAt != null && + this.SentAt.Equals(input.SentAt)) + ) && + ( + this.PixelIds == input.PixelIds || + this.PixelIds != null && + input.PixelIds != null && + this.PixelIds.SequenceEqual(input.PixelIds) + ) && + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.MessageIds == input.MessageIds || + this.MessageIds != null && + input.MessageIds != null && + this.MessageIds.SequenceEqual(input.MessageIds) + ) && + ( + this.VirtualSend == input.VirtualSend || + (this.VirtualSend != null && + this.VirtualSend.Equals(input.VirtualSend)) + ) && + ( + this.TemplateId == input.TemplateId || + (this.TemplateId != null && + this.TemplateId.Equals(input.TemplateId)) + ) && + ( + this.TemplateVariables == input.TemplateVariables || + this.TemplateVariables != null && + input.TemplateVariables != null && + this.TemplateVariables.SequenceEqual(input.TemplateVariables) + ) && + ( + this.Headers == input.Headers || + this.Headers != null && + input.Headers != null && + this.Headers.SequenceEqual(input.Headers) + ) && + ( + this.Html == input.Html || + this.Html.Equals(input.Html) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.ReplyTo != null) + { + hashCode = (hashCode * 59) + this.ReplyTo.GetHashCode(); + } + if (this.Cc != null) + { + hashCode = (hashCode * 59) + this.Cc.GetHashCode(); + } + if (this.Bcc != null) + { + hashCode = (hashCode * 59) + this.Bcc.GetHashCode(); + } + if (this.Attachments != null) + { + hashCode = (hashCode * 59) + this.Attachments.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.BodyMD5Hash != null) + { + hashCode = (hashCode * 59) + this.BodyMD5Hash.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + if (this.ToContacts != null) + { + hashCode = (hashCode * 59) + this.ToContacts.GetHashCode(); + } + if (this.ToGroup != null) + { + hashCode = (hashCode * 59) + this.ToGroup.GetHashCode(); + } + if (this.Charset != null) + { + hashCode = (hashCode * 59) + this.Charset.GetHashCode(); + } + if (this.IsHTML != null) + { + hashCode = (hashCode * 59) + this.IsHTML.GetHashCode(); + } + if (this.SentAt != null) + { + hashCode = (hashCode * 59) + this.SentAt.GetHashCode(); + } + if (this.PixelIds != null) + { + hashCode = (hashCode * 59) + this.PixelIds.GetHashCode(); + } + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.MessageIds != null) + { + hashCode = (hashCode * 59) + this.MessageIds.GetHashCode(); + } + if (this.VirtualSend != null) + { + hashCode = (hashCode * 59) + this.VirtualSend.GetHashCode(); + } + if (this.TemplateId != null) + { + hashCode = (hashCode * 59) + this.TemplateId.GetHashCode(); + } + if (this.TemplateVariables != null) + { + hashCode = (hashCode * 59) + this.TemplateVariables.GetHashCode(); + } + if (this.Headers != null) + { + hashCode = (hashCode * 59) + this.Headers.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Html.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SentEmailProjection.cs b/src/mailslurp_netstandard_2x/Model/SentEmailProjection.cs new file mode 100644 index 00000000..d78345d7 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SentEmailProjection.cs @@ -0,0 +1,352 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// SentEmailProjection + /// + [DataContract(Name = "SentEmailProjection")] + public partial class SentEmailProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SentEmailProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// from. + /// subject. + /// attachments (required). + /// inboxId (required). + /// userId (required). + /// to (required). + /// bcc (required). + /// cc (required). + /// createdAt (required). + /// bodyMD5Hash. + /// virtualSend (required). + public SentEmailProjection(Guid id = default(Guid), string from = default(string), string subject = default(string), List attachments = default(List), Guid inboxId = default(Guid), Guid userId = default(Guid), List to = default(List), List bcc = default(List), List cc = default(List), DateTime createdAt = default(DateTime), string bodyMD5Hash = default(string), bool virtualSend = default(bool)) + { + this.Id = id; + // to ensure "attachments" is required (not null) + if (attachments == null) + { + throw new ArgumentNullException("attachments is a required property for SentEmailProjection and cannot be null"); + } + this.Attachments = attachments; + this.InboxId = inboxId; + this.UserId = userId; + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for SentEmailProjection and cannot be null"); + } + this.To = to; + // to ensure "bcc" is required (not null) + if (bcc == null) + { + throw new ArgumentNullException("bcc is a required property for SentEmailProjection and cannot be null"); + } + this.Bcc = bcc; + // to ensure "cc" is required (not null) + if (cc == null) + { + throw new ArgumentNullException("cc is a required property for SentEmailProjection and cannot be null"); + } + this.Cc = cc; + this.CreatedAt = createdAt; + this.VirtualSend = virtualSend; + this.From = from; + this.Subject = subject; + this.BodyMD5Hash = bodyMD5Hash; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets From + /// + [DataMember(Name = "from", EmitDefaultValue = false)] + public string From { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = false)] + public string Subject { get; set; } + + /// + /// Gets or Sets Attachments + /// + [DataMember(Name = "attachments", IsRequired = true, EmitDefaultValue = true)] + public List Attachments { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets To + /// + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public List To { get; set; } + + /// + /// Gets or Sets Bcc + /// + [DataMember(Name = "bcc", IsRequired = true, EmitDefaultValue = true)] + public List Bcc { get; set; } + + /// + /// Gets or Sets Cc + /// + [DataMember(Name = "cc", IsRequired = true, EmitDefaultValue = true)] + public List Cc { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets BodyMD5Hash + /// + [DataMember(Name = "bodyMD5Hash", EmitDefaultValue = false)] + public string BodyMD5Hash { get; set; } + + /// + /// Gets or Sets VirtualSend + /// + [DataMember(Name = "virtualSend", IsRequired = true, EmitDefaultValue = true)] + public bool VirtualSend { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SentEmailProjection {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Attachments: ").Append(Attachments).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Bcc: ").Append(Bcc).Append("\n"); + sb.Append(" Cc: ").Append(Cc).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" BodyMD5Hash: ").Append(BodyMD5Hash).Append("\n"); + sb.Append(" VirtualSend: ").Append(VirtualSend).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SentEmailProjection); + } + + /// + /// Returns true if SentEmailProjection instances are equal + /// + /// Instance of SentEmailProjection to be compared + /// Boolean + public bool Equals(SentEmailProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.Bcc == input.Bcc || + this.Bcc != null && + input.Bcc != null && + this.Bcc.SequenceEqual(input.Bcc) + ) && + ( + this.Cc == input.Cc || + this.Cc != null && + input.Cc != null && + this.Cc.SequenceEqual(input.Cc) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.BodyMD5Hash == input.BodyMD5Hash || + (this.BodyMD5Hash != null && + this.BodyMD5Hash.Equals(input.BodyMD5Hash)) + ) && + ( + this.VirtualSend == input.VirtualSend || + this.VirtualSend.Equals(input.VirtualSend) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Attachments != null) + { + hashCode = (hashCode * 59) + this.Attachments.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.Bcc != null) + { + hashCode = (hashCode * 59) + this.Bcc.GetHashCode(); + } + if (this.Cc != null) + { + hashCode = (hashCode * 59) + this.Cc.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.BodyMD5Hash != null) + { + hashCode = (hashCode * 59) + this.BodyMD5Hash.GetHashCode(); + } + hashCode = (hashCode * 59) + this.VirtualSend.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SentSmsDto.cs b/src/mailslurp_netstandard_2x/Model/SentSmsDto.cs new file mode 100644 index 00000000..931fdeab --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SentSmsDto.cs @@ -0,0 +1,339 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// SentSmsDto + /// + [DataContract(Name = "SentSmsDto")] + public partial class SentSmsDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SentSmsDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// phoneNumber (required). + /// fromNumber (required). + /// toNumber (required). + /// body (required). + /// sid (required). + /// replyToSid (required). + /// replyToId (required). + /// createdAt (required). + /// updatedAt (required). + public SentSmsDto(Guid id = default(Guid), Guid userId = default(Guid), Guid phoneNumber = default(Guid), string fromNumber = default(string), string toNumber = default(string), string body = default(string), string sid = default(string), string replyToSid = default(string), Guid replyToId = default(Guid), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + this.Id = id; + this.UserId = userId; + this.PhoneNumber = phoneNumber; + // to ensure "fromNumber" is required (not null) + if (fromNumber == null) + { + throw new ArgumentNullException("fromNumber is a required property for SentSmsDto and cannot be null"); + } + this.FromNumber = fromNumber; + // to ensure "toNumber" is required (not null) + if (toNumber == null) + { + throw new ArgumentNullException("toNumber is a required property for SentSmsDto and cannot be null"); + } + this.ToNumber = toNumber; + // to ensure "body" is required (not null) + if (body == null) + { + throw new ArgumentNullException("body is a required property for SentSmsDto and cannot be null"); + } + this.Body = body; + // to ensure "sid" is required (not null) + if (sid == null) + { + throw new ArgumentNullException("sid is a required property for SentSmsDto and cannot be null"); + } + this.Sid = sid; + // to ensure "replyToSid" is required (not null) + if (replyToSid == null) + { + throw new ArgumentNullException("replyToSid is a required property for SentSmsDto and cannot be null"); + } + this.ReplyToSid = replyToSid; + this.ReplyToId = replyToId; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets PhoneNumber + /// + [DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)] + public Guid PhoneNumber { get; set; } + + /// + /// Gets or Sets FromNumber + /// + [DataMember(Name = "fromNumber", IsRequired = true, EmitDefaultValue = true)] + public string FromNumber { get; set; } + + /// + /// Gets or Sets ToNumber + /// + [DataMember(Name = "toNumber", IsRequired = true, EmitDefaultValue = true)] + public string ToNumber { get; set; } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Gets or Sets Sid + /// + [DataMember(Name = "sid", IsRequired = true, EmitDefaultValue = true)] + public string Sid { get; set; } + + /// + /// Gets or Sets ReplyToSid + /// + [DataMember(Name = "replyToSid", IsRequired = true, EmitDefaultValue = true)] + public string ReplyToSid { get; set; } + + /// + /// Gets or Sets ReplyToId + /// + [DataMember(Name = "replyToId", IsRequired = true, EmitDefaultValue = true)] + public Guid ReplyToId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SentSmsDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" FromNumber: ").Append(FromNumber).Append("\n"); + sb.Append(" ToNumber: ").Append(ToNumber).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Sid: ").Append(Sid).Append("\n"); + sb.Append(" ReplyToSid: ").Append(ReplyToSid).Append("\n"); + sb.Append(" ReplyToId: ").Append(ReplyToId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SentSmsDto); + } + + /// + /// Returns true if SentSmsDto instances are equal + /// + /// Instance of SentSmsDto to be compared + /// Boolean + public bool Equals(SentSmsDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.FromNumber == input.FromNumber || + (this.FromNumber != null && + this.FromNumber.Equals(input.FromNumber)) + ) && + ( + this.ToNumber == input.ToNumber || + (this.ToNumber != null && + this.ToNumber.Equals(input.ToNumber)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.Sid == input.Sid || + (this.Sid != null && + this.Sid.Equals(input.Sid)) + ) && + ( + this.ReplyToSid == input.ReplyToSid || + (this.ReplyToSid != null && + this.ReplyToSid.Equals(input.ReplyToSid)) + ) && + ( + this.ReplyToId == input.ReplyToId || + (this.ReplyToId != null && + this.ReplyToId.Equals(input.ReplyToId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.PhoneNumber != null) + { + hashCode = (hashCode * 59) + this.PhoneNumber.GetHashCode(); + } + if (this.FromNumber != null) + { + hashCode = (hashCode * 59) + this.FromNumber.GetHashCode(); + } + if (this.ToNumber != null) + { + hashCode = (hashCode * 59) + this.ToNumber.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + if (this.Sid != null) + { + hashCode = (hashCode * 59) + this.Sid.GetHashCode(); + } + if (this.ReplyToSid != null) + { + hashCode = (hashCode * 59) + this.ReplyToSid.GetHashCode(); + } + if (this.ReplyToId != null) + { + hashCode = (hashCode * 59) + this.ReplyToId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ServerEndpoints.cs b/src/mailslurp_netstandard_2x/Model/ServerEndpoints.cs new file mode 100644 index 00000000..2961e1ce --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ServerEndpoints.cs @@ -0,0 +1,191 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// ServerEndpoints + /// + [DataContract(Name = "ServerEndpoints")] + public partial class ServerEndpoints : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ServerEndpoints() { } + /// + /// Initializes a new instance of the class. + /// + /// host (required). + /// port (required). + /// tls (required). + /// altPorts (required). + public ServerEndpoints(string host = default(string), int port = default(int), bool tls = default(bool), List altPorts = default(List)) + { + // to ensure "host" is required (not null) + if (host == null) + { + throw new ArgumentNullException("host is a required property for ServerEndpoints and cannot be null"); + } + this.Host = host; + this.Port = port; + this.Tls = tls; + // to ensure "altPorts" is required (not null) + if (altPorts == null) + { + throw new ArgumentNullException("altPorts is a required property for ServerEndpoints and cannot be null"); + } + this.AltPorts = altPorts; + } + + /// + /// Gets or Sets Host + /// + [DataMember(Name = "host", IsRequired = true, EmitDefaultValue = true)] + public string Host { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", IsRequired = true, EmitDefaultValue = true)] + public int Port { get; set; } + + /// + /// Gets or Sets Tls + /// + [DataMember(Name = "tls", IsRequired = true, EmitDefaultValue = true)] + public bool Tls { get; set; } + + /// + /// Gets or Sets AltPorts + /// + [DataMember(Name = "altPorts", IsRequired = true, EmitDefaultValue = true)] + public List AltPorts { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ServerEndpoints {\n"); + sb.Append(" Host: ").Append(Host).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Tls: ").Append(Tls).Append("\n"); + sb.Append(" AltPorts: ").Append(AltPorts).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ServerEndpoints); + } + + /// + /// Returns true if ServerEndpoints instances are equal + /// + /// Instance of ServerEndpoints to be compared + /// Boolean + public bool Equals(ServerEndpoints input) + { + if (input == null) + { + return false; + } + return + ( + this.Host == input.Host || + (this.Host != null && + this.Host.Equals(input.Host)) + ) && + ( + this.Port == input.Port || + this.Port.Equals(input.Port) + ) && + ( + this.Tls == input.Tls || + this.Tls.Equals(input.Tls) + ) && + ( + this.AltPorts == input.AltPorts || + this.AltPorts != null && + input.AltPorts != null && + this.AltPorts.SequenceEqual(input.AltPorts) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Host != null) + { + hashCode = (hashCode * 59) + this.Host.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Port.GetHashCode(); + hashCode = (hashCode * 59) + this.Tls.GetHashCode(); + if (this.AltPorts != null) + { + hashCode = (hashCode * 59) + this.AltPorts.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SetInboxFavouritedOptions.cs b/src/mailslurp_netstandard_2x/Model/SetInboxFavouritedOptions.cs new file mode 100644 index 00000000..3e91388a --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SetInboxFavouritedOptions.cs @@ -0,0 +1,131 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for setting inbox favourite state + /// + [DataContract(Name = "SetInboxFavouritedOptions")] + public partial class SetInboxFavouritedOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SetInboxFavouritedOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (required). + public SetInboxFavouritedOptions(bool state = default(bool)) + { + this.State = state; + } + + /// + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering + /// + /// Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public bool State { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SetInboxFavouritedOptions {\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SetInboxFavouritedOptions); + } + + /// + /// Returns true if SetInboxFavouritedOptions instances are equal + /// + /// Instance of SetInboxFavouritedOptions to be compared + /// Boolean + public bool Equals(SetInboxFavouritedOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.State == input.State || + this.State.Equals(input.State) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.State.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SimpleSendEmailOptions.cs b/src/mailslurp_netstandard_2x/Model/SimpleSendEmailOptions.cs new file mode 100644 index 00000000..d1f56550 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SimpleSendEmailOptions.cs @@ -0,0 +1,197 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Simplified send email options + /// + [DataContract(Name = "SimpleSendEmailOptions")] + public partial class SimpleSendEmailOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SimpleSendEmailOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of inbox to send from. If null an inbox will be created for sending. + /// Email address to send to (required). + /// Body of the email message. Supports HTML. + /// Subject line of the email. + public SimpleSendEmailOptions(Guid? senderId = default(Guid?), string to = default(string), string body = default(string), string subject = default(string)) + { + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for SimpleSendEmailOptions and cannot be null"); + } + this.To = to; + this.SenderId = senderId; + this.Body = body; + this.Subject = subject; + } + + /// + /// ID of inbox to send from. If null an inbox will be created for sending + /// + /// ID of inbox to send from. If null an inbox will be created for sending + [DataMember(Name = "senderId", EmitDefaultValue = true)] + public Guid? SenderId { get; set; } + + /// + /// Email address to send to + /// + /// Email address to send to + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public string To { get; set; } + + /// + /// Body of the email message. Supports HTML + /// + /// Body of the email message. Supports HTML + [DataMember(Name = "body", EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Subject line of the email + /// + /// Subject line of the email + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SimpleSendEmailOptions {\n"); + sb.Append(" SenderId: ").Append(SenderId).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SimpleSendEmailOptions); + } + + /// + /// Returns true if SimpleSendEmailOptions instances are equal + /// + /// Instance of SimpleSendEmailOptions to be compared + /// Boolean + public bool Equals(SimpleSendEmailOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.SenderId == input.SenderId || + (this.SenderId != null && + this.SenderId.Equals(input.SenderId)) + ) && + ( + this.To == input.To || + (this.To != null && + this.To.Equals(input.To)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SenderId != null) + { + hashCode = (hashCode * 59) + this.SenderId.GetHashCode(); + } + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SmsDto.cs b/src/mailslurp_netstandard_2x/Model/SmsDto.cs new file mode 100644 index 00000000..1d2992e2 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SmsDto.cs @@ -0,0 +1,266 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// SmsDto + /// + [DataContract(Name = "SmsDto")] + public partial class SmsDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SmsDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// phoneNumber (required). + /// fromNumber (required). + /// body (required). + /// read (required). + /// createdAt (required). + /// updatedAt (required). + public SmsDto(Guid id = default(Guid), Guid userId = default(Guid), Guid phoneNumber = default(Guid), string fromNumber = default(string), string body = default(string), bool read = default(bool), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) + { + this.Id = id; + this.UserId = userId; + this.PhoneNumber = phoneNumber; + // to ensure "fromNumber" is required (not null) + if (fromNumber == null) + { + throw new ArgumentNullException("fromNumber is a required property for SmsDto and cannot be null"); + } + this.FromNumber = fromNumber; + // to ensure "body" is required (not null) + if (body == null) + { + throw new ArgumentNullException("body is a required property for SmsDto and cannot be null"); + } + this.Body = body; + this.Read = read; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets PhoneNumber + /// + [DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)] + public Guid PhoneNumber { get; set; } + + /// + /// Gets or Sets FromNumber + /// + [DataMember(Name = "fromNumber", IsRequired = true, EmitDefaultValue = true)] + public string FromNumber { get; set; } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Gets or Sets Read + /// + [DataMember(Name = "read", IsRequired = true, EmitDefaultValue = true)] + public bool Read { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SmsDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" FromNumber: ").Append(FromNumber).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Read: ").Append(Read).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SmsDto); + } + + /// + /// Returns true if SmsDto instances are equal + /// + /// Instance of SmsDto to be compared + /// Boolean + public bool Equals(SmsDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.FromNumber == input.FromNumber || + (this.FromNumber != null && + this.FromNumber.Equals(input.FromNumber)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.Read == input.Read || + this.Read.Equals(input.Read) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.PhoneNumber != null) + { + hashCode = (hashCode * 59) + this.PhoneNumber.GetHashCode(); + } + if (this.FromNumber != null) + { + hashCode = (hashCode * 59) + this.FromNumber.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Read.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SmsMatchOption.cs b/src/mailslurp_netstandard_2x/Model/SmsMatchOption.cs new file mode 100644 index 00000000..21368a8a --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SmsMatchOption.cs @@ -0,0 +1,218 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for matching SMS messages in a phone number. Each match option object contains a `field`, `should` and `value` property. Together they form logical conditions such as `BODY` should `CONTAIN` value. + /// + [DataContract(Name = "SmsMatchOption")] + public partial class SmsMatchOption : IEquatable, IValidatableObject + { + /// + /// Fields of an SMS object that can be used to filter results + /// + /// Fields of an SMS object that can be used to filter results + [JsonConverter(typeof(StringEnumConverter))] + public enum FieldEnum + { + /// + /// Enum BODY for value: BODY + /// + [EnumMember(Value = "BODY")] + BODY = 1, + + /// + /// Enum FROM for value: FROM + /// + [EnumMember(Value = "FROM")] + FROM = 2 + + } + + + /// + /// Fields of an SMS object that can be used to filter results + /// + /// Fields of an SMS object that can be used to filter results + [DataMember(Name = "field", IsRequired = true, EmitDefaultValue = true)] + public FieldEnum Field { get; set; } + /// + /// How the value of the email field specified should be compared to the value given in the match options. + /// + /// How the value of the email field specified should be compared to the value given in the match options. + [JsonConverter(typeof(StringEnumConverter))] + public enum ShouldEnum + { + /// + /// Enum MATCH for value: MATCH + /// + [EnumMember(Value = "MATCH")] + MATCH = 1, + + /// + /// Enum CONTAIN for value: CONTAIN + /// + [EnumMember(Value = "CONTAIN")] + CONTAIN = 2, + + /// + /// Enum EQUAL for value: EQUAL + /// + [EnumMember(Value = "EQUAL")] + EQUAL = 3 + + } + + + /// + /// How the value of the email field specified should be compared to the value given in the match options. + /// + /// How the value of the email field specified should be compared to the value given in the match options. + [DataMember(Name = "should", IsRequired = true, EmitDefaultValue = true)] + public ShouldEnum Should { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SmsMatchOption() { } + /// + /// Initializes a new instance of the class. + /// + /// Fields of an SMS object that can be used to filter results (required). + /// How the value of the email field specified should be compared to the value given in the match options. (required). + /// The value you wish to compare with the value of the field specified using the `should` value passed. For example `BODY` should `CONTAIN` a value passed. (required). + public SmsMatchOption(FieldEnum field = default(FieldEnum), ShouldEnum should = default(ShouldEnum), string value = default(string)) + { + this.Field = field; + this.Should = should; + // to ensure "value" is required (not null) + if (value == null) + { + throw new ArgumentNullException("value is a required property for SmsMatchOption and cannot be null"); + } + this.Value = value; + } + + /// + /// The value you wish to compare with the value of the field specified using the `should` value passed. For example `BODY` should `CONTAIN` a value passed. + /// + /// The value you wish to compare with the value of the field specified using the `should` value passed. For example `BODY` should `CONTAIN` a value passed. + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SmsMatchOption {\n"); + sb.Append(" Field: ").Append(Field).Append("\n"); + sb.Append(" Should: ").Append(Should).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SmsMatchOption); + } + + /// + /// Returns true if SmsMatchOption instances are equal + /// + /// Instance of SmsMatchOption to be compared + /// Boolean + public bool Equals(SmsMatchOption input) + { + if (input == null) + { + return false; + } + return + ( + this.Field == input.Field || + this.Field.Equals(input.Field) + ) && + ( + this.Should == input.Should || + this.Should.Equals(input.Should) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Field.GetHashCode(); + hashCode = (hashCode * 59) + this.Should.GetHashCode(); + if (this.Value != null) + { + hashCode = (hashCode * 59) + this.Value.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SmsPreview.cs b/src/mailslurp_netstandard_2x/Model/SmsPreview.cs new file mode 100644 index 00000000..859b5cc9 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SmsPreview.cs @@ -0,0 +1,234 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// SmsPreview + /// + [DataContract(Name = "SmsPreview")] + public partial class SmsPreview : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SmsPreview() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// userId (required). + /// body (required). + /// phoneNumber (required). + /// fromNumber (required). + /// createdAt (required). + public SmsPreview(Guid id = default(Guid), Guid userId = default(Guid), string body = default(string), Guid phoneNumber = default(Guid), string fromNumber = default(string), DateTime createdAt = default(DateTime)) + { + this.Id = id; + this.UserId = userId; + // to ensure "body" is required (not null) + if (body == null) + { + throw new ArgumentNullException("body is a required property for SmsPreview and cannot be null"); + } + this.Body = body; + this.PhoneNumber = phoneNumber; + // to ensure "fromNumber" is required (not null) + if (fromNumber == null) + { + throw new ArgumentNullException("fromNumber is a required property for SmsPreview and cannot be null"); + } + this.FromNumber = fromNumber; + this.CreatedAt = createdAt; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Gets or Sets PhoneNumber + /// + [DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)] + public Guid PhoneNumber { get; set; } + + /// + /// Gets or Sets FromNumber + /// + [DataMember(Name = "fromNumber", IsRequired = true, EmitDefaultValue = true)] + public string FromNumber { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SmsPreview {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" FromNumber: ").Append(FromNumber).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SmsPreview); + } + + /// + /// Returns true if SmsPreview instances are equal + /// + /// Instance of SmsPreview to be compared + /// Boolean + public bool Equals(SmsPreview input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.FromNumber == input.FromNumber || + (this.FromNumber != null && + this.FromNumber.Equals(input.FromNumber)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + if (this.PhoneNumber != null) + { + hashCode = (hashCode * 59) + this.PhoneNumber.GetHashCode(); + } + if (this.FromNumber != null) + { + hashCode = (hashCode * 59) + this.FromNumber.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SmsProjection.cs b/src/mailslurp_netstandard_2x/Model/SmsProjection.cs new file mode 100644 index 00000000..9843dddf --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SmsProjection.cs @@ -0,0 +1,248 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// SMS projection + /// + [DataContract(Name = "SmsProjection")] + public partial class SmsProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SmsProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// userId (required). + /// phoneNumber (required). + /// fromNumber (required). + /// read (required). + /// body (required). + /// createdAt (required). + /// id (required). + public SmsProjection(Guid userId = default(Guid), Guid phoneNumber = default(Guid), string fromNumber = default(string), bool read = default(bool), string body = default(string), DateTime createdAt = default(DateTime), Guid id = default(Guid)) + { + this.UserId = userId; + this.PhoneNumber = phoneNumber; + // to ensure "fromNumber" is required (not null) + if (fromNumber == null) + { + throw new ArgumentNullException("fromNumber is a required property for SmsProjection and cannot be null"); + } + this.FromNumber = fromNumber; + this.Read = read; + // to ensure "body" is required (not null) + if (body == null) + { + throw new ArgumentNullException("body is a required property for SmsProjection and cannot be null"); + } + this.Body = body; + this.CreatedAt = createdAt; + this.Id = id; + } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets PhoneNumber + /// + [DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)] + public Guid PhoneNumber { get; set; } + + /// + /// Gets or Sets FromNumber + /// + [DataMember(Name = "fromNumber", IsRequired = true, EmitDefaultValue = true)] + public string FromNumber { get; set; } + + /// + /// Gets or Sets Read + /// + [DataMember(Name = "read", IsRequired = true, EmitDefaultValue = true)] + public bool Read { get; set; } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SmsProjection {\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" FromNumber: ").Append(FromNumber).Append("\n"); + sb.Append(" Read: ").Append(Read).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SmsProjection); + } + + /// + /// Returns true if SmsProjection instances are equal + /// + /// Instance of SmsProjection to be compared + /// Boolean + public bool Equals(SmsProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.FromNumber == input.FromNumber || + (this.FromNumber != null && + this.FromNumber.Equals(input.FromNumber)) + ) && + ( + this.Read == input.Read || + this.Read.Equals(input.Read) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.PhoneNumber != null) + { + hashCode = (hashCode * 59) + this.PhoneNumber.GetHashCode(); + } + if (this.FromNumber != null) + { + hashCode = (hashCode * 59) + this.FromNumber.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Read.GetHashCode(); + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SmsReplyOptions.cs b/src/mailslurp_netstandard_2x/Model/SmsReplyOptions.cs new file mode 100644 index 00000000..3ea2c5ff --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SmsReplyOptions.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// SmsReplyOptions + /// + [DataContract(Name = "SmsReplyOptions")] + public partial class SmsReplyOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SmsReplyOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// body (required). + public SmsReplyOptions(string body = default(string)) + { + // to ensure "body" is required (not null) + if (body == null) + { + throw new ArgumentNullException("body is a required property for SmsReplyOptions and cannot be null"); + } + this.Body = body; + } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SmsReplyOptions {\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SmsReplyOptions); + } + + /// + /// Returns true if SmsReplyOptions instances are equal + /// + /// Instance of SmsReplyOptions to be compared + /// Boolean + public bool Equals(SmsReplyOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SmtpAccessDetails.cs b/src/mailslurp_netstandard_2x/Model/SmtpAccessDetails.cs new file mode 100644 index 00000000..7788db4a --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SmtpAccessDetails.cs @@ -0,0 +1,309 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Access details for inbox using SMTP + /// + [DataContract(Name = "SmtpAccessDetails")] + public partial class SmtpAccessDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SmtpAccessDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// Secure TLS SMTP server host domain (required). + /// Secure TLS SMTP server host port (required). + /// Secure TLS SMTP username for login (required). + /// Secure TLS SMTP password for login (required). + /// SMTP server host domain (required). + /// SMTP server host port (required). + /// SMTP username for login (required). + /// SMTP password for login (required). + /// Mail from domain or SMTP HELO value. + public SmtpAccessDetails(string secureSmtpServerHost = default(string), int secureSmtpServerPort = default(int), string secureSmtpUsername = default(string), string secureSmtpPassword = default(string), string smtpServerHost = default(string), int smtpServerPort = default(int), string smtpUsername = default(string), string smtpPassword = default(string), string mailFromDomain = default(string)) + { + // to ensure "secureSmtpServerHost" is required (not null) + if (secureSmtpServerHost == null) + { + throw new ArgumentNullException("secureSmtpServerHost is a required property for SmtpAccessDetails and cannot be null"); + } + this.SecureSmtpServerHost = secureSmtpServerHost; + this.SecureSmtpServerPort = secureSmtpServerPort; + // to ensure "secureSmtpUsername" is required (not null) + if (secureSmtpUsername == null) + { + throw new ArgumentNullException("secureSmtpUsername is a required property for SmtpAccessDetails and cannot be null"); + } + this.SecureSmtpUsername = secureSmtpUsername; + // to ensure "secureSmtpPassword" is required (not null) + if (secureSmtpPassword == null) + { + throw new ArgumentNullException("secureSmtpPassword is a required property for SmtpAccessDetails and cannot be null"); + } + this.SecureSmtpPassword = secureSmtpPassword; + // to ensure "smtpServerHost" is required (not null) + if (smtpServerHost == null) + { + throw new ArgumentNullException("smtpServerHost is a required property for SmtpAccessDetails and cannot be null"); + } + this.SmtpServerHost = smtpServerHost; + this.SmtpServerPort = smtpServerPort; + // to ensure "smtpUsername" is required (not null) + if (smtpUsername == null) + { + throw new ArgumentNullException("smtpUsername is a required property for SmtpAccessDetails and cannot be null"); + } + this.SmtpUsername = smtpUsername; + // to ensure "smtpPassword" is required (not null) + if (smtpPassword == null) + { + throw new ArgumentNullException("smtpPassword is a required property for SmtpAccessDetails and cannot be null"); + } + this.SmtpPassword = smtpPassword; + this.MailFromDomain = mailFromDomain; + } + + /// + /// Secure TLS SMTP server host domain + /// + /// Secure TLS SMTP server host domain + [DataMember(Name = "secureSmtpServerHost", IsRequired = true, EmitDefaultValue = true)] + public string SecureSmtpServerHost { get; set; } + + /// + /// Secure TLS SMTP server host port + /// + /// Secure TLS SMTP server host port + [DataMember(Name = "secureSmtpServerPort", IsRequired = true, EmitDefaultValue = true)] + public int SecureSmtpServerPort { get; set; } + + /// + /// Secure TLS SMTP username for login + /// + /// Secure TLS SMTP username for login + [DataMember(Name = "secureSmtpUsername", IsRequired = true, EmitDefaultValue = true)] + public string SecureSmtpUsername { get; set; } + + /// + /// Secure TLS SMTP password for login + /// + /// Secure TLS SMTP password for login + [DataMember(Name = "secureSmtpPassword", IsRequired = true, EmitDefaultValue = true)] + public string SecureSmtpPassword { get; set; } + + /// + /// SMTP server host domain + /// + /// SMTP server host domain + [DataMember(Name = "smtpServerHost", IsRequired = true, EmitDefaultValue = true)] + public string SmtpServerHost { get; set; } + + /// + /// SMTP server host port + /// + /// SMTP server host port + [DataMember(Name = "smtpServerPort", IsRequired = true, EmitDefaultValue = true)] + public int SmtpServerPort { get; set; } + + /// + /// SMTP username for login + /// + /// SMTP username for login + [DataMember(Name = "smtpUsername", IsRequired = true, EmitDefaultValue = true)] + public string SmtpUsername { get; set; } + + /// + /// SMTP password for login + /// + /// SMTP password for login + [DataMember(Name = "smtpPassword", IsRequired = true, EmitDefaultValue = true)] + public string SmtpPassword { get; set; } + + /// + /// Mail from domain or SMTP HELO value + /// + /// Mail from domain or SMTP HELO value + [DataMember(Name = "mailFromDomain", EmitDefaultValue = true)] + public string MailFromDomain { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SmtpAccessDetails {\n"); + sb.Append(" SecureSmtpServerHost: ").Append(SecureSmtpServerHost).Append("\n"); + sb.Append(" SecureSmtpServerPort: ").Append(SecureSmtpServerPort).Append("\n"); + sb.Append(" SecureSmtpUsername: ").Append(SecureSmtpUsername).Append("\n"); + sb.Append(" SecureSmtpPassword: ").Append(SecureSmtpPassword).Append("\n"); + sb.Append(" SmtpServerHost: ").Append(SmtpServerHost).Append("\n"); + sb.Append(" SmtpServerPort: ").Append(SmtpServerPort).Append("\n"); + sb.Append(" SmtpUsername: ").Append(SmtpUsername).Append("\n"); + sb.Append(" SmtpPassword: ").Append(SmtpPassword).Append("\n"); + sb.Append(" MailFromDomain: ").Append(MailFromDomain).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SmtpAccessDetails); + } + + /// + /// Returns true if SmtpAccessDetails instances are equal + /// + /// Instance of SmtpAccessDetails to be compared + /// Boolean + public bool Equals(SmtpAccessDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.SecureSmtpServerHost == input.SecureSmtpServerHost || + (this.SecureSmtpServerHost != null && + this.SecureSmtpServerHost.Equals(input.SecureSmtpServerHost)) + ) && + ( + this.SecureSmtpServerPort == input.SecureSmtpServerPort || + this.SecureSmtpServerPort.Equals(input.SecureSmtpServerPort) + ) && + ( + this.SecureSmtpUsername == input.SecureSmtpUsername || + (this.SecureSmtpUsername != null && + this.SecureSmtpUsername.Equals(input.SecureSmtpUsername)) + ) && + ( + this.SecureSmtpPassword == input.SecureSmtpPassword || + (this.SecureSmtpPassword != null && + this.SecureSmtpPassword.Equals(input.SecureSmtpPassword)) + ) && + ( + this.SmtpServerHost == input.SmtpServerHost || + (this.SmtpServerHost != null && + this.SmtpServerHost.Equals(input.SmtpServerHost)) + ) && + ( + this.SmtpServerPort == input.SmtpServerPort || + this.SmtpServerPort.Equals(input.SmtpServerPort) + ) && + ( + this.SmtpUsername == input.SmtpUsername || + (this.SmtpUsername != null && + this.SmtpUsername.Equals(input.SmtpUsername)) + ) && + ( + this.SmtpPassword == input.SmtpPassword || + (this.SmtpPassword != null && + this.SmtpPassword.Equals(input.SmtpPassword)) + ) && + ( + this.MailFromDomain == input.MailFromDomain || + (this.MailFromDomain != null && + this.MailFromDomain.Equals(input.MailFromDomain)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SecureSmtpServerHost != null) + { + hashCode = (hashCode * 59) + this.SecureSmtpServerHost.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SecureSmtpServerPort.GetHashCode(); + if (this.SecureSmtpUsername != null) + { + hashCode = (hashCode * 59) + this.SecureSmtpUsername.GetHashCode(); + } + if (this.SecureSmtpPassword != null) + { + hashCode = (hashCode * 59) + this.SecureSmtpPassword.GetHashCode(); + } + if (this.SmtpServerHost != null) + { + hashCode = (hashCode * 59) + this.SmtpServerHost.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SmtpServerPort.GetHashCode(); + if (this.SmtpUsername != null) + { + hashCode = (hashCode * 59) + this.SmtpUsername.GetHashCode(); + } + if (this.SmtpPassword != null) + { + hashCode = (hashCode * 59) + this.SmtpPassword.GetHashCode(); + } + if (this.MailFromDomain != null) + { + hashCode = (hashCode * 59) + this.MailFromDomain.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SortObject.cs b/src/mailslurp_netstandard_2x/Model/SortObject.cs new file mode 100644 index 00000000..37860f2b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SortObject.cs @@ -0,0 +1,153 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// SortObject + /// + [DataContract(Name = "SortObject")] + public partial class SortObject : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// sorted. + /// unsorted. + /// empty. + public SortObject(bool sorted = default(bool), bool unsorted = default(bool), bool empty = default(bool)) + { + this.Sorted = sorted; + this.Unsorted = unsorted; + this.Empty = empty; + } + + /// + /// Gets or Sets Sorted + /// + [DataMember(Name = "sorted", EmitDefaultValue = true)] + public bool Sorted { get; set; } + + /// + /// Gets or Sets Unsorted + /// + [DataMember(Name = "unsorted", EmitDefaultValue = true)] + public bool Unsorted { get; set; } + + /// + /// Gets or Sets Empty + /// + [DataMember(Name = "empty", EmitDefaultValue = true)] + public bool Empty { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SortObject {\n"); + sb.Append(" Sorted: ").Append(Sorted).Append("\n"); + sb.Append(" Unsorted: ").Append(Unsorted).Append("\n"); + sb.Append(" Empty: ").Append(Empty).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SortObject); + } + + /// + /// Returns true if SortObject instances are equal + /// + /// Instance of SortObject to be compared + /// Boolean + public bool Equals(SortObject input) + { + if (input == null) + { + return false; + } + return + ( + this.Sorted == input.Sorted || + this.Sorted.Equals(input.Sorted) + ) && + ( + this.Unsorted == input.Unsorted || + this.Unsorted.Equals(input.Unsorted) + ) && + ( + this.Empty == input.Empty || + this.Empty.Equals(input.Empty) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Sorted.GetHashCode(); + hashCode = (hashCode * 59) + this.Unsorted.GetHashCode(); + hashCode = (hashCode * 59) + this.Empty.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/SpellingIssue.cs b/src/mailslurp_netstandard_2x/Model/SpellingIssue.cs new file mode 100644 index 00000000..a7ce2405 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/SpellingIssue.cs @@ -0,0 +1,219 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// SpellingIssue + /// + [DataContract(Name = "SpellingIssue")] + public partial class SpellingIssue : IEquatable, IValidatableObject + { + /// + /// Defines Severity + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SeverityEnum + { + /// + /// Enum Warning for value: Warning + /// + [EnumMember(Value = "Warning")] + Warning = 1, + + /// + /// Enum Error for value: Error + /// + [EnumMember(Value = "Error")] + Error = 2 + + } + + + /// + /// Gets or Sets Severity + /// + [DataMember(Name = "severity", IsRequired = true, EmitDefaultValue = true)] + public SeverityEnum Severity { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SpellingIssue() { } + /// + /// Initializes a new instance of the class. + /// + /// group (required). + /// suggestion (required). + /// severity (required). + /// message (required). + public SpellingIssue(string group = default(string), string suggestion = default(string), SeverityEnum severity = default(SeverityEnum), string message = default(string)) + { + // to ensure "group" is required (not null) + if (group == null) + { + throw new ArgumentNullException("group is a required property for SpellingIssue and cannot be null"); + } + this.Group = group; + // to ensure "suggestion" is required (not null) + if (suggestion == null) + { + throw new ArgumentNullException("suggestion is a required property for SpellingIssue and cannot be null"); + } + this.Suggestion = suggestion; + this.Severity = severity; + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for SpellingIssue and cannot be null"); + } + this.Message = message; + } + + /// + /// Gets or Sets Group + /// + [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] + public string Group { get; set; } + + /// + /// Gets or Sets Suggestion + /// + [DataMember(Name = "suggestion", IsRequired = true, EmitDefaultValue = true)] + public string Suggestion { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SpellingIssue {\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" Suggestion: ").Append(Suggestion).Append("\n"); + sb.Append(" Severity: ").Append(Severity).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SpellingIssue); + } + + /// + /// Returns true if SpellingIssue instances are equal + /// + /// Instance of SpellingIssue to be compared + /// Boolean + public bool Equals(SpellingIssue input) + { + if (input == null) + { + return false; + } + return + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.Suggestion == input.Suggestion || + (this.Suggestion != null && + this.Suggestion.Equals(input.Suggestion)) + ) && + ( + this.Severity == input.Severity || + this.Severity.Equals(input.Severity) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Group != null) + { + hashCode = (hashCode * 59) + this.Group.GetHashCode(); + } + if (this.Suggestion != null) + { + hashCode = (hashCode * 59) + this.Suggestion.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Severity.GetHashCode(); + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TemplateDto.cs b/src/mailslurp_netstandard_2x/Model/TemplateDto.cs new file mode 100644 index 00000000..8a69eba2 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TemplateDto.cs @@ -0,0 +1,227 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Email template + /// + [DataContract(Name = "TemplateDto")] + public partial class TemplateDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TemplateDto() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of template (required). + /// Template name (required). + /// Variables available in template that can be replaced with values (required). + /// Content of the template (required). + /// Created at time (required). + public TemplateDto(Guid id = default(Guid), string name = default(string), List variables = default(List), string content = default(string), DateTime createdAt = default(DateTime)) + { + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for TemplateDto and cannot be null"); + } + this.Name = name; + // to ensure "variables" is required (not null) + if (variables == null) + { + throw new ArgumentNullException("variables is a required property for TemplateDto and cannot be null"); + } + this.Variables = variables; + // to ensure "content" is required (not null) + if (content == null) + { + throw new ArgumentNullException("content is a required property for TemplateDto and cannot be null"); + } + this.Content = content; + this.CreatedAt = createdAt; + } + + /// + /// ID of template + /// + /// ID of template + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Template name + /// + /// Template name + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Variables available in template that can be replaced with values + /// + /// Variables available in template that can be replaced with values + [DataMember(Name = "variables", IsRequired = true, EmitDefaultValue = true)] + public List Variables { get; set; } + + /// + /// Content of the template + /// + /// Content of the template + [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] + public string Content { get; set; } + + /// + /// Created at time + /// + /// Created at time + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TemplateDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Variables: ").Append(Variables).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplateDto); + } + + /// + /// Returns true if TemplateDto instances are equal + /// + /// Instance of TemplateDto to be compared + /// Boolean + public bool Equals(TemplateDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Variables == input.Variables || + this.Variables != null && + input.Variables != null && + this.Variables.SequenceEqual(input.Variables) + ) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Variables != null) + { + hashCode = (hashCode * 59) + this.Variables.GetHashCode(); + } + if (this.Content != null) + { + hashCode = (hashCode * 59) + this.Content.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TemplatePreview.cs b/src/mailslurp_netstandard_2x/Model/TemplatePreview.cs new file mode 100644 index 00000000..6b1e0445 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TemplatePreview.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// TemplatePreview + /// + [DataContract(Name = "TemplatePreview")] + public partial class TemplatePreview : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TemplatePreview() { } + /// + /// Initializes a new instance of the class. + /// + /// preview (required). + public TemplatePreview(string preview = default(string)) + { + // to ensure "preview" is required (not null) + if (preview == null) + { + throw new ArgumentNullException("preview is a required property for TemplatePreview and cannot be null"); + } + this.Preview = preview; + } + + /// + /// Gets or Sets Preview + /// + [DataMember(Name = "preview", IsRequired = true, EmitDefaultValue = true)] + public string Preview { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TemplatePreview {\n"); + sb.Append(" Preview: ").Append(Preview).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplatePreview); + } + + /// + /// Returns true if TemplatePreview instances are equal + /// + /// Instance of TemplatePreview to be compared + /// Boolean + public bool Equals(TemplatePreview input) + { + if (input == null) + { + return false; + } + return + ( + this.Preview == input.Preview || + (this.Preview != null && + this.Preview.Equals(input.Preview)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Preview != null) + { + hashCode = (hashCode * 59) + this.Preview.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TemplateProjection.cs b/src/mailslurp_netstandard_2x/Model/TemplateProjection.cs new file mode 100644 index 00000000..fe8f1182 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TemplateProjection.cs @@ -0,0 +1,217 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Email template data + /// + [DataContract(Name = "TemplateProjection")] + public partial class TemplateProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TemplateProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// variables (required). + /// createdAt (required). + /// updatedAt (required). + /// name (required). + /// id (required). + public TemplateProjection(List variables = default(List), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), Guid id = default(Guid)) + { + // to ensure "variables" is required (not null) + if (variables == null) + { + throw new ArgumentNullException("variables is a required property for TemplateProjection and cannot be null"); + } + this.Variables = variables; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for TemplateProjection and cannot be null"); + } + this.Name = name; + this.Id = id; + } + + /// + /// Gets or Sets Variables + /// + [DataMember(Name = "variables", IsRequired = true, EmitDefaultValue = true)] + public List Variables { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TemplateProjection {\n"); + sb.Append(" Variables: ").Append(Variables).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplateProjection); + } + + /// + /// Returns true if TemplateProjection instances are equal + /// + /// Instance of TemplateProjection to be compared + /// Boolean + public bool Equals(TemplateProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Variables == input.Variables || + this.Variables != null && + input.Variables != null && + this.Variables.SequenceEqual(input.Variables) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Variables != null) + { + hashCode = (hashCode * 59) + this.Variables.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TemplateVariable.cs b/src/mailslurp_netstandard_2x/Model/TemplateVariable.cs new file mode 100644 index 00000000..74724e47 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TemplateVariable.cs @@ -0,0 +1,170 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Variable for use with email template + /// + [DataContract(Name = "TemplateVariable")] + public partial class TemplateVariable : IEquatable, IValidatableObject + { + /// + /// The type of variable + /// + /// The type of variable + [JsonConverter(typeof(StringEnumConverter))] + public enum VariableTypeEnum + { + /// + /// Enum STRING for value: STRING + /// + [EnumMember(Value = "STRING")] + STRING = 1 + + } + + + /// + /// The type of variable + /// + /// The type of variable + [DataMember(Name = "variableType", IsRequired = true, EmitDefaultValue = true)] + public VariableTypeEnum VariableType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TemplateVariable() { } + /// + /// Initializes a new instance of the class. + /// + /// Name of variable. This can be used in a template as {{name}} (required). + /// The type of variable (required). + public TemplateVariable(string name = default(string), VariableTypeEnum variableType = default(VariableTypeEnum)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for TemplateVariable and cannot be null"); + } + this.Name = name; + this.VariableType = variableType; + } + + /// + /// Name of variable. This can be used in a template as {{name}} + /// + /// Name of variable. This can be used in a template as {{name}} + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TemplateVariable {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" VariableType: ").Append(VariableType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplateVariable); + } + + /// + /// Returns true if TemplateVariable instances are equal + /// + /// Instance of TemplateVariable to be compared + /// Boolean + public bool Equals(TemplateVariable input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.VariableType == input.VariableType || + this.VariableType.Equals(input.VariableType) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.VariableType.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TestInboxRulesetReceivingOptions.cs b/src/mailslurp_netstandard_2x/Model/TestInboxRulesetReceivingOptions.cs new file mode 100644 index 00000000..5c0aec33 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TestInboxRulesetReceivingOptions.cs @@ -0,0 +1,157 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Test options for inbox ruleset receiving test + /// + [DataContract(Name = "TestInboxRulesetReceivingOptions")] + public partial class TestInboxRulesetReceivingOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestInboxRulesetReceivingOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// inboxId (required). + /// fromSender (required). + public TestInboxRulesetReceivingOptions(Guid inboxId = default(Guid), string fromSender = default(string)) + { + this.InboxId = inboxId; + // to ensure "fromSender" is required (not null) + if (fromSender == null) + { + throw new ArgumentNullException("fromSender is a required property for TestInboxRulesetReceivingOptions and cannot be null"); + } + this.FromSender = fromSender; + } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets FromSender + /// + [DataMember(Name = "fromSender", IsRequired = true, EmitDefaultValue = true)] + public string FromSender { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TestInboxRulesetReceivingOptions {\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" FromSender: ").Append(FromSender).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TestInboxRulesetReceivingOptions); + } + + /// + /// Returns true if TestInboxRulesetReceivingOptions instances are equal + /// + /// Instance of TestInboxRulesetReceivingOptions to be compared + /// Boolean + public bool Equals(TestInboxRulesetReceivingOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.FromSender == input.FromSender || + (this.FromSender != null && + this.FromSender.Equals(input.FromSender)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.FromSender != null) + { + hashCode = (hashCode * 59) + this.FromSender.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TestInboxRulesetReceivingResult.cs b/src/mailslurp_netstandard_2x/Model/TestInboxRulesetReceivingResult.cs new file mode 100644 index 00000000..1cfc4339 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TestInboxRulesetReceivingResult.cs @@ -0,0 +1,130 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// TestInboxRulesetReceivingResult + /// + [DataContract(Name = "TestInboxRulesetReceivingResult")] + public partial class TestInboxRulesetReceivingResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestInboxRulesetReceivingResult() { } + /// + /// Initializes a new instance of the class. + /// + /// canReceive (required). + public TestInboxRulesetReceivingResult(bool canReceive = default(bool)) + { + this.CanReceive = canReceive; + } + + /// + /// Gets or Sets CanReceive + /// + [DataMember(Name = "canReceive", IsRequired = true, EmitDefaultValue = true)] + public bool CanReceive { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TestInboxRulesetReceivingResult {\n"); + sb.Append(" CanReceive: ").Append(CanReceive).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TestInboxRulesetReceivingResult); + } + + /// + /// Returns true if TestInboxRulesetReceivingResult instances are equal + /// + /// Instance of TestInboxRulesetReceivingResult to be compared + /// Boolean + public bool Equals(TestInboxRulesetReceivingResult input) + { + if (input == null) + { + return false; + } + return + ( + this.CanReceive == input.CanReceive || + this.CanReceive.Equals(input.CanReceive) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.CanReceive.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TestInboxRulesetSendingOptions.cs b/src/mailslurp_netstandard_2x/Model/TestInboxRulesetSendingOptions.cs new file mode 100644 index 00000000..e8739c19 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TestInboxRulesetSendingOptions.cs @@ -0,0 +1,157 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Test options for inbox ruleset sending test + /// + [DataContract(Name = "TestInboxRulesetSendingOptions")] + public partial class TestInboxRulesetSendingOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestInboxRulesetSendingOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// inboxId (required). + /// recipient (required). + public TestInboxRulesetSendingOptions(Guid inboxId = default(Guid), string recipient = default(string)) + { + this.InboxId = inboxId; + // to ensure "recipient" is required (not null) + if (recipient == null) + { + throw new ArgumentNullException("recipient is a required property for TestInboxRulesetSendingOptions and cannot be null"); + } + this.Recipient = recipient; + } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets Recipient + /// + [DataMember(Name = "recipient", IsRequired = true, EmitDefaultValue = true)] + public string Recipient { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TestInboxRulesetSendingOptions {\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" Recipient: ").Append(Recipient).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TestInboxRulesetSendingOptions); + } + + /// + /// Returns true if TestInboxRulesetSendingOptions instances are equal + /// + /// Instance of TestInboxRulesetSendingOptions to be compared + /// Boolean + public bool Equals(TestInboxRulesetSendingOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.Recipient == input.Recipient || + (this.Recipient != null && + this.Recipient.Equals(input.Recipient)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.Recipient != null) + { + hashCode = (hashCode * 59) + this.Recipient.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TestInboxRulesetSendingResult.cs b/src/mailslurp_netstandard_2x/Model/TestInboxRulesetSendingResult.cs new file mode 100644 index 00000000..81653e26 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TestInboxRulesetSendingResult.cs @@ -0,0 +1,130 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// TestInboxRulesetSendingResult + /// + [DataContract(Name = "TestInboxRulesetSendingResult")] + public partial class TestInboxRulesetSendingResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestInboxRulesetSendingResult() { } + /// + /// Initializes a new instance of the class. + /// + /// canSend (required). + public TestInboxRulesetSendingResult(bool canSend = default(bool)) + { + this.CanSend = canSend; + } + + /// + /// Gets or Sets CanSend + /// + [DataMember(Name = "canSend", IsRequired = true, EmitDefaultValue = true)] + public bool CanSend { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TestInboxRulesetSendingResult {\n"); + sb.Append(" CanSend: ").Append(CanSend).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TestInboxRulesetSendingResult); + } + + /// + /// Returns true if TestInboxRulesetSendingResult instances are equal + /// + /// Instance of TestInboxRulesetSendingResult to be compared + /// Boolean + public bool Equals(TestInboxRulesetSendingResult input) + { + if (input == null) + { + return false; + } + return + ( + this.CanSend == input.CanSend || + this.CanSend.Equals(input.CanSend) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.CanSend.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TestNewInboxForwarderOptions.cs b/src/mailslurp_netstandard_2x/Model/TestNewInboxForwarderOptions.cs new file mode 100644 index 00000000..07abcff8 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TestNewInboxForwarderOptions.cs @@ -0,0 +1,162 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for testing new inbox forwarder rules + /// + [DataContract(Name = "TestNewInboxForwarderOptions")] + public partial class TestNewInboxForwarderOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestNewInboxForwarderOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// inboxForwarderTestOptions (required). + /// createInboxForwarderOptions (required). + public TestNewInboxForwarderOptions(InboxForwarderTestOptions inboxForwarderTestOptions = default(InboxForwarderTestOptions), CreateInboxForwarderOptions createInboxForwarderOptions = default(CreateInboxForwarderOptions)) + { + // to ensure "inboxForwarderTestOptions" is required (not null) + if (inboxForwarderTestOptions == null) + { + throw new ArgumentNullException("inboxForwarderTestOptions is a required property for TestNewInboxForwarderOptions and cannot be null"); + } + this.InboxForwarderTestOptions = inboxForwarderTestOptions; + // to ensure "createInboxForwarderOptions" is required (not null) + if (createInboxForwarderOptions == null) + { + throw new ArgumentNullException("createInboxForwarderOptions is a required property for TestNewInboxForwarderOptions and cannot be null"); + } + this.CreateInboxForwarderOptions = createInboxForwarderOptions; + } + + /// + /// Gets or Sets InboxForwarderTestOptions + /// + [DataMember(Name = "inboxForwarderTestOptions", IsRequired = true, EmitDefaultValue = true)] + public InboxForwarderTestOptions InboxForwarderTestOptions { get; set; } + + /// + /// Gets or Sets CreateInboxForwarderOptions + /// + [DataMember(Name = "createInboxForwarderOptions", IsRequired = true, EmitDefaultValue = true)] + public CreateInboxForwarderOptions CreateInboxForwarderOptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TestNewInboxForwarderOptions {\n"); + sb.Append(" InboxForwarderTestOptions: ").Append(InboxForwarderTestOptions).Append("\n"); + sb.Append(" CreateInboxForwarderOptions: ").Append(CreateInboxForwarderOptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TestNewInboxForwarderOptions); + } + + /// + /// Returns true if TestNewInboxForwarderOptions instances are equal + /// + /// Instance of TestNewInboxForwarderOptions to be compared + /// Boolean + public bool Equals(TestNewInboxForwarderOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxForwarderTestOptions == input.InboxForwarderTestOptions || + (this.InboxForwarderTestOptions != null && + this.InboxForwarderTestOptions.Equals(input.InboxForwarderTestOptions)) + ) && + ( + this.CreateInboxForwarderOptions == input.CreateInboxForwarderOptions || + (this.CreateInboxForwarderOptions != null && + this.CreateInboxForwarderOptions.Equals(input.CreateInboxForwarderOptions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxForwarderTestOptions != null) + { + hashCode = (hashCode * 59) + this.InboxForwarderTestOptions.GetHashCode(); + } + if (this.CreateInboxForwarderOptions != null) + { + hashCode = (hashCode * 59) + this.CreateInboxForwarderOptions.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TestNewInboxRulesetOptions.cs b/src/mailslurp_netstandard_2x/Model/TestNewInboxRulesetOptions.cs new file mode 100644 index 00000000..a73132c1 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TestNewInboxRulesetOptions.cs @@ -0,0 +1,162 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Test inbox ruleset options + /// + [DataContract(Name = "TestNewInboxRulesetOptions")] + public partial class TestNewInboxRulesetOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestNewInboxRulesetOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// inboxRulesetTestOptions (required). + /// createInboxRulesetOptions (required). + public TestNewInboxRulesetOptions(InboxRulesetTestOptions inboxRulesetTestOptions = default(InboxRulesetTestOptions), CreateInboxRulesetOptions createInboxRulesetOptions = default(CreateInboxRulesetOptions)) + { + // to ensure "inboxRulesetTestOptions" is required (not null) + if (inboxRulesetTestOptions == null) + { + throw new ArgumentNullException("inboxRulesetTestOptions is a required property for TestNewInboxRulesetOptions and cannot be null"); + } + this.InboxRulesetTestOptions = inboxRulesetTestOptions; + // to ensure "createInboxRulesetOptions" is required (not null) + if (createInboxRulesetOptions == null) + { + throw new ArgumentNullException("createInboxRulesetOptions is a required property for TestNewInboxRulesetOptions and cannot be null"); + } + this.CreateInboxRulesetOptions = createInboxRulesetOptions; + } + + /// + /// Gets or Sets InboxRulesetTestOptions + /// + [DataMember(Name = "inboxRulesetTestOptions", IsRequired = true, EmitDefaultValue = true)] + public InboxRulesetTestOptions InboxRulesetTestOptions { get; set; } + + /// + /// Gets or Sets CreateInboxRulesetOptions + /// + [DataMember(Name = "createInboxRulesetOptions", IsRequired = true, EmitDefaultValue = true)] + public CreateInboxRulesetOptions CreateInboxRulesetOptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TestNewInboxRulesetOptions {\n"); + sb.Append(" InboxRulesetTestOptions: ").Append(InboxRulesetTestOptions).Append("\n"); + sb.Append(" CreateInboxRulesetOptions: ").Append(CreateInboxRulesetOptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TestNewInboxRulesetOptions); + } + + /// + /// Returns true if TestNewInboxRulesetOptions instances are equal + /// + /// Instance of TestNewInboxRulesetOptions to be compared + /// Boolean + public bool Equals(TestNewInboxRulesetOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxRulesetTestOptions == input.InboxRulesetTestOptions || + (this.InboxRulesetTestOptions != null && + this.InboxRulesetTestOptions.Equals(input.InboxRulesetTestOptions)) + ) && + ( + this.CreateInboxRulesetOptions == input.CreateInboxRulesetOptions || + (this.CreateInboxRulesetOptions != null && + this.CreateInboxRulesetOptions.Equals(input.CreateInboxRulesetOptions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxRulesetTestOptions != null) + { + hashCode = (hashCode * 59) + this.InboxRulesetTestOptions.GetHashCode(); + } + if (this.CreateInboxRulesetOptions != null) + { + hashCode = (hashCode * 59) + this.CreateInboxRulesetOptions.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TestPhoneNumberOptions.cs b/src/mailslurp_netstandard_2x/Model/TestPhoneNumberOptions.cs new file mode 100644 index 00000000..8e9d7e0b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TestPhoneNumberOptions.cs @@ -0,0 +1,139 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// TestPhoneNumberOptions + /// + [DataContract(Name = "TestPhoneNumberOptions")] + public partial class TestPhoneNumberOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestPhoneNumberOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// message (required). + public TestPhoneNumberOptions(string message = default(string)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for TestPhoneNumberOptions and cannot be null"); + } + this.Message = message; + } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TestPhoneNumberOptions {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TestPhoneNumberOptions); + } + + /// + /// Returns true if TestPhoneNumberOptions instances are equal + /// + /// Instance of TestPhoneNumberOptions to be compared + /// Boolean + public bool Equals(TestPhoneNumberOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ThreadProjection.cs b/src/mailslurp_netstandard_2x/Model/ThreadProjection.cs new file mode 100644 index 00000000..4ed4caf2 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ThreadProjection.cs @@ -0,0 +1,333 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// A thread is a message thread created for a message received by an alias + /// + [DataContract(Name = "ThreadProjection")] + public partial class ThreadProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ThreadProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// Inbox ID (required). + /// User ID (required). + /// To recipients (required). + /// BCC recipients. + /// CC recipients. + /// Alias ID (required). + /// Created at DateTime (required). + /// Updated at DateTime (required). + /// Thread subject. + /// Name of thread. + /// ID of email thread (required). + public ThreadProjection(Guid inboxId = default(Guid), Guid userId = default(Guid), List to = default(List), List bcc = default(List), List cc = default(List), Guid aliasId = default(Guid), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string subject = default(string), string name = default(string), Guid id = default(Guid)) + { + this.InboxId = inboxId; + this.UserId = userId; + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for ThreadProjection and cannot be null"); + } + this.To = to; + this.AliasId = aliasId; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Id = id; + this.Bcc = bcc; + this.Cc = cc; + this.Subject = subject; + this.Name = name; + } + + /// + /// Inbox ID + /// + /// Inbox ID + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// User ID + /// + /// User ID + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// To recipients + /// + /// To recipients + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public List To { get; set; } + + /// + /// BCC recipients + /// + /// BCC recipients + [DataMember(Name = "bcc", EmitDefaultValue = false)] + public List Bcc { get; set; } + + /// + /// CC recipients + /// + /// CC recipients + [DataMember(Name = "cc", EmitDefaultValue = false)] + public List Cc { get; set; } + + /// + /// Alias ID + /// + /// Alias ID + [DataMember(Name = "aliasId", IsRequired = true, EmitDefaultValue = true)] + public Guid AliasId { get; set; } + + /// + /// Created at DateTime + /// + /// Created at DateTime + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Updated at DateTime + /// + /// Updated at DateTime + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Thread subject + /// + /// Thread subject + [DataMember(Name = "subject", EmitDefaultValue = false)] + public string Subject { get; set; } + + /// + /// Name of thread + /// + /// Name of thread + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// ID of email thread + /// + /// ID of email thread + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ThreadProjection {\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Bcc: ").Append(Bcc).Append("\n"); + sb.Append(" Cc: ").Append(Cc).Append("\n"); + sb.Append(" AliasId: ").Append(AliasId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ThreadProjection); + } + + /// + /// Returns true if ThreadProjection instances are equal + /// + /// Instance of ThreadProjection to be compared + /// Boolean + public bool Equals(ThreadProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.Bcc == input.Bcc || + this.Bcc != null && + input.Bcc != null && + this.Bcc.SequenceEqual(input.Bcc) + ) && + ( + this.Cc == input.Cc || + this.Cc != null && + input.Cc != null && + this.Cc.SequenceEqual(input.Cc) + ) && + ( + this.AliasId == input.AliasId || + (this.AliasId != null && + this.AliasId.Equals(input.AliasId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.Bcc != null) + { + hashCode = (hashCode * 59) + this.Bcc.GetHashCode(); + } + if (this.Cc != null) + { + hashCode = (hashCode * 59) + this.Cc.GetHashCode(); + } + if (this.AliasId != null) + { + hashCode = (hashCode * 59) + this.AliasId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TrackingPixelDto.cs b/src/mailslurp_netstandard_2x/Model/TrackingPixelDto.cs new file mode 100644 index 00000000..bbd0dd0b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TrackingPixelDto.cs @@ -0,0 +1,284 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Tracking pixel + /// + [DataContract(Name = "TrackingPixelDto")] + public partial class TrackingPixelDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TrackingPixelDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// seen (required). + /// recipient. + /// html (required). + /// url (required). + /// inboxId. + /// sentEmailId. + /// seenAt. + /// createdAt (required). + public TrackingPixelDto(Guid id = default(Guid), bool seen = default(bool), string recipient = default(string), string html = default(string), string url = default(string), Guid? inboxId = default(Guid?), Guid? sentEmailId = default(Guid?), DateTime? seenAt = default(DateTime?), DateTime createdAt = default(DateTime)) + { + this.Id = id; + this.Seen = seen; + // to ensure "html" is required (not null) + if (html == null) + { + throw new ArgumentNullException("html is a required property for TrackingPixelDto and cannot be null"); + } + this.Html = html; + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for TrackingPixelDto and cannot be null"); + } + this.Url = url; + this.CreatedAt = createdAt; + this.Recipient = recipient; + this.InboxId = inboxId; + this.SentEmailId = sentEmailId; + this.SeenAt = seenAt; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Seen + /// + [DataMember(Name = "seen", IsRequired = true, EmitDefaultValue = true)] + public bool Seen { get; set; } + + /// + /// Gets or Sets Recipient + /// + [DataMember(Name = "recipient", EmitDefaultValue = true)] + public string Recipient { get; set; } + + /// + /// Gets or Sets Html + /// + [DataMember(Name = "html", IsRequired = true, EmitDefaultValue = true)] + public string Html { get; set; } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = true)] + public Guid? InboxId { get; set; } + + /// + /// Gets or Sets SentEmailId + /// + [DataMember(Name = "sentEmailId", EmitDefaultValue = true)] + public Guid? SentEmailId { get; set; } + + /// + /// Gets or Sets SeenAt + /// + [DataMember(Name = "seenAt", EmitDefaultValue = true)] + public DateTime? SeenAt { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TrackingPixelDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Seen: ").Append(Seen).Append("\n"); + sb.Append(" Recipient: ").Append(Recipient).Append("\n"); + sb.Append(" Html: ").Append(Html).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" SentEmailId: ").Append(SentEmailId).Append("\n"); + sb.Append(" SeenAt: ").Append(SeenAt).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TrackingPixelDto); + } + + /// + /// Returns true if TrackingPixelDto instances are equal + /// + /// Instance of TrackingPixelDto to be compared + /// Boolean + public bool Equals(TrackingPixelDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Seen == input.Seen || + this.Seen.Equals(input.Seen) + ) && + ( + this.Recipient == input.Recipient || + (this.Recipient != null && + this.Recipient.Equals(input.Recipient)) + ) && + ( + this.Html == input.Html || + (this.Html != null && + this.Html.Equals(input.Html)) + ) && + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.SentEmailId == input.SentEmailId || + (this.SentEmailId != null && + this.SentEmailId.Equals(input.SentEmailId)) + ) && + ( + this.SeenAt == input.SeenAt || + (this.SeenAt != null && + this.SeenAt.Equals(input.SeenAt)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Seen.GetHashCode(); + if (this.Recipient != null) + { + hashCode = (hashCode * 59) + this.Recipient.GetHashCode(); + } + if (this.Html != null) + { + hashCode = (hashCode * 59) + this.Html.GetHashCode(); + } + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.SentEmailId != null) + { + hashCode = (hashCode * 59) + this.SentEmailId.GetHashCode(); + } + if (this.SeenAt != null) + { + hashCode = (hashCode * 59) + this.SeenAt.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/TrackingPixelProjection.cs b/src/mailslurp_netstandard_2x/Model/TrackingPixelProjection.cs new file mode 100644 index 00000000..a1fa8e34 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/TrackingPixelProjection.cs @@ -0,0 +1,274 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Tracking pixel data + /// + [DataContract(Name = "TrackingPixelProjection")] + public partial class TrackingPixelProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TrackingPixelProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// inboxId. + /// userId (required). + /// sentEmailId. + /// recipient. + /// seen (required). + /// seenAt. + /// createdAt (required). + /// name. + /// id (required). + public TrackingPixelProjection(Guid inboxId = default(Guid), Guid userId = default(Guid), Guid sentEmailId = default(Guid), string recipient = default(string), bool seen = default(bool), DateTime seenAt = default(DateTime), DateTime createdAt = default(DateTime), string name = default(string), Guid id = default(Guid)) + { + this.UserId = userId; + this.Seen = seen; + this.CreatedAt = createdAt; + this.Id = id; + this.InboxId = inboxId; + this.SentEmailId = sentEmailId; + this.Recipient = recipient; + this.SeenAt = seenAt; + this.Name = name; + } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = false)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets SentEmailId + /// + [DataMember(Name = "sentEmailId", EmitDefaultValue = false)] + public Guid SentEmailId { get; set; } + + /// + /// Gets or Sets Recipient + /// + [DataMember(Name = "recipient", EmitDefaultValue = false)] + public string Recipient { get; set; } + + /// + /// Gets or Sets Seen + /// + [DataMember(Name = "seen", IsRequired = true, EmitDefaultValue = true)] + public bool Seen { get; set; } + + /// + /// Gets or Sets SeenAt + /// + [DataMember(Name = "seenAt", EmitDefaultValue = false)] + public DateTime SeenAt { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TrackingPixelProjection {\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" SentEmailId: ").Append(SentEmailId).Append("\n"); + sb.Append(" Recipient: ").Append(Recipient).Append("\n"); + sb.Append(" Seen: ").Append(Seen).Append("\n"); + sb.Append(" SeenAt: ").Append(SeenAt).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TrackingPixelProjection); + } + + /// + /// Returns true if TrackingPixelProjection instances are equal + /// + /// Instance of TrackingPixelProjection to be compared + /// Boolean + public bool Equals(TrackingPixelProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.SentEmailId == input.SentEmailId || + (this.SentEmailId != null && + this.SentEmailId.Equals(input.SentEmailId)) + ) && + ( + this.Recipient == input.Recipient || + (this.Recipient != null && + this.Recipient.Equals(input.Recipient)) + ) && + ( + this.Seen == input.Seen || + this.Seen.Equals(input.Seen) + ) && + ( + this.SeenAt == input.SeenAt || + (this.SeenAt != null && + this.SeenAt.Equals(input.SeenAt)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.SentEmailId != null) + { + hashCode = (hashCode * 59) + this.SentEmailId.GetHashCode(); + } + if (this.Recipient != null) + { + hashCode = (hashCode * 59) + this.Recipient.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Seen.GetHashCode(); + if (this.SeenAt != null) + { + hashCode = (hashCode * 59) + this.SeenAt.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UnknownMissedEmailProjection.cs b/src/mailslurp_netstandard_2x/Model/UnknownMissedEmailProjection.cs new file mode 100644 index 00000000..fe057f70 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UnknownMissedEmailProjection.cs @@ -0,0 +1,207 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Unknown missed email projection + /// + [DataContract(Name = "UnknownMissedEmailProjection")] + public partial class UnknownMissedEmailProjection : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnknownMissedEmailProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// to. + /// createdAt (required). + /// subject. + /// id (required). + /// from. + public UnknownMissedEmailProjection(List to = default(List), DateTime createdAt = default(DateTime), string subject = default(string), Guid id = default(Guid), string from = default(string)) + { + this.CreatedAt = createdAt; + this.Id = id; + this.To = to; + this.Subject = subject; + this.From = from; + } + + /// + /// Gets or Sets To + /// + [DataMember(Name = "to", EmitDefaultValue = false)] + public List To { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name = "subject", EmitDefaultValue = false)] + public string Subject { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets From + /// + [DataMember(Name = "from", EmitDefaultValue = false)] + public string From { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnknownMissedEmailProjection {\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnknownMissedEmailProjection); + } + + /// + /// Returns true if UnknownMissedEmailProjection instances are equal + /// + /// Instance of UnknownMissedEmailProjection to be compared + /// Boolean + public bool Equals(UnknownMissedEmailProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UnreadCount.cs b/src/mailslurp_netstandard_2x/Model/UnreadCount.cs new file mode 100644 index 00000000..2e0dd7fe --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UnreadCount.cs @@ -0,0 +1,130 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Number of unread entities + /// + [DataContract(Name = "UnreadCount")] + public partial class UnreadCount : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnreadCount() { } + /// + /// Initializes a new instance of the class. + /// + /// count (required). + public UnreadCount(long count = default(long)) + { + this.Count = count; + } + + /// + /// Gets or Sets Count + /// + [DataMember(Name = "count", IsRequired = true, EmitDefaultValue = true)] + public long Count { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnreadCount {\n"); + sb.Append(" Count: ").Append(Count).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnreadCount); + } + + /// + /// Returns true if UnreadCount instances are equal + /// + /// Instance of UnreadCount to be compared + /// Boolean + public bool Equals(UnreadCount input) + { + if (input == null) + { + return false; + } + return + ( + this.Count == input.Count || + this.Count.Equals(input.Count) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Count.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UnseenErrorCountDto.cs b/src/mailslurp_netstandard_2x/Model/UnseenErrorCountDto.cs new file mode 100644 index 00000000..127a7ff6 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UnseenErrorCountDto.cs @@ -0,0 +1,130 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Number of unseen errors + /// + [DataContract(Name = "UnseenErrorCountDto")] + public partial class UnseenErrorCountDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnseenErrorCountDto() { } + /// + /// Initializes a new instance of the class. + /// + /// count (required). + public UnseenErrorCountDto(long count = default(long)) + { + this.Count = count; + } + + /// + /// Gets or Sets Count + /// + [DataMember(Name = "count", IsRequired = true, EmitDefaultValue = true)] + public long Count { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnseenErrorCountDto {\n"); + sb.Append(" Count: ").Append(Count).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnseenErrorCountDto); + } + + /// + /// Returns true if UnseenErrorCountDto instances are equal + /// + /// Instance of UnseenErrorCountDto to be compared + /// Boolean + public bool Equals(UnseenErrorCountDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Count == input.Count || + this.Count.Equals(input.Count) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Count.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UpdateAliasOptions.cs b/src/mailslurp_netstandard_2x/Model/UpdateAliasOptions.cs new file mode 100644 index 00000000..a3975f33 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UpdateAliasOptions.cs @@ -0,0 +1,130 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Update an email alias + /// + [DataContract(Name = "UpdateAliasOptions")] + public partial class UpdateAliasOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Optional name for alias. + public UpdateAliasOptions(string name = default(string)) + { + this.Name = name; + } + + /// + /// Optional name for alias + /// + /// Optional name for alias + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateAliasOptions {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateAliasOptions); + } + + /// + /// Returns true if UpdateAliasOptions instances are equal + /// + /// Instance of UpdateAliasOptions to be compared + /// Boolean + public bool Equals(UpdateAliasOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UpdateDomainOptions.cs b/src/mailslurp_netstandard_2x/Model/UpdateDomainOptions.cs new file mode 100644 index 00000000..de20e72c --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UpdateDomainOptions.cs @@ -0,0 +1,129 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for creating a domain to use with MailSlurp. You must have ownership access to this domain in order to verify it. Domains will not functionally currently until the domain has been verified. See https://www.mailslurp.com/guides/custom-domains for help. + /// + [DataContract(Name = "UpdateDomainOptions")] + public partial class UpdateDomainOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// catchAllInboxId. + public UpdateDomainOptions(Guid? catchAllInboxId = default(Guid?)) + { + this.CatchAllInboxId = catchAllInboxId; + } + + /// + /// Gets or Sets CatchAllInboxId + /// + [DataMember(Name = "catchAllInboxId", EmitDefaultValue = true)] + public Guid? CatchAllInboxId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateDomainOptions {\n"); + sb.Append(" CatchAllInboxId: ").Append(CatchAllInboxId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateDomainOptions); + } + + /// + /// Returns true if UpdateDomainOptions instances are equal + /// + /// Instance of UpdateDomainOptions to be compared + /// Boolean + public bool Equals(UpdateDomainOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.CatchAllInboxId == input.CatchAllInboxId || + (this.CatchAllInboxId != null && + this.CatchAllInboxId.Equals(input.CatchAllInboxId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatchAllInboxId != null) + { + hashCode = (hashCode * 59) + this.CatchAllInboxId.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UpdateGroupContacts.cs b/src/mailslurp_netstandard_2x/Model/UpdateGroupContacts.cs new file mode 100644 index 00000000..64bdb1f8 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UpdateGroupContacts.cs @@ -0,0 +1,140 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Update group contacts options. Pass a list of contact ids to replace existing group contacts. + /// + [DataContract(Name = "UpdateGroupContacts")] + public partial class UpdateGroupContacts : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateGroupContacts() { } + /// + /// Initializes a new instance of the class. + /// + /// contactIds (required). + public UpdateGroupContacts(List contactIds = default(List)) + { + // to ensure "contactIds" is required (not null) + if (contactIds == null) + { + throw new ArgumentNullException("contactIds is a required property for UpdateGroupContacts and cannot be null"); + } + this.ContactIds = contactIds; + } + + /// + /// Gets or Sets ContactIds + /// + [DataMember(Name = "contactIds", IsRequired = true, EmitDefaultValue = true)] + public List ContactIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateGroupContacts {\n"); + sb.Append(" ContactIds: ").Append(ContactIds).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateGroupContacts); + } + + /// + /// Returns true if UpdateGroupContacts instances are equal + /// + /// Instance of UpdateGroupContacts to be compared + /// Boolean + public bool Equals(UpdateGroupContacts input) + { + if (input == null) + { + return false; + } + return + ( + this.ContactIds == input.ContactIds || + this.ContactIds != null && + input.ContactIds != null && + this.ContactIds.SequenceEqual(input.ContactIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ContactIds != null) + { + hashCode = (hashCode * 59) + this.ContactIds.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UpdateImapAccessOptions.cs b/src/mailslurp_netstandard_2x/Model/UpdateImapAccessOptions.cs new file mode 100644 index 00000000..75e2636f --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UpdateImapAccessOptions.cs @@ -0,0 +1,149 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Edit access details for inbox using IMAP + /// + [DataContract(Name = "UpdateImapAccessOptions")] + public partial class UpdateImapAccessOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// IMAP username for login. + /// IMAP password for login. + public UpdateImapAccessOptions(string imapUsername = default(string), string imapPassword = default(string)) + { + this.ImapUsername = imapUsername; + this.ImapPassword = imapPassword; + } + + /// + /// IMAP username for login + /// + /// IMAP username for login + [DataMember(Name = "imapUsername", EmitDefaultValue = true)] + public string ImapUsername { get; set; } + + /// + /// IMAP password for login + /// + /// IMAP password for login + [DataMember(Name = "imapPassword", EmitDefaultValue = true)] + public string ImapPassword { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateImapAccessOptions {\n"); + sb.Append(" ImapUsername: ").Append(ImapUsername).Append("\n"); + sb.Append(" ImapPassword: ").Append(ImapPassword).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateImapAccessOptions); + } + + /// + /// Returns true if UpdateImapAccessOptions instances are equal + /// + /// Instance of UpdateImapAccessOptions to be compared + /// Boolean + public bool Equals(UpdateImapAccessOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.ImapUsername == input.ImapUsername || + (this.ImapUsername != null && + this.ImapUsername.Equals(input.ImapUsername)) + ) && + ( + this.ImapPassword == input.ImapPassword || + (this.ImapPassword != null && + this.ImapPassword.Equals(input.ImapPassword)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImapUsername != null) + { + hashCode = (hashCode * 59) + this.ImapUsername.GetHashCode(); + } + if (this.ImapPassword != null) + { + hashCode = (hashCode * 59) + this.ImapPassword.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UpdateInboxOptions.cs b/src/mailslurp_netstandard_2x/Model/UpdateInboxOptions.cs new file mode 100644 index 00000000..c1170d5c --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UpdateInboxOptions.cs @@ -0,0 +1,207 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for updating inbox properties + /// + [DataContract(Name = "UpdateInboxOptions")] + public partial class UpdateInboxOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search. + /// Description of an inbox for labelling and searching purposes. + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.. + /// Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email.. + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering. + public UpdateInboxOptions(string name = default(string), string description = default(string), List tags = default(List), DateTime? expiresAt = default(DateTime?), bool? favourite = default(bool?)) + { + this.Name = name; + this.Description = description; + this.Tags = tags; + this.ExpiresAt = expiresAt; + this.Favourite = favourite; + } + + /// + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search + /// + /// Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Description of an inbox for labelling and searching purposes + /// + /// Description of an inbox for labelling and searching purposes + [DataMember(Name = "description", EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. + /// + /// Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. + [DataMember(Name = "tags", EmitDefaultValue = true)] + public List Tags { get; set; } + + /// + /// Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email. + /// + /// Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email. + [DataMember(Name = "expiresAt", EmitDefaultValue = true)] + public DateTime? ExpiresAt { get; set; } + + /// + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering + /// + /// Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering + [DataMember(Name = "favourite", EmitDefaultValue = true)] + public bool? Favourite { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateInboxOptions {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n"); + sb.Append(" Favourite: ").Append(Favourite).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateInboxOptions); + } + + /// + /// Returns true if UpdateInboxOptions instances are equal + /// + /// Instance of UpdateInboxOptions to be compared + /// Boolean + public bool Equals(UpdateInboxOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.ExpiresAt == input.ExpiresAt || + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) + ) && + ( + this.Favourite == input.Favourite || + (this.Favourite != null && + this.Favourite.Equals(input.Favourite)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + if (this.ExpiresAt != null) + { + hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + } + if (this.Favourite != null) + { + hashCode = (hashCode * 59) + this.Favourite.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UpdateInboxReplierOptions.cs b/src/mailslurp_netstandard_2x/Model/UpdateInboxReplierOptions.cs new file mode 100644 index 00000000..30c08b85 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UpdateInboxReplierOptions.cs @@ -0,0 +1,398 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for updating an inbox replier + /// + [DataContract(Name = "UpdateInboxReplierOptions")] + public partial class UpdateInboxReplierOptions : IEquatable, IValidatableObject + { + /// + /// Field to match against to trigger inbox replier for inbound email + /// + /// Field to match against to trigger inbox replier for inbound email + [JsonConverter(typeof(StringEnumConverter))] + public enum FieldEnum + { + /// + /// Enum RECIPIENTS for value: RECIPIENTS + /// + [EnumMember(Value = "RECIPIENTS")] + RECIPIENTS = 1, + + /// + /// Enum SENDER for value: SENDER + /// + [EnumMember(Value = "SENDER")] + SENDER = 2, + + /// + /// Enum SUBJECT for value: SUBJECT + /// + [EnumMember(Value = "SUBJECT")] + SUBJECT = 3, + + /// + /// Enum ATTACHMENTS for value: ATTACHMENTS + /// + [EnumMember(Value = "ATTACHMENTS")] + ATTACHMENTS = 4 + + } + + + /// + /// Field to match against to trigger inbox replier for inbound email + /// + /// Field to match against to trigger inbox replier for inbound email + [DataMember(Name = "field", IsRequired = true, EmitDefaultValue = true)] + public FieldEnum Field { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateInboxReplierOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Inbox ID to attach replier to (required). + /// Name for replier. + /// Field to match against to trigger inbox replier for inbound email (required). + /// String or wildcard style match for field specified when evaluating reply rules (required). + /// Reply-to email address when sending replying. + /// Subject override when replying to email. + /// Send email from address. + /// Email reply charset. + /// Send HTML email. + /// Ignore sender replyTo when responding. Send directly to the sender if enabled.. + /// Email body for reply. + /// ID of template to use when sending a reply. + /// Template variable values. + public UpdateInboxReplierOptions(Guid inboxId = default(Guid), string name = default(string), FieldEnum field = default(FieldEnum), string match = default(string), string replyTo = default(string), string subject = default(string), string from = default(string), string charset = default(string), bool? isHTML = default(bool?), bool? ignoreReplyTo = default(bool?), string body = default(string), Guid? templateId = default(Guid?), Dictionary templateVariables = default(Dictionary)) + { + this.InboxId = inboxId; + this.Field = field; + // to ensure "match" is required (not null) + if (match == null) + { + throw new ArgumentNullException("match is a required property for UpdateInboxReplierOptions and cannot be null"); + } + this.Match = match; + this.Name = name; + this.ReplyTo = replyTo; + this.Subject = subject; + this.From = from; + this.Charset = charset; + this.IsHTML = isHTML; + this.IgnoreReplyTo = ignoreReplyTo; + this.Body = body; + this.TemplateId = templateId; + this.TemplateVariables = templateVariables; + } + + /// + /// Inbox ID to attach replier to + /// + /// Inbox ID to attach replier to + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Name for replier + /// + /// Name for replier + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// String or wildcard style match for field specified when evaluating reply rules + /// + /// String or wildcard style match for field specified when evaluating reply rules + [DataMember(Name = "match", IsRequired = true, EmitDefaultValue = true)] + public string Match { get; set; } + + /// + /// Reply-to email address when sending replying + /// + /// Reply-to email address when sending replying + [DataMember(Name = "replyTo", EmitDefaultValue = true)] + public string ReplyTo { get; set; } + + /// + /// Subject override when replying to email + /// + /// Subject override when replying to email + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Send email from address + /// + /// Send email from address + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Email reply charset + /// + /// Email reply charset + [DataMember(Name = "charset", EmitDefaultValue = true)] + public string Charset { get; set; } + + /// + /// Send HTML email + /// + /// Send HTML email + [DataMember(Name = "isHTML", EmitDefaultValue = true)] + public bool? IsHTML { get; set; } + + /// + /// Ignore sender replyTo when responding. Send directly to the sender if enabled. + /// + /// Ignore sender replyTo when responding. Send directly to the sender if enabled. + [DataMember(Name = "ignoreReplyTo", EmitDefaultValue = true)] + public bool? IgnoreReplyTo { get; set; } + + /// + /// Email body for reply + /// + /// Email body for reply + [DataMember(Name = "body", EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// ID of template to use when sending a reply + /// + /// ID of template to use when sending a reply + [DataMember(Name = "templateId", EmitDefaultValue = true)] + public Guid? TemplateId { get; set; } + + /// + /// Template variable values + /// + /// Template variable values + [DataMember(Name = "templateVariables", EmitDefaultValue = true)] + public Dictionary TemplateVariables { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateInboxReplierOptions {\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Field: ").Append(Field).Append("\n"); + sb.Append(" Match: ").Append(Match).Append("\n"); + sb.Append(" ReplyTo: ").Append(ReplyTo).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Charset: ").Append(Charset).Append("\n"); + sb.Append(" IsHTML: ").Append(IsHTML).Append("\n"); + sb.Append(" IgnoreReplyTo: ").Append(IgnoreReplyTo).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" TemplateId: ").Append(TemplateId).Append("\n"); + sb.Append(" TemplateVariables: ").Append(TemplateVariables).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateInboxReplierOptions); + } + + /// + /// Returns true if UpdateInboxReplierOptions instances are equal + /// + /// Instance of UpdateInboxReplierOptions to be compared + /// Boolean + public bool Equals(UpdateInboxReplierOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Field == input.Field || + this.Field.Equals(input.Field) + ) && + ( + this.Match == input.Match || + (this.Match != null && + this.Match.Equals(input.Match)) + ) && + ( + this.ReplyTo == input.ReplyTo || + (this.ReplyTo != null && + this.ReplyTo.Equals(input.ReplyTo)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.Charset == input.Charset || + (this.Charset != null && + this.Charset.Equals(input.Charset)) + ) && + ( + this.IsHTML == input.IsHTML || + (this.IsHTML != null && + this.IsHTML.Equals(input.IsHTML)) + ) && + ( + this.IgnoreReplyTo == input.IgnoreReplyTo || + (this.IgnoreReplyTo != null && + this.IgnoreReplyTo.Equals(input.IgnoreReplyTo)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.TemplateId == input.TemplateId || + (this.TemplateId != null && + this.TemplateId.Equals(input.TemplateId)) + ) && + ( + this.TemplateVariables == input.TemplateVariables || + this.TemplateVariables != null && + input.TemplateVariables != null && + this.TemplateVariables.SequenceEqual(input.TemplateVariables) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Field.GetHashCode(); + if (this.Match != null) + { + hashCode = (hashCode * 59) + this.Match.GetHashCode(); + } + if (this.ReplyTo != null) + { + hashCode = (hashCode * 59) + this.ReplyTo.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.Charset != null) + { + hashCode = (hashCode * 59) + this.Charset.GetHashCode(); + } + if (this.IsHTML != null) + { + hashCode = (hashCode * 59) + this.IsHTML.GetHashCode(); + } + if (this.IgnoreReplyTo != null) + { + hashCode = (hashCode * 59) + this.IgnoreReplyTo.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + if (this.TemplateId != null) + { + hashCode = (hashCode * 59) + this.TemplateId.GetHashCode(); + } + if (this.TemplateVariables != null) + { + hashCode = (hashCode * 59) + this.TemplateVariables.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UpdateSmtpAccessOptions.cs b/src/mailslurp_netstandard_2x/Model/UpdateSmtpAccessOptions.cs new file mode 100644 index 00000000..80ecd2c7 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UpdateSmtpAccessOptions.cs @@ -0,0 +1,149 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Edit access details for inbox using SMTP + /// + [DataContract(Name = "UpdateSmtpAccessOptions")] + public partial class UpdateSmtpAccessOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// SMTP username for login. + /// SMTP password for login. + public UpdateSmtpAccessOptions(string smtpUsername = default(string), string smtpPassword = default(string)) + { + this.SmtpUsername = smtpUsername; + this.SmtpPassword = smtpPassword; + } + + /// + /// SMTP username for login + /// + /// SMTP username for login + [DataMember(Name = "smtpUsername", EmitDefaultValue = true)] + public string SmtpUsername { get; set; } + + /// + /// SMTP password for login + /// + /// SMTP password for login + [DataMember(Name = "smtpPassword", EmitDefaultValue = true)] + public string SmtpPassword { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateSmtpAccessOptions {\n"); + sb.Append(" SmtpUsername: ").Append(SmtpUsername).Append("\n"); + sb.Append(" SmtpPassword: ").Append(SmtpPassword).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateSmtpAccessOptions); + } + + /// + /// Returns true if UpdateSmtpAccessOptions instances are equal + /// + /// Instance of UpdateSmtpAccessOptions to be compared + /// Boolean + public bool Equals(UpdateSmtpAccessOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.SmtpUsername == input.SmtpUsername || + (this.SmtpUsername != null && + this.SmtpUsername.Equals(input.SmtpUsername)) + ) && + ( + this.SmtpPassword == input.SmtpPassword || + (this.SmtpPassword != null && + this.SmtpPassword.Equals(input.SmtpPassword)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SmtpUsername != null) + { + hashCode = (hashCode * 59) + this.SmtpUsername.GetHashCode(); + } + if (this.SmtpPassword != null) + { + hashCode = (hashCode * 59) + this.SmtpPassword.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UploadAttachmentOptions.cs b/src/mailslurp_netstandard_2x/Model/UploadAttachmentOptions.cs new file mode 100644 index 00000000..c6d711d9 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UploadAttachmentOptions.cs @@ -0,0 +1,197 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for uploading files for attachments. When sending emails with the API that require attachments first upload each attachment. Then use the returned attachment ID in your `SendEmailOptions` when sending an email. This way you can use attachments multiple times once they have been uploaded. + /// + [DataContract(Name = "UploadAttachmentOptions")] + public partial class UploadAttachmentOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UploadAttachmentOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// Optional contentId for file.. + /// Optional contentType for file. For instance `application/pdf`. + /// Optional filename to save upload with. Will be the name that is shown in email clients. + /// Base64 encoded string of file contents. Typically this means reading the bytes or string content of a file and then converting that to a base64 encoded string. For examples of how to do this see https://www.mailslurp.com/guides/base64-file-uploads/ (required). + public UploadAttachmentOptions(string contentId = default(string), string contentType = default(string), string filename = default(string), string base64Contents = default(string)) + { + // to ensure "base64Contents" is required (not null) + if (base64Contents == null) + { + throw new ArgumentNullException("base64Contents is a required property for UploadAttachmentOptions and cannot be null"); + } + this.Base64Contents = base64Contents; + this.ContentId = contentId; + this.ContentType = contentType; + this.Filename = filename; + } + + /// + /// Optional contentId for file. + /// + /// Optional contentId for file. + [DataMember(Name = "contentId", EmitDefaultValue = true)] + public string ContentId { get; set; } + + /// + /// Optional contentType for file. For instance `application/pdf` + /// + /// Optional contentType for file. For instance `application/pdf` + [DataMember(Name = "contentType", EmitDefaultValue = true)] + public string ContentType { get; set; } + + /// + /// Optional filename to save upload with. Will be the name that is shown in email clients + /// + /// Optional filename to save upload with. Will be the name that is shown in email clients + [DataMember(Name = "filename", EmitDefaultValue = true)] + public string Filename { get; set; } + + /// + /// Base64 encoded string of file contents. Typically this means reading the bytes or string content of a file and then converting that to a base64 encoded string. For examples of how to do this see https://www.mailslurp.com/guides/base64-file-uploads/ + /// + /// Base64 encoded string of file contents. Typically this means reading the bytes or string content of a file and then converting that to a base64 encoded string. For examples of how to do this see https://www.mailslurp.com/guides/base64-file-uploads/ + [DataMember(Name = "base64Contents", IsRequired = true, EmitDefaultValue = true)] + public string Base64Contents { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UploadAttachmentOptions {\n"); + sb.Append(" ContentId: ").Append(ContentId).Append("\n"); + sb.Append(" ContentType: ").Append(ContentType).Append("\n"); + sb.Append(" Filename: ").Append(Filename).Append("\n"); + sb.Append(" Base64Contents: ").Append(Base64Contents).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UploadAttachmentOptions); + } + + /// + /// Returns true if UploadAttachmentOptions instances are equal + /// + /// Instance of UploadAttachmentOptions to be compared + /// Boolean + public bool Equals(UploadAttachmentOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.ContentId == input.ContentId || + (this.ContentId != null && + this.ContentId.Equals(input.ContentId)) + ) && + ( + this.ContentType == input.ContentType || + (this.ContentType != null && + this.ContentType.Equals(input.ContentType)) + ) && + ( + this.Filename == input.Filename || + (this.Filename != null && + this.Filename.Equals(input.Filename)) + ) && + ( + this.Base64Contents == input.Base64Contents || + (this.Base64Contents != null && + this.Base64Contents.Equals(input.Base64Contents)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ContentId != null) + { + hashCode = (hashCode * 59) + this.ContentId.GetHashCode(); + } + if (this.ContentType != null) + { + hashCode = (hashCode * 59) + this.ContentType.GetHashCode(); + } + if (this.Filename != null) + { + hashCode = (hashCode * 59) + this.Filename.GetHashCode(); + } + if (this.Base64Contents != null) + { + hashCode = (hashCode * 59) + this.Base64Contents.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UploadMultipartFormRequest.cs b/src/mailslurp_netstandard_2x/Model/UploadMultipartFormRequest.cs new file mode 100644 index 00000000..0fbbf2e0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UploadMultipartFormRequest.cs @@ -0,0 +1,158 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// UploadMultipartFormRequest + /// + [DataContract(Name = "uploadMultipartForm_request")] + public partial class UploadMultipartFormRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UploadMultipartFormRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// Optional content type header of attachment. + /// file (required). + public UploadMultipartFormRequest(string contentTypeHeader = default(string), System.IO.Stream file = default(System.IO.Stream)) + { + // to ensure "file" is required (not null) + if (file == null) + { + throw new ArgumentNullException("file is a required property for UploadMultipartFormRequest and cannot be null"); + } + this.File = file; + this.ContentTypeHeader = contentTypeHeader; + } + + /// + /// Optional content type header of attachment + /// + /// Optional content type header of attachment + [DataMember(Name = "contentTypeHeader", EmitDefaultValue = false)] + public string ContentTypeHeader { get; set; } + + /// + /// Gets or Sets File + /// + [DataMember(Name = "file", IsRequired = true, EmitDefaultValue = true)] + public System.IO.Stream File { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UploadMultipartFormRequest {\n"); + sb.Append(" ContentTypeHeader: ").Append(ContentTypeHeader).Append("\n"); + sb.Append(" File: ").Append(File).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UploadMultipartFormRequest); + } + + /// + /// Returns true if UploadMultipartFormRequest instances are equal + /// + /// Instance of UploadMultipartFormRequest to be compared + /// Boolean + public bool Equals(UploadMultipartFormRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.ContentTypeHeader == input.ContentTypeHeader || + (this.ContentTypeHeader != null && + this.ContentTypeHeader.Equals(input.ContentTypeHeader)) + ) && + ( + this.File == input.File || + (this.File != null && + this.File.Equals(input.File)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ContentTypeHeader != null) + { + hashCode = (hashCode * 59) + this.ContentTypeHeader.GetHashCode(); + } + if (this.File != null) + { + hashCode = (hashCode * 59) + this.File.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/UserInfoDto.cs b/src/mailslurp_netstandard_2x/Model/UserInfoDto.cs new file mode 100644 index 00000000..25e647ad --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/UserInfoDto.cs @@ -0,0 +1,307 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// UserInfoDto + /// + [DataContract(Name = "UserInfoDto")] + public partial class UserInfoDto : IEquatable, IValidatableObject + { + /// + /// Defines AccountState + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AccountStateEnum + { + /// + /// Enum FROZEN for value: FROZEN + /// + [EnumMember(Value = "FROZEN")] + FROZEN = 1, + + /// + /// Enum ACTIVE for value: ACTIVE + /// + [EnumMember(Value = "ACTIVE")] + ACTIVE = 2 + + } + + + /// + /// Gets or Sets AccountState + /// + [DataMember(Name = "accountState", IsRequired = true, EmitDefaultValue = true)] + public AccountStateEnum AccountState { get; set; } + /// + /// Defines SubscriptionType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SubscriptionTypeEnum + { + /// + /// Enum PROMONTHLY for value: PRO_MONTHLY + /// + [EnumMember(Value = "PRO_MONTHLY")] + PROMONTHLY = 1, + + /// + /// Enum STARTER for value: STARTER + /// + [EnumMember(Value = "STARTER")] + STARTER = 2, + + /// + /// Enum PRO for value: PRO + /// + [EnumMember(Value = "PRO")] + PRO = 3, + + /// + /// Enum TEAM for value: TEAM + /// + [EnumMember(Value = "TEAM")] + TEAM = 4, + + /// + /// Enum ENTERPRISE for value: ENTERPRISE + /// + [EnumMember(Value = "ENTERPRISE")] + ENTERPRISE = 5 + + } + + + /// + /// Gets or Sets SubscriptionType + /// + [DataMember(Name = "subscriptionType", EmitDefaultValue = false)] + public SubscriptionTypeEnum? SubscriptionType { get; set; } + /// + /// Defines AccountType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AccountTypeEnum + { + /// + /// Enum SOLO for value: SOLO + /// + [EnumMember(Value = "SOLO")] + SOLO = 1, + + /// + /// Enum CHILDSOLO for value: CHILD_SOLO + /// + [EnumMember(Value = "CHILD_SOLO")] + CHILDSOLO = 2, + + /// + /// Enum CHILDTEAM for value: CHILD_TEAM + /// + [EnumMember(Value = "CHILD_TEAM")] + CHILDTEAM = 3, + + /// + /// Enum CHILDADMIN for value: CHILD_ADMIN + /// + [EnumMember(Value = "CHILD_ADMIN")] + CHILDADMIN = 4 + + } + + + /// + /// Gets or Sets AccountType + /// + [DataMember(Name = "accountType", IsRequired = true, EmitDefaultValue = true)] + public AccountTypeEnum AccountType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UserInfoDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// emailAddress (required). + /// accountState (required). + /// subscriptionType. + /// accountType (required). + /// createdAt (required). + public UserInfoDto(Guid id = default(Guid), string emailAddress = default(string), AccountStateEnum accountState = default(AccountStateEnum), SubscriptionTypeEnum? subscriptionType = default(SubscriptionTypeEnum?), AccountTypeEnum accountType = default(AccountTypeEnum), DateTime createdAt = default(DateTime)) + { + this.Id = id; + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for UserInfoDto and cannot be null"); + } + this.EmailAddress = emailAddress; + this.AccountState = accountState; + this.AccountType = accountType; + this.CreatedAt = createdAt; + this.SubscriptionType = subscriptionType; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UserInfoDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" AccountState: ").Append(AccountState).Append("\n"); + sb.Append(" SubscriptionType: ").Append(SubscriptionType).Append("\n"); + sb.Append(" AccountType: ").Append(AccountType).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserInfoDto); + } + + /// + /// Returns true if UserInfoDto instances are equal + /// + /// Instance of UserInfoDto to be compared + /// Boolean + public bool Equals(UserInfoDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.AccountState == input.AccountState || + this.AccountState.Equals(input.AccountState) + ) && + ( + this.SubscriptionType == input.SubscriptionType || + this.SubscriptionType.Equals(input.SubscriptionType) + ) && + ( + this.AccountType == input.AccountType || + this.AccountType.Equals(input.AccountType) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + hashCode = (hashCode * 59) + this.AccountState.GetHashCode(); + hashCode = (hashCode * 59) + this.SubscriptionType.GetHashCode(); + hashCode = (hashCode * 59) + this.AccountType.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ValidateEmailAddressListOptions.cs b/src/mailslurp_netstandard_2x/Model/ValidateEmailAddressListOptions.cs new file mode 100644 index 00000000..308e3c1f --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ValidateEmailAddressListOptions.cs @@ -0,0 +1,158 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for validating a list of email addresses + /// + [DataContract(Name = "ValidateEmailAddressListOptions")] + public partial class ValidateEmailAddressListOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ValidateEmailAddressListOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// emailAddressList (required). + /// ignoreOldResults. + public ValidateEmailAddressListOptions(List emailAddressList = default(List), bool? ignoreOldResults = default(bool?)) + { + // to ensure "emailAddressList" is required (not null) + if (emailAddressList == null) + { + throw new ArgumentNullException("emailAddressList is a required property for ValidateEmailAddressListOptions and cannot be null"); + } + this.EmailAddressList = emailAddressList; + this.IgnoreOldResults = ignoreOldResults; + } + + /// + /// Gets or Sets EmailAddressList + /// + [DataMember(Name = "emailAddressList", IsRequired = true, EmitDefaultValue = true)] + public List EmailAddressList { get; set; } + + /// + /// Gets or Sets IgnoreOldResults + /// + [DataMember(Name = "ignoreOldResults", EmitDefaultValue = true)] + public bool? IgnoreOldResults { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ValidateEmailAddressListOptions {\n"); + sb.Append(" EmailAddressList: ").Append(EmailAddressList).Append("\n"); + sb.Append(" IgnoreOldResults: ").Append(IgnoreOldResults).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ValidateEmailAddressListOptions); + } + + /// + /// Returns true if ValidateEmailAddressListOptions instances are equal + /// + /// Instance of ValidateEmailAddressListOptions to be compared + /// Boolean + public bool Equals(ValidateEmailAddressListOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailAddressList == input.EmailAddressList || + this.EmailAddressList != null && + input.EmailAddressList != null && + this.EmailAddressList.SequenceEqual(input.EmailAddressList) + ) && + ( + this.IgnoreOldResults == input.IgnoreOldResults || + (this.IgnoreOldResults != null && + this.IgnoreOldResults.Equals(input.IgnoreOldResults)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailAddressList != null) + { + hashCode = (hashCode * 59) + this.EmailAddressList.GetHashCode(); + } + if (this.IgnoreOldResults != null) + { + hashCode = (hashCode * 59) + this.IgnoreOldResults.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ValidateEmailAddressListResult.cs b/src/mailslurp_netstandard_2x/Model/ValidateEmailAddressListResult.cs new file mode 100644 index 00000000..fe749df7 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ValidateEmailAddressListResult.cs @@ -0,0 +1,188 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Result of validating a list of email addresses + /// + [DataContract(Name = "ValidateEmailAddressListResult")] + public partial class ValidateEmailAddressListResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ValidateEmailAddressListResult() { } + /// + /// Initializes a new instance of the class. + /// + /// validEmailAddresses (required). + /// invalidEmailAddresses (required). + /// resultMapEmailAddressIsValid (required). + public ValidateEmailAddressListResult(List validEmailAddresses = default(List), List invalidEmailAddresses = default(List), Dictionary resultMapEmailAddressIsValid = default(Dictionary)) + { + // to ensure "validEmailAddresses" is required (not null) + if (validEmailAddresses == null) + { + throw new ArgumentNullException("validEmailAddresses is a required property for ValidateEmailAddressListResult and cannot be null"); + } + this.ValidEmailAddresses = validEmailAddresses; + // to ensure "invalidEmailAddresses" is required (not null) + if (invalidEmailAddresses == null) + { + throw new ArgumentNullException("invalidEmailAddresses is a required property for ValidateEmailAddressListResult and cannot be null"); + } + this.InvalidEmailAddresses = invalidEmailAddresses; + // to ensure "resultMapEmailAddressIsValid" is required (not null) + if (resultMapEmailAddressIsValid == null) + { + throw new ArgumentNullException("resultMapEmailAddressIsValid is a required property for ValidateEmailAddressListResult and cannot be null"); + } + this.ResultMapEmailAddressIsValid = resultMapEmailAddressIsValid; + } + + /// + /// Gets or Sets ValidEmailAddresses + /// + [DataMember(Name = "validEmailAddresses", IsRequired = true, EmitDefaultValue = true)] + public List ValidEmailAddresses { get; set; } + + /// + /// Gets or Sets InvalidEmailAddresses + /// + [DataMember(Name = "invalidEmailAddresses", IsRequired = true, EmitDefaultValue = true)] + public List InvalidEmailAddresses { get; set; } + + /// + /// Gets or Sets ResultMapEmailAddressIsValid + /// + [DataMember(Name = "resultMapEmailAddressIsValid", IsRequired = true, EmitDefaultValue = true)] + public Dictionary ResultMapEmailAddressIsValid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ValidateEmailAddressListResult {\n"); + sb.Append(" ValidEmailAddresses: ").Append(ValidEmailAddresses).Append("\n"); + sb.Append(" InvalidEmailAddresses: ").Append(InvalidEmailAddresses).Append("\n"); + sb.Append(" ResultMapEmailAddressIsValid: ").Append(ResultMapEmailAddressIsValid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ValidateEmailAddressListResult); + } + + /// + /// Returns true if ValidateEmailAddressListResult instances are equal + /// + /// Instance of ValidateEmailAddressListResult to be compared + /// Boolean + public bool Equals(ValidateEmailAddressListResult input) + { + if (input == null) + { + return false; + } + return + ( + this.ValidEmailAddresses == input.ValidEmailAddresses || + this.ValidEmailAddresses != null && + input.ValidEmailAddresses != null && + this.ValidEmailAddresses.SequenceEqual(input.ValidEmailAddresses) + ) && + ( + this.InvalidEmailAddresses == input.InvalidEmailAddresses || + this.InvalidEmailAddresses != null && + input.InvalidEmailAddresses != null && + this.InvalidEmailAddresses.SequenceEqual(input.InvalidEmailAddresses) + ) && + ( + this.ResultMapEmailAddressIsValid == input.ResultMapEmailAddressIsValid || + this.ResultMapEmailAddressIsValid != null && + input.ResultMapEmailAddressIsValid != null && + this.ResultMapEmailAddressIsValid.SequenceEqual(input.ResultMapEmailAddressIsValid) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ValidEmailAddresses != null) + { + hashCode = (hashCode * 59) + this.ValidEmailAddresses.GetHashCode(); + } + if (this.InvalidEmailAddresses != null) + { + hashCode = (hashCode * 59) + this.InvalidEmailAddresses.GetHashCode(); + } + if (this.ResultMapEmailAddressIsValid != null) + { + hashCode = (hashCode * 59) + this.ResultMapEmailAddressIsValid.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ValidationDto.cs b/src/mailslurp_netstandard_2x/Model/ValidationDto.cs new file mode 100644 index 00000000..41a76ac7 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ValidationDto.cs @@ -0,0 +1,158 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Response object for email validation operation + /// + [DataContract(Name = "ValidationDto")] + public partial class ValidationDto : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ValidationDto() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of the email validated (required). + /// html (required). + public ValidationDto(Guid emailId = default(Guid), HTMLValidationResult html = default(HTMLValidationResult)) + { + this.EmailId = emailId; + // to ensure "html" is required (not null) + if (html == null) + { + throw new ArgumentNullException("html is a required property for ValidationDto and cannot be null"); + } + this.Html = html; + } + + /// + /// ID of the email validated + /// + /// ID of the email validated + [DataMember(Name = "emailId", IsRequired = true, EmitDefaultValue = true)] + public Guid EmailId { get; set; } + + /// + /// Gets or Sets Html + /// + [DataMember(Name = "html", IsRequired = true, EmitDefaultValue = true)] + public HTMLValidationResult Html { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ValidationDto {\n"); + sb.Append(" EmailId: ").Append(EmailId).Append("\n"); + sb.Append(" Html: ").Append(Html).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ValidationDto); + } + + /// + /// Returns true if ValidationDto instances are equal + /// + /// Instance of ValidationDto to be compared + /// Boolean + public bool Equals(ValidationDto input) + { + if (input == null) + { + return false; + } + return + ( + this.EmailId == input.EmailId || + (this.EmailId != null && + this.EmailId.Equals(input.EmailId)) + ) && + ( + this.Html == input.Html || + (this.Html != null && + this.Html.Equals(input.Html)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailId != null) + { + hashCode = (hashCode * 59) + this.EmailId.GetHashCode(); + } + if (this.Html != null) + { + hashCode = (hashCode * 59) + this.Html.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/ValidationMessage.cs b/src/mailslurp_netstandard_2x/Model/ValidationMessage.cs new file mode 100644 index 00000000..2bd6d1cb --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/ValidationMessage.cs @@ -0,0 +1,148 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Optional warnings resulting from HTML validation + /// + [DataContract(Name = "ValidationMessage")] + public partial class ValidationMessage : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ValidationMessage() { } + /// + /// Initializes a new instance of the class. + /// + /// lineNumber (required). + /// message. + public ValidationMessage(int lineNumber = default(int), string message = default(string)) + { + this.LineNumber = lineNumber; + this.Message = message; + } + + /// + /// Gets or Sets LineNumber + /// + [DataMember(Name = "lineNumber", IsRequired = true, EmitDefaultValue = true)] + public int LineNumber { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ValidationMessage {\n"); + sb.Append(" LineNumber: ").Append(LineNumber).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ValidationMessage); + } + + /// + /// Returns true if ValidationMessage instances are equal + /// + /// Instance of ValidationMessage to be compared + /// Boolean + public bool Equals(ValidationMessage input) + { + if (input == null) + { + return false; + } + return + ( + this.LineNumber == input.LineNumber || + this.LineNumber.Equals(input.LineNumber) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.LineNumber.GetHashCode(); + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/VerifyEmailAddressOptions.cs b/src/mailslurp_netstandard_2x/Model/VerifyEmailAddressOptions.cs new file mode 100644 index 00000000..474cdbdc --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/VerifyEmailAddressOptions.cs @@ -0,0 +1,193 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Options for verifying that an email address exists at a remote mail server. + /// + [DataContract(Name = "VerifyEmailAddressOptions")] + public partial class VerifyEmailAddressOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected VerifyEmailAddressOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// mailServerDomain. + /// emailAddress (required). + /// senderEmailAddress. + /// port. + public VerifyEmailAddressOptions(string mailServerDomain = default(string), string emailAddress = default(string), string senderEmailAddress = default(string), int? port = default(int?)) + { + // to ensure "emailAddress" is required (not null) + if (emailAddress == null) + { + throw new ArgumentNullException("emailAddress is a required property for VerifyEmailAddressOptions and cannot be null"); + } + this.EmailAddress = emailAddress; + this.MailServerDomain = mailServerDomain; + this.SenderEmailAddress = senderEmailAddress; + this.Port = port; + } + + /// + /// Gets or Sets MailServerDomain + /// + [DataMember(Name = "mailServerDomain", EmitDefaultValue = true)] + public string MailServerDomain { get; set; } + + /// + /// Gets or Sets EmailAddress + /// + [DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)] + public string EmailAddress { get; set; } + + /// + /// Gets or Sets SenderEmailAddress + /// + [DataMember(Name = "senderEmailAddress", EmitDefaultValue = true)] + public string SenderEmailAddress { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", EmitDefaultValue = true)] + public int? Port { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class VerifyEmailAddressOptions {\n"); + sb.Append(" MailServerDomain: ").Append(MailServerDomain).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" SenderEmailAddress: ").Append(SenderEmailAddress).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VerifyEmailAddressOptions); + } + + /// + /// Returns true if VerifyEmailAddressOptions instances are equal + /// + /// Instance of VerifyEmailAddressOptions to be compared + /// Boolean + public bool Equals(VerifyEmailAddressOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.MailServerDomain == input.MailServerDomain || + (this.MailServerDomain != null && + this.MailServerDomain.Equals(input.MailServerDomain)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.SenderEmailAddress == input.SenderEmailAddress || + (this.SenderEmailAddress != null && + this.SenderEmailAddress.Equals(input.SenderEmailAddress)) + ) && + ( + this.Port == input.Port || + (this.Port != null && + this.Port.Equals(input.Port)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MailServerDomain != null) + { + hashCode = (hashCode * 59) + this.MailServerDomain.GetHashCode(); + } + if (this.EmailAddress != null) + { + hashCode = (hashCode * 59) + this.EmailAddress.GetHashCode(); + } + if (this.SenderEmailAddress != null) + { + hashCode = (hashCode * 59) + this.SenderEmailAddress.GetHashCode(); + } + if (this.Port != null) + { + hashCode = (hashCode * 59) + this.Port.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/VerifyWebhookSignatureOptions.cs b/src/mailslurp_netstandard_2x/Model/VerifyWebhookSignatureOptions.cs new file mode 100644 index 00000000..b89aff3d --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/VerifyWebhookSignatureOptions.cs @@ -0,0 +1,162 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// VerifyWebhookSignatureOptions + /// + [DataContract(Name = "VerifyWebhookSignatureOptions")] + public partial class VerifyWebhookSignatureOptions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected VerifyWebhookSignatureOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// messageId (required). + /// signature (required). + public VerifyWebhookSignatureOptions(string messageId = default(string), string signature = default(string)) + { + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for VerifyWebhookSignatureOptions and cannot be null"); + } + this.MessageId = messageId; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for VerifyWebhookSignatureOptions and cannot be null"); + } + this.Signature = signature; + } + + /// + /// Gets or Sets MessageId + /// + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// Gets or Sets Signature + /// + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class VerifyWebhookSignatureOptions {\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VerifyWebhookSignatureOptions); + } + + /// + /// Returns true if VerifyWebhookSignatureOptions instances are equal + /// + /// Instance of VerifyWebhookSignatureOptions to be compared + /// Boolean + public bool Equals(VerifyWebhookSignatureOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.Signature == input.Signature || + (this.Signature != null && + this.Signature.Equals(input.Signature)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.Signature != null) + { + hashCode = (hashCode * 59) + this.Signature.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/VerifyWebhookSignatureResults.cs b/src/mailslurp_netstandard_2x/Model/VerifyWebhookSignatureResults.cs new file mode 100644 index 00000000..939ef959 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/VerifyWebhookSignatureResults.cs @@ -0,0 +1,130 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// VerifyWebhookSignatureResults + /// + [DataContract(Name = "VerifyWebhookSignatureResults")] + public partial class VerifyWebhookSignatureResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected VerifyWebhookSignatureResults() { } + /// + /// Initializes a new instance of the class. + /// + /// isValid (required). + public VerifyWebhookSignatureResults(bool isValid = default(bool)) + { + this.IsValid = isValid; + } + + /// + /// Gets or Sets IsValid + /// + [DataMember(Name = "isValid", IsRequired = true, EmitDefaultValue = true)] + public bool IsValid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class VerifyWebhookSignatureResults {\n"); + sb.Append(" IsValid: ").Append(IsValid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VerifyWebhookSignatureResults); + } + + /// + /// Returns true if VerifyWebhookSignatureResults instances are equal + /// + /// Instance of VerifyWebhookSignatureResults to be compared + /// Boolean + public bool Equals(VerifyWebhookSignatureResults input) + { + if (input == null) + { + return false; + } + return + ( + this.IsValid == input.IsValid || + this.IsValid.Equals(input.IsValid) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.IsValid.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WaitForConditions.cs b/src/mailslurp_netstandard_2x/Model/WaitForConditions.cs new file mode 100644 index 00000000..5c82beaf --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WaitForConditions.cs @@ -0,0 +1,337 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Conditions to apply to emails that you are waiting for + /// + [DataContract(Name = "WaitForConditions")] + public partial class WaitForConditions : IEquatable, IValidatableObject + { + /// + /// How result size should be compared with the expected size. Exactly or at-least matching result? + /// + /// How result size should be compared with the expected size. Exactly or at-least matching result? + [JsonConverter(typeof(StringEnumConverter))] + public enum CountTypeEnum + { + /// + /// Enum EXACTLY for value: EXACTLY + /// + [EnumMember(Value = "EXACTLY")] + EXACTLY = 1, + + /// + /// Enum ATLEAST for value: ATLEAST + /// + [EnumMember(Value = "ATLEAST")] + ATLEAST = 2 + + } + + + /// + /// How result size should be compared with the expected size. Exactly or at-least matching result? + /// + /// How result size should be compared with the expected size. Exactly or at-least matching result? + [DataMember(Name = "countType", EmitDefaultValue = true)] + public CountTypeEnum? CountType { get; set; } + /// + /// Direction to sort matching emails by created time + /// + /// Direction to sort matching emails by created time + [JsonConverter(typeof(StringEnumConverter))] + public enum SortDirectionEnum + { + /// + /// Enum ASC for value: ASC + /// + [EnumMember(Value = "ASC")] + ASC = 1, + + /// + /// Enum DESC for value: DESC + /// + [EnumMember(Value = "DESC")] + DESC = 2 + + } + + + /// + /// Direction to sort matching emails by created time + /// + /// Direction to sort matching emails by created time + [DataMember(Name = "sortDirection", EmitDefaultValue = true)] + public SortDirectionEnum? SortDirection { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WaitForConditions() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of inbox to search within and apply conditions to. Essentially filtering the emails found to give a count. (required). + /// Number of results that should match conditions. Either exactly or at least this amount based on the `countType`. If count condition is not met and the timeout has not been reached the `waitFor` method will retry the operation.. + /// Max time in milliseconds to wait between retries if a `timeout` is specified.. + /// Max time in milliseconds to retry the `waitFor` operation until conditions are met. (required). + /// Apply conditions only to **unread** emails. All emails begin with `read=false`. An email is marked `read=true` when an `EmailDto` representation of it has been returned to the user at least once. For example you have called `getEmail` or `waitForLatestEmail` etc., or you have viewed the email in the dashboard.. + /// How result size should be compared with the expected size. Exactly or at-least matching result?. + /// Conditions that should be matched for an email to qualify for results. Each condition will be applied in order to each email within an inbox to filter a result list of matching emails you are waiting for.. + /// Direction to sort matching emails by created time. + /// ISO Date Time earliest time of email to consider. Filter for matching emails that were received after this date. + /// ISO Date Time latest time of email to consider. Filter for matching emails that were received before this date. + public WaitForConditions(Guid inboxId = default(Guid), int? count = default(int?), long? delayTimeout = default(long?), long timeout = default(long), bool? unreadOnly = default(bool?), CountTypeEnum? countType = default(CountTypeEnum?), List matches = default(List), SortDirectionEnum? sortDirection = default(SortDirectionEnum?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?)) + { + this.InboxId = inboxId; + this.Timeout = timeout; + this.Count = count; + this.DelayTimeout = delayTimeout; + this.UnreadOnly = unreadOnly; + this.CountType = countType; + this.Matches = matches; + this.SortDirection = sortDirection; + this.Since = since; + this.Before = before; + } + + /// + /// ID of inbox to search within and apply conditions to. Essentially filtering the emails found to give a count. + /// + /// ID of inbox to search within and apply conditions to. Essentially filtering the emails found to give a count. + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Number of results that should match conditions. Either exactly or at least this amount based on the `countType`. If count condition is not met and the timeout has not been reached the `waitFor` method will retry the operation. + /// + /// Number of results that should match conditions. Either exactly or at least this amount based on the `countType`. If count condition is not met and the timeout has not been reached the `waitFor` method will retry the operation. + [DataMember(Name = "count", EmitDefaultValue = true)] + public int? Count { get; set; } + + /// + /// Max time in milliseconds to wait between retries if a `timeout` is specified. + /// + /// Max time in milliseconds to wait between retries if a `timeout` is specified. + [DataMember(Name = "delayTimeout", EmitDefaultValue = true)] + public long? DelayTimeout { get; set; } + + /// + /// Max time in milliseconds to retry the `waitFor` operation until conditions are met. + /// + /// Max time in milliseconds to retry the `waitFor` operation until conditions are met. + [DataMember(Name = "timeout", IsRequired = true, EmitDefaultValue = true)] + public long Timeout { get; set; } + + /// + /// Apply conditions only to **unread** emails. All emails begin with `read=false`. An email is marked `read=true` when an `EmailDto` representation of it has been returned to the user at least once. For example you have called `getEmail` or `waitForLatestEmail` etc., or you have viewed the email in the dashboard. + /// + /// Apply conditions only to **unread** emails. All emails begin with `read=false`. An email is marked `read=true` when an `EmailDto` representation of it has been returned to the user at least once. For example you have called `getEmail` or `waitForLatestEmail` etc., or you have viewed the email in the dashboard. + [DataMember(Name = "unreadOnly", EmitDefaultValue = true)] + public bool? UnreadOnly { get; set; } + + /// + /// Conditions that should be matched for an email to qualify for results. Each condition will be applied in order to each email within an inbox to filter a result list of matching emails you are waiting for. + /// + /// Conditions that should be matched for an email to qualify for results. Each condition will be applied in order to each email within an inbox to filter a result list of matching emails you are waiting for. + [DataMember(Name = "matches", EmitDefaultValue = true)] + public List Matches { get; set; } + + /// + /// ISO Date Time earliest time of email to consider. Filter for matching emails that were received after this date + /// + /// ISO Date Time earliest time of email to consider. Filter for matching emails that were received after this date + [DataMember(Name = "since", EmitDefaultValue = true)] + public DateTime? Since { get; set; } + + /// + /// ISO Date Time latest time of email to consider. Filter for matching emails that were received before this date + /// + /// ISO Date Time latest time of email to consider. Filter for matching emails that were received before this date + [DataMember(Name = "before", EmitDefaultValue = true)] + public DateTime? Before { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WaitForConditions {\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" Count: ").Append(Count).Append("\n"); + sb.Append(" DelayTimeout: ").Append(DelayTimeout).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append(" UnreadOnly: ").Append(UnreadOnly).Append("\n"); + sb.Append(" CountType: ").Append(CountType).Append("\n"); + sb.Append(" Matches: ").Append(Matches).Append("\n"); + sb.Append(" SortDirection: ").Append(SortDirection).Append("\n"); + sb.Append(" Since: ").Append(Since).Append("\n"); + sb.Append(" Before: ").Append(Before).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WaitForConditions); + } + + /// + /// Returns true if WaitForConditions instances are equal + /// + /// Instance of WaitForConditions to be compared + /// Boolean + public bool Equals(WaitForConditions input) + { + if (input == null) + { + return false; + } + return + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.Count == input.Count || + (this.Count != null && + this.Count.Equals(input.Count)) + ) && + ( + this.DelayTimeout == input.DelayTimeout || + (this.DelayTimeout != null && + this.DelayTimeout.Equals(input.DelayTimeout)) + ) && + ( + this.Timeout == input.Timeout || + this.Timeout.Equals(input.Timeout) + ) && + ( + this.UnreadOnly == input.UnreadOnly || + (this.UnreadOnly != null && + this.UnreadOnly.Equals(input.UnreadOnly)) + ) && + ( + this.CountType == input.CountType || + this.CountType.Equals(input.CountType) + ) && + ( + this.Matches == input.Matches || + this.Matches != null && + input.Matches != null && + this.Matches.SequenceEqual(input.Matches) + ) && + ( + this.SortDirection == input.SortDirection || + this.SortDirection.Equals(input.SortDirection) + ) && + ( + this.Since == input.Since || + (this.Since != null && + this.Since.Equals(input.Since)) + ) && + ( + this.Before == input.Before || + (this.Before != null && + this.Before.Equals(input.Before)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.Count != null) + { + hashCode = (hashCode * 59) + this.Count.GetHashCode(); + } + if (this.DelayTimeout != null) + { + hashCode = (hashCode * 59) + this.DelayTimeout.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Timeout.GetHashCode(); + if (this.UnreadOnly != null) + { + hashCode = (hashCode * 59) + this.UnreadOnly.GetHashCode(); + } + hashCode = (hashCode * 59) + this.CountType.GetHashCode(); + if (this.Matches != null) + { + hashCode = (hashCode * 59) + this.Matches.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SortDirection.GetHashCode(); + if (this.Since != null) + { + hashCode = (hashCode * 59) + this.Since.GetHashCode(); + } + if (this.Before != null) + { + hashCode = (hashCode * 59) + this.Before.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WaitForSingleSmsOptions.cs b/src/mailslurp_netstandard_2x/Model/WaitForSingleSmsOptions.cs new file mode 100644 index 00000000..1e8ebaf7 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WaitForSingleSmsOptions.cs @@ -0,0 +1,246 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// WaitForSingleSmsOptions + /// + [DataContract(Name = "WaitForSingleSmsOptions")] + public partial class WaitForSingleSmsOptions : IEquatable, IValidatableObject + { + /// + /// Defines SortDirection + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SortDirectionEnum + { + /// + /// Enum ASC for value: ASC + /// + [EnumMember(Value = "ASC")] + ASC = 1, + + /// + /// Enum DESC for value: DESC + /// + [EnumMember(Value = "DESC")] + DESC = 2 + + } + + + /// + /// Gets or Sets SortDirection + /// + [DataMember(Name = "sortDirection", EmitDefaultValue = false)] + public SortDirectionEnum? SortDirection { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WaitForSingleSmsOptions() { } + /// + /// Initializes a new instance of the class. + /// + /// phoneNumberId (required). + /// timeout (required). + /// unreadOnly. + /// before. + /// since. + /// sortDirection. + /// delay. + public WaitForSingleSmsOptions(Guid phoneNumberId = default(Guid), long timeout = default(long), bool unreadOnly = default(bool), DateTime before = default(DateTime), DateTime since = default(DateTime), SortDirectionEnum? sortDirection = default(SortDirectionEnum?), long delay = default(long)) + { + this.PhoneNumberId = phoneNumberId; + this.Timeout = timeout; + this.UnreadOnly = unreadOnly; + this.Before = before; + this.Since = since; + this.SortDirection = sortDirection; + this.Delay = delay; + } + + /// + /// Gets or Sets PhoneNumberId + /// + [DataMember(Name = "phoneNumberId", IsRequired = true, EmitDefaultValue = true)] + public Guid PhoneNumberId { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", IsRequired = true, EmitDefaultValue = true)] + public long Timeout { get; set; } + + /// + /// Gets or Sets UnreadOnly + /// + [DataMember(Name = "unreadOnly", EmitDefaultValue = true)] + public bool UnreadOnly { get; set; } + + /// + /// Gets or Sets Before + /// + [DataMember(Name = "before", EmitDefaultValue = false)] + public DateTime Before { get; set; } + + /// + /// Gets or Sets Since + /// + [DataMember(Name = "since", EmitDefaultValue = false)] + public DateTime Since { get; set; } + + /// + /// Gets or Sets Delay + /// + [DataMember(Name = "delay", EmitDefaultValue = false)] + public long Delay { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WaitForSingleSmsOptions {\n"); + sb.Append(" PhoneNumberId: ").Append(PhoneNumberId).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append(" UnreadOnly: ").Append(UnreadOnly).Append("\n"); + sb.Append(" Before: ").Append(Before).Append("\n"); + sb.Append(" Since: ").Append(Since).Append("\n"); + sb.Append(" SortDirection: ").Append(SortDirection).Append("\n"); + sb.Append(" Delay: ").Append(Delay).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WaitForSingleSmsOptions); + } + + /// + /// Returns true if WaitForSingleSmsOptions instances are equal + /// + /// Instance of WaitForSingleSmsOptions to be compared + /// Boolean + public bool Equals(WaitForSingleSmsOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.PhoneNumberId == input.PhoneNumberId || + (this.PhoneNumberId != null && + this.PhoneNumberId.Equals(input.PhoneNumberId)) + ) && + ( + this.Timeout == input.Timeout || + this.Timeout.Equals(input.Timeout) + ) && + ( + this.UnreadOnly == input.UnreadOnly || + this.UnreadOnly.Equals(input.UnreadOnly) + ) && + ( + this.Before == input.Before || + (this.Before != null && + this.Before.Equals(input.Before)) + ) && + ( + this.Since == input.Since || + (this.Since != null && + this.Since.Equals(input.Since)) + ) && + ( + this.SortDirection == input.SortDirection || + this.SortDirection.Equals(input.SortDirection) + ) && + ( + this.Delay == input.Delay || + this.Delay.Equals(input.Delay) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PhoneNumberId != null) + { + hashCode = (hashCode * 59) + this.PhoneNumberId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Timeout.GetHashCode(); + hashCode = (hashCode * 59) + this.UnreadOnly.GetHashCode(); + if (this.Before != null) + { + hashCode = (hashCode * 59) + this.Before.GetHashCode(); + } + if (this.Since != null) + { + hashCode = (hashCode * 59) + this.Since.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SortDirection.GetHashCode(); + hashCode = (hashCode * 59) + this.Delay.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WaitForSmsConditions.cs b/src/mailslurp_netstandard_2x/Model/WaitForSmsConditions.cs new file mode 100644 index 00000000..eae754c8 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WaitForSmsConditions.cs @@ -0,0 +1,352 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Conditions to apply to emails that you are waiting for + /// + [DataContract(Name = "WaitForSmsConditions")] + public partial class WaitForSmsConditions : IEquatable, IValidatableObject + { + /// + /// How result size should be compared with the expected size. Exactly or at-least matching result? + /// + /// How result size should be compared with the expected size. Exactly or at-least matching result? + [JsonConverter(typeof(StringEnumConverter))] + public enum CountTypeEnum + { + /// + /// Enum EXACTLY for value: EXACTLY + /// + [EnumMember(Value = "EXACTLY")] + EXACTLY = 1, + + /// + /// Enum ATLEAST for value: ATLEAST + /// + [EnumMember(Value = "ATLEAST")] + ATLEAST = 2 + + } + + + /// + /// How result size should be compared with the expected size. Exactly or at-least matching result? + /// + /// How result size should be compared with the expected size. Exactly or at-least matching result? + [DataMember(Name = "countType", EmitDefaultValue = true)] + public CountTypeEnum? CountType { get; set; } + /// + /// Direction to sort matching SMSs by created time + /// + /// Direction to sort matching SMSs by created time + [JsonConverter(typeof(StringEnumConverter))] + public enum SortDirectionEnum + { + /// + /// Enum ASC for value: ASC + /// + [EnumMember(Value = "ASC")] + ASC = 1, + + /// + /// Enum DESC for value: DESC + /// + [EnumMember(Value = "DESC")] + DESC = 2 + + } + + + /// + /// Direction to sort matching SMSs by created time + /// + /// Direction to sort matching SMSs by created time + [DataMember(Name = "sortDirection", EmitDefaultValue = true)] + public SortDirectionEnum? SortDirection { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WaitForSmsConditions() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of phone number to search within and apply conditions to. Essentially filtering the SMS found to give a count. (required). + /// Limit results. + /// Number of results that should match conditions. Either exactly or at least this amount based on the `countType`. If count condition is not met and the timeout has not been reached the `waitFor` method will retry the operation. (required). + /// Max time in milliseconds to wait between retries if a `timeout` is specified.. + /// Max time in milliseconds to retry the `waitFor` operation until conditions are met. (required). + /// Apply conditions only to **unread** SMS. All SMS messages begin with `read=false`. An SMS is marked `read=true` when an `SMS` has been returned to the user at least once. For example you have called `getSms` or `waitForSms` etc., or you have viewed the SMS in the dashboard.. + /// How result size should be compared with the expected size. Exactly or at-least matching result?. + /// Conditions that should be matched for an SMS to qualify for results. Each condition will be applied in order to each SMS within a phone number to filter a result list of matching SMSs you are waiting for.. + /// Direction to sort matching SMSs by created time. + /// ISO Date Time earliest time of SMS to consider. Filter for matching SMSs that were received after this date. + /// ISO Date Time latest time of SMS to consider. Filter for matching SMSs that were received before this date. + public WaitForSmsConditions(Guid phoneNumberId = default(Guid), int? limit = default(int?), long count = default(long), long? delayTimeout = default(long?), long timeout = default(long), bool? unreadOnly = default(bool?), CountTypeEnum? countType = default(CountTypeEnum?), List matches = default(List), SortDirectionEnum? sortDirection = default(SortDirectionEnum?), DateTime? since = default(DateTime?), DateTime? before = default(DateTime?)) + { + this.PhoneNumberId = phoneNumberId; + this.Count = count; + this.Timeout = timeout; + this.Limit = limit; + this.DelayTimeout = delayTimeout; + this.UnreadOnly = unreadOnly; + this.CountType = countType; + this.Matches = matches; + this.SortDirection = sortDirection; + this.Since = since; + this.Before = before; + } + + /// + /// ID of phone number to search within and apply conditions to. Essentially filtering the SMS found to give a count. + /// + /// ID of phone number to search within and apply conditions to. Essentially filtering the SMS found to give a count. + [DataMember(Name = "phoneNumberId", IsRequired = true, EmitDefaultValue = true)] + public Guid PhoneNumberId { get; set; } + + /// + /// Limit results + /// + /// Limit results + [DataMember(Name = "limit", EmitDefaultValue = true)] + public int? Limit { get; set; } + + /// + /// Number of results that should match conditions. Either exactly or at least this amount based on the `countType`. If count condition is not met and the timeout has not been reached the `waitFor` method will retry the operation. + /// + /// Number of results that should match conditions. Either exactly or at least this amount based on the `countType`. If count condition is not met and the timeout has not been reached the `waitFor` method will retry the operation. + [DataMember(Name = "count", IsRequired = true, EmitDefaultValue = true)] + public long Count { get; set; } + + /// + /// Max time in milliseconds to wait between retries if a `timeout` is specified. + /// + /// Max time in milliseconds to wait between retries if a `timeout` is specified. + [DataMember(Name = "delayTimeout", EmitDefaultValue = true)] + public long? DelayTimeout { get; set; } + + /// + /// Max time in milliseconds to retry the `waitFor` operation until conditions are met. + /// + /// Max time in milliseconds to retry the `waitFor` operation until conditions are met. + [DataMember(Name = "timeout", IsRequired = true, EmitDefaultValue = true)] + public long Timeout { get; set; } + + /// + /// Apply conditions only to **unread** SMS. All SMS messages begin with `read=false`. An SMS is marked `read=true` when an `SMS` has been returned to the user at least once. For example you have called `getSms` or `waitForSms` etc., or you have viewed the SMS in the dashboard. + /// + /// Apply conditions only to **unread** SMS. All SMS messages begin with `read=false`. An SMS is marked `read=true` when an `SMS` has been returned to the user at least once. For example you have called `getSms` or `waitForSms` etc., or you have viewed the SMS in the dashboard. + [DataMember(Name = "unreadOnly", EmitDefaultValue = true)] + public bool? UnreadOnly { get; set; } + + /// + /// Conditions that should be matched for an SMS to qualify for results. Each condition will be applied in order to each SMS within a phone number to filter a result list of matching SMSs you are waiting for. + /// + /// Conditions that should be matched for an SMS to qualify for results. Each condition will be applied in order to each SMS within a phone number to filter a result list of matching SMSs you are waiting for. + [DataMember(Name = "matches", EmitDefaultValue = true)] + public List Matches { get; set; } + + /// + /// ISO Date Time earliest time of SMS to consider. Filter for matching SMSs that were received after this date + /// + /// ISO Date Time earliest time of SMS to consider. Filter for matching SMSs that were received after this date + [DataMember(Name = "since", EmitDefaultValue = true)] + public DateTime? Since { get; set; } + + /// + /// ISO Date Time latest time of SMS to consider. Filter for matching SMSs that were received before this date + /// + /// ISO Date Time latest time of SMS to consider. Filter for matching SMSs that were received before this date + [DataMember(Name = "before", EmitDefaultValue = true)] + public DateTime? Before { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WaitForSmsConditions {\n"); + sb.Append(" PhoneNumberId: ").Append(PhoneNumberId).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" Count: ").Append(Count).Append("\n"); + sb.Append(" DelayTimeout: ").Append(DelayTimeout).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append(" UnreadOnly: ").Append(UnreadOnly).Append("\n"); + sb.Append(" CountType: ").Append(CountType).Append("\n"); + sb.Append(" Matches: ").Append(Matches).Append("\n"); + sb.Append(" SortDirection: ").Append(SortDirection).Append("\n"); + sb.Append(" Since: ").Append(Since).Append("\n"); + sb.Append(" Before: ").Append(Before).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WaitForSmsConditions); + } + + /// + /// Returns true if WaitForSmsConditions instances are equal + /// + /// Instance of WaitForSmsConditions to be compared + /// Boolean + public bool Equals(WaitForSmsConditions input) + { + if (input == null) + { + return false; + } + return + ( + this.PhoneNumberId == input.PhoneNumberId || + (this.PhoneNumberId != null && + this.PhoneNumberId.Equals(input.PhoneNumberId)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.Count == input.Count || + this.Count.Equals(input.Count) + ) && + ( + this.DelayTimeout == input.DelayTimeout || + (this.DelayTimeout != null && + this.DelayTimeout.Equals(input.DelayTimeout)) + ) && + ( + this.Timeout == input.Timeout || + this.Timeout.Equals(input.Timeout) + ) && + ( + this.UnreadOnly == input.UnreadOnly || + (this.UnreadOnly != null && + this.UnreadOnly.Equals(input.UnreadOnly)) + ) && + ( + this.CountType == input.CountType || + this.CountType.Equals(input.CountType) + ) && + ( + this.Matches == input.Matches || + this.Matches != null && + input.Matches != null && + this.Matches.SequenceEqual(input.Matches) + ) && + ( + this.SortDirection == input.SortDirection || + this.SortDirection.Equals(input.SortDirection) + ) && + ( + this.Since == input.Since || + (this.Since != null && + this.Since.Equals(input.Since)) + ) && + ( + this.Before == input.Before || + (this.Before != null && + this.Before.Equals(input.Before)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PhoneNumberId != null) + { + hashCode = (hashCode * 59) + this.PhoneNumberId.GetHashCode(); + } + if (this.Limit != null) + { + hashCode = (hashCode * 59) + this.Limit.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Count.GetHashCode(); + if (this.DelayTimeout != null) + { + hashCode = (hashCode * 59) + this.DelayTimeout.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Timeout.GetHashCode(); + if (this.UnreadOnly != null) + { + hashCode = (hashCode * 59) + this.UnreadOnly.GetHashCode(); + } + hashCode = (hashCode * 59) + this.CountType.GetHashCode(); + if (this.Matches != null) + { + hashCode = (hashCode * 59) + this.Matches.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SortDirection.GetHashCode(); + if (this.Since != null) + { + hashCode = (hashCode * 59) + this.Since.GetHashCode(); + } + if (this.Before != null) + { + hashCode = (hashCode * 59) + this.Before.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookBouncePayload.cs b/src/mailslurp_netstandard_2x/Model/WebhookBouncePayload.cs new file mode 100644 index 00000000..36b73bab --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookBouncePayload.cs @@ -0,0 +1,345 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// BOUNCE webhook payload. Sent to your webhook url endpoint via HTTP POST when an email bounced or was rejected by a recipient. Save the recipients to a ban list on your server and avoid emailing them again. It is recommended you also listen to the BOUNCE_RECIPIENT payload. + /// + [DataContract(Name = "WebhookBouncePayload")] + public partial class WebhookBouncePayload : IEquatable, IValidatableObject + { + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [DataMember(Name = "eventName", IsRequired = true, EmitDefaultValue = true)] + public EventNameEnum EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookBouncePayload() { } + /// + /// Initializes a new instance of the class. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. (required). + /// ID of webhook entity being triggered (required). + /// Name of the event type webhook is being triggered for. (required). + /// Name of the webhook being triggered. + /// ID of the bounce email record. Use the ID with the bounce controller to view more information (required). + /// Email sent to recipients. + /// Sender causing bounce (required). + /// Email addresses that resulted in a bounce or email being rejected. Please save these recipients and avoid emailing them in the future to maintain your reputation.. + public WebhookBouncePayload(string messageId = default(string), Guid webhookId = default(Guid), EventNameEnum eventName = default(EventNameEnum), string webhookName = default(string), Guid bounceId = default(Guid), List sentToRecipients = default(List), string sender = default(string), List bounceRecipients = default(List)) + { + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for WebhookBouncePayload and cannot be null"); + } + this.MessageId = messageId; + this.WebhookId = webhookId; + this.EventName = eventName; + this.BounceId = bounceId; + // to ensure "sender" is required (not null) + if (sender == null) + { + throw new ArgumentNullException("sender is a required property for WebhookBouncePayload and cannot be null"); + } + this.Sender = sender; + this.WebhookName = webhookName; + this.SentToRecipients = sentToRecipients; + this.BounceRecipients = bounceRecipients; + } + + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// ID of webhook entity being triggered + /// + /// ID of webhook entity being triggered + [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookId { get; set; } + + /// + /// Name of the webhook being triggered + /// + /// Name of the webhook being triggered + [DataMember(Name = "webhookName", EmitDefaultValue = true)] + public string WebhookName { get; set; } + + /// + /// ID of the bounce email record. Use the ID with the bounce controller to view more information + /// + /// ID of the bounce email record. Use the ID with the bounce controller to view more information + [DataMember(Name = "bounceId", IsRequired = true, EmitDefaultValue = true)] + public Guid BounceId { get; set; } + + /// + /// Email sent to recipients + /// + /// Email sent to recipients + [DataMember(Name = "sentToRecipients", EmitDefaultValue = true)] + public List SentToRecipients { get; set; } + + /// + /// Sender causing bounce + /// + /// Sender causing bounce + [DataMember(Name = "sender", IsRequired = true, EmitDefaultValue = true)] + public string Sender { get; set; } + + /// + /// Email addresses that resulted in a bounce or email being rejected. Please save these recipients and avoid emailing them in the future to maintain your reputation. + /// + /// Email addresses that resulted in a bounce or email being rejected. Please save these recipients and avoid emailing them in the future to maintain your reputation. + [DataMember(Name = "bounceRecipients", EmitDefaultValue = true)] + public List BounceRecipients { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookBouncePayload {\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" WebhookId: ").Append(WebhookId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" WebhookName: ").Append(WebhookName).Append("\n"); + sb.Append(" BounceId: ").Append(BounceId).Append("\n"); + sb.Append(" SentToRecipients: ").Append(SentToRecipients).Append("\n"); + sb.Append(" Sender: ").Append(Sender).Append("\n"); + sb.Append(" BounceRecipients: ").Append(BounceRecipients).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookBouncePayload); + } + + /// + /// Returns true if WebhookBouncePayload instances are equal + /// + /// Instance of WebhookBouncePayload to be compared + /// Boolean + public bool Equals(WebhookBouncePayload input) + { + if (input == null) + { + return false; + } + return + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.WebhookId == input.WebhookId || + (this.WebhookId != null && + this.WebhookId.Equals(input.WebhookId)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.WebhookName == input.WebhookName || + (this.WebhookName != null && + this.WebhookName.Equals(input.WebhookName)) + ) && + ( + this.BounceId == input.BounceId || + (this.BounceId != null && + this.BounceId.Equals(input.BounceId)) + ) && + ( + this.SentToRecipients == input.SentToRecipients || + this.SentToRecipients != null && + input.SentToRecipients != null && + this.SentToRecipients.SequenceEqual(input.SentToRecipients) + ) && + ( + this.Sender == input.Sender || + (this.Sender != null && + this.Sender.Equals(input.Sender)) + ) && + ( + this.BounceRecipients == input.BounceRecipients || + this.BounceRecipients != null && + input.BounceRecipients != null && + this.BounceRecipients.SequenceEqual(input.BounceRecipients) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.WebhookId != null) + { + hashCode = (hashCode * 59) + this.WebhookId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.WebhookName != null) + { + hashCode = (hashCode * 59) + this.WebhookName.GetHashCode(); + } + if (this.BounceId != null) + { + hashCode = (hashCode * 59) + this.BounceId.GetHashCode(); + } + if (this.SentToRecipients != null) + { + hashCode = (hashCode * 59) + this.SentToRecipients.GetHashCode(); + } + if (this.Sender != null) + { + hashCode = (hashCode * 59) + this.Sender.GetHashCode(); + } + if (this.BounceRecipients != null) + { + hashCode = (hashCode * 59) + this.BounceRecipients.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookBounceRecipientPayload.cs b/src/mailslurp_netstandard_2x/Model/WebhookBounceRecipientPayload.cs new file mode 100644 index 00000000..73be72b6 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookBounceRecipientPayload.cs @@ -0,0 +1,286 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// BOUNCE_RECIPIENT webhook payload. Sent to your webhook url endpoint via HTTP POST when an email caused a bounce to occur for a recipient. Save the recipient to a ban list of your server and avoid email them again. + /// + [DataContract(Name = "WebhookBounceRecipientPayload")] + public partial class WebhookBounceRecipientPayload : IEquatable, IValidatableObject + { + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [DataMember(Name = "eventName", IsRequired = true, EmitDefaultValue = true)] + public EventNameEnum EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookBounceRecipientPayload() { } + /// + /// Initializes a new instance of the class. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. (required). + /// ID of webhook entity being triggered (required). + /// Name of the event type webhook is being triggered for. (required). + /// Name of the webhook being triggered. + /// Email address that caused a bounce. Make note of the address and try not to message it again to preserve your reputation. (required). + public WebhookBounceRecipientPayload(string messageId = default(string), Guid webhookId = default(Guid), EventNameEnum eventName = default(EventNameEnum), string webhookName = default(string), string recipient = default(string)) + { + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for WebhookBounceRecipientPayload and cannot be null"); + } + this.MessageId = messageId; + this.WebhookId = webhookId; + this.EventName = eventName; + // to ensure "recipient" is required (not null) + if (recipient == null) + { + throw new ArgumentNullException("recipient is a required property for WebhookBounceRecipientPayload and cannot be null"); + } + this.Recipient = recipient; + this.WebhookName = webhookName; + } + + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// ID of webhook entity being triggered + /// + /// ID of webhook entity being triggered + [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookId { get; set; } + + /// + /// Name of the webhook being triggered + /// + /// Name of the webhook being triggered + [DataMember(Name = "webhookName", EmitDefaultValue = true)] + public string WebhookName { get; set; } + + /// + /// Email address that caused a bounce. Make note of the address and try not to message it again to preserve your reputation. + /// + /// Email address that caused a bounce. Make note of the address and try not to message it again to preserve your reputation. + [DataMember(Name = "recipient", IsRequired = true, EmitDefaultValue = true)] + public string Recipient { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookBounceRecipientPayload {\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" WebhookId: ").Append(WebhookId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" WebhookName: ").Append(WebhookName).Append("\n"); + sb.Append(" Recipient: ").Append(Recipient).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookBounceRecipientPayload); + } + + /// + /// Returns true if WebhookBounceRecipientPayload instances are equal + /// + /// Instance of WebhookBounceRecipientPayload to be compared + /// Boolean + public bool Equals(WebhookBounceRecipientPayload input) + { + if (input == null) + { + return false; + } + return + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.WebhookId == input.WebhookId || + (this.WebhookId != null && + this.WebhookId.Equals(input.WebhookId)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.WebhookName == input.WebhookName || + (this.WebhookName != null && + this.WebhookName.Equals(input.WebhookName)) + ) && + ( + this.Recipient == input.Recipient || + (this.Recipient != null && + this.Recipient.Equals(input.Recipient)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.WebhookId != null) + { + hashCode = (hashCode * 59) + this.WebhookId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.WebhookName != null) + { + hashCode = (hashCode * 59) + this.WebhookName.GetHashCode(); + } + if (this.Recipient != null) + { + hashCode = (hashCode * 59) + this.Recipient.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookDeliveryStatusPayload.cs b/src/mailslurp_netstandard_2x/Model/WebhookDeliveryStatusPayload.cs new file mode 100644 index 00000000..f990eb6a --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookDeliveryStatusPayload.cs @@ -0,0 +1,491 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// DELIVERY_STATUS webhook payload. Sent to your webhook url endpoint via HTTP POST when an email delivery status is created. This could be a successful delivery or a delivery failure. + /// + [DataContract(Name = "WebhookDeliveryStatusPayload")] + public partial class WebhookDeliveryStatusPayload : IEquatable, IValidatableObject + { + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [DataMember(Name = "eventName", IsRequired = true, EmitDefaultValue = true)] + public EventNameEnum EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookDeliveryStatusPayload() { } + /// + /// Initializes a new instance of the class. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. (required). + /// ID of webhook entity being triggered (required). + /// Name of the event type webhook is being triggered for. (required). + /// Name of the webhook being triggered. + /// ID of delivery status (required). + /// User ID of event (required). + /// ID of sent email. + /// IP address of the remote Mail Transfer Agent. + /// Id of the inbox. + /// Mail Transfer Agent reporting delivery status. + /// Recipients for delivery. + /// SMTP server response message. + /// SMTP server status. + /// Time in milliseconds for delivery processing. + /// Time event was received. + /// Email subject. + public WebhookDeliveryStatusPayload(string messageId = default(string), Guid webhookId = default(Guid), EventNameEnum eventName = default(EventNameEnum), string webhookName = default(string), Guid id = default(Guid), Guid userId = default(Guid), Guid? sentId = default(Guid?), string remoteMtaIp = default(string), Guid? inboxId = default(Guid?), string reportingMta = default(string), List recipients = default(List), string smtpResponse = default(string), int? smtpStatusCode = default(int?), long? processingTimeMillis = default(long?), DateTime? received = default(DateTime?), string subject = default(string)) + { + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for WebhookDeliveryStatusPayload and cannot be null"); + } + this.MessageId = messageId; + this.WebhookId = webhookId; + this.EventName = eventName; + this.Id = id; + this.UserId = userId; + this.WebhookName = webhookName; + this.SentId = sentId; + this.RemoteMtaIp = remoteMtaIp; + this.InboxId = inboxId; + this.ReportingMta = reportingMta; + this.Recipients = recipients; + this.SmtpResponse = smtpResponse; + this.SmtpStatusCode = smtpStatusCode; + this.ProcessingTimeMillis = processingTimeMillis; + this.Received = received; + this.Subject = subject; + } + + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// ID of webhook entity being triggered + /// + /// ID of webhook entity being triggered + [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookId { get; set; } + + /// + /// Name of the webhook being triggered + /// + /// Name of the webhook being triggered + [DataMember(Name = "webhookName", EmitDefaultValue = true)] + public string WebhookName { get; set; } + + /// + /// ID of delivery status + /// + /// ID of delivery status + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// User ID of event + /// + /// User ID of event + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// ID of sent email + /// + /// ID of sent email + [DataMember(Name = "sentId", EmitDefaultValue = true)] + public Guid? SentId { get; set; } + + /// + /// IP address of the remote Mail Transfer Agent + /// + /// IP address of the remote Mail Transfer Agent + [DataMember(Name = "remoteMtaIp", EmitDefaultValue = true)] + public string RemoteMtaIp { get; set; } + + /// + /// Id of the inbox + /// + /// Id of the inbox + [DataMember(Name = "inboxId", EmitDefaultValue = true)] + public Guid? InboxId { get; set; } + + /// + /// Mail Transfer Agent reporting delivery status + /// + /// Mail Transfer Agent reporting delivery status + [DataMember(Name = "reportingMta", EmitDefaultValue = true)] + public string ReportingMta { get; set; } + + /// + /// Recipients for delivery + /// + /// Recipients for delivery + [DataMember(Name = "recipients", EmitDefaultValue = true)] + public List Recipients { get; set; } + + /// + /// SMTP server response message + /// + /// SMTP server response message + [DataMember(Name = "smtpResponse", EmitDefaultValue = true)] + public string SmtpResponse { get; set; } + + /// + /// SMTP server status + /// + /// SMTP server status + [DataMember(Name = "smtpStatusCode", EmitDefaultValue = true)] + public int? SmtpStatusCode { get; set; } + + /// + /// Time in milliseconds for delivery processing + /// + /// Time in milliseconds for delivery processing + [DataMember(Name = "processingTimeMillis", EmitDefaultValue = true)] + public long? ProcessingTimeMillis { get; set; } + + /// + /// Time event was received + /// + /// Time event was received + [DataMember(Name = "received", EmitDefaultValue = true)] + public DateTime? Received { get; set; } + + /// + /// Email subject + /// + /// Email subject + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookDeliveryStatusPayload {\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" WebhookId: ").Append(WebhookId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" WebhookName: ").Append(WebhookName).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" SentId: ").Append(SentId).Append("\n"); + sb.Append(" RemoteMtaIp: ").Append(RemoteMtaIp).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" ReportingMta: ").Append(ReportingMta).Append("\n"); + sb.Append(" Recipients: ").Append(Recipients).Append("\n"); + sb.Append(" SmtpResponse: ").Append(SmtpResponse).Append("\n"); + sb.Append(" SmtpStatusCode: ").Append(SmtpStatusCode).Append("\n"); + sb.Append(" ProcessingTimeMillis: ").Append(ProcessingTimeMillis).Append("\n"); + sb.Append(" Received: ").Append(Received).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookDeliveryStatusPayload); + } + + /// + /// Returns true if WebhookDeliveryStatusPayload instances are equal + /// + /// Instance of WebhookDeliveryStatusPayload to be compared + /// Boolean + public bool Equals(WebhookDeliveryStatusPayload input) + { + if (input == null) + { + return false; + } + return + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.WebhookId == input.WebhookId || + (this.WebhookId != null && + this.WebhookId.Equals(input.WebhookId)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.WebhookName == input.WebhookName || + (this.WebhookName != null && + this.WebhookName.Equals(input.WebhookName)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.SentId == input.SentId || + (this.SentId != null && + this.SentId.Equals(input.SentId)) + ) && + ( + this.RemoteMtaIp == input.RemoteMtaIp || + (this.RemoteMtaIp != null && + this.RemoteMtaIp.Equals(input.RemoteMtaIp)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.ReportingMta == input.ReportingMta || + (this.ReportingMta != null && + this.ReportingMta.Equals(input.ReportingMta)) + ) && + ( + this.Recipients == input.Recipients || + this.Recipients != null && + input.Recipients != null && + this.Recipients.SequenceEqual(input.Recipients) + ) && + ( + this.SmtpResponse == input.SmtpResponse || + (this.SmtpResponse != null && + this.SmtpResponse.Equals(input.SmtpResponse)) + ) && + ( + this.SmtpStatusCode == input.SmtpStatusCode || + (this.SmtpStatusCode != null && + this.SmtpStatusCode.Equals(input.SmtpStatusCode)) + ) && + ( + this.ProcessingTimeMillis == input.ProcessingTimeMillis || + (this.ProcessingTimeMillis != null && + this.ProcessingTimeMillis.Equals(input.ProcessingTimeMillis)) + ) && + ( + this.Received == input.Received || + (this.Received != null && + this.Received.Equals(input.Received)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.WebhookId != null) + { + hashCode = (hashCode * 59) + this.WebhookId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.WebhookName != null) + { + hashCode = (hashCode * 59) + this.WebhookName.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.SentId != null) + { + hashCode = (hashCode * 59) + this.SentId.GetHashCode(); + } + if (this.RemoteMtaIp != null) + { + hashCode = (hashCode * 59) + this.RemoteMtaIp.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.ReportingMta != null) + { + hashCode = (hashCode * 59) + this.ReportingMta.GetHashCode(); + } + if (this.Recipients != null) + { + hashCode = (hashCode * 59) + this.Recipients.GetHashCode(); + } + if (this.SmtpResponse != null) + { + hashCode = (hashCode * 59) + this.SmtpResponse.GetHashCode(); + } + if (this.SmtpStatusCode != null) + { + hashCode = (hashCode * 59) + this.SmtpStatusCode.GetHashCode(); + } + if (this.ProcessingTimeMillis != null) + { + hashCode = (hashCode * 59) + this.ProcessingTimeMillis.GetHashCode(); + } + if (this.Received != null) + { + hashCode = (hashCode * 59) + this.Received.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookDto.cs b/src/mailslurp_netstandard_2x/Model/WebhookDto.cs new file mode 100644 index 00000000..e6da351b --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookDto.cs @@ -0,0 +1,547 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox. A webhook entity should have a URL that points to your server. Your server should accept HTTP/S POST requests and return a success 200. MailSlurp will retry your webhooks if they fail. See https://csharp.api.mailslurp.com/schemas/webhook-payload for the payload schema. + /// + [DataContract(Name = "WebhookDto")] + public partial class WebhookDto : IEquatable, IValidatableObject + { + /// + /// HTTP method that your server endpoint must listen for + /// + /// HTTP method that your server endpoint must listen for + [JsonConverter(typeof(StringEnumConverter))] + public enum MethodEnum + { + /// + /// Enum POST for value: POST + /// + [EnumMember(Value = "POST")] + POST = 1, + + /// + /// Enum DELETE for value: DELETE + /// + [EnumMember(Value = "DELETE")] + DELETE = 2, + + /// + /// Enum GET for value: GET + /// + [EnumMember(Value = "GET")] + GET = 3, + + /// + /// Enum PUT for value: PUT + /// + [EnumMember(Value = "PUT")] + PUT = 4, + + /// + /// Enum PATCH for value: PATCH + /// + [EnumMember(Value = "PATCH")] + PATCH = 5, + + /// + /// Enum HEAD for value: HEAD + /// + [EnumMember(Value = "HEAD")] + HEAD = 6, + + /// + /// Enum OPTIONS for value: OPTIONS + /// + [EnumMember(Value = "OPTIONS")] + OPTIONS = 7, + + /// + /// Enum TRACE for value: TRACE + /// + [EnumMember(Value = "TRACE")] + TRACE = 8 + + } + + + /// + /// HTTP method that your server endpoint must listen for + /// + /// HTTP method that your server endpoint must listen for + [DataMember(Name = "method", IsRequired = true, EmitDefaultValue = true)] + public MethodEnum Method { get; set; } + /// + /// Webhook trigger event name + /// + /// Webhook trigger event name + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Webhook trigger event name + /// + /// Webhook trigger event name + [DataMember(Name = "eventName", EmitDefaultValue = true)] + public EventNameEnum? EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookDto() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of the Webhook (required). + /// User ID of the Webhook (required). + /// Does webhook expect basic authentication? If true it means you created this webhook with a username and password. MailSlurp will use these in the URL to authenticate itself. (required). + /// Name of the webhook. + /// The phoneNumberId that the Webhook will be triggered by. If null then webhook triggered at account level or inbox level if inboxId set. + /// The inbox that the Webhook will be triggered by. If null then webhook triggered at account level or phone level if phoneId set. + /// Request body template for HTTP request that will be sent for the webhook. Use Moustache style template variables to insert values from the original event payload.. + /// URL of your server that the webhook will be sent to. The schema of the JSON that is sent is described by the payloadJsonSchema. (required). + /// HTTP method that your server endpoint must listen for (required). + /// Deprecated. Fetch JSON Schema for webhook using the getJsonSchemaForWebhookPayload method (required). + /// When the webhook was created (required). + /// updatedAt (required). + /// Webhook trigger event name. + /// requestHeaders. + /// Should notifier ignore insecure SSL certificates. + /// Should notifier use static IP range when sending webhook payload. + public WebhookDto(Guid id = default(Guid), Guid userId = default(Guid), bool basicAuth = default(bool), string name = default(string), Guid? phoneId = default(Guid?), Guid? inboxId = default(Guid?), string requestBodyTemplate = default(string), string url = default(string), MethodEnum method = default(MethodEnum), string payloadJsonSchema = default(string), DateTime? createdAt = default(DateTime?), DateTime updatedAt = default(DateTime), EventNameEnum? eventName = default(EventNameEnum?), WebhookHeaders requestHeaders = default(WebhookHeaders), bool? ignoreInsecureSslCertificates = default(bool?), bool? useStaticIpRange = default(bool?)) + { + this.Id = id; + this.UserId = userId; + this.BasicAuth = basicAuth; + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for WebhookDto and cannot be null"); + } + this.Url = url; + this.Method = method; + // to ensure "payloadJsonSchema" is required (not null) + if (payloadJsonSchema == null) + { + throw new ArgumentNullException("payloadJsonSchema is a required property for WebhookDto and cannot be null"); + } + this.PayloadJsonSchema = payloadJsonSchema; + // to ensure "createdAt" is required (not null) + if (createdAt == null) + { + throw new ArgumentNullException("createdAt is a required property for WebhookDto and cannot be null"); + } + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Name = name; + this.PhoneId = phoneId; + this.InboxId = inboxId; + this.RequestBodyTemplate = requestBodyTemplate; + this.EventName = eventName; + this.RequestHeaders = requestHeaders; + this.IgnoreInsecureSslCertificates = ignoreInsecureSslCertificates; + this.UseStaticIpRange = useStaticIpRange; + } + + /// + /// ID of the Webhook + /// + /// ID of the Webhook + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// User ID of the Webhook + /// + /// User ID of the Webhook + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Does webhook expect basic authentication? If true it means you created this webhook with a username and password. MailSlurp will use these in the URL to authenticate itself. + /// + /// Does webhook expect basic authentication? If true it means you created this webhook with a username and password. MailSlurp will use these in the URL to authenticate itself. + [DataMember(Name = "basicAuth", IsRequired = true, EmitDefaultValue = true)] + public bool BasicAuth { get; set; } + + /// + /// Name of the webhook + /// + /// Name of the webhook + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The phoneNumberId that the Webhook will be triggered by. If null then webhook triggered at account level or inbox level if inboxId set + /// + /// The phoneNumberId that the Webhook will be triggered by. If null then webhook triggered at account level or inbox level if inboxId set + [DataMember(Name = "phoneId", EmitDefaultValue = true)] + public Guid? PhoneId { get; set; } + + /// + /// The inbox that the Webhook will be triggered by. If null then webhook triggered at account level or phone level if phoneId set + /// + /// The inbox that the Webhook will be triggered by. If null then webhook triggered at account level or phone level if phoneId set + [DataMember(Name = "inboxId", EmitDefaultValue = true)] + public Guid? InboxId { get; set; } + + /// + /// Request body template for HTTP request that will be sent for the webhook. Use Moustache style template variables to insert values from the original event payload. + /// + /// Request body template for HTTP request that will be sent for the webhook. Use Moustache style template variables to insert values from the original event payload. + [DataMember(Name = "requestBodyTemplate", EmitDefaultValue = true)] + public string RequestBodyTemplate { get; set; } + + /// + /// URL of your server that the webhook will be sent to. The schema of the JSON that is sent is described by the payloadJsonSchema. + /// + /// URL of your server that the webhook will be sent to. The schema of the JSON that is sent is described by the payloadJsonSchema. + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Deprecated. Fetch JSON Schema for webhook using the getJsonSchemaForWebhookPayload method + /// + /// Deprecated. Fetch JSON Schema for webhook using the getJsonSchemaForWebhookPayload method + [DataMember(Name = "payloadJsonSchema", IsRequired = true, EmitDefaultValue = true)] + public string PayloadJsonSchema { get; set; } + + /// + /// When the webhook was created + /// + /// When the webhook was created + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime? CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets RequestHeaders + /// + [DataMember(Name = "requestHeaders", EmitDefaultValue = false)] + public WebhookHeaders RequestHeaders { get; set; } + + /// + /// Should notifier ignore insecure SSL certificates + /// + /// Should notifier ignore insecure SSL certificates + [DataMember(Name = "ignoreInsecureSslCertificates", EmitDefaultValue = true)] + public bool? IgnoreInsecureSslCertificates { get; set; } + + /// + /// Should notifier use static IP range when sending webhook payload + /// + /// Should notifier use static IP range when sending webhook payload + [DataMember(Name = "useStaticIpRange", EmitDefaultValue = true)] + public bool? UseStaticIpRange { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" BasicAuth: ").Append(BasicAuth).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" PhoneId: ").Append(PhoneId).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" RequestBodyTemplate: ").Append(RequestBodyTemplate).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" PayloadJsonSchema: ").Append(PayloadJsonSchema).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" RequestHeaders: ").Append(RequestHeaders).Append("\n"); + sb.Append(" IgnoreInsecureSslCertificates: ").Append(IgnoreInsecureSslCertificates).Append("\n"); + sb.Append(" UseStaticIpRange: ").Append(UseStaticIpRange).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookDto); + } + + /// + /// Returns true if WebhookDto instances are equal + /// + /// Instance of WebhookDto to be compared + /// Boolean + public bool Equals(WebhookDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.BasicAuth == input.BasicAuth || + this.BasicAuth.Equals(input.BasicAuth) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.PhoneId == input.PhoneId || + (this.PhoneId != null && + this.PhoneId.Equals(input.PhoneId)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.RequestBodyTemplate == input.RequestBodyTemplate || + (this.RequestBodyTemplate != null && + this.RequestBodyTemplate.Equals(input.RequestBodyTemplate)) + ) && + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ) && + ( + this.Method == input.Method || + this.Method.Equals(input.Method) + ) && + ( + this.PayloadJsonSchema == input.PayloadJsonSchema || + (this.PayloadJsonSchema != null && + this.PayloadJsonSchema.Equals(input.PayloadJsonSchema)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.RequestHeaders == input.RequestHeaders || + (this.RequestHeaders != null && + this.RequestHeaders.Equals(input.RequestHeaders)) + ) && + ( + this.IgnoreInsecureSslCertificates == input.IgnoreInsecureSslCertificates || + (this.IgnoreInsecureSslCertificates != null && + this.IgnoreInsecureSslCertificates.Equals(input.IgnoreInsecureSslCertificates)) + ) && + ( + this.UseStaticIpRange == input.UseStaticIpRange || + (this.UseStaticIpRange != null && + this.UseStaticIpRange.Equals(input.UseStaticIpRange)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.BasicAuth.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.PhoneId != null) + { + hashCode = (hashCode * 59) + this.PhoneId.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.RequestBodyTemplate != null) + { + hashCode = (hashCode * 59) + this.RequestBodyTemplate.GetHashCode(); + } + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Method.GetHashCode(); + if (this.PayloadJsonSchema != null) + { + hashCode = (hashCode * 59) + this.PayloadJsonSchema.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.RequestHeaders != null) + { + hashCode = (hashCode * 59) + this.RequestHeaders.GetHashCode(); + } + if (this.IgnoreInsecureSslCertificates != null) + { + hashCode = (hashCode * 59) + this.IgnoreInsecureSslCertificates.GetHashCode(); + } + if (this.UseStaticIpRange != null) + { + hashCode = (hashCode * 59) + this.UseStaticIpRange.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookEmailOpenedPayload.cs b/src/mailslurp_netstandard_2x/Model/WebhookEmailOpenedPayload.cs new file mode 100644 index 00000000..dcb49a07 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookEmailOpenedPayload.cs @@ -0,0 +1,362 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EMAIL_OPENED webhook payload. Sent to your webhook url endpoint via HTTP POST when an email containing a tracking pixel is opened and the pixel image is loaded by a reader. + /// + [DataContract(Name = "WebhookEmailOpenedPayload")] + public partial class WebhookEmailOpenedPayload : IEquatable, IValidatableObject + { + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [DataMember(Name = "eventName", IsRequired = true, EmitDefaultValue = true)] + public EventNameEnum EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookEmailOpenedPayload() { } + /// + /// Initializes a new instance of the class. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. (required). + /// ID of webhook entity being triggered (required). + /// Name of the event type webhook is being triggered for. (required). + /// Name of the webhook being triggered. + /// Id of the inbox (required). + /// ID of the tracking pixel (required). + /// ID of sent email (required). + /// Email address for the recipient of the tracking pixel (required). + /// Date time of event creation (required). + public WebhookEmailOpenedPayload(string messageId = default(string), Guid webhookId = default(Guid), EventNameEnum eventName = default(EventNameEnum), string webhookName = default(string), Guid inboxId = default(Guid), Guid pixelId = default(Guid), Guid sentEmailId = default(Guid), string recipient = default(string), DateTime createdAt = default(DateTime)) + { + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for WebhookEmailOpenedPayload and cannot be null"); + } + this.MessageId = messageId; + this.WebhookId = webhookId; + this.EventName = eventName; + this.InboxId = inboxId; + this.PixelId = pixelId; + this.SentEmailId = sentEmailId; + // to ensure "recipient" is required (not null) + if (recipient == null) + { + throw new ArgumentNullException("recipient is a required property for WebhookEmailOpenedPayload and cannot be null"); + } + this.Recipient = recipient; + this.CreatedAt = createdAt; + this.WebhookName = webhookName; + } + + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// ID of webhook entity being triggered + /// + /// ID of webhook entity being triggered + [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookId { get; set; } + + /// + /// Name of the webhook being triggered + /// + /// Name of the webhook being triggered + [DataMember(Name = "webhookName", EmitDefaultValue = true)] + public string WebhookName { get; set; } + + /// + /// Id of the inbox + /// + /// Id of the inbox + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// ID of the tracking pixel + /// + /// ID of the tracking pixel + [DataMember(Name = "pixelId", IsRequired = true, EmitDefaultValue = true)] + public Guid PixelId { get; set; } + + /// + /// ID of sent email + /// + /// ID of sent email + [DataMember(Name = "sentEmailId", IsRequired = true, EmitDefaultValue = true)] + public Guid SentEmailId { get; set; } + + /// + /// Email address for the recipient of the tracking pixel + /// + /// Email address for the recipient of the tracking pixel + [DataMember(Name = "recipient", IsRequired = true, EmitDefaultValue = true)] + public string Recipient { get; set; } + + /// + /// Date time of event creation + /// + /// Date time of event creation + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookEmailOpenedPayload {\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" WebhookId: ").Append(WebhookId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" WebhookName: ").Append(WebhookName).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" PixelId: ").Append(PixelId).Append("\n"); + sb.Append(" SentEmailId: ").Append(SentEmailId).Append("\n"); + sb.Append(" Recipient: ").Append(Recipient).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookEmailOpenedPayload); + } + + /// + /// Returns true if WebhookEmailOpenedPayload instances are equal + /// + /// Instance of WebhookEmailOpenedPayload to be compared + /// Boolean + public bool Equals(WebhookEmailOpenedPayload input) + { + if (input == null) + { + return false; + } + return + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.WebhookId == input.WebhookId || + (this.WebhookId != null && + this.WebhookId.Equals(input.WebhookId)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.WebhookName == input.WebhookName || + (this.WebhookName != null && + this.WebhookName.Equals(input.WebhookName)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.PixelId == input.PixelId || + (this.PixelId != null && + this.PixelId.Equals(input.PixelId)) + ) && + ( + this.SentEmailId == input.SentEmailId || + (this.SentEmailId != null && + this.SentEmailId.Equals(input.SentEmailId)) + ) && + ( + this.Recipient == input.Recipient || + (this.Recipient != null && + this.Recipient.Equals(input.Recipient)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.WebhookId != null) + { + hashCode = (hashCode * 59) + this.WebhookId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.WebhookName != null) + { + hashCode = (hashCode * 59) + this.WebhookName.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.PixelId != null) + { + hashCode = (hashCode * 59) + this.PixelId.GetHashCode(); + } + if (this.SentEmailId != null) + { + hashCode = (hashCode * 59) + this.SentEmailId.GetHashCode(); + } + if (this.Recipient != null) + { + hashCode = (hashCode * 59) + this.Recipient.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookEmailReadPayload.cs b/src/mailslurp_netstandard_2x/Model/WebhookEmailReadPayload.cs new file mode 100644 index 00000000..9d1db3f0 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookEmailReadPayload.cs @@ -0,0 +1,334 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// EMAIL_READ webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is read. This happens when an email is requested in full from the API or a user views the email in the dashboard. + /// + [DataContract(Name = "WebhookEmailReadPayload")] + public partial class WebhookEmailReadPayload : IEquatable, IValidatableObject + { + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [DataMember(Name = "eventName", IsRequired = true, EmitDefaultValue = true)] + public EventNameEnum EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookEmailReadPayload() { } + /// + /// Initializes a new instance of the class. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. (required). + /// ID of webhook entity being triggered (required). + /// Name of the event type webhook is being triggered for. (required). + /// Name of the webhook being triggered. + /// ID of the email that was received. Use this ID for fetching the email with the `EmailController`. (required). + /// Id of the inbox (required). + /// Is the email read (required). + /// Date time of event creation (required). + public WebhookEmailReadPayload(string messageId = default(string), Guid webhookId = default(Guid), EventNameEnum eventName = default(EventNameEnum), string webhookName = default(string), Guid emailId = default(Guid), Guid inboxId = default(Guid), bool emailIsRead = default(bool), DateTime createdAt = default(DateTime)) + { + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for WebhookEmailReadPayload and cannot be null"); + } + this.MessageId = messageId; + this.WebhookId = webhookId; + this.EventName = eventName; + this.EmailId = emailId; + this.InboxId = inboxId; + this.EmailIsRead = emailIsRead; + this.CreatedAt = createdAt; + this.WebhookName = webhookName; + } + + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// ID of webhook entity being triggered + /// + /// ID of webhook entity being triggered + [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookId { get; set; } + + /// + /// Name of the webhook being triggered + /// + /// Name of the webhook being triggered + [DataMember(Name = "webhookName", EmitDefaultValue = true)] + public string WebhookName { get; set; } + + /// + /// ID of the email that was received. Use this ID for fetching the email with the `EmailController`. + /// + /// ID of the email that was received. Use this ID for fetching the email with the `EmailController`. + [DataMember(Name = "emailId", IsRequired = true, EmitDefaultValue = true)] + public Guid EmailId { get; set; } + + /// + /// Id of the inbox + /// + /// Id of the inbox + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Is the email read + /// + /// Is the email read + [DataMember(Name = "emailIsRead", IsRequired = true, EmitDefaultValue = true)] + public bool EmailIsRead { get; set; } + + /// + /// Date time of event creation + /// + /// Date time of event creation + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookEmailReadPayload {\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" WebhookId: ").Append(WebhookId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" WebhookName: ").Append(WebhookName).Append("\n"); + sb.Append(" EmailId: ").Append(EmailId).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" EmailIsRead: ").Append(EmailIsRead).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookEmailReadPayload); + } + + /// + /// Returns true if WebhookEmailReadPayload instances are equal + /// + /// Instance of WebhookEmailReadPayload to be compared + /// Boolean + public bool Equals(WebhookEmailReadPayload input) + { + if (input == null) + { + return false; + } + return + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.WebhookId == input.WebhookId || + (this.WebhookId != null && + this.WebhookId.Equals(input.WebhookId)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.WebhookName == input.WebhookName || + (this.WebhookName != null && + this.WebhookName.Equals(input.WebhookName)) + ) && + ( + this.EmailId == input.EmailId || + (this.EmailId != null && + this.EmailId.Equals(input.EmailId)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.EmailIsRead == input.EmailIsRead || + this.EmailIsRead.Equals(input.EmailIsRead) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.WebhookId != null) + { + hashCode = (hashCode * 59) + this.WebhookId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.WebhookName != null) + { + hashCode = (hashCode * 59) + this.WebhookName.GetHashCode(); + } + if (this.EmailId != null) + { + hashCode = (hashCode * 59) + this.EmailId.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EmailIsRead.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookHeaderNameValue.cs b/src/mailslurp_netstandard_2x/Model/WebhookHeaderNameValue.cs new file mode 100644 index 00000000..824d2777 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookHeaderNameValue.cs @@ -0,0 +1,164 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Name value pair for webhook header + /// + [DataContract(Name = "WebhookHeaderNameValue")] + public partial class WebhookHeaderNameValue : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookHeaderNameValue() { } + /// + /// Initializes a new instance of the class. + /// + /// Name of header (required). + /// Value of header (required). + public WebhookHeaderNameValue(string name = default(string), string value = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for WebhookHeaderNameValue and cannot be null"); + } + this.Name = name; + // to ensure "value" is required (not null) + if (value == null) + { + throw new ArgumentNullException("value is a required property for WebhookHeaderNameValue and cannot be null"); + } + this.Value = value; + } + + /// + /// Name of header + /// + /// Name of header + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Value of header + /// + /// Value of header + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookHeaderNameValue {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookHeaderNameValue); + } + + /// + /// Returns true if WebhookHeaderNameValue instances are equal + /// + /// Instance of WebhookHeaderNameValue to be compared + /// Boolean + public bool Equals(WebhookHeaderNameValue input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Value != null) + { + hashCode = (hashCode * 59) + this.Value.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookHeaders.cs b/src/mailslurp_netstandard_2x/Model/WebhookHeaders.cs new file mode 100644 index 00000000..0ad3cd7f --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookHeaders.cs @@ -0,0 +1,141 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Webhook HTTP headers to include with each request from MailSlurp to your server + /// + [DataContract(Name = "WebhookHeaders")] + public partial class WebhookHeaders : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookHeaders() { } + /// + /// Initializes a new instance of the class. + /// + /// List of header name value pairs to include with webhook requests (required). + public WebhookHeaders(List headers = default(List)) + { + // to ensure "headers" is required (not null) + if (headers == null) + { + throw new ArgumentNullException("headers is a required property for WebhookHeaders and cannot be null"); + } + this.Headers = headers; + } + + /// + /// List of header name value pairs to include with webhook requests + /// + /// List of header name value pairs to include with webhook requests + [DataMember(Name = "headers", IsRequired = true, EmitDefaultValue = true)] + public List Headers { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookHeaders {\n"); + sb.Append(" Headers: ").Append(Headers).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookHeaders); + } + + /// + /// Returns true if WebhookHeaders instances are equal + /// + /// Instance of WebhookHeaders to be compared + /// Boolean + public bool Equals(WebhookHeaders input) + { + if (input == null) + { + return false; + } + return + ( + this.Headers == input.Headers || + this.Headers != null && + input.Headers != null && + this.Headers.SequenceEqual(input.Headers) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Headers != null) + { + hashCode = (hashCode * 59) + this.Headers.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookNewAttachmentPayload.cs b/src/mailslurp_netstandard_2x/Model/WebhookNewAttachmentPayload.cs new file mode 100644 index 00000000..f487c439 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookNewAttachmentPayload.cs @@ -0,0 +1,349 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// NEW_ATTACHMENT webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to that contains an attachment. You can use the attachmentId to download the attachment. + /// + [DataContract(Name = "WebhookNewAttachmentPayload")] + public partial class WebhookNewAttachmentPayload : IEquatable, IValidatableObject + { + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [DataMember(Name = "eventName", IsRequired = true, EmitDefaultValue = true)] + public EventNameEnum EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookNewAttachmentPayload() { } + /// + /// Initializes a new instance of the class. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. (required). + /// ID of webhook entity being triggered (required). + /// Name of the webhook being triggered. + /// Name of the event type webhook is being triggered for. (required). + /// ID of attachment. Use the `AttachmentController` to (required). + /// Filename of the attachment if present (required). + /// Content type of attachment such as 'image/png' or 'application/pdf (required). + /// Size of attachment in bytes (required). + public WebhookNewAttachmentPayload(string messageId = default(string), Guid webhookId = default(Guid), string webhookName = default(string), EventNameEnum eventName = default(EventNameEnum), string attachmentId = default(string), string name = default(string), string contentType = default(string), long contentLength = default(long)) + { + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for WebhookNewAttachmentPayload and cannot be null"); + } + this.MessageId = messageId; + this.WebhookId = webhookId; + this.EventName = eventName; + // to ensure "attachmentId" is required (not null) + if (attachmentId == null) + { + throw new ArgumentNullException("attachmentId is a required property for WebhookNewAttachmentPayload and cannot be null"); + } + this.AttachmentId = attachmentId; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for WebhookNewAttachmentPayload and cannot be null"); + } + this.Name = name; + // to ensure "contentType" is required (not null) + if (contentType == null) + { + throw new ArgumentNullException("contentType is a required property for WebhookNewAttachmentPayload and cannot be null"); + } + this.ContentType = contentType; + this.ContentLength = contentLength; + this.WebhookName = webhookName; + } + + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// ID of webhook entity being triggered + /// + /// ID of webhook entity being triggered + [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookId { get; set; } + + /// + /// Name of the webhook being triggered + /// + /// Name of the webhook being triggered + [DataMember(Name = "webhookName", EmitDefaultValue = true)] + public string WebhookName { get; set; } + + /// + /// ID of attachment. Use the `AttachmentController` to + /// + /// ID of attachment. Use the `AttachmentController` to + [DataMember(Name = "attachmentId", IsRequired = true, EmitDefaultValue = true)] + public string AttachmentId { get; set; } + + /// + /// Filename of the attachment if present + /// + /// Filename of the attachment if present + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Content type of attachment such as 'image/png' or 'application/pdf + /// + /// Content type of attachment such as 'image/png' or 'application/pdf + [DataMember(Name = "contentType", IsRequired = true, EmitDefaultValue = true)] + public string ContentType { get; set; } + + /// + /// Size of attachment in bytes + /// + /// Size of attachment in bytes + [DataMember(Name = "contentLength", IsRequired = true, EmitDefaultValue = true)] + public long ContentLength { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookNewAttachmentPayload {\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" WebhookId: ").Append(WebhookId).Append("\n"); + sb.Append(" WebhookName: ").Append(WebhookName).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" AttachmentId: ").Append(AttachmentId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" ContentType: ").Append(ContentType).Append("\n"); + sb.Append(" ContentLength: ").Append(ContentLength).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookNewAttachmentPayload); + } + + /// + /// Returns true if WebhookNewAttachmentPayload instances are equal + /// + /// Instance of WebhookNewAttachmentPayload to be compared + /// Boolean + public bool Equals(WebhookNewAttachmentPayload input) + { + if (input == null) + { + return false; + } + return + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.WebhookId == input.WebhookId || + (this.WebhookId != null && + this.WebhookId.Equals(input.WebhookId)) + ) && + ( + this.WebhookName == input.WebhookName || + (this.WebhookName != null && + this.WebhookName.Equals(input.WebhookName)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.AttachmentId == input.AttachmentId || + (this.AttachmentId != null && + this.AttachmentId.Equals(input.AttachmentId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ContentType == input.ContentType || + (this.ContentType != null && + this.ContentType.Equals(input.ContentType)) + ) && + ( + this.ContentLength == input.ContentLength || + this.ContentLength.Equals(input.ContentLength) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.WebhookId != null) + { + hashCode = (hashCode * 59) + this.WebhookId.GetHashCode(); + } + if (this.WebhookName != null) + { + hashCode = (hashCode * 59) + this.WebhookName.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.AttachmentId != null) + { + hashCode = (hashCode * 59) + this.AttachmentId.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.ContentType != null) + { + hashCode = (hashCode * 59) + this.ContentType.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ContentLength.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookNewContactPayload.cs b/src/mailslurp_netstandard_2x/Model/WebhookNewContactPayload.cs new file mode 100644 index 00000000..1867f516 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookNewContactPayload.cs @@ -0,0 +1,478 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// NEW_CONTACT webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to that contains a recipient that has not been saved as a contact. + /// + [DataContract(Name = "WebhookNewContactPayload")] + public partial class WebhookNewContactPayload : IEquatable, IValidatableObject + { + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [DataMember(Name = "eventName", IsRequired = true, EmitDefaultValue = true)] + public EventNameEnum EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookNewContactPayload() { } + /// + /// Initializes a new instance of the class. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. (required). + /// ID of webhook entity being triggered (required). + /// Name of the webhook being triggered. + /// Name of the event type webhook is being triggered for. (required). + /// Contact ID (required). + /// Contact group ID. + /// Contact first name. + /// Contact last name. + /// Contact company name. + /// Primary email address for contact. + /// Email addresses for contact (required). + /// Tags for contact (required). + /// metaData. + /// Has contact opted out of emails (required). + /// Date time of event creation (required). + public WebhookNewContactPayload(string messageId = default(string), Guid webhookId = default(Guid), string webhookName = default(string), EventNameEnum eventName = default(EventNameEnum), Guid contactId = default(Guid), Guid? groupId = default(Guid?), string firstName = default(string), string lastName = default(string), string company = default(string), string primaryEmailAddress = default(string), List emailAddresses = default(List), List tags = default(List), Object metaData = default(Object), bool optOut = default(bool), DateTime createdAt = default(DateTime)) + { + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for WebhookNewContactPayload and cannot be null"); + } + this.MessageId = messageId; + this.WebhookId = webhookId; + this.EventName = eventName; + this.ContactId = contactId; + // to ensure "emailAddresses" is required (not null) + if (emailAddresses == null) + { + throw new ArgumentNullException("emailAddresses is a required property for WebhookNewContactPayload and cannot be null"); + } + this.EmailAddresses = emailAddresses; + // to ensure "tags" is required (not null) + if (tags == null) + { + throw new ArgumentNullException("tags is a required property for WebhookNewContactPayload and cannot be null"); + } + this.Tags = tags; + this.OptOut = optOut; + this.CreatedAt = createdAt; + this.WebhookName = webhookName; + this.GroupId = groupId; + this.FirstName = firstName; + this.LastName = lastName; + this.Company = company; + this.PrimaryEmailAddress = primaryEmailAddress; + this.MetaData = metaData; + } + + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// ID of webhook entity being triggered + /// + /// ID of webhook entity being triggered + [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookId { get; set; } + + /// + /// Name of the webhook being triggered + /// + /// Name of the webhook being triggered + [DataMember(Name = "webhookName", EmitDefaultValue = true)] + public string WebhookName { get; set; } + + /// + /// Contact ID + /// + /// Contact ID + [DataMember(Name = "contactId", IsRequired = true, EmitDefaultValue = true)] + public Guid ContactId { get; set; } + + /// + /// Contact group ID + /// + /// Contact group ID + [DataMember(Name = "groupId", EmitDefaultValue = true)] + public Guid? GroupId { get; set; } + + /// + /// Contact first name + /// + /// Contact first name + [DataMember(Name = "firstName", EmitDefaultValue = true)] + public string FirstName { get; set; } + + /// + /// Contact last name + /// + /// Contact last name + [DataMember(Name = "lastName", EmitDefaultValue = true)] + public string LastName { get; set; } + + /// + /// Contact company name + /// + /// Contact company name + [DataMember(Name = "company", EmitDefaultValue = true)] + public string Company { get; set; } + + /// + /// Primary email address for contact + /// + /// Primary email address for contact + [DataMember(Name = "primaryEmailAddress", EmitDefaultValue = true)] + public string PrimaryEmailAddress { get; set; } + + /// + /// Email addresses for contact + /// + /// Email addresses for contact + [DataMember(Name = "emailAddresses", IsRequired = true, EmitDefaultValue = true)] + public List EmailAddresses { get; set; } + + /// + /// Tags for contact + /// + /// Tags for contact + [DataMember(Name = "tags", IsRequired = true, EmitDefaultValue = true)] + public List Tags { get; set; } + + /// + /// Gets or Sets MetaData + /// + [DataMember(Name = "metaData", EmitDefaultValue = true)] + public Object MetaData { get; set; } + + /// + /// Has contact opted out of emails + /// + /// Has contact opted out of emails + [DataMember(Name = "optOut", IsRequired = true, EmitDefaultValue = true)] + public bool OptOut { get; set; } + + /// + /// Date time of event creation + /// + /// Date time of event creation + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookNewContactPayload {\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" WebhookId: ").Append(WebhookId).Append("\n"); + sb.Append(" WebhookName: ").Append(WebhookName).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" ContactId: ").Append(ContactId).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append(" FirstName: ").Append(FirstName).Append("\n"); + sb.Append(" LastName: ").Append(LastName).Append("\n"); + sb.Append(" Company: ").Append(Company).Append("\n"); + sb.Append(" PrimaryEmailAddress: ").Append(PrimaryEmailAddress).Append("\n"); + sb.Append(" EmailAddresses: ").Append(EmailAddresses).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" MetaData: ").Append(MetaData).Append("\n"); + sb.Append(" OptOut: ").Append(OptOut).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookNewContactPayload); + } + + /// + /// Returns true if WebhookNewContactPayload instances are equal + /// + /// Instance of WebhookNewContactPayload to be compared + /// Boolean + public bool Equals(WebhookNewContactPayload input) + { + if (input == null) + { + return false; + } + return + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.WebhookId == input.WebhookId || + (this.WebhookId != null && + this.WebhookId.Equals(input.WebhookId)) + ) && + ( + this.WebhookName == input.WebhookName || + (this.WebhookName != null && + this.WebhookName.Equals(input.WebhookName)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.ContactId == input.ContactId || + (this.ContactId != null && + this.ContactId.Equals(input.ContactId)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.FirstName == input.FirstName || + (this.FirstName != null && + this.FirstName.Equals(input.FirstName)) + ) && + ( + this.LastName == input.LastName || + (this.LastName != null && + this.LastName.Equals(input.LastName)) + ) && + ( + this.Company == input.Company || + (this.Company != null && + this.Company.Equals(input.Company)) + ) && + ( + this.PrimaryEmailAddress == input.PrimaryEmailAddress || + (this.PrimaryEmailAddress != null && + this.PrimaryEmailAddress.Equals(input.PrimaryEmailAddress)) + ) && + ( + this.EmailAddresses == input.EmailAddresses || + this.EmailAddresses != null && + input.EmailAddresses != null && + this.EmailAddresses.SequenceEqual(input.EmailAddresses) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.MetaData == input.MetaData || + (this.MetaData != null && + this.MetaData.Equals(input.MetaData)) + ) && + ( + this.OptOut == input.OptOut || + this.OptOut.Equals(input.OptOut) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.WebhookId != null) + { + hashCode = (hashCode * 59) + this.WebhookId.GetHashCode(); + } + if (this.WebhookName != null) + { + hashCode = (hashCode * 59) + this.WebhookName.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.ContactId != null) + { + hashCode = (hashCode * 59) + this.ContactId.GetHashCode(); + } + if (this.GroupId != null) + { + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); + } + if (this.FirstName != null) + { + hashCode = (hashCode * 59) + this.FirstName.GetHashCode(); + } + if (this.LastName != null) + { + hashCode = (hashCode * 59) + this.LastName.GetHashCode(); + } + if (this.Company != null) + { + hashCode = (hashCode * 59) + this.Company.GetHashCode(); + } + if (this.PrimaryEmailAddress != null) + { + hashCode = (hashCode * 59) + this.PrimaryEmailAddress.GetHashCode(); + } + if (this.EmailAddresses != null) + { + hashCode = (hashCode * 59) + this.EmailAddresses.GetHashCode(); + } + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + if (this.MetaData != null) + { + hashCode = (hashCode * 59) + this.MetaData.GetHashCode(); + } + hashCode = (hashCode * 59) + this.OptOut.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookNewEmailPayload.cs b/src/mailslurp_netstandard_2x/Model/WebhookNewEmailPayload.cs new file mode 100644 index 00000000..2948ab8e --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookNewEmailPayload.cs @@ -0,0 +1,481 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// NEW_EMAIL webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to. Use the email ID to fetch the full email body or attachments. + /// + [DataContract(Name = "WebhookNewEmailPayload")] + public partial class WebhookNewEmailPayload : IEquatable, IValidatableObject + { + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [DataMember(Name = "eventName", IsRequired = true, EmitDefaultValue = true)] + public EventNameEnum EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookNewEmailPayload() { } + /// + /// Initializes a new instance of the class. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. (required). + /// ID of webhook entity being triggered (required). + /// Name of the event type webhook is being triggered for. (required). + /// Name of the webhook being triggered. + /// Id of the inbox (required). + /// Id of the domain that received an email. + /// ID of the email that was received. Use this ID for fetching the email with the `EmailController`. (required). + /// Date time of event creation (required). + /// List of `To` recipient email addresses that the email was addressed to. See recipients object for names. (required). + /// Who the email was sent from. An email address - see fromName for the sender name. (required). + /// List of `CC` recipients email addresses that the email was addressed to. See recipients object for names. (required). + /// List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names. (required). + /// The subject line of the email message as specified by SMTP subject header. + /// List of attachment meta data objects if attachments present (required). + public WebhookNewEmailPayload(string messageId = default(string), Guid webhookId = default(Guid), EventNameEnum eventName = default(EventNameEnum), string webhookName = default(string), Guid inboxId = default(Guid), Guid? domainId = default(Guid?), Guid emailId = default(Guid), DateTime createdAt = default(DateTime), List to = default(List), string from = default(string), List cc = default(List), List bcc = default(List), string subject = default(string), List attachmentMetaDatas = default(List)) + { + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for WebhookNewEmailPayload and cannot be null"); + } + this.MessageId = messageId; + this.WebhookId = webhookId; + this.EventName = eventName; + this.InboxId = inboxId; + this.EmailId = emailId; + this.CreatedAt = createdAt; + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for WebhookNewEmailPayload and cannot be null"); + } + this.To = to; + // to ensure "from" is required (not null) + if (from == null) + { + throw new ArgumentNullException("from is a required property for WebhookNewEmailPayload and cannot be null"); + } + this.From = from; + // to ensure "cc" is required (not null) + if (cc == null) + { + throw new ArgumentNullException("cc is a required property for WebhookNewEmailPayload and cannot be null"); + } + this.Cc = cc; + // to ensure "bcc" is required (not null) + if (bcc == null) + { + throw new ArgumentNullException("bcc is a required property for WebhookNewEmailPayload and cannot be null"); + } + this.Bcc = bcc; + // to ensure "attachmentMetaDatas" is required (not null) + if (attachmentMetaDatas == null) + { + throw new ArgumentNullException("attachmentMetaDatas is a required property for WebhookNewEmailPayload and cannot be null"); + } + this.AttachmentMetaDatas = attachmentMetaDatas; + this.WebhookName = webhookName; + this.DomainId = domainId; + this.Subject = subject; + } + + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// ID of webhook entity being triggered + /// + /// ID of webhook entity being triggered + [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookId { get; set; } + + /// + /// Name of the webhook being triggered + /// + /// Name of the webhook being triggered + [DataMember(Name = "webhookName", EmitDefaultValue = true)] + public string WebhookName { get; set; } + + /// + /// Id of the inbox + /// + /// Id of the inbox + [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)] + public Guid InboxId { get; set; } + + /// + /// Id of the domain that received an email + /// + /// Id of the domain that received an email + [DataMember(Name = "domainId", EmitDefaultValue = true)] + public Guid? DomainId { get; set; } + + /// + /// ID of the email that was received. Use this ID for fetching the email with the `EmailController`. + /// + /// ID of the email that was received. Use this ID for fetching the email with the `EmailController`. + [DataMember(Name = "emailId", IsRequired = true, EmitDefaultValue = true)] + public Guid EmailId { get; set; } + + /// + /// Date time of event creation + /// + /// Date time of event creation + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// List of `To` recipient email addresses that the email was addressed to. See recipients object for names. + /// + /// List of `To` recipient email addresses that the email was addressed to. See recipients object for names. + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public List To { get; set; } + + /// + /// Who the email was sent from. An email address - see fromName for the sender name. + /// + /// Who the email was sent from. An email address - see fromName for the sender name. + [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// List of `CC` recipients email addresses that the email was addressed to. See recipients object for names. + /// + /// List of `CC` recipients email addresses that the email was addressed to. See recipients object for names. + [DataMember(Name = "cc", IsRequired = true, EmitDefaultValue = true)] + public List Cc { get; set; } + + /// + /// List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names. + /// + /// List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names. + [DataMember(Name = "bcc", IsRequired = true, EmitDefaultValue = true)] + public List Bcc { get; set; } + + /// + /// The subject line of the email message as specified by SMTP subject header + /// + /// The subject line of the email message as specified by SMTP subject header + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// List of attachment meta data objects if attachments present + /// + /// List of attachment meta data objects if attachments present + [DataMember(Name = "attachmentMetaDatas", IsRequired = true, EmitDefaultValue = true)] + public List AttachmentMetaDatas { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookNewEmailPayload {\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" WebhookId: ").Append(WebhookId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" WebhookName: ").Append(WebhookName).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" DomainId: ").Append(DomainId).Append("\n"); + sb.Append(" EmailId: ").Append(EmailId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Cc: ").Append(Cc).Append("\n"); + sb.Append(" Bcc: ").Append(Bcc).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" AttachmentMetaDatas: ").Append(AttachmentMetaDatas).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookNewEmailPayload); + } + + /// + /// Returns true if WebhookNewEmailPayload instances are equal + /// + /// Instance of WebhookNewEmailPayload to be compared + /// Boolean + public bool Equals(WebhookNewEmailPayload input) + { + if (input == null) + { + return false; + } + return + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.WebhookId == input.WebhookId || + (this.WebhookId != null && + this.WebhookId.Equals(input.WebhookId)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.WebhookName == input.WebhookName || + (this.WebhookName != null && + this.WebhookName.Equals(input.WebhookName)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.DomainId == input.DomainId || + (this.DomainId != null && + this.DomainId.Equals(input.DomainId)) + ) && + ( + this.EmailId == input.EmailId || + (this.EmailId != null && + this.EmailId.Equals(input.EmailId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.To == input.To || + this.To != null && + input.To != null && + this.To.SequenceEqual(input.To) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.Cc == input.Cc || + this.Cc != null && + input.Cc != null && + this.Cc.SequenceEqual(input.Cc) + ) && + ( + this.Bcc == input.Bcc || + this.Bcc != null && + input.Bcc != null && + this.Bcc.SequenceEqual(input.Bcc) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.AttachmentMetaDatas == input.AttachmentMetaDatas || + this.AttachmentMetaDatas != null && + input.AttachmentMetaDatas != null && + this.AttachmentMetaDatas.SequenceEqual(input.AttachmentMetaDatas) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.WebhookId != null) + { + hashCode = (hashCode * 59) + this.WebhookId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.WebhookName != null) + { + hashCode = (hashCode * 59) + this.WebhookName.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.DomainId != null) + { + hashCode = (hashCode * 59) + this.DomainId.GetHashCode(); + } + if (this.EmailId != null) + { + hashCode = (hashCode * 59) + this.EmailId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.To != null) + { + hashCode = (hashCode * 59) + this.To.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + if (this.Cc != null) + { + hashCode = (hashCode * 59) + this.Cc.GetHashCode(); + } + if (this.Bcc != null) + { + hashCode = (hashCode * 59) + this.Bcc.GetHashCode(); + } + if (this.Subject != null) + { + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.AttachmentMetaDatas != null) + { + hashCode = (hashCode * 59) + this.AttachmentMetaDatas.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookNewSmsPayload.cs b/src/mailslurp_netstandard_2x/Model/WebhookNewSmsPayload.cs new file mode 100644 index 00000000..27d36df5 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookNewSmsPayload.cs @@ -0,0 +1,406 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// NEW_SMS webhook payload. Sent to your webhook url endpoint via HTTP POST when an sms is received by the phone number that your webhook is attached to. Use the SMS ID to fetch the full SMS details. + /// + [DataContract(Name = "WebhookNewSmsPayload")] + public partial class WebhookNewSmsPayload : IEquatable, IValidatableObject + { + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Name of the event type webhook is being triggered for. + /// + /// Name of the event type webhook is being triggered for. + [DataMember(Name = "eventName", IsRequired = true, EmitDefaultValue = true)] + public EventNameEnum EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookNewSmsPayload() { } + /// + /// Initializes a new instance of the class. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. (required). + /// ID of webhook entity being triggered (required). + /// Name of the event type webhook is being triggered for. (required). + /// Name of the webhook being triggered. + /// ID of SMS message (required). + /// User ID of event (required). + /// ID of phone number receiving SMS (required). + /// Recipient phone number (required). + /// Sender phone number (required). + /// SMS message body (required). + /// SMS has been read (required). + public WebhookNewSmsPayload(string messageId = default(string), Guid webhookId = default(Guid), EventNameEnum eventName = default(EventNameEnum), string webhookName = default(string), Guid smsId = default(Guid), Guid userId = default(Guid), Guid phoneNumber = default(Guid), string toNumber = default(string), string fromNumber = default(string), string body = default(string), bool read = default(bool)) + { + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for WebhookNewSmsPayload and cannot be null"); + } + this.MessageId = messageId; + this.WebhookId = webhookId; + this.EventName = eventName; + this.SmsId = smsId; + this.UserId = userId; + this.PhoneNumber = phoneNumber; + // to ensure "toNumber" is required (not null) + if (toNumber == null) + { + throw new ArgumentNullException("toNumber is a required property for WebhookNewSmsPayload and cannot be null"); + } + this.ToNumber = toNumber; + // to ensure "fromNumber" is required (not null) + if (fromNumber == null) + { + throw new ArgumentNullException("fromNumber is a required property for WebhookNewSmsPayload and cannot be null"); + } + this.FromNumber = fromNumber; + // to ensure "body" is required (not null) + if (body == null) + { + throw new ArgumentNullException("body is a required property for WebhookNewSmsPayload and cannot be null"); + } + this.Body = body; + this.Read = read; + this.WebhookName = webhookName; + } + + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + /// + /// Idempotent message ID. Store this ID locally or in a database to prevent message duplication. + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// ID of webhook entity being triggered + /// + /// ID of webhook entity being triggered + [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookId { get; set; } + + /// + /// Name of the webhook being triggered + /// + /// Name of the webhook being triggered + [DataMember(Name = "webhookName", EmitDefaultValue = true)] + public string WebhookName { get; set; } + + /// + /// ID of SMS message + /// + /// ID of SMS message + [DataMember(Name = "smsId", IsRequired = true, EmitDefaultValue = true)] + public Guid SmsId { get; set; } + + /// + /// User ID of event + /// + /// User ID of event + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// ID of phone number receiving SMS + /// + /// ID of phone number receiving SMS + [DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)] + public Guid PhoneNumber { get; set; } + + /// + /// Recipient phone number + /// + /// Recipient phone number + [DataMember(Name = "toNumber", IsRequired = true, EmitDefaultValue = true)] + public string ToNumber { get; set; } + + /// + /// Sender phone number + /// + /// Sender phone number + [DataMember(Name = "fromNumber", IsRequired = true, EmitDefaultValue = true)] + public string FromNumber { get; set; } + + /// + /// SMS message body + /// + /// SMS message body + [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)] + public string Body { get; set; } + + /// + /// SMS has been read + /// + /// SMS has been read + [DataMember(Name = "read", IsRequired = true, EmitDefaultValue = true)] + public bool Read { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookNewSmsPayload {\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" WebhookId: ").Append(WebhookId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" WebhookName: ").Append(WebhookName).Append("\n"); + sb.Append(" SmsId: ").Append(SmsId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" ToNumber: ").Append(ToNumber).Append("\n"); + sb.Append(" FromNumber: ").Append(FromNumber).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Read: ").Append(Read).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookNewSmsPayload); + } + + /// + /// Returns true if WebhookNewSmsPayload instances are equal + /// + /// Instance of WebhookNewSmsPayload to be compared + /// Boolean + public bool Equals(WebhookNewSmsPayload input) + { + if (input == null) + { + return false; + } + return + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.WebhookId == input.WebhookId || + (this.WebhookId != null && + this.WebhookId.Equals(input.WebhookId)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.WebhookName == input.WebhookName || + (this.WebhookName != null && + this.WebhookName.Equals(input.WebhookName)) + ) && + ( + this.SmsId == input.SmsId || + (this.SmsId != null && + this.SmsId.Equals(input.SmsId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.ToNumber == input.ToNumber || + (this.ToNumber != null && + this.ToNumber.Equals(input.ToNumber)) + ) && + ( + this.FromNumber == input.FromNumber || + (this.FromNumber != null && + this.FromNumber.Equals(input.FromNumber)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ) && + ( + this.Read == input.Read || + this.Read.Equals(input.Read) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.WebhookId != null) + { + hashCode = (hashCode * 59) + this.WebhookId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.WebhookName != null) + { + hashCode = (hashCode * 59) + this.WebhookName.GetHashCode(); + } + if (this.SmsId != null) + { + hashCode = (hashCode * 59) + this.SmsId.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.PhoneNumber != null) + { + hashCode = (hashCode * 59) + this.PhoneNumber.GetHashCode(); + } + if (this.ToNumber != null) + { + hashCode = (hashCode * 59) + this.ToNumber.GetHashCode(); + } + if (this.FromNumber != null) + { + hashCode = (hashCode * 59) + this.FromNumber.GetHashCode(); + } + if (this.Body != null) + { + hashCode = (hashCode * 59) + this.Body.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Read.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookProjection.cs b/src/mailslurp_netstandard_2x/Model/WebhookProjection.cs new file mode 100644 index 00000000..834bbace --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookProjection.cs @@ -0,0 +1,329 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Representation of a webhook + /// + [DataContract(Name = "WebhookProjection")] + public partial class WebhookProjection : IEquatable, IValidatableObject + { + /// + /// Defines EventName + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum EventNameEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Gets or Sets EventName + /// + [DataMember(Name = "eventName", EmitDefaultValue = false)] + public EventNameEnum? EventName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookProjection() { } + /// + /// Initializes a new instance of the class. + /// + /// url (required). + /// inboxId. + /// eventName. + /// phoneNumberId. + /// createdAt (required). + /// updatedAt (required). + /// name. + /// id (required). + public WebhookProjection(string url = default(string), Guid inboxId = default(Guid), EventNameEnum? eventName = default(EventNameEnum?), Guid phoneNumberId = default(Guid), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), Guid id = default(Guid)) + { + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for WebhookProjection and cannot be null"); + } + this.Url = url; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Id = id; + this.InboxId = inboxId; + this.EventName = eventName; + this.PhoneNumberId = phoneNumberId; + this.Name = name; + } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = false)] + public Guid InboxId { get; set; } + + /// + /// Gets or Sets PhoneNumberId + /// + [DataMember(Name = "phoneNumberId", EmitDefaultValue = false)] + public Guid PhoneNumberId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookProjection {\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" PhoneNumberId: ").Append(PhoneNumberId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookProjection); + } + + /// + /// Returns true if WebhookProjection instances are equal + /// + /// Instance of WebhookProjection to be compared + /// Boolean + public bool Equals(WebhookProjection input) + { + if (input == null) + { + return false; + } + return + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.EventName == input.EventName || + this.EventName.Equals(input.EventName) + ) && + ( + this.PhoneNumberId == input.PhoneNumberId || + (this.PhoneNumberId != null && + this.PhoneNumberId.Equals(input.PhoneNumberId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.GetHashCode(); + } + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EventName.GetHashCode(); + if (this.PhoneNumberId != null) + { + hashCode = (hashCode * 59) + this.PhoneNumberId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookRedriveAllResult.cs b/src/mailslurp_netstandard_2x/Model/WebhookRedriveAllResult.cs new file mode 100644 index 00000000..bf3ea3ad --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookRedriveAllResult.cs @@ -0,0 +1,148 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Result of retrying all failed webhook + /// + [DataContract(Name = "WebhookRedriveAllResult")] + public partial class WebhookRedriveAllResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookRedriveAllResult() { } + /// + /// Initializes a new instance of the class. + /// + /// success (required). + /// message. + public WebhookRedriveAllResult(bool success = default(bool), string message = default(string)) + { + this.Success = success; + this.Message = message; + } + + /// + /// Gets or Sets Success + /// + [DataMember(Name = "success", IsRequired = true, EmitDefaultValue = true)] + public bool Success { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookRedriveAllResult {\n"); + sb.Append(" Success: ").Append(Success).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookRedriveAllResult); + } + + /// + /// Returns true if WebhookRedriveAllResult instances are equal + /// + /// Instance of WebhookRedriveAllResult to be compared + /// Boolean + public bool Equals(WebhookRedriveAllResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Success == input.Success || + this.Success.Equals(input.Success) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Success.GetHashCode(); + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookRedriveResult.cs b/src/mailslurp_netstandard_2x/Model/WebhookRedriveResult.cs new file mode 100644 index 00000000..07c7d928 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookRedriveResult.cs @@ -0,0 +1,166 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Result of retrying webhook + /// + [DataContract(Name = "WebhookRedriveResult")] + public partial class WebhookRedriveResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookRedriveResult() { } + /// + /// Initializes a new instance of the class. + /// + /// webhookResultId (required). + /// success (required). + /// message. + public WebhookRedriveResult(Guid webhookResultId = default(Guid), bool success = default(bool), string message = default(string)) + { + this.WebhookResultId = webhookResultId; + this.Success = success; + this.Message = message; + } + + /// + /// Gets or Sets WebhookResultId + /// + [DataMember(Name = "webhookResultId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookResultId { get; set; } + + /// + /// Gets or Sets Success + /// + [DataMember(Name = "success", IsRequired = true, EmitDefaultValue = true)] + public bool Success { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookRedriveResult {\n"); + sb.Append(" WebhookResultId: ").Append(WebhookResultId).Append("\n"); + sb.Append(" Success: ").Append(Success).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookRedriveResult); + } + + /// + /// Returns true if WebhookRedriveResult instances are equal + /// + /// Instance of WebhookRedriveResult to be compared + /// Boolean + public bool Equals(WebhookRedriveResult input) + { + if (input == null) + { + return false; + } + return + ( + this.WebhookResultId == input.WebhookResultId || + (this.WebhookResultId != null && + this.WebhookResultId.Equals(input.WebhookResultId)) + ) && + ( + this.Success == input.Success || + this.Success.Equals(input.Success) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WebhookResultId != null) + { + hashCode = (hashCode * 59) + this.WebhookResultId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Success.GetHashCode(); + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookResultDto.cs b/src/mailslurp_netstandard_2x/Model/WebhookResultDto.cs new file mode 100644 index 00000000..3af29cfa --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookResultDto.cs @@ -0,0 +1,622 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Result of a webhook notification + /// + [DataContract(Name = "WebhookResultDto")] + public partial class WebhookResultDto : IEquatable, IValidatableObject + { + /// + /// Defines HttpMethod + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum HttpMethodEnum + { + /// + /// Enum POST for value: POST + /// + [EnumMember(Value = "POST")] + POST = 1, + + /// + /// Enum DELETE for value: DELETE + /// + [EnumMember(Value = "DELETE")] + DELETE = 2, + + /// + /// Enum GET for value: GET + /// + [EnumMember(Value = "GET")] + GET = 3, + + /// + /// Enum PUT for value: PUT + /// + [EnumMember(Value = "PUT")] + PUT = 4, + + /// + /// Enum PATCH for value: PATCH + /// + [EnumMember(Value = "PATCH")] + PATCH = 5, + + /// + /// Enum HEAD for value: HEAD + /// + [EnumMember(Value = "HEAD")] + HEAD = 6, + + /// + /// Enum OPTIONS for value: OPTIONS + /// + [EnumMember(Value = "OPTIONS")] + OPTIONS = 7, + + /// + /// Enum TRACE for value: TRACE + /// + [EnumMember(Value = "TRACE")] + TRACE = 8 + + } + + + /// + /// Gets or Sets HttpMethod + /// + [DataMember(Name = "httpMethod", IsRequired = true, EmitDefaultValue = true)] + public HttpMethodEnum HttpMethod { get; set; } + /// + /// Defines WebhookEvent + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum WebhookEventEnum + { + /// + /// Enum EMAILRECEIVED for value: EMAIL_RECEIVED + /// + [EnumMember(Value = "EMAIL_RECEIVED")] + EMAILRECEIVED = 1, + + /// + /// Enum NEWEMAIL for value: NEW_EMAIL + /// + [EnumMember(Value = "NEW_EMAIL")] + NEWEMAIL = 2, + + /// + /// Enum NEWCONTACT for value: NEW_CONTACT + /// + [EnumMember(Value = "NEW_CONTACT")] + NEWCONTACT = 3, + + /// + /// Enum NEWATTACHMENT for value: NEW_ATTACHMENT + /// + [EnumMember(Value = "NEW_ATTACHMENT")] + NEWATTACHMENT = 4, + + /// + /// Enum EMAILOPENED for value: EMAIL_OPENED + /// + [EnumMember(Value = "EMAIL_OPENED")] + EMAILOPENED = 5, + + /// + /// Enum EMAILREAD for value: EMAIL_READ + /// + [EnumMember(Value = "EMAIL_READ")] + EMAILREAD = 6, + + /// + /// Enum DELIVERYSTATUS for value: DELIVERY_STATUS + /// + [EnumMember(Value = "DELIVERY_STATUS")] + DELIVERYSTATUS = 7, + + /// + /// Enum BOUNCE for value: BOUNCE + /// + [EnumMember(Value = "BOUNCE")] + BOUNCE = 8, + + /// + /// Enum BOUNCERECIPIENT for value: BOUNCE_RECIPIENT + /// + [EnumMember(Value = "BOUNCE_RECIPIENT")] + BOUNCERECIPIENT = 9, + + /// + /// Enum NEWSMS for value: NEW_SMS + /// + [EnumMember(Value = "NEW_SMS")] + NEWSMS = 10 + + } + + + /// + /// Gets or Sets WebhookEvent + /// + [DataMember(Name = "webhookEvent", IsRequired = true, EmitDefaultValue = true)] + public WebhookEventEnum WebhookEvent { get; set; } + /// + /// Defines ResultType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ResultTypeEnum + { + /// + /// Enum BADRESPONSE for value: BAD_RESPONSE + /// + [EnumMember(Value = "BAD_RESPONSE")] + BADRESPONSE = 1, + + /// + /// Enum EXCEPTION for value: EXCEPTION + /// + [EnumMember(Value = "EXCEPTION")] + EXCEPTION = 2, + + /// + /// Enum SUCCESS for value: SUCCESS + /// + [EnumMember(Value = "SUCCESS")] + SUCCESS = 3, + + /// + /// Enum REDRIVEN for value: REDRIVEN + /// + [EnumMember(Value = "REDRIVEN")] + REDRIVEN = 4 + + } + + + /// + /// Gets or Sets ResultType + /// + [DataMember(Name = "resultType", EmitDefaultValue = true)] + public ResultTypeEnum? ResultType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookResultDto() { } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// userId (required). + /// webhookId (required). + /// webhookUrl (required). + /// messageId (required). + /// redriveId. + /// httpMethod (required). + /// webhookEvent (required). + /// responseStatus. + /// responseTimeMillis (required). + /// responseBodyExtract. + /// resultType. + /// createdAt (required). + /// updatedAt (required). + /// seen (required). + /// inboxId. + /// emailId. + /// attachmentId. + /// phoneId. + /// smsId. + public WebhookResultDto(Guid? id = default(Guid?), Guid userId = default(Guid), Guid webhookId = default(Guid), string webhookUrl = default(string), string messageId = default(string), Guid? redriveId = default(Guid?), HttpMethodEnum httpMethod = default(HttpMethodEnum), WebhookEventEnum webhookEvent = default(WebhookEventEnum), int? responseStatus = default(int?), long responseTimeMillis = default(long), string responseBodyExtract = default(string), ResultTypeEnum? resultType = default(ResultTypeEnum?), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), bool seen = default(bool), Guid? inboxId = default(Guid?), Guid? emailId = default(Guid?), Guid? attachmentId = default(Guid?), Guid? phoneId = default(Guid?), Guid? smsId = default(Guid?)) + { + this.UserId = userId; + this.WebhookId = webhookId; + // to ensure "webhookUrl" is required (not null) + if (webhookUrl == null) + { + throw new ArgumentNullException("webhookUrl is a required property for WebhookResultDto and cannot be null"); + } + this.WebhookUrl = webhookUrl; + // to ensure "messageId" is required (not null) + if (messageId == null) + { + throw new ArgumentNullException("messageId is a required property for WebhookResultDto and cannot be null"); + } + this.MessageId = messageId; + this.HttpMethod = httpMethod; + this.WebhookEvent = webhookEvent; + this.ResponseTimeMillis = responseTimeMillis; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Seen = seen; + this.Id = id; + this.RedriveId = redriveId; + this.ResponseStatus = responseStatus; + this.ResponseBodyExtract = responseBodyExtract; + this.ResultType = resultType; + this.InboxId = inboxId; + this.EmailId = emailId; + this.AttachmentId = attachmentId; + this.PhoneId = phoneId; + this.SmsId = smsId; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = true)] + public Guid? Id { get; set; } + + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] + public Guid UserId { get; set; } + + /// + /// Gets or Sets WebhookId + /// + [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)] + public Guid WebhookId { get; set; } + + /// + /// Gets or Sets WebhookUrl + /// + [DataMember(Name = "webhookUrl", IsRequired = true, EmitDefaultValue = true)] + public string WebhookUrl { get; set; } + + /// + /// Gets or Sets MessageId + /// + [DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)] + public string MessageId { get; set; } + + /// + /// Gets or Sets RedriveId + /// + [DataMember(Name = "redriveId", EmitDefaultValue = true)] + public Guid? RedriveId { get; set; } + + /// + /// Gets or Sets ResponseStatus + /// + [DataMember(Name = "responseStatus", EmitDefaultValue = true)] + public int? ResponseStatus { get; set; } + + /// + /// Gets or Sets ResponseTimeMillis + /// + [DataMember(Name = "responseTimeMillis", IsRequired = true, EmitDefaultValue = true)] + public long ResponseTimeMillis { get; set; } + + /// + /// Gets or Sets ResponseBodyExtract + /// + [DataMember(Name = "responseBodyExtract", EmitDefaultValue = true)] + public string ResponseBodyExtract { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets Seen + /// + [DataMember(Name = "seen", IsRequired = true, EmitDefaultValue = true)] + public bool Seen { get; set; } + + /// + /// Gets or Sets InboxId + /// + [DataMember(Name = "inboxId", EmitDefaultValue = true)] + public Guid? InboxId { get; set; } + + /// + /// Gets or Sets EmailId + /// + [DataMember(Name = "emailId", EmitDefaultValue = true)] + public Guid? EmailId { get; set; } + + /// + /// Gets or Sets AttachmentId + /// + [DataMember(Name = "attachmentId", EmitDefaultValue = true)] + public Guid? AttachmentId { get; set; } + + /// + /// Gets or Sets PhoneId + /// + [DataMember(Name = "phoneId", EmitDefaultValue = true)] + public Guid? PhoneId { get; set; } + + /// + /// Gets or Sets SmsId + /// + [DataMember(Name = "smsId", EmitDefaultValue = true)] + public Guid? SmsId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookResultDto {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" WebhookId: ").Append(WebhookId).Append("\n"); + sb.Append(" WebhookUrl: ").Append(WebhookUrl).Append("\n"); + sb.Append(" MessageId: ").Append(MessageId).Append("\n"); + sb.Append(" RedriveId: ").Append(RedriveId).Append("\n"); + sb.Append(" HttpMethod: ").Append(HttpMethod).Append("\n"); + sb.Append(" WebhookEvent: ").Append(WebhookEvent).Append("\n"); + sb.Append(" ResponseStatus: ").Append(ResponseStatus).Append("\n"); + sb.Append(" ResponseTimeMillis: ").Append(ResponseTimeMillis).Append("\n"); + sb.Append(" ResponseBodyExtract: ").Append(ResponseBodyExtract).Append("\n"); + sb.Append(" ResultType: ").Append(ResultType).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Seen: ").Append(Seen).Append("\n"); + sb.Append(" InboxId: ").Append(InboxId).Append("\n"); + sb.Append(" EmailId: ").Append(EmailId).Append("\n"); + sb.Append(" AttachmentId: ").Append(AttachmentId).Append("\n"); + sb.Append(" PhoneId: ").Append(PhoneId).Append("\n"); + sb.Append(" SmsId: ").Append(SmsId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookResultDto); + } + + /// + /// Returns true if WebhookResultDto instances are equal + /// + /// Instance of WebhookResultDto to be compared + /// Boolean + public bool Equals(WebhookResultDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.WebhookId == input.WebhookId || + (this.WebhookId != null && + this.WebhookId.Equals(input.WebhookId)) + ) && + ( + this.WebhookUrl == input.WebhookUrl || + (this.WebhookUrl != null && + this.WebhookUrl.Equals(input.WebhookUrl)) + ) && + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.RedriveId == input.RedriveId || + (this.RedriveId != null && + this.RedriveId.Equals(input.RedriveId)) + ) && + ( + this.HttpMethod == input.HttpMethod || + this.HttpMethod.Equals(input.HttpMethod) + ) && + ( + this.WebhookEvent == input.WebhookEvent || + this.WebhookEvent.Equals(input.WebhookEvent) + ) && + ( + this.ResponseStatus == input.ResponseStatus || + (this.ResponseStatus != null && + this.ResponseStatus.Equals(input.ResponseStatus)) + ) && + ( + this.ResponseTimeMillis == input.ResponseTimeMillis || + this.ResponseTimeMillis.Equals(input.ResponseTimeMillis) + ) && + ( + this.ResponseBodyExtract == input.ResponseBodyExtract || + (this.ResponseBodyExtract != null && + this.ResponseBodyExtract.Equals(input.ResponseBodyExtract)) + ) && + ( + this.ResultType == input.ResultType || + this.ResultType.Equals(input.ResultType) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.Seen == input.Seen || + this.Seen.Equals(input.Seen) + ) && + ( + this.InboxId == input.InboxId || + (this.InboxId != null && + this.InboxId.Equals(input.InboxId)) + ) && + ( + this.EmailId == input.EmailId || + (this.EmailId != null && + this.EmailId.Equals(input.EmailId)) + ) && + ( + this.AttachmentId == input.AttachmentId || + (this.AttachmentId != null && + this.AttachmentId.Equals(input.AttachmentId)) + ) && + ( + this.PhoneId == input.PhoneId || + (this.PhoneId != null && + this.PhoneId.Equals(input.PhoneId)) + ) && + ( + this.SmsId == input.SmsId || + (this.SmsId != null && + this.SmsId.Equals(input.SmsId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.WebhookId != null) + { + hashCode = (hashCode * 59) + this.WebhookId.GetHashCode(); + } + if (this.WebhookUrl != null) + { + hashCode = (hashCode * 59) + this.WebhookUrl.GetHashCode(); + } + if (this.MessageId != null) + { + hashCode = (hashCode * 59) + this.MessageId.GetHashCode(); + } + if (this.RedriveId != null) + { + hashCode = (hashCode * 59) + this.RedriveId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.HttpMethod.GetHashCode(); + hashCode = (hashCode * 59) + this.WebhookEvent.GetHashCode(); + if (this.ResponseStatus != null) + { + hashCode = (hashCode * 59) + this.ResponseStatus.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ResponseTimeMillis.GetHashCode(); + if (this.ResponseBodyExtract != null) + { + hashCode = (hashCode * 59) + this.ResponseBodyExtract.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ResultType.GetHashCode(); + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Seen.GetHashCode(); + if (this.InboxId != null) + { + hashCode = (hashCode * 59) + this.InboxId.GetHashCode(); + } + if (this.EmailId != null) + { + hashCode = (hashCode * 59) + this.EmailId.GetHashCode(); + } + if (this.AttachmentId != null) + { + hashCode = (hashCode * 59) + this.AttachmentId.GetHashCode(); + } + if (this.PhoneId != null) + { + hashCode = (hashCode * 59) + this.PhoneId.GetHashCode(); + } + if (this.SmsId != null) + { + hashCode = (hashCode * 59) + this.SmsId.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookTestRequest.cs b/src/mailslurp_netstandard_2x/Model/WebhookTestRequest.cs new file mode 100644 index 00000000..f4dcac40 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookTestRequest.cs @@ -0,0 +1,251 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Result of webhook test request + /// + [DataContract(Name = "WebhookTestRequest")] + public partial class WebhookTestRequest : IEquatable, IValidatableObject + { + /// + /// Defines Method + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum MethodEnum + { + /// + /// Enum POST for value: POST + /// + [EnumMember(Value = "POST")] + POST = 1, + + /// + /// Enum DELETE for value: DELETE + /// + [EnumMember(Value = "DELETE")] + DELETE = 2, + + /// + /// Enum GET for value: GET + /// + [EnumMember(Value = "GET")] + GET = 3, + + /// + /// Enum PUT for value: PUT + /// + [EnumMember(Value = "PUT")] + PUT = 4, + + /// + /// Enum PATCH for value: PATCH + /// + [EnumMember(Value = "PATCH")] + PATCH = 5, + + /// + /// Enum HEAD for value: HEAD + /// + [EnumMember(Value = "HEAD")] + HEAD = 6, + + /// + /// Enum OPTIONS for value: OPTIONS + /// + [EnumMember(Value = "OPTIONS")] + OPTIONS = 7, + + /// + /// Enum TRACE for value: TRACE + /// + [EnumMember(Value = "TRACE")] + TRACE = 8 + + } + + + /// + /// Gets or Sets Method + /// + [DataMember(Name = "method", IsRequired = true, EmitDefaultValue = true)] + public MethodEnum Method { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookTestRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// url (required). + /// method (required). + /// headers (required). + /// payload. + public WebhookTestRequest(string url = default(string), MethodEnum method = default(MethodEnum), Dictionary headers = default(Dictionary), string payload = default(string)) + { + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for WebhookTestRequest and cannot be null"); + } + this.Url = url; + this.Method = method; + // to ensure "headers" is required (not null) + if (headers == null) + { + throw new ArgumentNullException("headers is a required property for WebhookTestRequest and cannot be null"); + } + this.Headers = headers; + this.Payload = payload; + } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Gets or Sets Headers + /// + [DataMember(Name = "headers", IsRequired = true, EmitDefaultValue = true)] + public Dictionary Headers { get; set; } + + /// + /// Gets or Sets Payload + /// + [DataMember(Name = "payload", EmitDefaultValue = true)] + public string Payload { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookTestRequest {\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" Headers: ").Append(Headers).Append("\n"); + sb.Append(" Payload: ").Append(Payload).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookTestRequest); + } + + /// + /// Returns true if WebhookTestRequest instances are equal + /// + /// Instance of WebhookTestRequest to be compared + /// Boolean + public bool Equals(WebhookTestRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ) && + ( + this.Method == input.Method || + this.Method.Equals(input.Method) + ) && + ( + this.Headers == input.Headers || + this.Headers != null && + input.Headers != null && + this.Headers.SequenceEqual(input.Headers) + ) && + ( + this.Payload == input.Payload || + (this.Payload != null && + this.Payload.Equals(input.Payload)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Method.GetHashCode(); + if (this.Headers != null) + { + hashCode = (hashCode * 59) + this.Headers.GetHashCode(); + } + if (this.Payload != null) + { + hashCode = (hashCode * 59) + this.Payload.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookTestResponse.cs b/src/mailslurp_netstandard_2x/Model/WebhookTestResponse.cs new file mode 100644 index 00000000..578e79d2 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookTestResponse.cs @@ -0,0 +1,147 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Response from webhook test request + /// + [DataContract(Name = "WebhookTestResponse")] + public partial class WebhookTestResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// statusCode. + /// message. + public WebhookTestResponse(int? statusCode = default(int?), string message = default(string)) + { + this.StatusCode = statusCode; + this.Message = message; + } + + /// + /// Gets or Sets StatusCode + /// + [DataMember(Name = "statusCode", EmitDefaultValue = true)] + public int? StatusCode { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookTestResponse {\n"); + sb.Append(" StatusCode: ").Append(StatusCode).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookTestResponse); + } + + /// + /// Returns true if WebhookTestResponse instances are equal + /// + /// Instance of WebhookTestResponse to be compared + /// Boolean + public bool Equals(WebhookTestResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.StatusCode == input.StatusCode || + (this.StatusCode != null && + this.StatusCode.Equals(input.StatusCode)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StatusCode != null) + { + hashCode = (hashCode * 59) + this.StatusCode.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/Model/WebhookTestResult.cs b/src/mailslurp_netstandard_2x/Model/WebhookTestResult.cs new file mode 100644 index 00000000..58e5b500 --- /dev/null +++ b/src/mailslurp_netstandard_2x/Model/WebhookTestResult.cs @@ -0,0 +1,180 @@ +/* + * MailSlurp API + * + * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository + * + * The version of the OpenAPI document: 6.5.2 + * Contact: contact@mailslurp.dev + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = mailslurp_netstandard_2x.Client.OpenAPIDateConverter; + +namespace mailslurp_netstandard_2x.Model +{ + /// + /// Results of testing a webhook + /// + [DataContract(Name = "WebhookTestResult")] + public partial class WebhookTestResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebhookTestResult() { } + /// + /// Initializes a new instance of the class. + /// + /// message. + /// response (required). + /// request (required). + public WebhookTestResult(string message = default(string), WebhookTestResponse response = default(WebhookTestResponse), WebhookTestRequest request = default(WebhookTestRequest)) + { + // to ensure "response" is required (not null) + if (response == null) + { + throw new ArgumentNullException("response is a required property for WebhookTestResult and cannot be null"); + } + this.Response = response; + // to ensure "request" is required (not null) + if (request == null) + { + throw new ArgumentNullException("request is a required property for WebhookTestResult and cannot be null"); + } + this.Request = request; + this.Message = message; + } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "message", EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Gets or Sets Response + /// + [DataMember(Name = "response", IsRequired = true, EmitDefaultValue = true)] + public WebhookTestResponse Response { get; set; } + + /// + /// Gets or Sets Request + /// + [DataMember(Name = "request", IsRequired = true, EmitDefaultValue = true)] + public WebhookTestRequest Request { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class WebhookTestResult {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Response: ").Append(Response).Append("\n"); + sb.Append(" Request: ").Append(Request).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookTestResult); + } + + /// + /// Returns true if WebhookTestResult instances are equal + /// + /// Instance of WebhookTestResult to be compared + /// Boolean + public bool Equals(WebhookTestResult input) + { + if (input == null) + { + return false; + } + return + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Response == input.Response || + (this.Response != null && + this.Response.Equals(input.Response)) + ) && + ( + this.Request == input.Request || + (this.Request != null && + this.Request.Equals(input.Request)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.Response != null) + { + hashCode = (hashCode * 59) + this.Response.GetHashCode(); + } + if (this.Request != null) + { + hashCode = (hashCode * 59) + this.Request.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/mailslurp_netstandard_2x/README.md b/src/mailslurp_netstandard_2x/README.md new file mode 100644 index 00000000..b94f9fa8 --- /dev/null +++ b/src/mailslurp_netstandard_2x/README.md @@ -0,0 +1,38 @@ +# MailSlurp C\# Client .NET Standard 2.x + +> Create real email addresses on demand. Send and receive emails and attachments from code and tests using CSharp (C# NET Standard 2.1). + +MailSlurp is an email API service that lets you create real email addresses in code. You can then send and receive emails and attachments in C# applications and tests. + +## Quick links + +- [Method Documentation](https://github.com/mailslurp/mailslurp-client-csharp-netstandard-2x) +- [NuGet Package](https://www.nuget.org/packages/mailslurp_netstandard_2x/) +- [Code Examples](https://github.com/mailslurp/examples) +- [Github Source](https://github.com/mailslurp/mailslurp-client-csharp-netstandard-2x) + +### Tutorials + +- [SpecFlow email integration test](https://www.mailslurp.com/examples/specflow-test-email-accounts/) +- [Selenium DotNet email tutorial](https://www.mailslurp.com/examples/test-emails-selenium-dotnet-csharp/) + +## Get started + +This section describes how to get up and running with the CSharp client. The client targets `NET Standard 2.1` and greater. If you need a different target see the .NET Standard targets below or consider calling the [REST API](https://docs.mailslurp.com/api/). + +- [.NET Core 2.1](https://github.com/mailslurp/mailslurp-client-csharp) +- [.NET Standard 2.1](https://github.com/mailslurp/mailslurp-client-csharp-netstandard-2x) + +See the method documentation for a [list of all functions](https://github.com/mailslurp/mailslurp-client-csharp-netstandard-2x) + + +### Install NuGet Package + +MailSlurp's CSharp library is [hosted on NuGet](https://www.nuget.org/packages/mailslurp_netstandard_2x/). + +#### With .NET CLI + +```bash +dotnet add package mailslurp_netstandard_2x +dotnet restore +``` diff --git a/src/mailslurp_netstandard_2x/mailslurp_netstandard_2x.csproj b/src/mailslurp_netstandard_2x/mailslurp_netstandard_2x.csproj new file mode 100644 index 00000000..3201199a --- /dev/null +++ b/src/mailslurp_netstandard_2x/mailslurp_netstandard_2x.csproj @@ -0,0 +1,39 @@ + + + + false + netstandard2.1 + mailslurp_netstandard_2xREADME.md + mailslurp_netstandard_2x + Library + MailSlurp + MailSlurp + MailSlurp Library + The official MailSlurp Email API SDK. See mailslurp.com/docs/csharp for more information. + No Copyright + mailslurp_netstandard_2x + 15.19.14 + bin\$(Configuration)\$(TargetFramework)\mailslurp_netstandard_2x.xml + https://github.com/mailslurp/mailslurp-client-csharp-netstandard-2x.git + git + Minor update + + + + + + + + + + + + + + + + + + + +